Models
List Models
$client->beta->models->list(?string afterID, ?string beforeID, ?int limit, ?list<AnthropicBeta> betas, ?string workspaceID): Page<BetaModelInfo>List available models.
Get a Model
$client->beta->models->retrieve(string modelID, ?list<AnthropicBeta> betas, ?string workspaceID): BetaModelInfoGet a specific model.
Models
class BetaCapabilitySupport { $supported; }
Whether this capability is supported by the model.
class BetaCompactionCapability { $summarize; $supported; }
Whether the summarize compaction type is supported.
Whether this capability is supported by the model.
class BetaContextManagementCapability { $clearThinking20251015; $clearToolUses20250919; $compact20260112; $supported; }
Whether the clear_thinking_20251015 strategy is supported.
Whether the clear_tool_uses_20250919 strategy is supported.
Whether the compact_20260112 strategy is supported.
Whether this capability is supported by the model.
class BetaEffortCapability { $high; $low; $max; /* 3 more */ }
Whether the model supports high effort level.
Whether the model supports low effort level.
Whether the model supports max effort level.
Whether the model supports medium effort level.
Whether this capability is supported by the model.
Whether the model supports xhigh effort level.
class BetaModelCapabilities { $batch; $citations; $codeExecution; /* 7 more */ }
Whether the model supports the Batch API.
Whether the model supports citation generation.
Whether the model supports code execution tools.
Server-side compaction support (the top-level compaction parameter) and the accepted compaction.type values.
Context management support and available strategies.
Effort (reasoning_effort) support and available levels.
Whether the model accepts image content blocks.
Whether the model accepts PDF content blocks.
Whether the model supports structured output / JSON mode / strict tool schemas.
Thinking capability and supported type configurations.
class BetaModelInfo { $type = 'model'; $id; $allowedFallbackModels; /* 6 more */ }
"model" typeObject type.
Object type.
For Models, this is always "model".
Unique model identifier.
Model IDs this model accepts as fallbacks[i].model on the Messages API. An empty list means the fallbacks parameter is not supported for this model as primary.
Object mapping capability names to their support details. Keys are always present for all known capabilities.
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.
A human-readable name for the model.
The model line this model belongs to, such as opus for both Claude Opus 4.5 and Claude Opus 4.6. More lines may be added. null when the model belongs to no line; do not infer a line from the id.
Maximum input context window size in tokens for this model.
Maximum value for the max_tokens parameter when using this model.
enum BetaModelLine
class BetaThinkingCapability { $supported; $types; }
Whether this capability is supported by the model.
Supported thinking type configurations.
class BetaThinkingTypes { $adaptive; $enabled; }
Whether the model supports thinking with type 'adaptive' (auto).
Whether the model supports thinking with type 'enabled'.