Skip to main content
GET
/
models
Get Available Models
curl --request GET \
  --url https://api.example.com/models \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "gpt-4",
    "provider": "openai"
  },
  {
    "id": "claude-3-sonnet",
    "provider": "anthropic"
  }
]

Authorizations

Authorization
string
header
required

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

Response

List of models retrieved successfully

id
string | null

Model identifier

provider
string | null

Model provider name