Claude Sonnet 4.6
anthropic/claude-sonnet-4-6
Overview
Chat
The Sonnet generation from February 2026 with a 1M-token context and adaptive thinking, for coding and agents. Superseded by Sonnet 5.
Made by Anthropic · released Feb 2026
Input
Text · Images · FileOutput
Text- Context
- 1.000.000
- Input, maximum
- 872.000
- Output, maximum
- 128.000
- Default output
- 4.096
- Reasoning Not supported
- Tool calling Supported
- Prompt caching Supported
- Automatic fallback routes Not supported
Routes and pricing
Providers are tried in the order listed below. We try these providers in order. If one fails, we move on to the next, and you pay the rate of the one that answers.
Anthropic
primary- Input
- Rp55.500per million tokens$3
- Output
- Rp277.500per million tokens$15
- Cache read
- Rp5.550per million tokens$0.3
- Cache write 5m
- Rp69.380per million tokens$3.75
- Cache write 1h
- Rp111.000per million tokens$6
Per-part units
- Max tokens per input image
- 4.784 Anthropic vision guide, 2026-09-07
- Tokens per document page
- 8.784 Anthropic PDF support, 2026-09-07
- Document pages, maximum
- 600
Today's reference rate: Rp18.500/USD
Prices exclude the 5,5% service fee
Data and privacy
Anthropic Anthropic Privacy Center
- Used to train models
- No
- Retention
- Deleted within 30 days; content flagged for misuse up to 2 years.
- Processing location
- Not stated in the policy.
- At indoRouter
- We don't store your prompts or responses. Files you upload, batches, and responses you send with
store: trueare kept encrypted for up to 30 days.
Code samples
Use this model ID with any OpenAI SDK. The base URL is the same for every model.
curl https://api.indorouter.ai/v1/chat/completions \
-H "authorization: Bearer $INDOROUTER_API_KEY" \
-H "content-type: application/json" \
-d '{"model": "anthropic/claude-sonnet-4-6",
"messages": [{"role": "user", "content": "halo"}]}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.indorouter.ai/v1",
api_key=os.environ["INDOROUTER_API_KEY"],
)
reply = client.chat.completions.create(
model="anthropic/claude-sonnet-4-6",
messages=[{"role": "user", "content": "halo"}],
)
print(reply.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.indorouter.ai/v1",
apiKey: process.env.INDOROUTER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4-6",
messages: [{ role: "user", content: "halo" }],
});
console.log(reply.choices[0].message.content);