List Models
API documentation
List Models
GET
List Models
Introduction
Get list of available models. Response format is auto-detected by headers:- With
x-api-keyandanthropic-versionheaders: Anthropic format - With
x-goog-api-keyheader orkeyquery param: Gemini format - Otherwise: OpenAI format
Authentication
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxcURL Example
Python Example
Response Fields
| Field | Type | Description |
|---|---|---|
| object | string | Always list |
| data | array | Model list |
| data[].id | string | Model identifier |
| data[].object | string | Always model |
| data[].created | integer | Creation timestamp |
| data[].owned_by | string | Model provider |
Notes
- Model list varies based on your API Key permissions
- Use to check if a specific model is available
- Requires
openai:pip install openai
