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/models

Each 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

MethodEndpointDescription
GET/v1/modelsList 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": "..." } }
Statuserror.typeMeaning
401authentication_errorMissing or invalid API key.
500internal_server_errorUnexpected gateway failure.