API DocsAI Model APIsModelsList
Native OpenAI Format
Retrieve the list of currently available models.
Native OpenAI Format
Retrieve the list of currently available models.
The response format is automatically determined by the request headers:
- Returns Anthropic format when
x-api-keyandanthropic-versionheaders are present - Returns Gemini format when
x-goog-api-keyheader orkeyquery parameter is present - Returns OpenAI format otherwise
Base URL
https://autorouter.top— Production
Authentication
BearerAuth: http (bearer)
Authenticate using a Bearer Token.
Format: Authorization: Bearer sk-xxxxxx
Endpoints
GET /v1/models
Native OpenAI Format
Retrieve the list of currently available models.
The response format is automatically determined by the request headers:
- Returns Anthropic format when
x-api-keyandanthropic-versionheaders are present - Returns Gemini format when
x-goog-api-keyheader orkeyquery parameter is present - Returns OpenAI format otherwise
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key | query | string | No | Google API Key (for Gemini format) |
x-api-key | header | string | No | Anthropic API Key (for Claude format) |
anthropic-version | header | string | No | Anthropic API version |
x-goog-api-key | header | string | No | Google API Key (for Gemini format) |
Responses
200: Successfully retrieved model list
Content-Type: application/json
401: Authentication failed
Content-Type: application/json
Request Example
curl -X GET "https://autorouter.top/v1/models"Response Examples
{
"object": "list",
"data": [
{
"id": "gpt-4",
"object": "model",
"created": 0,
"owned_by": "openai"
}
]
}