Anthropic: Claude Sonnet 5
Chatanthropic/claude-sonnet-5Claude 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
BedrockAnthropic
Supported Protocols
openaianthropic
Providers
Anthropic
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
anthropic
Bedrock
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
openai
/v1/chat/completions/v1/responsesanthropic
Azure
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
anthropic
Code Examples
import anthropicclient = 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
LMArena ↗Evaluated 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).
| Category | Arena Score | 95% CI | Rank | Votes |
|---|---|---|---|---|
| Overall | 1463 | 1456–1470 | #36 of 374 | 9,850 |
| Hard Prompts | 1493 | 1485–1501 | #23 of 374 | 6,491 |
| Coding | 1522 | 1510–1534 | #15 of 369 | 2,725 |
| Math | 1463 | 1436–1490 | #36 of 362 | 449 |
| Creative Writing | 1430 | 1416–1445 | #48 of 372 | 1,699 |
| Instruction Following | 1465 | 1454–1476 | #22 of 374 | 3,269 |
| Chinese | 1509 | 1482–1535 | #23 of 344 | 499 |
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.
Related Models
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.
Anthropic: Claude Sonnet 5 supports a context window of 1M tokens with max output of 128K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.run/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
Anthropic: Claude Sonnet 5 supports the following capabilities: Vision, Function Calling, Reasoning, Prompt Caching, PDF Input. Access all features through the Ofox.ai unified API.