Anthropic: Claude Sonnet 4

Coming soonQuick Start

Claude Sonnet 4 is Anthropic's mid-size model, released 2025-05, balancing capability and efficiency for coding and agentic work. It succeeds Sonnet 3.7 with stronger autonomous codebase navigation, fewer errors in agent workflows, and more reliable instruction following. On SWE-bench it scores 72.7%, and it suits routine coding through complex software development.

This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.

Modalities
inImageinTextinFileoutText
Price / 1M
$3.00 / $15.00
Context
1M
Knowledge cutoff
2025-01-31

Capabilities

ReasoningVisionTool useLong contextPrompt caching

Benchmarks

bar = score (0–100) · ▏ median

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

Intelligence Index
General ability
29.8
#53
Coding Index
Code
37.6
#58
Agentic Index
Agentic
17.6
#54
GPQA Diamond
Science QA
74.7
#66
τ-bench (airline)
Agentic tool use
66.0
#61

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-4",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Claude Sonnet 4 into your product

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

Start free