Claude Sonnet 4.6 API
Call Claude Sonnet 4.6 with one TokenMilo API key. Balanced speed, quality and cost — a strong default for coding tools like Claude Code. Billed per token at 79% below the official Anthropic price.
| Model ID | claude-sonnet-4-6 |
| Provider | Anthropic |
| Family | Claude Sonnet |
| Discount | 79% off official |
Claude Sonnet 4.6 pricing
USD per 1M tokens. Prices updated 2026-11-13.
| TokenMilo | Official Anthropic | |
|---|---|---|
| Input | $0.639 | $3 |
| Output | $3.19 | $15 |
| Cache read | $0.064 | — |
| Cache write (5 min) | $0.801 | — |
| Cache write (1 hour) | $0.801 | — |
1-hour cache writes are billed at the same price as 5-minute writes.
What it costs in practice
| Workload | TokenMilo | Official | You save |
|---|---|---|---|
| 1,000 requests × 2,000 in / 500 out tokens | $2.88 | $13.50 | $10.62 |
| 1,000 requests × 50,000 in / 2,000 out tokens | $38.34 | $180 | $142 |
What Claude Sonnet 4.6 is good for
- Everyday coding in Claude Code and IDE assistants
- Chatbots and customer support
- Content writing and translation
- RAG and document Q&A at scale
Supported endpoints
| Anthropic Messages · recommended | POST https://api.tokenmilo.com/v1/messages |
| OpenAI Chat Completions | POST https://api.tokenmilo.com/v1/chat/completions |
Base URL and API key are the same for every format. API guide →
Code examples
curl
curl https://api.tokenmilo.com/v1/messages \
-H "x-api-key: $TOKENMILO_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": "Hello, Claude Sonnet 4.6!"}]
}'Python
# pip install anthropic
import os, anthropic
client = anthropic.Anthropic(
base_url="https://api.tokenmilo.com",
api_key=os.environ["TOKENMILO_API_KEY"],
)
msg = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain prompt caching in one paragraph."}],
)
print(msg.content[0].text)Use Claude Sonnet 4.6 in your tools
- Claude Code setup — Run Claude Code with a TokenMilo key on macOS, Linux and Windows.
- Cursor setup — Add Claude and GPT models to Cursor with your own key.
- Cline setup (VS Code) — Configure the Cline coding agent with Claude via TokenMilo.
- Cherry Studio setup — Chat with Claude and GPT in the Cherry Studio desktop app.
Other Claude Sonnet models
- Claude Sonnet 5.5 — $0.423 / $2.13 · −79%
- Claude Sonnet 5 — $0.423 / $2.13 · −79%
More Anthropic models
- Claude Fable 5.2 — $1.79 / $8.95
- Claude Fable 5.1 — $2.23 / $11.18
- Claude Fable 5 — $2.23 / $11.18
- Claude Opus 5.5 — $0.855 / $4.26
- Claude Opus 5 — $1.06 / $5.33
- Claude Opus 4.8 — $1.06 / $5.33
FAQ
Is this the real Claude Sonnet 4.6?
Yes. Requests with model ID claude-sonnet-4-6 are served by the genuine Anthropic model — no quantized, swapped or downgraded variant. Response quality is the same as calling Anthropic directly.
How much does Claude Sonnet 4.6 cost on TokenMilo?
$0.639 per 1M input tokens and $3.19 per 1M output tokens, compared with $3 / $15 officially — 79% less. There is no subscription or monthly minimum.
Which API format should I use for Claude Sonnet 4.6?
The Anthropic Messages API (https://api.tokenmilo.com/v1/messages) is recommended and supports every Claude feature, including prompt caching, tool use and extended thinking. The OpenAI-compatible Chat Completions endpoint also works for simple chat.
Does Claude Sonnet 4.6 support prompt caching?
Yes. Cache reads are billed at $0.064 per 1M tokens, which makes long system prompts and coding-agent sessions much cheaper.
Start using Claude Sonnet 4.6
Sign up, top up, create a key — and point your SDK at TokenMilo.