← Pricing

Claude Sonnet 4.6 API

Model ID claude-sonnet-4-6 · Anthropic · Prices as of

Short answer

Claude Sonnet 4.6 is available through APIVAI at $1.04 per million input tokens and $5.22 per million output tokens as of 2026-10-07, 65% below Anthropic's official list price of $3.00 / $15.00. Use the model ID claude-sonnet-4-6 with an APIVAI key in the Anthropic Messages format at https://api.apivai.com (Claude Code, Anthropic SDK) or the OpenAI format at https://api.apivai.com/v1. Billing is pay-as-you-go from a prepaid balance, from $10, with no subscription.

Claude Sonnet 4.6 API pricing

Per 1M tokensAPIVAIOfficial list price
Input$1.04$3.00
Output$5.22$15.00

Prompt caching: cache writes cost $1.31 and cache reads $0.10 per million tokens. Context window: 1M tokens. Prices are checked against the price list every 6 hours; see all model prices.

How much does Claude Sonnet 4.6 cost per request?

Each request is billed for its input and output tokens. Coding agents resend the conversation and files with every step, so their requests are much larger than a chat message.

ExampleInput / output tokensAPIVAIOfficial price
One chat message2,000 / 500 each$0.00469$0.0135
One coding-agent step30,000 / 1,500 each$0.039$0.113
1,000 chat messages2,000 / 500 each$4.69$13.50
A month of agent use (100 steps a day, 22 days)30,000 / 1,500 each$85.87$248

Thinking is on by default and thinking tokens are billed as output, so the real output count can be higher than the text you see.

How do you call Claude Sonnet 4.6?

cURL (OpenAI format)

curl https://api.apivai.com/v1/chat/completions \
  -H "Authorization: Bearer $APIVAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(api_key="YOUR_APIVAI_API_KEY", base_url="https://api.apivai.com/v1")
resp = client.chat.completions.create(
    model="claude-sonnet-4-6",
    max_tokens=4096,
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Claude Code and the Anthropic SDK

# macOS / Linux
export ANTHROPIC_BASE_URL="https://api.apivai.com"
export ANTHROPIC_AUTH_TOKEN="YOUR_APIVAI_API_KEY"
claude --model claude-sonnet-4-6
# Python (Anthropic SDK)
import anthropic
client = anthropic.Anthropic(api_key="YOUR_APIVAI_API_KEY", base_url="https://api.apivai.com")
msg = client.messages.create(model="claude-sonnet-4-6", max_tokens=4096,
                             messages=[{"role": "user", "content": "Hello!"}])

Claude Code and the Anthropic SDK use https://api.apivai.com without /v1; they add /v1/messages themselves. If ANTHROPIC_API_KEY is set in your shell, remove it first. Full setup: Claude Code guide and Claude API proxy.

Other Anthropic models

ModelInput / output per 1MBelow official price
Claude Fable 5.1$4.21 / $21.0258%
Claude Fable 5$4.21 / $21.0258%
Claude Opus 5$1.74 / $8.6965%
Claude Opus 4.8$1.74 / $8.6965%
Claude Opus 4.7$1.74 / $8.6965%
Claude Opus 4.6$1.74 / $8.6965%
Claude Opus 5.5$1.39 / $6.9665%
Claude Sonnet 5.5$0.69 / $3.4766%
Claude Sonnet 5$0.69 / $3.4766%
Claude Haiku 4.5$0.35 / $1.7465%

Setup guides

FAQ

Is this the same Claude Sonnet 4.6 model?

Yes. Requests with the model ID claude-sonnet-4-6 are answered by Claude Sonnet 4.6; only the price and the way you pay differ.

What is the model ID for Claude Sonnet 4.6?

claude-sonnet-4-6. The list of models changes over time, so check GET https://api.apivai.com/v1/models with your key before hard-coding a name.

Which tools can use Claude Sonnet 4.6?

Claude Code and the Anthropic SDK through https://api.apivai.com, and any OpenAI-compatible tool (Cursor, Cline, Continue, Aider and others) through https://api.apivai.com/v1.

How is Claude Sonnet 4.6 billed?

Per token, from a prepaid balance: $1.04 per million input tokens and $5.22 per million output tokens, with thinking tokens counted as output. The minimum top-up is $10 and there is no subscription.

How many requests can I send?

Each key allows 60 requests per minute by default; support can raise the limit.

Create an account, top up from $10 and use claude-sonnet-4-6 with your key.

Ready to start?

Get your API key in 30 seconds. Pay as you go for Claude and GPT.