---
title: "Relay Rerank"
method: POST
path: "/v1/rerank"
tags: ["Relay"]
---

# Relay Rerank

`POST /v1/rerank`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/v1/rerank`
- Auth: HTTP bearer

## Response `200`

OK

- RerankResponse: RerankResponse schema
  - `results` RerankResponseResult[], nullable, required
    - `document` unknown
    - `index` integer, required
    - `relevance_score` number, double, required
  - `usage` Usage, required
    - `claude_usage` ClaudeUsage
      - `billing_usage` BillingUsage
        - `billing_usage` BillingUsage (recursive)
        - `cachedContentTokenCount` integer, required
        - `candidatesTokenCount` integer, required
        - `candidatesTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `promptTokenCount` integer, required
        - `promptTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `thoughtsTokenCount` integer, required
        - `toolUsePromptTokenCount` integer, required
        - `toolUsePromptTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `totalTokenCount` integer, required
      - `cache_creation` ClaudeCacheCreationUsage
        - `ephemeral_1h_input_tokens` integer
        - `ephemeral_5m_input_tokens` integer
      - `cache_creation_input_tokens` integer, required
      - `cache_read_input_tokens` integer, required
      - `claude_cache_creation_1_h_tokens` integer, required
      - `claude_cache_creation_5_m_tokens` integer, required
      - `input_tokens` integer, required
      - `output_tokens` integer, required
      - `server_tool_use` ClaudeServerToolUse
        - `code_execution_requests` integer
        - `tool_search_requests` integer
        - `web_fetch_requests` integer
        - `web_search_requests` integer
    - `estimated` boolean
    - `gemini_usage_metadata` GeminiUsageMetadata
      - `billing_usage` BillingUsage
        - `billing_usage` BillingUsage (recursive)
        - `cachedContentTokenCount` integer, required
        - `candidatesTokenCount` integer, required
        - `candidatesTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `promptTokenCount` integer, required
        - `promptTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `thoughtsTokenCount` integer, required
        - `toolUsePromptTokenCount` integer, required
        - `toolUsePromptTokensDetails` GeminiPromptTokensDetails[], nullable, required
          - `modality` string, required
          - `tokenCount` integer, required
        - `totalTokenCount` integer, required
      - `cachedContentTokenCount` integer, required
      - `candidatesTokenCount` integer, required
      - `candidatesTokensDetails` GeminiPromptTokensDetails[], nullable, required
        - `modality` string, required
        - `tokenCount` integer, required
      - `promptTokenCount` integer, required
      - `promptTokensDetails` GeminiPromptTokensDetails[], nullable, required
        - `modality` string, required
        - `tokenCount` integer, required
      - `thoughtsTokenCount` integer, required
      - `toolUsePromptTokenCount` integer, required
      - `toolUsePromptTokensDetails` GeminiPromptTokensDetails[], nullable, required
        - `modality` string, required
        - `tokenCount` integer, required
      - `totalTokenCount` integer, required
    - `openai_usage` Usage (recursive)
    - `semantic` string
    - `source` string

## Changes

- **2026-12-02** `1b50ada14f59`: 20 breaking, 12 warning, 12 info
  - removed the required property `usage/claude_cache_creation_1_h_tokens` from the response with the `200` status (media type: application/json)
  - removed the required property `usage/claude_cache_creation_1_h_tokens` from the response with the `200` status (media type: application/xml)
  - removed the required property `usage/claude_cache_creation_5_m_tokens` from the response with the `200` status (media type: application/json)
  - removed the required property `usage/claude_cache_creation_5_m_tokens` from the response with the `200` status (media type: application/xml)
  - …40 more
- **2026-12-02** `bdf3e8b35c33`: 12 warning, 32 info
  - removed the optional property `usage/claude_usage` from the response with the `200` status (media type: application/json)
  - removed the optional property `usage/claude_usage` from the response with the `200` status (media type: application/xml)
  - removed the optional property `usage/estimated` from the response with the `200` status (media type: application/json)
  - removed the optional property `usage/estimated` from the response with the `200` status (media type: application/xml)
  - …40 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/v1/rerank/post.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
