GPT-Image 2.6 Flare & Sunburst are liveImages from $0.025 each

Claude Sonnet 5 API

LLM

The Claude Sonnet 5 API is the balanced Claude coding route for daily agent work, with 1M context, vision, and structured tool use below the Opus 5 rate.

  • Input · USD / 1M tokens$0.56 USDOfficial price$2 USD
  • Output · USD / 1M tokens$2.8 USDOfficial price$10 USD
  • Savings72%
  • Context1M
  • ReleasedJun 30, 2026
  • Prices checkedDec 2, 2026
  • View tool pricing and billing rules

What are we making today?

Bring an idea, a question, or a first draft.

Enter to send · Shift + Enter for a new line

01

What this model is for

The Claude Sonnet 5 API is the balanced Claude coding route for daily agent work, with 1M context, vision, and structured tool use below the Opus 5 rate.

Claude Sonnet 5 is positioned as the daily-work member of the current Claude family: the same listed 1M context, visual input, and structured tool-use categories as Opus 5, but at a lower input and output token rate. That makes it a practical default for coding sessions that repeatedly read, edit, test, and review code.

Use the claude-sonnet-5 model ID through OmniaKey's supported API surface without changing the surrounding account or balance when you later compare Opus or Haiku. Client support still depends on how each tool exposes custom endpoints and model selection.

Start new Claude coding workflows on Sonnet 5 when you need long context and tools across many daily iterations, then escalate unusually difficult work to Opus 5.

Best-fit coding workloads

Daily implementation

Build features, fix scoped bugs, and iterate on tests without starting at the Opus rate.

Repository maintenance

Review pull requests, update dependencies, and make coordinated edits across familiar code.

Tool-driven coding loops

Run search, edit, and test tools through clients that support structured tool calls.

02

Hands-on notes

Checked on 2026-10-27 through the OmniaKey API with one standard coding prompt (median of 3 runs) and three capability probes.

Output tokens for our standard coding prompt, reasoning included
548
Cost of that output at current prices
$0.00153
JSON mode
Passed
Tool calling
Passed
Image input
Passed

03

Technical specification

Catalog facts and integration details verified for this route.

Model ID
claude-sonnet-5
Context
1M
Inputs and tools
Vision · Tool use
API endpoint
/v1/chat/completions
Cache hit / 1M
$0.056 USD
Coding clients
Claude Code · Cursor · Cline · Aider

Limits to plan around

  • Sonnet 5 is not automatically the right choice for every difficult task. Ambiguous architecture or high-cost decisions may justify moving to Opus 5.
  • The listed 1M context window does not remove client limits or retrieval quality problems; send the evidence needed for the task instead of unfiltered files.
  • Tool access is controlled by the client and your permissions. Model support does not make destructive commands or unreviewed writes safe.

04

Compare nearby models

Compare workload fit and current listed token rates before choosing a route.

ModelBest forContextInputOutput
Claude Sonnet 5This page
claude-sonnet-5
Daily coding, tests, reviews, and sustained agent iteration with a lower rate than Opus 5.1M
$0.56 USD
Official price $2 USD
$2.8 USD
Official price $10 USD
Claude Opus 5
claude-opus-5
Harder cross-system analysis and high-cost-of-error work where deeper effort can justify more spend.1M
$1.4 USD
Official price $5 USD
$7 USD
Official price $25 USD
Claude Haiku 4.5
claude-haiku-4-5
Narrow, frequent support tasks when 200K context is enough and the lowest Claude rate leads.200K
$0.28 USD
Official price $1 USD
$1.4 USD
Official price $5 USD

05

SDK quickstarts

Use one base URL and model ID from cURL, Python, or TypeScript.

Streaming chat completion
curl https://api.omniakey.com/v1/chat/completions \
  -H "Authorization: Bearer $OMNIAKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [
      {"role": "user", "content": "Review this pull request"}
    ],
    "stream": true
  }'

06

Estimate token cost

Enter expected input and output tokens to compare current listed rates.

OmniaKey estimate
$0.112
Official-rate estimate
$0.40
Estimated savings
$0.288

Estimate covers input and output tokens only. Cache usage, retries, tools, and client-side token accounting can change the final charge.

08

Sources and verification

Model facts and links were checked on 2026-09-10. Provider documentation remains the authority for upstream behavior.

Cache and batch prices

What OmniaKey bills per 1M tokens of cached input on Claude Sonnet 5.

Cache read
$0.056 USD
Cache write, 5 minutes
$0.7 USD
Cache write, 1 hour
$1.12 USD
Batch API
Not available on OmniaKey.Anthropic's own Batch API bills 50% of standard prices.

Claude caches the prompt blocks you mark with cache_control on the Messages endpoint (/v1/messages). A block costs the write price when it is stored, for 5 minutes by default or 1 hour with "ttl": "1h", and the read price each time it is reused.

Common errors

The errors OmniaKey users hit most often, from our production logs. Each message appears as the API returns it.

HTTP 403

Insufficient quota
Cause
Your OmniaKey balance has run out.
Fix
Top up your balance. The same API key works again right away.

HTTP 403

insufficient quota for pre-charge
Cause
Before a request runs, OmniaKey reserves its largest possible cost, which grows with the prompt and max_tokens. Your balance is below that amount.
Fix
Top up, or lower max_tokens.

HTTP 401

Invalid token
Cause
The request carries no API key, or a key that does not exist.
Fix
Copy the key from your dashboard again and check that your client sends it.

HTTP 503

No available channel for model <model> under group <group>
Cause
The model name does not match one OmniaKey serves, often because of a dot or a capital letter, such as claude-sonnet-5.5 for claude-sonnet-5-5. It also appears when every supplier of the model is unavailable.
Fix
Use the exact model ID, claude-sonnet-5. If it already matches, retry later or switch models.

HTTP 524

524: A timeout occurred
Cause
No data came back for about 100 seconds, so Cloudflare closed the connection. Long answers without streaming run into this.
Fix
Set stream to true, so tokens arrive while the answer is written.

Frequently asked questions

How much does Claude Sonnet 5 cost on OmniaKey?

OmniaKey charges $0.56 USD per 1M input tokens and $2.8 USD per 1M output tokens, in USD. Official prices are $2 USD and $10 USD; you save 72%.

What is the context window for Claude Sonnet 5?

The listed context window is 1M. Actual usable limits can also depend on the client and upstream request format.

Is Claude Sonnet 5 a good default for Claude Code?

It is the practical starting point in this catalog for daily Claude Code work because it combines 1M context and tool use with a lower listed rate than Opus 5. Keep task-specific evaluations: difficult architecture work may still benefit from Opus, while narrow repetitive jobs may fit Haiku.

When should I move from Sonnet 5 to Opus 5?

Escalate when the task remains stuck after good context and tools, spans unfamiliar architectural boundaries, or has a high cost of an incorrect answer. Switching models should be a task decision, not an automatic retry rule.

Does Claude Sonnet 5 support streaming and tool calls through OmniaKey?

The catalog lists structured tool use, and the OpenAI-compatible examples on this page show streaming and a tool definition. Verify your specific client because SDK versions and custom-endpoint support can change the exact request shape.