Claude Sonnet 5

claude-sonnet-5

Sonnet 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

Claude Sonnet 5 Pricing

Input PriceOutput PriceCache ReadCache Create 5m
$2/M$10/M$0.2/M$2.5/M

Claude Sonnet 5 API Capabilities

Reasoning

Supported

Tool calling

Supported

Temperature parameter

Not supported

Attachments

Supported

Knowledge Base

2026-01-31

Endpoint Protocols

Completions APIMessages API

Claude Sonnet 5 Model Highlights

Claude Sonnet 5 combines adaptive reasoning, stronger coding and agentic performance, and a one-million-token context window for demanding development work.

Adaptive Reasoning

Adaptive thinking is enabled by default, allowing the model to vary its reasoning effort according to the complexity of each request.

Coding and Agents

Its largest capability gains over Sonnet 4.6 are in coding and agentic tasks, supporting more capable software automation.

Million-Token Context

A one-million-token context window and output capacity up to 128,000 tokens support large inputs and extensive generated results.

Claude Sonnet 5 Use Cases

Claude Sonnet 5 is suited to software engineering, multi-step agent workflows, and analysis of large collections of technical material.

Software Engineering

Implement features, review changes, diagnose defects, and produce coordinated edits across multiple source files.

Agentic Automation

Plan and execute multi-step workflows that combine reasoning with repeated tool or computer interactions.

Large-Context Analysis

Examine extensive specifications, codebases, or document collections and synthesize findings into detailed plans or reports.

How to Use Claude Sonnet 5 via the TokenHub API

Create API key
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)

Claude Sonnet 5 Benchmarks

Index score
Artificial Analysis Intelligence IndexArtificial Analysis broad capability aggregate41.7
Artificial Analysis Coding IndexArtificial Analysis software task aggregate66.4
Knowledge & Reasoning
GPQAAdvanced science problem solving80%
HLEBroad expert-level exam set17.8%
Coding & Engineering
SciCodeScientific coding challenges48.6%
Instruction Following & Agent Tasks
AA-LCRLong-context reasoning58.7%

Metrics sourced from Artificial Analysis

Claude Sonnet 5 Comparisons

Claude Sonnet 5 Media and Demos

Selected public announcements, discussions, and videos about Claude Sonnet 5.

X (Twitter)

Open social media source
View post on X
Open social media source
View post on X
Open social media source
View post on X

Reddit

YouTube

Open social media source
Watch on YouTube
Open social media source
Watch on YouTube
Open social media source
Watch on YouTube

Claude Sonnet 5 FAQs

Practical answers about Claude Sonnet 5 capabilities, tradeoffs, availability, and TokenHub API use.

What is Claude Sonnet 5?+

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.

What is Claude Sonnet 5 best used for?+

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.

What are the main strengths of Claude Sonnet 5?+

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.

What limitations or API tradeoffs should I consider?+

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.

How do I use Claude Sonnet 5 through TokenHub?+

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.

What are the pricing and availability details?+

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.

When should I choose Claude Sonnet 5 instead of another model?+

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.

Ready to use Claude Sonnet 5?

Use one API key to access Claude Sonnet 5 and more AI models through TokenHub.

Create API key