Sample - OpenAI API
GET/models/{model}

Retrieve a model

Retrieves information about a specific model. Supply the model identifier to inspect its owner, creation timestamp, object type, and any announced shutdown date.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
modelstringrequired
The identifier of the model to retrieve.

1 status code
200Returns a model object containing its identifier, creation timestamp, `model` object type, owning organization, and shutdown date when one has been announced.
idstringrequired
The model identifier, which can be referenced in the API endpoints.
createdintegerrequired
The Unix timestamp (in seconds) when the model was created.
objectstringrequired
The object type, which is always "model".
Allowed:model
owned_bystringrequired
The organization that owns the model.
shutdown_datestringoptional
The date when the model will shut down, or null if not announced.

Error handling

model must identify the model whose information you want to retrieve. Use the model identifier as a string and preserve its exact value when supplying the path parameter.