Claude

Anthropic: Claude Sonnet 5

Chat
anthropic/claude-sonnet-5
CompareGet Started

Claude Sonnet 5 is Anthropic's flagship Sonnet-series model released on 2026-07-01, featuring a 1M-token context window and 128K output. It supports adaptive thinking (extended reasoning), vision, tool use, prompt caching, and web search. Available via both OpenAI-compatible and native Anthropic protocols through Ofox.

Context Window
1M
Max Output Tokens
128K
Released
2026-07-01
Capabilities
VisionFunction CallingReasoningPrompt CachingPDF Input
Available Providers
BedrockBedrockAnthropicAnthropic
Supported Protocols
OpenAIopenaiAnthropicanthropic

Providers

AnthropicAnthropic
Input Tokens
$2/M
Output Tokens
$10/M
Cache Read
$0.2/M
Cache Write (5 min)
$2.5/M
Cache Write (1 hour)
$4/M
Web Search
$0.015/R
Protocols
Anthropicanthropic
BedrockBedrock
Input Tokens
$2/M
Output Tokens
$10/M
Cache Read
$0.2/M
Cache Write (5 min)
$2.5/M
Cache Write (1 hour)
$4/M
Web Search
$0.015/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses
Anthropicanthropic
AzureAzure
Input Tokens
$2/M
Output Tokens
$10/M
Cache Read
$0.2/M
Cache Write (5 min)
$2.5/M
Cache Write (1 hour)
$4/M
Web Search
$0.015/R
Protocols
Anthropicanthropic

Code Examples

import anthropic
client = anthropic.Anthropic(
base_url="https://api.ofox.run/anthropic",
api_key="YOUR_OFOX_API_KEY",
)
message = client.messages.create(
model="anthropic/claude-sonnet-5",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(message.content[0].text)

Uptime & Status

Benchmarks

LMArenaEvaluated as claude-sonnet-5-high

Anthropic: Claude Sonnet 5 scores 1463 in the Overall category of the LMArena text leaderboard (style control), ranking #36 of 374 models based on 9,850 human preference votes (updated 2026-07-12).

Benchmark scores for claude-sonnet-5-high on LMArena
CategoryArena Score95% CIRankVotes
Overall146314561470#36 of 3749,850
Hard Prompts149314851501#23 of 3746,491
Coding152215101534#15 of 3692,725
Math146314361490#36 of 362449
Creative Writing143014161445#48 of 3721,699
Instruction Following146514541476#22 of 3743,269
Chinese150914821535#23 of 344499

Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

Anthropic: Claude Sonnet 5 on Ofox.ai costs $2/M per million input tokens and $10/M per million output tokens. Pay-as-you-go, no monthly fees.