List models

GET /models

Lists the currently available models, and provides basic information about each one such as the owner and availability.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • object string Required

      Value is list.

    • data array[object] Required

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

      Hide data attributes Show data attributes object
      • 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 string Required

        The object type, which is always "model".

        Value is model.

      • owned_by string Required

        The organization that owns the model.

GET /models
curl \
 -X GET https://api.openai.com/v1/models \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "created": 42,
      "object": "model",
      "owned_by": "string"
    }
  ]
}