Skip to main content
GET
List models
Related guide: Anthropic Messages API. See the Anthropic Messages API guide for model resolution.

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer<int64>
default:20

Number of models to return.

Required range: 1 <= x <= 1000
after_id
string

Return models after this ID.

before_id
string

Return models before this ID. Send after_id or before_id, not both.

Response

Models listed.

data
object[] | null
required

Models in this page.

first_id
string | null
required

ID of the first model in the page.

has_more
boolean
required

Whether more models follow this page.

last_id
string | null
required

ID of the last model in the page.