curl --request GET \
--url https://api.openai.com/v1/models/{model} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"created": 123,
"object": "model",
"owned_by": "<string>"
}
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
curl --request GET \
--url https://api.openai.com/v1/models/{model} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"created": 123,
"object": "model",
"owned_by": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the model to use for this request
"gpt-4o-mini"
OK
Describes an OpenAI model offering that can be used with the API.
Was this page helpful?