Claude Sonnet 5: Complete Specifications, Pricing, API Access & Use Cases (2026)
What Is Claude Sonnet 5?
Claude Sonnet 5 is Anthropic’s Sonnet-family large language model, released on June 30, 2026, featuring a 1M-token context window and adaptive thinking for coding, tool use, planning, and agentic workflows, with introductory Claude API pricing of \$2 per 1M input tokens and \$10 per 1M output tokens through August 31, 2026, as of July 2026.
Anthropic positions Claude Sonnet 5 as a successor to Claude Sonnet 4.6 and a lower-cost alternative to Opus-class models for many professional tasks. Its launch materials emphasize stronger agentic behavior, coding follow-through, tool use, and knowledge work, while also noting cyber-safety safeguards and behavior changes that developers must account for.
Users searching for Claude Sonnet 5 usually want current pricing, the claude-sonnet-5 model ID, context limits, modality support, API access, and whether it is a good fit for long-horizon coding or agent workflows. Teams migrating from older Sonnet models may also compare it with the Claude 3.5 Sonnet legacy profile to understand how the Sonnet line has evolved.
What Are Claude Sonnet 5’s Key Specifications and Pricing?
| Field | Value |
|---|---|
| Provider | Anthropic (as of July 2026) |
| Model Family | Claude Sonnet (as of July 2026) |
| Model Type | Large language model for text, vision, coding, reasoning, and agentic workflows (as of July 2026) |
| Release Date | June 30, 2026 (as of July 2026) |
| Context Window | 1M tokens (as of July 2026) |
| Max Output | 128K tokens on synchronous Messages API; up to 300K on Message Batches with beta header (as of July 2026) |
| Input Pricing | \$2.00 per 1M input tokens through August 31, 2026; \$3.00 per 1M input tokens starting September 1, 2026 (as of July 2026) |
| Cached Input Pricing | \$0.20 per 1M cache read tokens; \$2.50 per 1M 5-minute cache write tokens; \$4.00 per 1M 1-hour cache write tokens during introductory pricing (as of July 2026) |
| Output Pricing | \$10.00 per 1M output tokens through August 31, 2026; \$15.00 per 1M output tokens starting September 1, 2026 (as of July 2026) |
| Pricing Unit | USD per 1M tokens / MTok (as of July 2026) |
| Modality Support | Text and image input, text output, multilingual and vision support (as of July 2026) |
| Supported Input Types | Text, image; files may be available through Claude platform features depending on endpoint (as of July 2026) |
| Supported Output Types | Text output (as of July 2026) |
| API Access | Claude API, Claude Platform on AWS, Amazon Bedrock, Google Cloud, Microsoft Foundry; Gate.AI access based on model ID and Gate.AI gateway docs (as of July 2026) |
| Provider Model ID | claude-sonnet-5 (as of July 2026) |
| Gate.AIModel ID | anthropic/claude-sonnet-5 provided in source material (as of July 2026) |
| Availability | Available through Claude API and listed platform channels;Gate.AIgeneric gateway access verified (as of July 2026) |
| Knowledge Cutoff | Reliable knowledge cutoff January 2026; training data cutoff January 2026 (as of July 2026) |
| Rate Limits | Tier-based; exact organization limits shown in Claude Console, not fixed globally (as of July 2026) |
| Fine-tuning Support | Not confirmed from official sources as of July 2026 |
| Streaming Support | Claude API supports streaming; model-specific streaming status not separately specified in reviewed sources as of July 2026 |
| Batch API Support | Message Batches supported for Sonnet 5 with discounted batch pricing (as of July 2026) |
| Tool / Function Calling | Supported through Claude tool use and platform features, except Priority Tier is not available on Sonnet 5 (as of July 2026) |
| Structured Output / JSON Mode | Structured outputs are referenced in Claude docs; exact model-specific constraints should be reviewed before production use (as of July 2026) |
| License / Usage Restrictions | Subject to Anthropic commercial terms and usage policies; not an open-weight model (as of July 2026) |
Anthropic’s official documentation lists Claude Sonnet 5 with a 1M-token context window, 128K max output tokens on the synchronous Messages API, reliable knowledge through January 2026, and training data cutoff of January 2026. Pricing is introductory through August 31, 2026, then changes on September 1, 2026.
What Can Claude Sonnet 5 Do That Makes It Useful in Production?
Claude Sonnet 5 is relevant for multi-step coding tasks where a model must inspect context, propose changes, use tools, and keep a plan consistent across turns. Anthropic describes Sonnet 5 as more agentic than earlier Sonnet models, but generated code should still be tested and reviewed before deployment.
It is also useful for long-context document and repository work because the 1M-token window can hold large prompts, prior conversation, code, documents, and tool definitions. Anthropic’s context-window documentation cautions that larger context is not automatically better because recall and accuracy can degrade as token count grows.
For agentic operations, Sonnet 5 can support planning, tool use, browser-like workflows, and terminal-assisted development when connected through a properly sandboxed application. Teams comparing agentic reasoning trade-offs may also evaluate specialized models such as the OpenAI o3 reasoning model or DeepSeek R1 reasoning use cases, depending on latency, cost, and safety requirements.
For multimodal analysis, Claude Sonnet 5 can process text and image input and return text output. That makes it relevant for chart interpretation, screenshot review, document triage, and visual QA workflows, though it is not a native image, audio, or video generation model.
What Are Claude Sonnet 5’s Supported Modalities?
| Modality | Supported? | Notes |
|---|---|---|
| Text input | Yes | Standard prompt and conversation input |
| Image input | Yes | Vision support for image-based tasks |
| Audio input | Not confirmed | No official Sonnet 5 audio-input support found in reviewed sources |
| Video input | Not confirmed | No official Sonnet 5 video-input support found in reviewed sources |
| Text output | Yes | Primary output format |
| Native image output | Not confirmed | Not documented as an image-generation model |
| Audio output | Not confirmed | No official Sonnet 5 audio-output support found in reviewed sources |
Anthropic states that current Claude models support text and image input, text output, multilingual capabilities, and vision. This means Claude Sonnet 5 should be treated as a text-and-vision model with text output, not as an audio, video, or native image-generation system.
Where Does Claude Sonnet 5 Fall Short?
Claude Sonnet 5 has several production constraints. Adaptive thinking is on by default, manual extended thinking is removed, and non-default sampling parameters such as temperature, top_p, and top_k return errors, so migrations from earlier Sonnet workflows may require request changes.
The new tokenizer can produce more tokens for the same text compared with Sonnet 4.6, which may affect cost estimates and prompt budgets even when the per-token price is known. This is a model-specific migration issue, not merely a general LLM limitation.
Claude Sonnet 5 also has general AI limitations. It may hallucinate, omit details in long contexts, misunderstand images, or produce plausible but incorrect code. This is a general AI limitation and is not model-specific unless stated by Anthropic. High-stakes legal, medical, financial, cybersecurity, and compliance uses require expert review.
Finally, real-time cybersecurity safeguards may refuse or block certain high-risk cyber requests. Anthropic describes those safeguards as part of Sonnet 5’s launch, so security teams should test allowed workflows carefully before relying on it for cyber operations.
What Is Claude Sonnet 5 Best Used For?
| Use Case | Why Claude Sonnet 5 May Fit | Important Limitation |
|---|---|---|
| Multi-step software engineering | Useful for code review, debugging, refactoring, and agentic coding workflows | Code must be tested and reviewed |
| Long-context analysis | 1M-token context can support large repositories, documents, and prior conversation | Long context can still degrade recall |
| Agentic planning | Adaptive thinking and tool-use support fit planning and cross-step consistency | Requires sandboxing, permissions, and monitoring |
| Visual document review | Text and image input can support screenshots, diagrams, charts, and visual QA | Not a dedicated OCR or compliance engine |
| Enterprise assistant workflows | Fits knowledge work, drafting, summarization, and structured task execution | Sensitive outputs require governance and human review |
For teams prioritizing lower latency multimodal routing, a Gemini 2.0 Flash multimodal workflow may be a useful comparison point. For enterprise language-model evaluation outside the Anthropic ecosystem, Mistral Large enterprise model is another contextual benchmark, but comparisons should be task-specific rather than absolute.
How Does Claude Sonnet 5 Compare to Claude Opus 4.8 and Claude Fable 5?
| Comparison Area | Claude Sonnet 5 | Claude Opus 4.8 | Claude Fable 5 | Scenario Fit |
|---|---|---|---|---|
| Provider | Anthropic | Anthropic | Anthropic | Same provider ecosystem |
| Model ID | claude-sonnet-5 | claude-opus-4-8 | claude-fable-5 | Use official IDs for direct Claude API |
| Context Window | 1M tokens | 1M tokens | 1M tokens | All fit large-context tasks |
| Max Output | 128K synchronous | 128K synchronous | 128K synchronous | Long outputs need careful budgeting |
| Pricing | \$2/\$10 per MTok through Aug. 31, 2026; \$3/\$15 after | \$5/\$25 per MTok | \$10/\$50 per MTok | Sonnet 5 fits cost-sensitive agentic work |
| Adaptive Thinking | Yes | Yes | Yes, always on | Useful for reasoning/planning workflows |
| Relative Positioning | Balanced speed and intelligence | Complex agentic coding and enterprise work | Long-running agent workloads | Select by task complexity, budget, and risk |
| Knowledge Cutoff | Reliable knowledge Jan. 2026 | Reliable knowledge Jan. 2026 | Reliable knowledge Jan. 2026 | Similar cutoff, different capability/cost tiers |
Anthropic’s own model table places Sonnet 5 between lower-cost/faster models and more expensive Opus or Fable models. The comparison does not produce a universal winner: Sonnet 5 may fit teams that want strong coding and agent behavior at a lower price tier, while Opus 4.8 or Fable 5 may be more relevant for workloads requiring higher capability budgets.
How Do I Access Claude Sonnet 5 Through Gate.AI?
Gate.AI documentation verifies a unified model-routing platform with OpenAI-compatible access, API-key setup, auto-routing, and explicit model selection using provider/model-name IDs. The Gate.AI model ID for this page is anthropic/claude-sonnet-5. Gate.AI docs also show OpenAI-compatible base URL https://api.gate.ai/openai/v1 and Anthropic-compatible endpoints for Claude-style usage.
Python Example
from openai import OpenAIimport osclient = OpenAI(api_key=os.environ["GATEAI_API_KEY"],base_url="https://api.gate.ai/openai/v1",)completion = client.chat.completions.create(model="anthropic/claude-sonnet-5",messages=[{"role": "user", "content": "Summarize the deployment risks in one paragraph."}],)print(completion.choices[0].message.content)
curl Example
curl https://api.gate.ai/openai/v1/chat/completions \-H "Authorization: Bearer $GATEAI_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "anthropic/claude-sonnet-5","messages": [{"role": "user", "content": "Hello"}]}'
Through Gate.AI, developers can use a unified gateway pattern, explicit model IDs, auto-routing settings, API keys, and routing controls documented by Gate.AI. Exact account-level availability, budgets, and allow lists should be checked in the Gate.AI console before production deployment.
FAQs
What is Claude Sonnet 5’s context window?
Claude Sonnet 5 supports a 1M-token context window as of July 2026. Anthropic also lists 128K max output tokens for synchronous Messages API requests.
How much does Claude Sonnet 5 cost?
Through August 31, 2026, Anthropic lists introductory pricing of \$2 per 1M input tokens and \$10 per 1M output tokens. Standard pricing becomes \$3/\$15 per 1M tokens on September 1, 2026.
How do developers access Claude Sonnet 5?
Developers can use claude-sonnet-5 through the Claude API and supported cloud platforms. Gate.AI access can use the model ID anthropic/claude-sonnet-5 with Gate.AI’s documented gateway format.
What is Claude Sonnet 5 best used for?
Claude Sonnet 5 is suitable for coding, multi-step planning, long-context analysis, visual document review, and agentic workflows where teams need strong capability with lower cost than Opus-tier models.


