Claude Platform Docs

Model

Daftar Model
client.models.list(params?, options?): Page<ModelInfo>
GET/v1/models

Daftar model yang tersedia.

Dapatkan Model
client.models.retrieve(modelID, params?, options?): ModelInfo
GET/v1/models/{model_id}

Dapatkan model tertentu.

Models
interface CapabilitySupport { supported }

Indicates whether a capability is supported.

supported: boolean

Whether this capability is supported by the model.

interface ContextManagementCapability { clear_thinking_20251015; clear_tool_uses_20250919; compact_20260112; supported }

Context management capability details.

clear_thinking_20251015: CapabilitySupport | null

Whether the clear_thinking_20251015 strategy is supported.

supported: boolean

Whether this capability is supported by the model.

clear_tool_uses_20250919: CapabilitySupport | null

Whether the clear_tool_uses_20250919 strategy is supported.

supported: boolean

Whether this capability is supported by the model.

compact_20260112: CapabilitySupport | null

Whether the compact_20260112 strategy is supported.

supported: boolean

Whether this capability is supported by the model.

supported: boolean

Whether this capability is supported by the model.

interface EffortCapability { high; low; max; /* 3 more */ }

Effort (reasoning_effort) capability details.

interface ModelCapabilities { batch; citations; code_execution; /* 7 more */ }

Model capability information.

interface ModelInfo { type: "model"; id; capabilities; /* 8 more */ }
type ModelLine = "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"
interface ServerToolsCapability { code_execution; supported; web_search }

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

code_execution: CapabilitySupport { supported }

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: boolean

Whether this capability is supported by the model.

supported: boolean

Whether this capability is supported by the model.

interface ThinkingCapability { supported; types }

Thinking capability details.

supported: boolean

Whether this capability is supported by the model.

types: ThinkingTypes { adaptive; disabled; enabled }

Supported thinking type configurations.

adaptive: CapabilitySupport { supported }

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

supported: boolean

Whether this capability is supported by the model.

disabled: CapabilitySupport { supported }

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: boolean

Whether this capability is supported by the model.

enabled: CapabilitySupport { supported }

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

supported: boolean

Whether this capability is supported by the model.

interface ThinkingTypes { 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.

adaptive: CapabilitySupport { supported }

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

supported: boolean

Whether this capability is supported by the model.

disabled: CapabilitySupport { supported }

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: boolean

Whether this capability is supported by the model.

enabled: CapabilitySupport { supported }

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

supported: boolean

Whether this capability is supported by the model.