Claude Sonnet 5
The previous Sonnet: steady writing and coding.
Claude Sonnet 5 is an Anthropic model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
Anthropic
10 models
Claude Sonnet 5 in the Anthropic constellation, with Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5, Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7 and Claude Opus 4.6.
A star's size and colour follow its API output price. Anthropic in the model list
Facts
- Context window
- 1M tokens
- Input
- Text and images
- Thinking effort
- Adjustable, up to High
- Speed
- Standard
- Available on
- Plus and above
- Intelligence rank at Vani
- #17
Based on data from Artificial Analysis (artificialanalysis.ai). The ranking is Vani's ordering of the models it offers and is not endorsed by Artificial Analysis. Source (opens in a new tab)
Guide
Best for
- Writing
- Coding
Claude Sonnet 5 API price
Use this model on the Vani API with the OpenAI- or Anthropic-compatible endpoints. Prepaid API prices per 1M tokens.
| Per 1M tokens | Official | On Vani |
|---|---|---|
| Input | $2.00 | $1.40 |
| Output | $10.00 | $7.00 |
| Cached input | $0.20 | $0.14 |
Official prices checked 1 Oct 2026. Source of the official prices (opens in a new tab)
In Vani Chat it uses your plan's allowance: tokens per plan.
Claude Sonnet 5 API quickstart
OpenAI-compatible: point any OpenAI SDK at https://api.vani.ai/v1 and send anthropic/claude-sonnet-5 as the model. The Anthropic-compatible /v1/messages endpoint works too.
curl https://api.vani.ai/v1/chat/completions \
-H "Authorization: Bearer $VANI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-sonnet-5","messages":[{"role":"user","content":"Hello"}]}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.vani.ai/v1",
api_key=os.environ["VANI_API_KEY"], # a vani_ key
)
reply = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.vani.ai",
api_key=os.environ["VANI_API_KEY"], # a vani_ key
)
message = client.messages.create(
model="anthropic/claude-sonnet-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content)Compare with
Anthropic
Claude Sonnet 5.5
Claude Sonnet 5.5 is an Anthropic model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
1M context$7.00 output per 1M
Compare side by side with Claude Sonnet 5.5Google
Gemini 3.1 Pro
Gemini 3.1 Pro is a Google model with a 1M-token context window. It reads images.
1M context$8.40 output per 1M
Compare side by side with Gemini 3.1 ProOpenAI
GPT-5.6 Terra
GPT-5.6 Terra is an OpenAI model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
1M context$8.40 output per 1M
Compare side by side with GPT-5.6 Terra
Claude Sonnet 5: questions
- What is Claude Sonnet 5?
- Claude Sonnet 5 is an Anthropic model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
- How large is Claude Sonnet 5's context window?
- Claude Sonnet 5 has a context window of 1M tokens: that is how much it can read at once. It reads images as well as text.
- How much does the Claude Sonnet 5 API cost?
- On the prepaid Vani API, Claude Sonnet 5 costs $1.40 per 1M input tokens and $7.00 per 1M output tokens ($0.14 per 1M cached input tokens). In Vani Chat it uses your plan's allowance.
- Which Vani plan includes Claude Sonnet 5?
- Claude Sonnet 5 is on Vani Chat's Plus plan and above.
Put a question to Claude Sonnet 5.
Claude Sonnet 5 is on Vani Chat's Plus plan and above.