Claude Platform Docs

模型

列出模型
ModelListPage models().list(params = ModelListParams.none(), requestOptions = RequestOptions.none())
GET/v1/models

列出可用模型。

获取模型
ModelInfo models().retrieve(params = ModelRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/models/{model_id}

获取特定模型。

Models
class CapabilitySupport { supported; }

Indicates whether a capability is supported.

boolean supported

Whether this capability is supported by the model.

class ContextManagementCapability { clearThinking20251015; clearToolUses20250919; compact20260112; supported; }

Context management capability details.

Optional<CapabilitySupport> clearThinking20251015

Whether the clear_thinking_20251015 strategy is supported.

boolean supported

Whether this capability is supported by the model.

Optional<CapabilitySupport> clearToolUses20250919

Whether the clear_tool_uses_20250919 strategy is supported.

boolean supported

Whether this capability is supported by the model.

Optional<CapabilitySupport> compact20260112

Whether the compact_20260112 strategy is supported.

boolean supported

Whether this capability is supported by the model.

boolean supported

Whether this capability is supported by the model.

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

Effort (reasoning_effort) capability details.

Whether the model supports high effort level.

boolean supported

Whether this capability is supported by the model.

Whether the model supports low effort level.

boolean supported

Whether this capability is supported by the model.

Whether the model supports max effort level.

boolean supported

Whether this capability is supported by the model.

Whether the model supports medium effort level.

boolean supported

Whether this capability is supported by the model.

boolean supported

Whether this capability is supported by the model.

Optional<CapabilitySupport> xhigh

Whether the model supports xhigh effort level.

boolean supported

Whether this capability is supported by the model.

class ModelCapabilities { batch; citations; codeExecution; /* 7 more */ }

Model capability information.

class ModelInfo { type = "model"; id; capabilities; /* 8 more */ }
enum ModelLine

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

HAIKU("haiku")
SONNET("sonnet")
OPUS("opus")
FABLE("fable")
MYTHOS("mythos")
class ServerToolsCapability { codeExecution; supported; webSearch; }

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

CapabilitySupport codeExecution

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

boolean supported

Whether this capability is supported by the model.

boolean supported

Whether this capability is supported by the model.

class ThinkingCapability { supported; types; }

Thinking capability details.

boolean supported

Whether this capability is supported by the model.

ThinkingTypes types

Supported thinking type configurations.

CapabilitySupport adaptive

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

boolean supported

Whether this capability is supported by the model.

CapabilitySupport disabled

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.

boolean supported

Whether this capability is supported by the model.

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

boolean supported

Whether this capability is supported by the model.

class 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.

CapabilitySupport adaptive

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

boolean supported

Whether this capability is supported by the model.

CapabilitySupport disabled

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.

boolean supported

Whether this capability is supported by the model.

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

boolean supported

Whether this capability is supported by the model.