Anthropic: Claude Sonnet 5

Claude Sonnet 5 is Anthropic's top Sonnet-class model, released 2026-06, built for coding, agentic workflows, and professional tasks. It introduces selectable reasoning effort levels and an updated tokenizer, with real-time cyber safeguards against high-risk dual-use activities.

Modalities
inTextinImageinFileoutText
Price / 1M−78%
$0.43 / $2.16$2.00 / $10.00
Context
1M
Knowledge cutoff

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Channels

Same weights on every channel. Requests route to the cheapest healthy one; the channel used is printed on each billing line.

Provider
Discount
Input /M
Output /M
Cache Read /M
Cache Create 5m /M
Cache Create 1h /M
Codecheap
−78%
$0.43
$2.16
$0.04
Defaultstable
−35%
$1.30
$6.48
$0.13

Cost Calculator

Pick a channel and a usage scenario, then drag to your workload — each scenario assumes a different prompt-cache hit rate.

Channel
Scenario
Unit $0.43 / $2.16 /1MDaily chat: 40% cache hit assumed · cache read $0.04 /1M
List price $602.88On MirAPI$130.22/ moYou save $472.66Create an API key

Benchmarks

bar = score (0–100) · ▏ median

Scores from vendor reports and public leaderboards. No private evals.

Intelligence Index
General ability
55.3
#14
Coding Index
Code
71.5
#15
Agentic Index
Agentic
49.7
#11
GPQA Diamond
Science QA
84.3
#30
τ-bench (airline)
Agentic tool use
77.1
#14

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt; the output lands here verbatim, with tokens and per-run cost.

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="anthropic/claude-sonnet-5",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Claude Sonnet 5 into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free