Models
Get a Model
beta.models.retrieve(model_id, **kwargs) -> BetaModelInfoGet a specific model.
Models
class BetaCapabilitySupport { supported }Indicates whether a capability is supported.
Indicates whether a capability is supported.
Whether this capability is supported by the model.
class BetaCompactionCapability { summarize, supported }Compaction capability details: whether the model accepts the top-level
compaction request parameter, with one entry per supported
compaction.type value.
Compaction capability details: whether the model accepts the top-level
compaction request parameter, with one entry per supported
compaction.type value.
summarize: BetaCapabilitySupport { supported }Whether the summarize compaction type is supported.
Whether the summarize compaction type is supported.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
class BetaContextManagementCapability { clear_thinking_20251015, clear_tool_uses_20250919, compact_20260112, supported }Context management capability details.
Context management capability details.
clear_thinking_20251015: BetaCapabilitySupport { supported }Whether the clear_thinking_20251015 strategy is supported.
Whether the clear_thinking_20251015 strategy is supported.
Whether this capability is supported by the model.
clear_tool_uses_20250919: BetaCapabilitySupport { supported }Whether the clear_tool_uses_20250919 strategy is supported.
Whether the clear_tool_uses_20250919 strategy is supported.
Whether this capability is supported by the model.
compact_20260112: BetaCapabilitySupport { supported }Whether the compact_20260112 strategy is supported.
Whether the compact_20260112 strategy is supported.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
class BetaEffortCapability { high, low, max, 3 more }Effort (reasoning_effort) capability details.
Effort (reasoning_effort) capability details.
class BetaModelCapabilities { batch, citations, code_execution, 7 more }Model capability information.
Model capability information.
class BetaModelInfo { type: :model, id, allowed_fallback_models, 6 more }
type BetaModelLine = :haiku | :sonnet | :opus | 2 moreA Claude model line, such as opus or sonnet. More lines may be added as new values.
A Claude model line, such as opus or sonnet. More lines may be added as new values.
class BetaThinkingCapability { supported, types }Thinking capability details.
Thinking capability details.
Whether this capability is supported by the model.
types: BetaThinkingTypes { adaptive, enabled }Supported thinking type configurations.
Supported thinking type configurations.
adaptive: BetaCapabilitySupport { supported }Whether the model supports thinking with type 'adaptive' (auto).
Whether the model supports thinking with type 'adaptive' (auto).
Whether this capability is supported by the model.
enabled: BetaCapabilitySupport { supported }Whether the model supports thinking with type 'enabled'.
Whether the model supports thinking with type 'enabled'.
Whether this capability is supported by the model.
class BetaThinkingTypes { adaptive, enabled }Supported thinking type configurations.
Supported thinking type configurations.
adaptive: BetaCapabilitySupport { supported }Whether the model supports thinking with type 'adaptive' (auto).
Whether the model supports thinking with type 'adaptive' (auto).
Whether this capability is supported by the model.
enabled: BetaCapabilitySupport { supported }Whether the model supports thinking with type 'enabled'.
Whether the model supports thinking with type 'enabled'.
Whether this capability is supported by the model.