Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, end-to-end project management with memory, polished document creation, and confident computer use for web QA and workflow automation.
Claude 4.6 Sonnet is engineered for rapid, iterative development and stateful agentic workflows. It introduces persistent memory mechanisms for end-to-end project management and delivers high-reliability computer use capabilities, making it ideal for continuous integration, browser automation, and complex backend refactoring.
To interact with this model via an OpenAI-compatible gateway or OpenRouter endpoint:
| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string |
Yes | Use "claude-sonnet-4-6" or "anthropic/claude-4.6-sonnet". |
messages |
array |
Yes | Array of standard conversation objects (role/content). |
max_tokens |
integer |
No | Limits the generation length. Default: 4096. |
temperature |
float |
No | Recommended: 0.2 for coding; 0.7 for document polishing. |
claude-sonnet-4-6 supports Adaptive Thinking — the model dynamically decides when and how much to think based on task complexity. The legacy "type": "enabled" + budget_tokens parameters are deprecated for this model.
thinking is included, temperature must be 1.0 (or omitted — it defaults to 1.0).max_tokens must be large enough to accommodate both the internal reasoning and the visible response (e.g., 16000).| Value | Description |
|---|---|
"low" |
Fast responses; minimal thinking for simple sub-tasks |
"medium" |
Balanced speed and reasoning depth |
"high" |
Deep reasoning for complex tasks (Default) |
"max" |
Maximum reasoning capacity for the hardest problems |
{
"model": "claude-sonnet-4-6",
"max_tokens": 16000,
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
},
"messages": [
{
"role": "user",
"content": "Your question here"
}
]
}
Note: Deprecated format — do NOT use
"type": "enabled"orbudget_tokenswith this model. Use"type": "adaptive"combined withoutput_config.effortinstead.
Run models at scale with our fully managed GPU infrastructure, delivering enterprise-grade uptime at the industry's best rates.
