Skip to content
Anthropic logo

Claude Sonnet 5

anthropic/claude-sonnet-5POST /v1/chat/completions

Near-Opus quality on coding and agentic work at Sonnet cost.

Extended reasoningVisionTool callingStructured outputStreamingPrompt caching
Input / 1M
$2.00
via Anthropic
Output / 1M
$10.00
via Anthropic
Cached input / 1M
$0.2000
on a cache hit
Context
1M
max out 128K
Providers
3
failover available

3 providers serve this model

Multigrid picks between them on every request using your policy. Each price is what that route costs us, and we add no spread of our own to it.

ProviderUpstream model idIn / 1MOut / 1MBillingUptime
AnthropicCheapestclaude-sonnet-5$2.00$10.00Credit100.0% up0.0% degradedReachability probes: 99.98% of 5658, 100% of the window observed.
DeepInfraanthropic/claude-sonnet-5$2.00$10.00Credit99.9% up0.1% degradedReachability probes: 99.88% of 5658, 100% of the window observed.
OpenRouteranthropic/claude-sonnet-5$2.11$10.55Credit100.0% up0.0% degradedReachability probes: 99.98% of 5658, 100% of the window observed.
What the uptime column is, and is not
It is availability of the provider, not of Claude Sonnet 5 in particular: reachability probes we ran, and the success rate of requests we routed to that provider across the whole catalogue. Time to first token and throughput are still absent, because Multigrid has not served enough traffic through this model to publish honest ones. Nothing here is estimated: prices, context window and capabilities come from the provider’s own documentation, and the ribbon comes from rows we wrote.

Call it

Same request shape as every other model in the catalogue.

example.ts
const res = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-5",
  messages: [{ role: "user", content: "Hello" }],
  reasoning: { effort: "medium" },
  route: {
    // pin, exclude or order the providers below
    providers: ["anthropic", "deepinfra", "openrouter"],
    sort: "price",
  },
});

Send Claude Sonnet 5 a real request

Signing up takes no card and commits you to nothing. You start at a zero balance, so nothing can be charged until you decide to add credit. The playground opens on Claude Sonnet 5 and prices every answer as it arrives, at the rate shown above: what the route costs us, with nothing of ours added. Already have an account? The second button skips the form.