1. List Models
ALLLLMS
  • AI Model APIs
    • Documentation
    • Models
      • List Models
        • Native OpenAI Format
          GET
        • Native Gemini Format
          GET
    • Chat
      • Native OpenAI Format
        • Chat Completions Format
        • Responses Format
      • Native Gemini Format
        • Gemini Text Chat
        • Gemini Media Recognition
      • Native Claude Format
    • Images
      • Native OpenAI Format
        • Generate Image
        • Edit Image
      • Qwen Format
        • Generate Image
        • Edit Image
      • Nano Banana
        • Native Gemini Format
        • OpenAI Chat Format
    • Videos
      • Sora Format
        • Create Video
        • Get Video Task Status
        • Get Video Content
      • Kling Format
        • Kling Text-to-Video
        • Get Kling Text-to-Video Task Status
        • Kling Image-to-Video
        • Get Kling Image-to-Video Task Status
      • Jimeng Format
        • Jimeng Video Generation
      • Create Video Generation Task
      • Get Video Generation Task Status
    • Embeddings
      • Native OpenAI Format
      • Native Gemini Format
    • Completions
      • Native OpenAI Format
    • Audio
      • Native OpenAI Format
        • Audio Transcription
        • Audio Translation
        • Text to Speech
      • Native Gemini Format
    • Realtime
      • Native OpenAI Format
    • Rerank
      • Document Reranking
    • Moderations
      • Native OpenAI Format
    • Unimplemented
      • Fine-tuning
        • List Fine-tuning Jobs (Unimplemented)
        • Create Fine-tuning Job (Unimplemented)
        • Get Fine-tuning Job Details (Unimplemented)
        • Cancel Fine-tuning Job (Unimplemented)
        • Get Fine-tuning Job Events (Unimplemented)
      • Files
        • List Files (Unimplemented)
        • Upload File (Unimplemented)
        • Get File Information (Unimplemented)
        • Delete File (Unimplemented)
        • Get File Content (Unimplemented)
    • Schemas
      • Schemas
        • User
        • Log
        • Model
        • Token
        • Usage
        • PageInfo
        • Channel
        • Redemption
        • ApiResponse
        • ModelsResponse
        • ErrorResponse
        • Message
        • MessageContent
        • Tool
        • ToolCall
        • GeminiModelsResponse
        • ChatCompletionResponse
        • ChatCompletionRequest
        • ChatCompletionStreamResponse
        • CompletionRequest
        • CompletionResponse
        • ResponseFormat
        • ResponsesRequest
        • ResponsesResponse
        • ResponsesStreamResponse
        • ClaudeRequest
        • ClaudeMessage
        • ClaudeResponse
        • EmbeddingRequest
        • EmbeddingResponse
        • ImageGenerationRequest
        • ImageEditRequest
        • ImageResponse
        • AudioTranscriptionRequest
        • AudioTranslationRequest
        • AudioTranscriptionResponse
        • SpeechRequest
        • RerankRequest
        • RerankResponse
        • VideoRequest
        • ModerationRequest
        • VideoResponse
        • ModerationResponse
        • VideoTaskResponse
        • GeminiRequest
        • VideoTaskMetadata
        • VideoTaskError
        • GeminiResponse
        • OpenAIVideo
        • OpenAIVideoError
  1. List Models

Native OpenAI Format

GET
/v1/models
Get the list of currently available models.
The response format is detected automatically from the request headers:
Return Anthropic format when the x-api-key and anthropic-version headers are present
Return Gemini format when the x-goog-api-key header or key query parameter is present
Return OpenAI format otherwise

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/models?key=undefined' \
--header 'x-api-key;' \
--header 'anthropic-version;' \
--header 'x-goog-api-key;' \
--header 'Authorization: Bearer <token>'

Responses

🟢200Success
application/json
Model list retrieved successfully
Bodyapplication/json

Example
{
    "object": "list",
    "data": [
        {
            "id": "gpt-4",
            "object": "model",
            "created": 0,
            "owned_by": "openai"
        }
    ]
}
🟠401Unauthorized
Modified at 2026-05-23 05:25:12
Previous
Documentation
Next
Native Gemini Format
Built with