UnoRouter Relay API

The Relay API from UnoRouter, for relay.

GitHub OpenAPI

Operations 32

POST /v1/alpha/search Relay Alpha Search #
POST /v1/audio/speech Relay Audio Speech #
POST /v1/audio/transcriptions Relay Audio Transcriptions #
POST /v1/audio/translations Relay Audio Translations #
POST /v1/chat/completions Relay Chat Completions #
POST /v1/completions Relay Completions #
POST /v1/decisions Relay Decisions #
POST /v1/edits Relay Edits #
POST /v1/embeddings Relay Embeddings #
POST /v1/engines/{model}/embeddings Relay Engine Embeddings #
GET /v1/files Get V1 Files #
POST /v1/files Post V1 Files #
DELETE /v1/files/{id} Delete V1 Files Id #
GET /v1/files/{id}/content Get V1 Files Id Content #
GET /v1/fine-tunes Get V1 Fine Tunes #
POST /v1/fine-tunes Post V1 Fine Tunes #
GET /v1/fine-tunes/{id} Get V1 Fine Tunes Id #
POST /v1/fine-tunes/{id}/cancel Post V1 Fine Tunes Id Cancel #
GET /v1/fine-tunes/{id}/events Get V1 Fine Tunes Id Events #
POST /v1/images/variations Relay Not Implemented #
POST /v1/messages Relay Messages #
POST /v1/messages/count_tokens Count Claude Tokens #
GET /v1/models Relay List Models #
POST /v1/models/*path Relay Gemini Model #
DELETE /v1/models/{model} Delete V1 Models Model #
GET /v1/models/{model} Relay Retrieve Model #
POST /v1/moderations Relay Moderations #
POST /v1/rerank Relay Rerank #
POST /v1/responses/compact Relay Responses Compact #
GET /v1beta/models Relay List Gemini Models #
POST /v1beta/models/*path Relay Gemini Beta #
GET /v1beta/openai/models Relay List Gemini Compat Models #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-relay-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unorouter-com-relay-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Relay API
  version: 0.0.1
tags:
- name: Relay
paths:
  /v1/alpha/search:
    post:
      operationId: relayAlphaSearch
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Alpha Search
      tags:
      - Relay
  /v1/audio/speech:
    post:
      operationId: relayAudioSpeech
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Audio Speech
      tags:
      - Relay
  /v1/audio/transcriptions:
    post:
      operationId: relayAudioTranscriptions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioTranscriptionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/AudioTranscriptionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Audio Transcriptions
      tags:
      - Relay
  /v1/audio/translations:
    post:
      operationId: relayAudioTranslations
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioTranscriptionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/AudioTranscriptionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Audio Translations
      tags:
      - Relay
  /v1/chat/completions:
    post:
      operationId: relayChatCompletions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Chat Completions
      tags:
      - Relay
  /v1/completions:
    post:
      operationId: relayCompletions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompletionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/CompletionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Completions
      tags:
      - Relay
  /v1/decisions:
    post:
      operationId: relayDecisions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionsResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/DecisionsResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Decisions
      tags:
      - Relay
  /v1/edits:
    post:
      operationId: relayEdits
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageGenerationResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ImageGenerationResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Edits
      tags:
      - Relay
  /v1/embeddings:
    post:
      operationId: relayEmbeddings
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Embeddings
      tags:
      - Relay
  /v1/engines/{model}/embeddings:
    post:
      operationId: relayEngineEmbeddings
      parameters:
      - in: path
        name: model
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/EmbeddingResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Engine Embeddings
      tags:
      - Relay
  /v1/files:
    get:
      operationId: getV1Files
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Get V1 Files
      tags:
      - Relay
    post:
      operationId: postV1Files
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Post V1 Files
      tags:
      - Relay
  /v1/files/{id}:
    delete:
      operationId: deleteV1FilesId
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Delete V1 Files Id
      tags:
      - Relay
  /v1/files/{id}/content:
    get:
      operationId: getV1FilesIdContent
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Get V1 Files Id Content
      tags:
      - Relay
  /v1/fine-tunes:
    get:
      operationId: getV1FineTunes
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Get V1 Fine Tunes
      tags:
      - Relay
    post:
      operationId: postV1FineTunes
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Post V1 Fine Tunes
      tags:
      - Relay
  /v1/fine-tunes/{id}:
    get:
      operationId: getV1FineTunesId
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Get V1 Fine Tunes Id
      tags:
      - Relay
  /v1/fine-tunes/{id}/cancel:
    post:
      operationId: postV1FineTunesIdCancel
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Post V1 Fine Tunes Id Cancel
      tags:
      - Relay
  /v1/fine-tunes/{id}/events:
    get:
      operationId: getV1FineTunesIdEvents
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Get V1 Fine Tunes Id Events
      tags:
      - Relay
  /v1/images/variations:
    post:
      operationId: relayNotImplemented
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Not Implemented
      tags:
      - Relay
  /v1/messages:
    post:
      operationId: relayMessages
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaudeMessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ClaudeMessageResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Messages
      tags:
      - Relay
  /v1/messages/count_tokens:
    post:
      operationId: countClaudeTokens
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Count Claude Tokens
      tags:
      - Relay
  /v1/models:
    get:
      operationId: relayListModels
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIModelList'
            application/xml:
              schema:
                $ref: '#/components/schemas/OpenAIModelList'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay List Models
      tags:
      - Relay
  /v1/models/*path:
    post:
      operationId: relayGeminiModel
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Gemini Model
      tags:
      - Relay
  /v1/models/{model}:
    delete:
      operationId: deleteV1ModelsModel
      parameters:
      - in: path
        name: model
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
            application/xml:
              schema:
                $ref: '#/components/schemas/RelayNotImplementedError'
          description: OK
      security:
      - bearerAuth: []
      summary: Delete V1 Models Model
      tags:
      - Relay
    get:
      operationId: relayRetrieveModel
      parameters:
      - in: path
        name: model
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIModels'
            application/xml:
              schema:
                $ref: '#/components/schemas/OpenAIModels'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Retrieve Model
      tags:
      - Relay
  /v1/moderations:
    post:
      operationId: relayModerations
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModerationResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ModerationResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Moderations
      tags:
      - Relay
  /v1/rerank:
    post:
      operationId: relayRerank
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RerankResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/RerankResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Rerank
      tags:
      - Relay
  /v1/responses/compact:
    post:
      operationId: relayResponsesCompact
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesAPIResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ResponsesAPIResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Responses Compact
      tags:
      - Relay
  /v1beta/models:
    get:
      operationId: relayListGeminiModels
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeminiModelList'
            application/xml:
              schema:
                $ref: '#/components/schemas/GeminiModelList'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay List Gemini Models
      tags:
      - Relay
  /v1beta/models/*path:
    post:
      operationId: relayGeminiBeta
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay Gemini Beta
      tags:
      - Relay
  /v1beta/openai/models:
    get:
      operationId: relayListGeminiCompatModels
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - bearerAuth: []
      summary: Relay List Gemini Compat Models
      tags:
      - Relay
components:
  schemas:
    ApiResponse:
      properties:
        data: {}
        message:
          type: string
        object:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    ChatCompletionResponse:
      description: ChatCompletionResponse schema
      properties:
        choices:
          items:
            $ref: '#/components/schemas/ChatCompletionChoice'
          type:
          - array
          - 'null'
        created:
          format: int64
          type: integer
        id:
          type: string
        model:
          type: string
        object:
          type: string
        usage:
          $ref: '#/components/schemas/CompletionUsage'
      required:
      - choices
      - created
      - id
      - model
      - object
      - usage
      type: object
    ResponsesAPIResponse:
      description: ResponsesAPIResponse schema
      properties:
        created_at:
          format: int64
          type: integer
        id:
          type: string
        model:
          type: string
        object:
          type: string
        output:
          items: {}
          type:
          - array
          - 'null'
        status:
          type: string
        usage: {}
      required:
      - created_at
      - id
      - model
      - object
      - output
      - status
      type: object
    ClaudeServerToolUse:
      properties:
        code_execution_requests:
          type: integer
        tool_search_requests:
          type: integer
        web_fetch_requests:
          type: integer
        web_search_requests:
          type: integer
      type: object
    MessageResponse:
      properties:
        message:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    Usage:
      properties:
        claude_usage:
          $ref: '#/components/schemas/ClaudeUsage'
        estimated:
          type: boolean
        gemini_usage_metadata:
          $ref: '#/components/schemas/GeminiUsageMetadata'
        openai_usage:
          $ref: '#/components/schemas/Usage'
        semantic:
          type: string
        source:
          type: string
      type: object
    RerankResponseResult:
      properties:
        document: {}
        index:
          type: integer
        relevance_score:
          format: double
          type: number
      required:
      - index
      - relevance_score
      type: object
    RerankResponse:
      description: RerankResponse schema
      properties:
        results:
          items:
            $ref: '#/components/schemas/RerankResponseResult'
          type:
          - array
          - 'null'
        usage:
          $ref: '#/components/schemas/Usage'
      required:
      - results
      - usage
      type: object
    ImageGenerationResponse:
      description: ImageGenerationResponse schema
      properties:
        created:
          format: int64
          type: integer
        data:
          items:
            $ref: '#/components/schemas/ImageData'
          type:
          - array
          - 'null'
      required:
      - created
      - data
      type: object
    ChatMessage:
      properties:
        content:
          type: string
        role:
          type: string
      required:
      - content
      - role
      type: object
    DecisionsResponse:
      description: DecisionsResponse schema
      properties:
        answers:
          additionalProperties: {}
          type:
          - object
          - 'null'
        model:
          type: string
        usage:
          $ref: '#/components/schemas/DecisionsUsage'
      required:
      - answers
      - model
      - usage
      type: object
    AudioTranscriptionResponse:
      description: AudioTranscriptionResponse schema
      properties:
        text:
          type: string
      required:
      - text
      type: object
    GeminiPromptTokensDetails:
      properties:
        modality:
          type: string
        tokenCount:
          type: integer
      required:
      - modality
      - tokenCount
      type: object
    EmbeddingResponseItem:
      properties:
        embedding:
          items:
            format: double
            type: number
          type:
          - array
          - 'null'
        index:
          type: integer
        object:
          type: string
      required:
      - embedding
      - index
      - object
      type: object
    ModerationResponse:
      description: ModerationResponse schema
      properties:
        id:
          type: string
        model:
          type: string
        results:
          items: {}
          type:
          - array
          - 'null'
      required:
      - id
      - model
      - results
      type: object
    EmbeddingResponse:
      description: EmbeddingResponse schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmbeddingResponseItem'
          type:
          - array
          - 'null'
        model:
          type: string
        object:
          type: string
        usage:
          $ref: '#/components/schemas/Usage'
      required:
      - claude_cache_creation_1_h_tokens
      - claude_cache_creation_5_m_tokens
      - completion_tokens
      - completion_tokens_details
      - data
      - input_tokens
      - input_tokens_details
      - model
      - object
      - output_tokens
      - prompt_tokens
      - prompt_tokens_details
      - total_tokens
      type: object
    GeminiModelList:
      description: GeminiModelList schema
      properties:
        models: {}
        nextPageToken: {}
      required:
      - models
      - nextPageToken
      type: object
    GeminiUsageMetadata:
      properties:
        billing_usage:
          $ref: '#/components/schemas/BillingUsage'
        cachedContentTokenCount:
          type: integer
        candidatesTokenCount:
          type: integer
        candidatesTokensDetails:
          items:
            $ref: '#/components/schemas/GeminiPromptTokensDetails'
          type:
          - array
          - 'null'
        promptTokenCount:
          type: integer
        promptTokensDetails:
          items:
            $ref: '#/components/schemas/GeminiPromptTokensDetails'
          type:
          - array
          - 'null'
        thoughtsTokenCount:
          type: integer
        toolUsePromptTokenCount:
          type: integer
        toolUsePromptTokensDetails:
          items:
            $ref: '#/components/schemas/GeminiPromptTokensDetails'
          type:
          - array
          - 'null'
        totalTokenCount:
          type: integer
      required:
      - cachedContentTokenCount
      - candidatesTokenCount
      - candidatesTokensDetails
      - promptTokenCount
      - promptTokensDetails
      - thoughtsTokenCount
      - toolUsePromptTokenCount
      - toolUsePromptTokensDetails
      - totalTokenCount
      type: object
    ImageData:
      properties:
        b64_json:
          type: string
        revised_prompt:
          type: string
        seed:
          format: int64
          type: integer
        url:
          type: string
      required:
      - b64_json
      - revised_prompt
      - url
      type: object
    ClaudeMessageResponse:
      description: ClaudeMessageResponse schema
      properties:
        content:
          items: {}
          type:
          - array
          - 'null'
        id:
          type: string
        model:
          type: string
        role:
          type: string
        stop_reason:
          type: string
        stop_sequence:
          nullable: true
          type: string
        type:
          type: string
        usage: {}
      required:
      - content
      - id
      - model
      - role
      - stop_reason
      - stop_sequence
      - type
      - usage
      type: object
    OpenAIModelList:
      description: OpenAIModelList schema
      properties:
        data: {}
        object:
          type: string
      required:
      - data
      - object
      type: object
    ClaudeCacheCreationUsage:
      properties:
        ephemeral_1h_input_tokens:
          type: integer
        ephemeral_5m_input_tokens:
          type: integer
      type: object
    DecisionsUsage:
      properties:
        input_tokens:
          format: int64
          nullable: true
          type: integer
        output_tokens:
          format: int64
          nullable: true
          type: integer
      required:
      - input_tokens
      - output_tokens
      type: object
    CompletionResponse:
      description: CompletionResponse schema
      properties:
        choices:
          items: {}
          type:
          - array
          - 'null'
        created:
          format: int64
          type: integer
        id:
          type: string
        model:
          type: string
        object:
          type: string
        usage:
          $ref: '#/components/schemas/CompletionUsage'
      required:
      - choices
      - created
      - id
      - model
      - object
      - usage
      type: object
    ClaudeUsage:
      properties:
        billing_usage:
          $ref: '#/components/schemas/BillingUsage'
        cache_creation:
          $ref: '#/components/schemas/ClaudeCacheCreationUsage'
        cache_creation_input_tokens:
          type: integer
        cache_read_input_tokens:
          type: integer
        claude_cache_creation_1_h_tokens:
          type: integer
        claude_cache_creation_5_m_tokens:
          type: integer
        input_tokens:
          type: integer
        output_tokens:
          type: integer
        server_tool_use:
          $ref: '#/components/schemas/ClaudeServerToolUse'
      required:
      - cache_creation_input_tokens
      - cache_read_input_tokens
      - claude_cache_creation_1_h_tokens
      - claude_cache_creation_5_m_tokens
      - input_tokens
      - output_tokens
      type: object
    CompletionUsage:
      properties:
        completion_tokens:
          type: integer
        prompt_tokens:
          type: integer
        total_tokens:
          type: integer
      required:
      - completion_tokens
      - prompt_tokens
      - total_tokens
      type: object
    ChatCompletionChoice:
      properties:
        finish_reason:
          type: string
        index:
          type: integer
        message:
          $ref: '#/components/schemas/ChatMessage'
      required:
      - finish_reason
      - index
      - message
      type: object
    OpenAIModels:
      properties:
        context_length:
          type: integer
        created:
          type: integer
        id:
          type: string
        max_output_tokens:
          type: integer
        object:
          type: string
        owned_by:
          type: string
        supported_endpoint_types:
          items:
            type: string
          type:
          - array
          - 'null'
      required:
      - created
      - id
      - object
      - owned_by
      - supported_endpoint_types
      type: object
    BillingUsage:
      properties:
        billing_usage:
          $ref: '#/components/schemas/BillingUsage'
        cache_creation:
          $ref: '#/components/schemas/ClaudeCacheCreationUsage'
        cache_creation_input_tokens:
          type: integer
        cache_read_input_tokens:
          type: integer
        claude_cache_creation_1_h_tokens:
          type: integer
        claude_cache_creation_5_m_tokens:
          type: integer
        input_tokens:
          type: integer
        output_tokens:
          type: integer
        server_tool_use:
          $ref: '#/components/schemas/ClaudeServerToolUse'
      required:
      - cache_creation_input_tokens
      - cache_read_input_tokens
      - claude_cache_creation_1_h_tokens
      - claude_cache_creation_5_m_tokens
      - input_tokens
      - output_tokens
      type: object
    RelayNotImplementedError:
      description: RelayNotImplementedError schema
      properties:
        error:
          properties:
            message:
              type: string
            type:
              type: string
          required:
          - message
          - type
          type: object
      required:
      - error
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey