GET
/
models
/
{model}
Retrieve model
curl --request GET \
  --url https://api.openai.com/v1/models/{model} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "created": 123,
  "object": "model",
  "owned_by": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

The ID of the model to use for this request

Example:

"gpt-4o-mini"

Response

200 - application/json

OK

Describes an OpenAI model offering that can be used with the API.

id
string
required

The model identifier, which can be referenced in the API endpoints.

created
integer
required

The Unix timestamp (in seconds) when the model was created.

object
enum<string>
required

The object type, which is always "model".

Available options:
model
owned_by
string
required

The organization that owns the model.