Skip to main content
GET
/
openai
/
v1
/
models
List models
curl --request GET \
  --url https://api.example.com/openai/v1/models \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "created": 123,
      "id": "<string>",
      "object": "model",
      "owned_by": "system"
    }
  ],
  "object": "<string>",
  "$schema": "<string>"
}

Authorizations

Authorization
string
header
required

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

Response

OK

data
object[]
required
object
string
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/openai/schemas/PageListModel.json"