> ## Documentation Index
> Fetch the complete documentation index at: https://utoken-docs.yoostudio.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Native OpenAI Format

> 获取当前可用的模型列表。

根据请求头自动识别返回格式：
- 包含 `x-api-key` 和 `anthropic-version` 头时返回 Anthropic 格式
- 包含 `x-goog-api-key` 头或 `key` 查询参数时返回 Gemini 格式
- 其他情况返回 OpenAI 格式




## OpenAPI

````yaml get /v1/models
openapi: 3.1.0
info:
  title: UToken API
  version: 1.0.0
  description: Complete UToken API Reference Documentation
servers:
  - url: https://utoken.yoostudio.ai
    description: Production
security: []
tags:
  - name: Images / Native Gemini Format
  - name: Images / Native OpenAI Format
  - name: Images / Qwen OpenAI Compatible Format
  - name: Realtime Voice
  - name: Content Moderation
  - name: Text Embeddings
  - name: Unimplemented / Fine-tuning
  - name: Unimplemented / File Management
  - name: Models / List Models
  - name: Chat Completions
  - name: Chat Completions / Native Gemini Format
  - name: Chat Completions / Native OpenAI Format
  - name: Text Completions
  - name: Video Generation
  - name: Video Generation / Sora Format
  - name: Video Generation / Jimeng (Dreamina) Format
  - name: Video Generation / Kling AI Format
  - name: Document Reranking
  - name: Audio Processing
  - name: Audio Processing / Native OpenAI Format
paths:
  /v1/models:
    get:
      tags:
        - Models / List Models
      summary: Native OpenAI Format
      description: >
        Retrieves a list of currently available models.


        The response format is automatically detected based on request headers:

        - Returns Anthropic format when `x-api-key` and `anthropic-version`
        headers are present

        - Returns Gemini format when `x-goog-api-key` header or `key` query
        parameter is present

        - Returns OpenAI format otherwise
      operationId: listmodels
      parameters:
        - name: key
          in: query
          required: false
          description: Google API Key (for Gemini format)
          schema:
            type: string
        - name: x-api-key
          in: header
          required: false
          description: Anthropic API Key (for Claude format)
          schema:
            type: string
        - name: anthropic-version
          in: header
          required: false
          description: Anthropic API Version
          schema:
            type: string
            examples:
              - '2023-06-01'
        - name: x-goog-api-key
          in: header
          required: false
          description: Google API Key (for Gemini format)
          schema:
            type: string
      responses:
        '200':
          description: Success - Model List Retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    examples:
                      - list
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Model ID
                          examples:
                            - gpt-4
                        object:
                          type: string
                          description: Object Type
                          examples:
                            - model
                        created:
                          type: integer
                          description: Created Timestamp
                        owned_by:
                          type: string
                          description: Model Owner
                          examples:
                            - openai
                      x-apifox-orders:
                        - id
                        - object
                        - created
                        - owned_by
                x-apifox-orders:
                  - object
                  - data
        '401':
          description: Authentication Failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Error message
                      type:
                        type: string
                        description: Error type
                      param:
                        type:
                          - string
                          - 'null'
                        description: Related parameters
                      code:
                        type:
                          - string
                          - 'null'
                        description: Error code
                    x-apifox-orders:
                      - message
                      - type
                      - param
                      - code
                x-apifox-orders:
                  - error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Use Bearer Token authentication
        Format: Authorization: Bearer sk-xxxxxx

````