Models
List and retrieve available models for text, image, audio, and embeddings.
The Models API lists available models for text generation, image generation, video generation, audio processing, and embeddings. Use it to discover model ids before making inference requests.
GET /v1/modelsEach model entry includes metadata like pricing, context window size, and supported capabilities. Browse all available models interactively at Models.
What you can do
- List models - get all available model ids and their metadata.
- Filter by capability - find models for chat, images, videos, audio, or embeddings.
- Check pricing - see input/output token costs before making requests.
- Verify availability - confirm a model id exists before using it.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/models | List models |
Every endpoint expects a bearer token in the Authorization header.
Create keys at Manage API Keys.
Errors
All errors follow the OpenAI structured shape:
{ "error": { "type": "invalid_request_error", "message": "..." } }| Status | error.type | Meaning |
|---|---|---|
401 | authentication_error | Missing or invalid API key. |
500 | internal_server_error | Unexpected gateway failure. |