Sample - OpenAI API
GET/models

List available models

Lists the models currently available through the API. Use the returned model records to inspect each model's identifier, owner, creation time, and availability information.

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

1 status code
200Returns a model list containing the `list` object type and an array of model records with identifiers, creation timestamps, ownership information, and any announced shutdown dates.
objectstringrequired
Allowed:list
dataarray<Model>required