MegaBrain Leaderboard

Best AI Models
in MegaBrain

Compare live model rankings by real coding performance. See which models developers choose for planning, debugging, review, and agentic work across 469+ hosted options.

469+models19free

MegaBrain Bench

Cost vs completion rate across the most capable coding models · TerminalBench 2.0

MegaBrain Bench — Top 10 Most Capable Models

#ModelProviderTerminal Bench
1OPGPT-5.5openai
74.2%
2ANClaude Opus 4.7anthropic
70.1%
3ANClaude Opus 4.8anthropic
67.6%
4GOGemini 3.5 Flashgoogle
64.7%
5ANClaude Sonnet 4.6anthropic
55.1%
6MOKimi K2.6moonshot
54.4%
7X-Grok Build 0.1x-ai
50.6%
8ZHGLM 5.1zhipu
49.4%
9MIMiMo-V2.5-Promimo
47.6%
10MIMiniMax M3minimax
47.6%

Top Models by Mode

Code

1OPGPT-5.5
2ANClaude Opus 4.8
3ANClaude Opus 4.7
4GOGemini 3.5 Flash
5ANClaude Sonnet 4.6
6MOKimi K2.6
7X-Grok Build 0.1
8DEDeepSeek R1
9QWQwen3 235B
10MELlama 4 Maverick

Plan

1ANClaude Opus 4.7
2OPGPT-5.5
3ANClaude Opus 4.8
4DEDeepSeek R1
5ANClaude Sonnet 4.6
6GOGemini 3.5 Flash
7QWQwen3 235B
8MOKimi K2.6
9MELlama 4 Maverick
10ZHGLM 5.1

Debug

1ANClaude Sonnet 4.6
2OPGPT-5.5
3ANClaude Opus 4.8
4GOGemini 3.5 Flash
5ANClaude Opus 4.7
6X-Grok Build 0.1
7DEDeepSeek R1
8MIMiMo-V2.5-Pro
9ZHGLM 5.1
10GOGemini 2.5 Flash

Ask

1OPGPT-5.5
2ANClaude Sonnet 4.6
3GOGemini 3.5 Flash
4ANClaude Opus 4.7
5MOKimi K2.6
6GOGemini 2.5 Flash
7ANClaude Haiku 4.5
8MELlama 4 Maverick
9MIMiniMax M3
10QWQwen3 235B

Review

1ANClaude Opus 4.7
2OPGPT-5.5
3ANClaude Opus 4.8
4DEDeepSeek R1
5ANClaude Sonnet 4.6
6GOGemini 3.5 Flash
7X-Grok Build 0.1
8QWQwen3 235B
9MOKimi K2.6
10ZHGLM 5.1

Orchestrator

1ANClaude Opus 4.8
2OPGPT-5.5
3ANClaude Opus 4.7
4ANClaude Sonnet 4.6
5GOGemini 3.5 Flash
6DEDeepSeek R1
7MOKimi K2.6
8X-Grok Build 0.1
9MELlama 4 Maverick
10MIMiMo-V2.5-Pro

Methodology

Models earn their rank from the developers using them, not from a spec sheet. Synthetic benchmarks measure one capability at one moment. This leaderboard measures what developers come back to: real coding work, long planning sessions, debugging, review, and agentic tasks across 500+ models.

Benchmark

TerminalBench 2.0

Modes

Code, Plan, Ask, Debug, Review

Catalog

500+ models

Read the leaderboard like a pro

01

Start with usage

Rankings reflect real token usage by MegaBrain developers, not synthetic benchmarks.

02

Filter by mode

Use Top Models by Mode to see which models lead in Code, Plan, Debug, Ask, and Orchestrator.

03

Open the model page

Each model links to a dedicated page with benchmark scores, pricing, context length, and speed data.

04

Switch in MegaBrain Gateway

All 500+ models are available in MegaBrain. Switch from any model at any time.

AI model FAQ

How is MegaBrain Bench different from other benchmarks?

Most leaderboards score models on synthetic prompts. MegaBrain Bench uses TerminalBench 2.0 — a coding evaluation built around real software engineering tasks: completing functions, fixing bugs, adding tests, refactoring. The score reflects what the model can actually do in an agentic coding loop.

What does the Cost vs Performance chart show?

Each dot is a model. X-axis is TerminalBench 2.0 completion rate (higher = more capable). Y-axis is cost per attempt in dollars (log scale). Models in the bottom-right corner are the best value: high capability, low cost.

Are free models actually free?

Yes. Models marked free have $0 input and $0 output pricing. They are hosted by providers at no charge — typically to drive adoption of a new model family. Availability can change; MegaBrain Auto Free routes across free models and adapts when availability shifts.

How often is pricing updated?

Pricing data is pulled from OpenRouter every 5 minutes. Benchmark scores update when new TerminalBench results are published.

Can I use any of these models through MegaBrain today?

Yes. All 500+ models listed here are available through the MegaBrain Gateway. Sign up, get an API key, and change one line of code.

What is Auto Free?

Auto Free (mb-auto/free) rotates across the best free models — ideal for experimentation. Pick any other model in the list for a specific one.

All 500+ models available in MegaBrain

Switch from any model at any time. One API key, one endpoint, no code changes.

Code for free

All Models

Browse and compare all 469 available models

Auto Free

mb-auto/free

256k ctxin Freeout Free

StepFun: Step 3.7 Flash (free)

stepfun/step-3.7-flash:free

262k ctxin Freeout Free

Anthropic: Claude Opus 5.5

anthropic/claude-opus-5.5

1M ctxin $4.40/Mout $22/Mno training

Stealth: Claude Opus 4.8 (20% off)

stealth/claude-opus-4.8

1M ctxin $4.40/Mout $22/M

Stealth: Claude Opus 4.7 (20% off)

stealth/claude-opus-4.7

1M ctxin $4.40/Mout $22/M

Stealth: Claude Sonnet 4.6 (20% off)

stealth/claude-sonnet-4.6

1M ctxin $2.64/Mout $13.20/M

Stealth: Claude Opus 4.6 (20% off)

stealth/claude-opus-4.6

1M ctxin $4.40/Mout $22/M

MoonshotAI: Kimi K3

moonshotai/kimi-k3

1M ctxin $0.30/Mout $23/Mno training

Anthropic: Claude Sonnet 5.5

anthropic/claude-sonnet-5.5

1M ctxin $2.20/Mout $11/Mno training

OpenAI: GPT-5.5

openai/gpt-5.5

1M ctxin $5.50/Mout $33/Mno training

Google: Gemini 3.1 Pro Preview

google/gemini-3.1-pro-preview

1M ctxin $2.20/Mout $13.20/Mno training

MiniMax: MiniMax M3

minimax/minimax-m3

1M ctxin $0.60/Mout $2.40/Mno training

Qwen: Qwen3.7 Plus (20% off)

qwen/qwen3.7-plus

1M ctxin $0.64/Mout $2.56/Mno training

Stealth: Qwen3.6 Plus (50% off)

stealth/qwen3.6-plus

1M ctxin $0.28/Mout $1.65/M

Z.ai: GLM 5.2

z-ai/glm-5.2

1M ctxin $2.80/Mout $8.80/Mno training

OpenAI: GPT-6.1 Terra Pro

openai/gpt-6.1-terra-pro

1M ctxin $1.10/Mout $5.50/Mno training

OpenAI: GPT-6.1 Terra Pro (batch)

openai/gpt-6.1-terra-pro:batch

1M ctxin $0.55/Mout $2.75/Mno training

OpenAI: GPT-6.1 Terra

openai/gpt-6.1-terra

1M ctxin $1.10/Mout $5.50/Mno training

OpenAI: GPT-6.1 Terra (batch)

openai/gpt-6.1-terra:batch

1M ctxin $0.55/Mout $2.75/Mno training

MoonshotAI: Kimi K3.1 Pro

moonshotai/kimi-k3.1-pro

1M ctxin $4/Mout $20/Mno training

Recursive: Flint (free)

recursive/flint-v1.0:free

262k ctxin Freeout Free

MiniMax: MiniMax M3.1 Flash

minimax/minimax-m3.1-flash

1M ctxin $0.30/Mout $1.20/Mno training

DeepSeek: DeepSeek V4.1 Flash 1017

deepseek/deepseek-v4.1-flash-1017

1M ctxin $0.60/Mout $2.40/Mno training

Elorian: Glimpse

elorian/glimpse

262k ctxin $0.66/Mout $3.30/Mno training

XingChen: Xing4.0 29B A4B (free)

xingchen-agi/xing4.0-29b-a4b:free

262k ctxin Freeout Free

Reflection: Beam 1.0 501B A23B

reflection/beam-1.0-501b-a23b

1M ctxin $0.28/Mout $1.10/Mno training

Inception: Mercury 3

inception/mercury-3

1M ctxin $0.11/Mout $0.39/Mno training

Moondream: Moondream 3 Preview

moondream/moondream3-preview

32k ctxin $0.33/Mout $2.75/Mno training

Moondream: Moondream 3.1

moondream/moondream3.1-9b-a2b

32k ctxin $0.33/Mout $2.75/Mno training

Meta: Muse Spark Open

meta/muse-spark-open

1M ctxin $1.38/Mout $4.67/Mno training

NVIDIA: Nemotron 3.5 Super VL

nvidia/nemotron-3.5-super-vl

1M ctxin $0.17/Mout $0.55/Mno training

NVIDIA: Nemotron 3.5 Super VL (free)

nvidia/nemotron-3.5-super-vl:free

1M ctxin Freeout Free

Pareto 26.10

unbiased/pareto-26.10

1M ctxin $0.88/Mout $3.52/Mno training

Pareto Latest

~unbiased/pareto-latest

1M ctxin $0.88/Mout $3.52/Mno training

Pareto 26.9

unbiased/pareto-26.9

262k ctxin $2.75/Mout $8.25/Mno training

LiquidAI: LFM2.5-24B-A2B

liquid/lfm-2.5-24b-a2b

128k ctxin $0.06/Mout $0.77/Mno training

Google: Gemini 4 Argon

google/gemini-4-argon

1M ctxin $2.20/Mout $11/Mno training

Google: Gemini 4 Argon (batch)

google/gemini-4-argon:batch

1M ctxin $1.10/Mout $5.50/Mno training

ScaleDown: Summarize

scaledown/summarize

1M ctxin $0.04/Mout Freeno training

ScaleDown: Extract

scaledown/extract

1M ctxin $0.04/Mout Freeno training

Meta: Muse Wonder

meta/muse-wonder

1M ctxin $4.40/Mout $22/Mno training

StepFun: Step 5 Preview

stepfun/step-5-preview

1M ctxin $1.10/Mout $2.97/Mno training

Anthropic: Claude Haiku 5.5

anthropic/claude-haiku-5.5

1M ctxin $0.11/Mout $0.55/Mno training

Anthropic: Claude Haiku 5.5 (batch)

anthropic/claude-haiku-5.5:batch

1M ctxin $0.06/Mout $0.28/Mno training

Google: Nano Banana 2.1

google/gemini-nano-banana-2.1

66k ctxin $1.65/Mout $8.25/Mno training

Mistral: Mistral Large 4

mistralai/mistral-large-4-0

1M ctxin $1.50/Mout $4.60/Mno training

inclusionAI: Ling 3.1 Flash

inclusionai/ling-3.1-flash

262k ctxin Freeout Freeno training

OpenAI: GPT-6.1 Sol Pro

openai/gpt-6.1-sol-pro

1M ctxin $2.20/Mout $11/Mno training

OpenAI: GPT-6.1 Sol Pro (batch)

openai/gpt-6.1-sol-pro:batch

1M ctxin $1.10/Mout $5.50/Mno training

OpenAI: GPT-6.1 Sol

openai/gpt-6.1-sol

1M ctxin $2.20/Mout $11/Mno training

OpenAI: GPT-6.1 Sol (batch)

openai/gpt-6.1-sol:batch

1M ctxin $1.10/Mout $5.50/Mno training

Anthropic: Claude Sonnet 5.5 (batch)

anthropic/claude-sonnet-5.5:batch

1M ctxin $1.10/Mout $5.50/Mno training

TypeSafe: Jev Router

typesafe/jev-router

1M ctxin $-1000000000.00/Bout $-1000000000.00/Bno training

Perceptron: Perceptron Mk1.5

perceptron/perceptron-mk1.5

37k ctxin $0.17/Mout $1.65/Mno training

Fireworks: Ember-1

fireworks/ember-1

1M ctxin $3.30/Mout $16.50/Mno training

Z.ai: GLM 5.3 Prime

z-ai/glm-5.3-prime

1M ctxin $5.60/Mout $17.60/Mno training

Qwen: Qwen3.8 Max Prime

qwen/qwen3.8-max-prime

1M ctxin $8/Mout $24/Mno training

AionLabs: Aion 3.5 Mini

aion-labs/aion-3.5-mini

262k ctxin $0.77/Mout $1.54/Mno training

AionLabs: Aion 3.5

aion-labs/aion-3.5

262k ctxin $3.30/Mout $6.60/Mno training

Upstage: Solar Mini 4

upstage/solar-mini4

524k ctxin $0.11/Mout $0.44/Mno training