Models

models

Methods

List Models -> { data, first_id, has_more, 1 more... }
get/v1/models

List available models.

The Models API response can be used to determine which models are available for use in the API. More recently released models are listed first.

Get A Model -> { id, created_at, display_name, 1 more... }
get/v1/models/{model_id}

Get a specific model.

The Models API response can be used to determine information about a specific model or resolve a model alias to a model ID.

path Parameters
model_id: string

Model identifier or alias.

header Parameters
anthropic-version: string
Optional

The version of the Anthropic API you want to use.

Read more about versioning and our version history here.

x-api-key: string
Optional

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.

Response fields
id: string

Unique model identifier.

created_at: string
(format: date-time)

RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.

display_name: string

A human-readable name for the model.

type: "model"
(default: "model")

Object type.

For Models, this is always "model".

Request example
200Example
Get A Model -> { id, created_at, display_name, 1 more... }
get/v1/models/{model_id}?beta=true

Get a specific model.

The Models API response can be used to determine information about a specific model or resolve a model alias to a model ID.

path Parameters
model_id: string

Model identifier or alias.

header Parameters
anthropic-version: string
Optional

The version of the Anthropic API you want to use.

Read more about versioning and our version history here.

x-api-key: string
Optional

Your unique API key for authentication.

This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the Console. Each key is scoped to a Workspace.

Response fields
id: string

Unique model identifier.

created_at: string
(format: date-time)

RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.

display_name: string

A human-readable name for the model.

type: "model"
(default: "model")

Object type.

For Models, this is always "model".

Request example
200Example