Anthropic · Text
Claude Sonnet 5 API pricing
anthropic/claude-sonnet-5
Production workhorse. Claude Sonnet 5 by Anthropic, called through one INFRO key alongside every other model you run. We price it 25% below Anthropic's direct rate — the same model, the same weights, reached through a different integration.
Pricing
Anthropic direct
$6.00
per 1M tokens
INFRO
$4.50
per 1M tokens
You save
25%
on every unit
Per-token rates
$2.25 / 1M input tokens·$11 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Illustrative launch rates, reconciled against published provider pricing on 2026-08-24. Live rates come from GET /v1/models once your key is active.
Calling Claude Sonnet 5
POST /v1/chat/completionsAt launch — Committed to the first release. In build now, not usable yet.import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is billed at the provider's cached rate, so the discount compounds.
Alternatives for production workhorse
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
Work out what Claude Sonnet 5 would cost you
Put your current spend on this model into the calculator and see the same workload priced here — or have us read your real usage.