Claude Sonnet 5
Anthropic logo

Claude Sonnet 5

claude-sonnet-5
Anthropic
Claude Sonnet 5 is the next generation of Anthropic's Sonnet model family. It is a drop-in upgrade for Claude Sonnet 4.6 with three behavior changes: adaptive thinking is on by default, manual extended thinking now returns a 400 error (it was deprecated on Claude Sonnet 4.6), and setting sampling parameters (temperature, top_p, top_k) to non-default values returns a 400 error

Pricing

PricingCache ReadWeb SearchCache WriteCache Write 5 MinutesCache Write 1 Hour
$2.000$10.000
$0.2/M tokens$0.01/request$2.5/M tokens$2.5/M tokens$4/M tokens

Input Modalities

  • Text
  • Vision
  • PDF

Output Modalities

  • Text

Context length

  • 1M tokens

Max output

  • 128K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Azure claude-sonnet-5
Pricing$2.000$10.000
Cache Read$0.2/M tokens
Web Search$0.01/request
Cache Write$2.5/M tokens
Cache Write 5 Minutes$2.5/M tokens
Cache Write 1 Hour$4/M tokens
Context1M
Max output128K
Latency1.7S
Throughput76.1TPS
Uptime
96.70% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
AWS claude-sonnet-5
Pricing$2.000$10.000
Cache Read$0.2/M tokens
Web Search$0.01/request
Cache Write$2.5/M tokens
Cache Write 5 Minutes$2.5/M tokens
Cache Write 1 Hour$4/M tokens
Context1M
Max output128K
Latency4.3S
Throughput53.4TPS
Uptime
99.96% uptime 2 days ago
99.97% uptime yesterday
99.84% uptime today
Anthropic claude-sonnet-5
Pricing$2.000$10.000
Cache Read$0.2/M tokens
Web Search$0.01/request
Cache Write$2.5/M tokens
Cache Write 5 Minutes$2.5/M tokens
Cache Write 1 Hour$4/M tokens
Context1M
Max output128K
Latency3.2S
Throughput69.0TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
VertexAI claude-sonnet-5
Pricing$2.000$10.000
Cache Read$0.2/M tokens
Web Search$0.01/request
Cache Write$2.5/M tokens
Cache Write 5 Minutes$2.5/M tokens
Cache Write 1 Hour$4/M tokens
Context1M
Max output128K
Latency1.0S
Throughput91.0TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for claude-sonnet-5

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is Claude Sonnet 5?

Claude Sonnet 5 is the next generation of Anthropic's Sonnet model family. It is a drop-in upgrade for Claude Sonnet 4.6 with three behavior changes: adaptive thinking is on by default, manual extended thinking now returns a 400 error (it was deprecated on Claude Sonnet 4.6), and setting sampling parameters (temperature, top_p, top_k) to non-default values returns a 400 error