models
Retrieve a model
GoModel API reference for GET /v1/models/: Retrieve a model.
GET
Error
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Anthropic API version, e.g. 2023-06-01. When present, the model and error bodies use the Anthropic envelopes instead of the OpenAI ones.
Path Parameters
Model ID, e.g. openai/gpt-4.1-mini
Response
OK
- Option 1
- Option 2
OpenAI envelope by default; the Anthropic envelope when the request carries anthropic-version.
Last modified on September 14, 2026