> ## Documentation Index
> Fetch the complete documentation index at: https://evo-0136956d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Models

> Retrieves the currently available model list. The response format is detected automatically from request headers: - Returns Anthropic format when `x-api-key` and `anthropic-version` headers are present - Returns Gemini format when the `x-goog-api-key` header or `key` query parameter is present - Returns OpenAI format otherwise



## OpenAPI

````yaml /en/openapi/relay-api.mintlify.json get /v1/models
openapi: 3.0.1
info:
  title: AI Relay API
  description: 统一的 AI Model 调用接口，支持 OpenAI、Claude、Gemini、Kling、即梦等多种格式
  version: 1.0.0
  license:
    name: Proprietary
    url: https://example.com/license
servers:
  - url: https://token.nusabase.com/silver
    description: API Base URL
security:
  - BearerAuth: []
tags:
  - name: Models
    description: Models endpoints
  - name: Chat
    description: Chat endpoints
  - name: Responses
    description: Responses endpoints
  - name: Realtime
    description: Realtime endpoints
  - name: Claude
    description: Claude endpoints
  - name: Gemini
    description: Gemini endpoints
  - name: Images
    description: Images endpoints
  - name: Video
    description: Video endpoints
  - name: Video / Kling
    description: Video / Kling endpoints
  - name: Video / Jimeng
    description: Video / Jimeng endpoints
  - name: Audio
    description: Audio endpoints
  - name: Embeddings
    description: Embeddings endpoints
  - name: Rerank
    description: Rerank endpoints
  - name: Moderations
    description: Moderations endpoints
  - name: Not Implemented
    description: Not Implemented endpoints
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List Models
      description: >-
        Retrieves the currently available model list. The response format is
        detected automatically from request headers: - Returns Anthropic format
        when `x-api-key` and `anthropic-version` headers are present - Returns
        Gemini format when the `x-goog-api-key` header or `key` query parameter
        is present - Returns OpenAI format otherwise
      operationId: get_v1_models
      parameters:
        - name: key
          in: query
          description: Google API Key (for Gemini format)
          required: false
          schema:
            type: string
        - name: x-api-key
          in: header
          description: Anthropic API Key (for Claude format)
          required: false
          schema:
            type: string
        - name: anthropic-version
          in: header
          description: Anthropic API version
          required: false
          schema:
            type: string
        - name: x-goog-api-key
          in: header
          description: Google API Key (for Gemini format)
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved model list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsResponse'
          headers: {}
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ModelsResponse:
      type: object
      properties:
        object:
          type: string
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Model'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: 错误 Profile
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数
              nullable: true
            code:
              type: string
              description: 错误代码
              nullable: true
    Model:
      type: object
      properties:
        id:
          type: string
          description: Model ID
          example: gpt-4
        object:
          type: string
          description: Object type
          example: model
        created:
          type: integer
          description: Creation timestamp
        owned_by:
          type: string
          description: Model 所有者
          example: openai
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.