Get a Model
models.retrieve(strmodel_id, ModelRetrieveParams**kwargs) -> ModelInfo
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.
Parameters
model_id: str
Model identifier or alias.
Returns
Get a Model
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted
)
model_info = client.models.retrieve(
model_id="model_id",
)
print(model_info.id)Response 200
{
"id": "claude-opus-4-6",
"created_at": "2026-02-04T00:00:00Z",
"display_name": "Claude Opus 4.6",
"type": "model"
}Returns Examples
Response 200
{
"id": "claude-opus-4-6",
"created_at": "2026-02-04T00:00:00Z",
"display_name": "Claude Opus 4.6",
"type": "model"
}