claude-sonnet-4-6
Provided by Anthropic · Text model
Parameters
| Context window | 1M tokens |
|---|
| Max output | 128K tokens |
|---|
| Input modalities | text, image, file |
|---|
| Output modalities | text |
|---|
Capabilities
Tool callingVision inputReasoningPrompt cachingStructured output
Official pricing
| Input | $3/M |
|---|
| Output | $15/M |
|---|
| Cache read | $0.3/M |
|---|
| Cache write | $3.75/M |
|---|
Call example
curl https://api.anthropic.com/v1/messages -H "x-api-key: $ANTHROPIC_API_KEY" -H "anthropic-version: 2023-06-01" -H "content-type: application/json" -d '{"model":"claude-sonnet-4-6","max_tokens":1024,"messages":[{"role":"user","content":"hi"}]}'