Anthropic
Claude Fable 5.1
Total Context
1M
Max Output
128K
Released
N/A
claude-sonnet-5Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max, and x-high), a 1M-token context window, and text, image, and file inputs. Sonnet 5 uses an updated tokenizer and includes real-time cyber safeguards that block certain high-risk dual-use activities.
Context Window
1M tokens
Maximum Output
128K tokens
Release Date
Jun 30, 2026
Modalities
| Input Price | Output Price | Cache Read | Cache Create 5m |
|---|---|---|---|
| $2/M | $10/M | $0.2/M | $2.5/M |
Reasoning
Tool calling
Temperature parameter
Attachments
Knowledge Base
Endpoint Protocols
Claude Sonnet 5 combines adaptive reasoning, stronger coding and agentic performance, and a one-million-token context window for demanding development work.
Adaptive thinking is enabled by default, allowing the model to vary its reasoning effort according to the complexity of each request.
Its largest capability gains over Sonnet 4.6 are in coding and agentic tasks, supporting more capable software automation.
A one-million-token context window and output capacity up to 128,000 tokens support large inputs and extensive generated results.
Claude Sonnet 5 is suited to software engineering, multi-step agent workflows, and analysis of large collections of technical material.
Implement features, review changes, diagnose defects, and produce coordinated edits across multiple source files.
Plan and execute multi-step workflows that combine reasoning with repeated tool or computer interactions.
Examine extensive specifications, codebases, or document collections and synthesize findings into detailed plans or reports.
import OpenAI from "openai"
const client = new OpenAI({
apiKey: process.env.TOKENHUB_API_KEY,
baseURL: "https://us-api.tokenhub.com/v1",
})
const result = await client.chat.completions.create({})
console.log(result.choices[0]?.message?.content)| Index score | ||
|---|---|---|
| Artificial Analysis Intelligence Index | Artificial Analysis broad capability aggregate | 41.7 |
| Artificial Analysis Coding Index | Artificial Analysis software task aggregate | 66.4 |
| Knowledge & Reasoning | ||
| GPQA | Advanced science problem solving | 80% |
| HLE | Broad expert-level exam set | 17.8% |
| Coding & Engineering | ||
| SciCode | Scientific coding challenges | 48.6% |
| Instruction Following & Agent Tasks | ||
| AA-LCR | Long-context reasoning | 58.7% |
Metrics sourced from Artificial Analysis
Practical answers about Claude Sonnet 5 capabilities, tradeoffs, availability, and TokenHub API use.
Claude Sonnet 5 is Anthropic's general-purpose Sonnet model for reasoning, coding, tool use, and knowledge work. It is designed to combine strong intelligence with Sonnet-class speed and cost.
It is well suited to multi-step coding, debugging, agent workflows, research synthesis, document analysis, and professional tasks that benefit from planning and tool use.
Its strengths include improved reasoning, coding, tool use, and task follow-through compared with Sonnet 4.6. Adaptive thinking is enabled by default, and the API supports a 1-million-token context window.
Important outputs still need review. Manual extended thinking is not accepted, non-default temperature, top_p, or top_k values can cause API errors, and Anthropic's Priority Tier is not available for this model.
Use the model ID claude-sonnet-5 in your TokenHub API request with your TokenHub endpoint and credentials. Confirm the request format and supported parameters in the TokenHub integration documentation before production use.
Anthropic lists introductory API pricing of $2 per million input tokens and $10 per million output tokens through August 31, 2026, followed by $3 and $15. TokenHub pricing or routing availability may differ, so check the current model page before use.
Choose it when you need a strong balance of agentic capability, coding quality, speed, and cost. Compare it with a higher-tier model for the hardest tasks and with smaller models for high-volume, latency-sensitive workloads.
Use one API key to access Claude Sonnet 5 and more AI models through TokenHub.
Claude Sonnet 5 Media and Demos
Selected public announcements, discussions, and videos about Claude Sonnet 5.
X (Twitter)
Reddit
YouTube