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.
18 more models in the table below
Tools these models power
Coding & agentic models, by price
| Model | Arena score | Official price | Site discount | Release date |
|---|---|---|---|---|
| Kimi K3.1 Pro | 1683.1Evaluation details
| $2.00 / $10.00 | — | |
| Kimi K3.1 Pro Highspeed | Not matched | $4.00 / $20.00 | — | |
| Claude Haiku 5.5 | 1595.1Evaluation details
| $0.10 / $0.50 | — | |
| GPT-6.1 Sol | 1744.4Evaluation details
| $2.00 / $10.00 | — | |
| Claude Sonnet 5.5 | 1772.4Evaluation details
| $2.00 / $10.00 | — | |
| GPT-6 Astra | 1764.3Evaluation details
| $10.00 / $50.00 | −35% | |
| Claude Opus 5 | 1656.6Evaluation details
| $5.00 / $25.00 | −35% | |
| Kimi K3 | 1658.8Evaluation details
| $3.00 / $15.00 | — | |
| GPT-5.6 Sol | 1615.7Evaluation details
| $4.00 / $20.00 | −35% | |
| Claude Sonnet 5 | 1539.6Evaluation details
| $2.00 / $10.00 | −35% | |
| Claude Fable 5 | 1625.9Evaluation details
| $10.00 / $50.00 | −35% | |
| MiniMax M3 | 1484.2Evaluation details
| $0.30 / $1.20 | — | |
| Claude Opus 4.8 | 1536.2Evaluation details
| $5.00 / $25.00 | −35% | |
| DeepSeek V4 Flash | 1582.0Evaluation details
| $0.30 / $1.20 | — | |
| GPT-5.5 | 1455.4Evaluation details
| $5.00 / $30.00 | −35% | |
| DeepSeek V4 Pro | 1448.7Evaluation details
| $1.32 / $3.96 | — | |
| Claude Opus 4.7 | 1555.5Evaluation details
| $5.00 / $25.00 | −35% | |
| GPT-5.4 | 1400.3Evaluation details
| $2.50 / $15.00 | −20% | |
| GPT-5.3 Codex | Not matched | $1.75 / $14.00 | −20% | |
| Gemini 3.1 Pro | Not matched | $2.00 / $12.00 | −45% | |
| Claude Sonnet 4.6 | 1522.0Evaluation details
| $3.00 / $15.00 | −35% | |
| GLM-5 | 1434.8Evaluation details
| $1.00 / $3.20 | — | |
| Gemini 3 Flash | 1440.3Evaluation details
| $0.50 / $3.00 | −45% | |
| GPT-5 Codex | Not matched | $1.25 / $10.00 | −20% | |
| GPT-5 | 1417.6Evaluation details
| $1.25 / $10.00 | −20% | |
| OpenAI o3 | Not matched | $2.00 / $8.00 | — | |
| GPT-4.1 | Not matched | $2.00 / $8.00 | −20% | |
| GPT-4o | Not matched | $2.50 / $10.00 | −20% | |
| Qwen3.8 Max | 1670.6Evaluation details
| $2.00 / $6.00 | — | Not verified |
| MiMo V2.6 Pro | 1622.4Evaluation details
| $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
Claude Opus 5 / 4.8, GPT-6 Astra. Highest success rate on multi-file tasks; budget for output tokens.
Claude Sonnet 5 / 4.6, GPT-5.3 Codex, GPT-5.5. The default most teams settle on.
DeepSeek V4 Flash, Kimi K3, GLM-5, Gemini 3 Flash. Good for completions, tests and boilerplate.
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 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
TutorialCodex CLI Installation Guide: Setup OpenAI's AI Coding Agent in Minutes
Complete guide to installing and configuring OpenAI Codex CLI, the AI-powered terminal coding agent. Step-by-step setup for macOS, Linux, and Windows with troubleshooting tips.
GuideAI Coding Tools ROI Calculator: Claude Code vs Codex CLI vs Gemini CLI Cost Analysis 2026
A comprehensive ROI framework for evaluating AI coding tools in 2026. Compare Claude Code, Codex CLI, and Gemini CLI on cost per task, productivity gains, and total cost of ownersh
ComparisonClaude Code vs Codex vs Gemini CLI: Which AI Coding Tool Wins in 2026?
An in-depth comparison of the three leading AI coding assistants — Claude Code, OpenAI Codex, and Gemini CLI. We compare features, pricing, performance, and show you how to use all
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.








