Claude Platform Docs

Modelos

Listar modelos
client.Models.List(ctx, params) (*Page[ModelInfo], error)
GET/v1/models

Liste os modelos disponíveis.

Obter um modelo
client.Models.Get(ctx, modelID, query) (*ModelInfo, error)
GET/v1/models/{model_id}

Obtenha um modelo específico.

Models
type CapabilitySupport struct { Supported }

Indicates whether a capability is supported.

Supported bool

Whether this capability is supported by the model.

type ContextManagementCapability struct { ClearThinking20251015; ClearToolUses20250919; Compact20260112; Supported }

Context management capability details.

ClearThinking20251015 CapabilitySupport

Whether the clear_thinking_20251015 strategy is supported.

Supported bool

Whether this capability is supported by the model.

ClearToolUses20250919 CapabilitySupport

Whether the clear_tool_uses_20250919 strategy is supported.

Supported bool

Whether this capability is supported by the model.

Compact20260112 CapabilitySupport

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.

type EffortCapability struct { 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.

Whether the model supports xhigh effort level.

Supported bool

Whether this capability is supported by the model.

type ModelCapabilities struct { Batch; Citations; CodeExecution; /* 7 more */ }

Model capability information.

type ModelInfo struct { Type: "model"; ID; Capabilities; /* 8 more */ }
type ModelLine string

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

One of the following:
const ModelLineHaiku ModelLine = "haiku"
const ModelLineSonnet ModelLine = "sonnet"
const ModelLineOpus ModelLine = "opus"
const ModelLineFable ModelLine = "fable"
const ModelLineMythos ModelLine = "mythos"
type ServerToolsCapability struct { CodeExecution; Supported; WebSearch }

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

CodeExecution CapabilitySupport

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.

type ThinkingCapability struct { Supported; Types }

Thinking capability details.

Supported bool

Whether this capability is supported by the model.

Types ThinkingTypes

Supported thinking type configurations.

Adaptive CapabilitySupport

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.

Disabled CapabilitySupport

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.

type ThinkingTypes struct { 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

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.

Disabled CapabilitySupport

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.