TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/phpaisdk/anthropic/llms.txt
Use this file to discover all available pages before exploring further.
aisdk/anthropic package ships with a built-in model catalog stored at resources/models.json. Each entry declares the model’s status and the capabilities it supports. When you call Anthropic::model('model-id'), the package looks up the ID in this catalog and returns a model handle that knows exactly which capabilities are available — so capability checks, structured output routing, and reasoning all work without any additional configuration.
Model Catalog
Wildcard entries (those ending in
*) match any model ID that starts with the given prefix. For example, claude-3* matches claude-3-5-sonnet-20241022 or any other Claude 3 variant not listed explicitly.| Model ID | Status | Capabilities |
|---|---|---|
claude-sonnet-4 | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), Reasoning, TextInput, ImageInput, FileInput |
claude-opus-4* | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), Reasoning, TextInput, ImageInput, FileInput |
claude-3-7-sonnet* | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), Reasoning, TextInput, ImageInput, FileInput |
claude-3.7-sonnet* | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), Reasoning, TextInput, ImageInput, FileInput |
claude-3-5-haiku-latest | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), TextInput |
claude-3* | Stable | TextGeneration, Streaming, ToolCalling, StructuredOutput (adapted), TextInput, ImageInput, FileInput |
Referencing a Model
Pass any catalog model ID toAnthropic::model() to get a ready-to-use model handle. The handle is a TextModelInterface instance you can pass directly to any Generate call.
Checking Capabilities
Every model handle exposessupports() for a boolean check and capability() for the full CapabilitySupport object, which includes the support state and — for adapted capabilities — the strategy description.
Unknown Models
If you pass a model ID that is not in the catalog and has not been registered, the package applies a safe fallback:supports(Capability::TextGeneration) returns true so the call can proceed, while all other capability checks return false. The source field on the returned CapabilitySupport object is set to 'unknown-model-fallback'.
This fallback exists so you can use a newly released Claude model ID before a package update ships the catalog entry. Any capability beyond basic text generation will gate on an actual API call, and Anthropic will return an error if the model does not support it.