Modelos
Listar modelos
models.list(**kwargs) -> SyncPage[ModelInfo]Lista los modelos disponibles.
Obtener un modelo
models.retrieve(model_id, **kwargs) -> ModelInfoObtiene un modelo específico.
Models
class CapabilitySupport: supportedIndicates whether a capability is supported.
Indicates whether a capability is supported.
Whether this capability is supported by the model.
class ContextManagementCapability: clear_thinking_20251015; clear_tool_uses_20250919; compact_20260112; supportedContext management capability details.
Context management capability details.
clear_thinking_20251015: Optional[CapabilitySupport]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: Optional[CapabilitySupport]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: Optional[CapabilitySupport]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 EffortCapability: high; low; max; ... # 3 moreEffort (reasoning_effort) capability details.
Effort (reasoning_effort) capability details.
high: CapabilitySupportWhether the model supports high effort level.
Whether the model supports high effort level.
Whether this capability is supported by the model.
low: CapabilitySupportWhether the model supports low effort level.
Whether the model supports low effort level.
Whether this capability is supported by the model.
max: CapabilitySupportWhether the model supports max effort level.
Whether the model supports max effort level.
Whether this capability is supported by the model.
medium: CapabilitySupportWhether the model supports medium effort level.
Whether the model supports medium effort level.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
xhigh: Optional[CapabilitySupport]Whether the model supports xhigh effort level.
Whether the model supports xhigh effort level.
Whether this capability is supported by the model.
class ModelCapabilities: batch; citations; code_execution; ... # 7 moreModel capability information.
Model capability information.
class ModelInfo: type: "model"; id; capabilities; ... # 8 more
type ModelLine = Literal["haiku", "sonnet", "opus", 2 more]A 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 ServerToolsCapability: code_execution; supported; web_searchWeb search and code execution tool support, with one entry per tool.
Web search and code execution tool support, with one entry per tool.
code_execution: CapabilitySupportWhether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether this capability is supported by the model.
Whether this capability is supported by the model.
web_search: CapabilitySupportWhether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether the model supports the web search tool: true when the model supports at least one version of the tool, not necessarily every version.
Whether this capability is supported by the model.
class ThinkingCapability: supported; typesThinking capability details.
Thinking capability details.
Whether this capability is supported by the model.
types: ThinkingTypesSupported thinking type configurations.
Supported thinking type configurations.
adaptive: CapabilitySupportWhether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether this capability is supported by the model.
disabled: CapabilitySupportWhether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether this capability is supported by the model.
enabled: CapabilitySupportWhether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether this capability is supported by the model.
class ThinkingTypes: adaptive; disabled; enabledWhich thinking.type values the model accepts on requests. Read each key on its own: for example, enabled can be false while disabled is true.
Which thinking.type values the model accepts on requests. Read each key on its own: for example, enabled can be false while disabled is true.
adaptive: CapabilitySupportWhether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
Whether this capability is supported by the model.
disabled: CapabilitySupportWhether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking.
Whether this capability is supported by the model.
enabled: CapabilitySupportWhether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).
Whether this capability is supported by the model.