A
Claude 5 Sonnet
Claude 5 Sonnet, a language model from Anthropic.
modelOverride: { model: "claude-5-sonnet" }
AAnthropic·Released June 2026
Pricing
- Input
- $3.00 / 1M
- Output
- $15.00 / 1M
- Cached input
- $0.30 / 1M
- Cached input
- $3.75 / 1M
- Cached input
- $6.00 / 1M
Specifications
- Context window
- 1,000,000 tokens
- Max output
- 64,000 tokens
- Released
- June 2026
- Model string
- claude-sonnet-5
- Capabilities
- VisionReasoningLarge contextMultimodalToolsMCP
Parameters
Model options, passed in
modelOverride.config.| Parameter | Type | Default | Range / options |
|---|---|---|---|
reasoningWhen enabled, the model uses adaptive thinking to dynamically decide when and how much to think before responding. Adaptive thinking is on by default in Claude Sonnet 5. | Select | true | |
effortControls how much the model thinks vs. how quickly it responds. Higher effort produces better quality but uses more tokens and is slower. Recommended: High for coding and agentic work; Medium for general use; Low for short, latency-sensitive tasks. Only applies when Reasoning is enabled. | Select | medium | lowmediumhigh |
tools | Tools | — | — |
mcpServers | MCP servers | — | — |
Use this model
await mindstudio.generateText({ message: "...", modelOverride: { model: "claude-5-sonnet", config: { reasoning: "true", effort: "medium", }, }, });