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.

Get an API key

Model IDclaude-sonnet-4-6
ProviderAnthropic
FamilyClaude Sonnet
Discount79% off official

Claude Sonnet 4.6 pricing

USD per 1M tokens. Prices updated 2026-11-13.

TokenMiloOfficial 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

WorkloadTokenMiloOfficialYou 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 · recommendedPOST https://api.tokenmilo.com/v1/messages
OpenAI Chat CompletionsPOST 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

Other Claude Sonnet models

More Anthropic models

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.

Get an API key All models Full pricing