Claude Platform Docs

Model

Daftar Model
beta.models.list(**kwargs) -> SyncPage[BetaModelInfo]
GET/v1/models

Daftar model yang tersedia.

Dapatkan Model
beta.models.retrieve(model_id, **kwargs) -> BetaModelInfo
GET/v1/models/{model_id}

Dapatkan model tertentu.

Models
class BetaCapabilitySupport: supported

Indicates whether a capability is supported.

supported: bool

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.

summarize: BetaCapabilitySupport

Whether the summarize compaction type is supported.

supported: bool

Whether this capability is supported by the model.

supported: bool

Whether this capability is supported by the model.

class BetaContextManagementCapability: clear_thinking_20251015; clear_tool_uses_20250919; compact_20260112; supported

Context management capability details.

clear_thinking_20251015: Optional[BetaCapabilitySupport]

Whether the clear_thinking_20251015 strategy is supported.

supported: bool

Whether this capability is supported by the model.

clear_tool_uses_20250919: Optional[BetaCapabilitySupport]

Whether the clear_tool_uses_20250919 strategy is supported.

supported: bool

Whether this capability is supported by the model.

compact_20260112: Optional[BetaCapabilitySupport]

Whether the compact_20260112 strategy is supported.

supported: bool

Whether this capability is supported by the model.

supported: bool

Whether this capability is supported by the model.

class BetaEffortCapability: high; low; max; ... # 3 more

Effort (reasoning_effort) capability details.

Whether the model supports high effort level.

supported: bool

Whether this capability is supported by the model.

Whether the model supports low effort level.

supported: bool

Whether this capability is supported by the model.

Whether the model supports max effort level.

supported: bool

Whether this capability is supported by the model.

Whether the model supports medium effort level.

supported: bool

Whether this capability is supported by the model.

supported: bool

Whether this capability is supported by the model.

xhigh: Optional[BetaCapabilitySupport]

Whether the model supports xhigh effort level.

supported: bool

Whether this capability is supported by the model.

class BetaModelCapabilities: batch; citations; code_execution; ... # 8 more

Model capability information.

class BetaModelInfo: type: "model"; id; allowed_fallback_models; ... # 9 more
type BetaModelLine = Literal["haiku", "sonnet", "opus", 2 more]

A Claude model line, such as opus or sonnet. More lines may be added as new values.

One of the following:
"haiku"
"sonnet"
"opus"
"fable"
"mythos"
class BetaServerToolsCapability: code_execution; supported; web_search

Web search and code execution tool support, with one entry per tool.

code_execution: BetaCapabilitySupport

Whether the model supports the code execution tool: true when the model supports at least one version of the tool, not necessarily every version.

supported: bool

Whether this capability is supported by the model.

supported: bool

Whether this capability is supported by the model.

class BetaThinkingCapability: supported; types

Thinking capability details.

supported: bool

Whether this capability is supported by the model.

Supported thinking type configurations.

Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).

supported: bool

Whether this capability is supported by the model.

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.

supported: bool

Whether this capability is supported by the model.

Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).

supported: bool

Whether this capability is supported by the model.

class BetaThinkingTypes: adaptive; disabled; enabled

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.

Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).

supported: bool

Whether this capability is supported by the model.

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.

supported: bool

Whether this capability is supported by the model.

Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).

supported: bool

Whether this capability is supported by the model.