Coding models for Claude Code, Codex CLI, Cursor and Cline

The models coding agents actually run on, with the price you pay per 1M tokens on Crazyrouter and the one-line setup for each tool.

Crazyrouter is an AI API gateway that runs 30 coding and agentic models behind one key — including Claude Opus, Claude Sonnet, GPT Codex and DeepSeek V4 — at per-token prices from $0.10, and plugs into Claude Code, Codex CLI, Cursor and Cline by changing a base URL.

30
models
$0.10
from, per 1M input
45%
max below list
Input price per 1M tokens (list vs Crazyrouter), cheapest first
ListCrazyrouterClaude Haiku 5.5$0.100 → $0.100Gemini 3 Flash$0.500 → $0.165DeepSeek V4 Flash$0.300 → $0.230MiniMax M3$0.300 → $0.300MiMo V2.6 Pro$0.435 → $0.435DeepSeek V4 Pro$1.32 → $0.670GPT-5$1.25 → $1.00GPT-5 Codex$1.25 → $1.00GLM-5$1.00 → $1.00Gemini 3.1 Pro$2.00 → $1.10Claude Sonnet 5$2.00 → $1.30GPT-5.3 Codex$1.75 → $1.40

18 more models in the table below

Tools these models power

Coding & agentic models, by price

ModelArena scoreOfficial priceSite discountRelease date
Kimi K3.1 Pro1683.1
Evaluation details
Evaluated model:
Kimi K3.1 Pro (Max)
Confidence interval:
1674.3–1692.0
Battles:
6,154
$2.00 / $10.00—
Kimi K3.1 Pro HighspeedNot matched$4.00 / $20.00—
Claude Haiku 5.51595.1
Evaluation details
Evaluated model:
Claude Haiku 5.5 (High)
Confidence interval:
1587.4–1602.8
Battles:
8,656
$0.10 / $0.50—
GPT-6.1 Sol1744.4
Evaluation details
Evaluated model:
GPT-6.1 Sol (Max)
Confidence interval:
1735.4–1753.5
Battles:
6,699
$2.00 / $10.00—
Claude Sonnet 5.51772.4
Evaluation details
Evaluated model:
Claude Sonnet 5.5 (xHigh)
Confidence interval:
1763.2–1781.5
Battles:
6,925
$2.00 / $10.00—
GPT-6 Astra1764.3
Evaluation details
Evaluated model:
GPT-6 Astra (Max)
Confidence interval:
1756.3–1772.4
Battles:
9,495
$10.00 / $50.00−35%
Claude Opus 51656.6
Evaluation details
Evaluated model:
Claude Opus 5 (High)
Confidence interval:
1651.3–1661.8
Battles:
26,750
$5.00 / $25.00−35%
Kimi K31658.8
Evaluation details
Evaluated model:
Kimi K3 (Max)
Confidence interval:
1653.2–1664.4
Battles:
23,497
$3.00 / $15.00—
GPT-5.6 Sol1615.7
Evaluation details
Evaluated model:
GPT-5.6 Sol (xHigh, Codex Harness)
Confidence interval:
1609.9–1621.4
Battles:
18,756
$4.00 / $20.00−35%
Claude Sonnet 51539.6
Evaluation details
Evaluated model:
Claude Sonnet 5 (High)
Confidence interval:
1533.8–1545.4
Battles:
16,663
$2.00 / $10.00−35%
Claude Fable 51625.9
Evaluation details
Evaluated model:
Claude Fable 5 (High)
Confidence interval:
1619.9–1631.9
Battles:
16,857
$10.00 / $50.00−35%
MiniMax M31484.2
Evaluation details
Evaluated model:
MiniMax-M3
Confidence interval:
1478.8–1489.6
Battles:
20,920
$0.30 / $1.20—
Claude Opus 4.81536.2
Evaluation details
Evaluated model:
Claude Opus 4.8
Confidence interval:
1530.5–1541.9
Battles:
16,862
$5.00 / $25.00−35%
DeepSeek V4 Flash1582.0
Evaluation details
Evaluated model:
DeepSeek-V4-Flash (High)
Confidence interval:
1572.6–1591.4
Battles:
4,800
$0.30 / $1.20—
GPT-5.51455.4
Evaluation details
Evaluated model:
GPT-5.5 (Codex Harness)
Confidence interval:
1449.5–1461.3
Battles:
15,528
$5.00 / $30.00−35%
DeepSeek V4 Pro1448.7
Evaluation details
Evaluated model:
DeepSeek-V4-Pro
Confidence interval:
1442.3–1455.1
Battles:
13,724
$1.32 / $3.96—
Claude Opus 4.71555.5
Evaluation details
Evaluated model:
Claude Opus 4.7
Confidence interval:
1549.9–1561.2
Battles:
17,857
$5.00 / $25.00−35%
GPT-5.41400.3
Evaluation details
Evaluated model:
GPT-5.4
Confidence interval:
1390.4–1410.1
Battles:
4,619
$2.50 / $15.00−20%
GPT-5.3 CodexNot matched$1.75 / $14.00−20%
Gemini 3.1 ProNot matched$2.00 / $12.00−45%
Claude Sonnet 4.61522.0
Evaluation details
Evaluated model:
Claude Sonnet 4.6
Confidence interval:
1516.8–1527.2
Battles:
22,491
$3.00 / $15.00−35%
GLM-51434.8
Evaluation details
Evaluated model:
GLM-5
Confidence interval:
1426.6–1443.0
Battles:
7,429
$1.00 / $3.20—
Gemini 3 Flash1440.3
Evaluation details
Evaluated model:
Gemini 3 Flash
Confidence interval:
1431.6–1448.9
Battles:
10,793
$0.50 / $3.00−45%
GPT-5 CodexNot matched$1.25 / $10.00−20%
GPT-51417.6
Evaluation details
Evaluated model:
GPT-5 (Medium)
Confidence interval:
1402.0–1433.2
Battles:
3,076
$1.25 / $10.00−20%
OpenAI o3Not matched$2.00 / $8.00—
GPT-4.1Not matched$2.00 / $8.00−20%
GPT-4oNot matched$2.50 / $10.00−20%
Qwen3.8 Max1670.6
Evaluation details
Evaluated model:
Qwen3.8-Max
Confidence interval:
1658.4–1682.7
Battles:
3,351
$2.00 / $6.00—Not verified
MiMo V2.6 Pro1622.4
Evaluation details
Evaluated model:
MiMo-V2.6-Pro
Confidence interval:
1615.2–1629.6
Battles:
10,441
$0.435 / $0.87—Not verified

Text prices: USD per 1M tokens (input / output), standard base tier. Image examples show output cost; input may be billed separately. Site discounts come from the current billing configuration. Dates cite official announcements or API release notes, including previews; they are not listing dates on this site.

Leaderboard: Code Arena · web development · Published:

Official Arena data; selected models and scores rounded to one decimal. Higher is better within the same leaderboard and publication date; scores are not percentages or comparable across tasks. Evaluation settings may differ from your API requests. Unmatched versions are left blank.

Source: Arena · License: CC BY 4.0

What is a coding API?

A coding model is a chat model tuned for tool use, long context and multi-step edits. Agent tools (Claude Code, Codex CLI, Cursor, Cline) call it hundreds of times per session, so output price and context window matter more than for a chat box.

How to choose

Autonomous agents, large refactors

Claude Opus 5 / 4.8, GPT-6 Astra. Highest success rate on multi-file tasks; budget for output tokens.

Daily driver

Claude Sonnet 5 / 4.6, GPT-5.3 Codex, GPT-5.5. The default most teams settle on.

Cheap and fast

DeepSeek V4 Flash, Kimi K3, GLM-5, Gemini 3 Flash. Good for completions, tests and boilerplate.

Set it up

Claude Code: ANTHROPIC_BASE_URL=https://api.crazyrouter.com. Codex CLI / Cursor / Cline: base URL https://api.crazyrouter.com/v1. Step-by-step on the integrations pages.

Same request from any agent

Open a model's detail page to copy its API model ID.

cURL
curl https://api.crazyrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"Summarize this PR in three bullets."}]}'

FAQ

Does Claude Code work through Crazyrouter?

Yes. Set ANTHROPIC_BASE_URL=https://api.crazyrouter.com and ANTHROPIC_AUTH_TOKEN to your key; sub-agents and MCP tools follow the same setting.

Does Codex CLI work?

Yes — point the provider base URL in config.toml to https://api.crazyrouter.com/v1 and pick any model in this table.

Which coding model is cheapest?

Claude Haiku 5.5 at $0.10 per 1M input tokens as of the latest sync. For agents, compare output prices — they dominate the bill.

Is prompt caching supported?

For Claude models yes, through the native /v1/messages endpoint; cached input is billed at the cache rate shown on each model page.

Can I use one key across all these tools?

Yes. One Crazyrouter key works in every OpenAI- or Anthropic-compatible tool; usage shows in one billing view.

Guides and comparisons

Podcast

AI Dev Tools: The Crazyrouter Podcast

Short episodes for developers on AI APIs, gateways, cost control and coding tools.

Latest episodes

  • EP196 · Oct 29, 2026 · 6:53

    AI API Security Posture — Turn Controls Into Continuous Evidence

    A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.

  • EP195 · Oct 28, 2026 · 7:21

    AI API Policy Drift — Detect When Production Rules Stop Matching Intent

    A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.

Episodes with written show notes →