Text models
through one API
Claude, GPT, Gemini, Grok, Kimi, GLM, DeepSeek and more through the OpenAI-compatible MegaBrain API. The same key and balance also run image and video generation.
Frontier models
The flagships of Claude, GPT, Gemini, Grok and other families that are available right now. Prices per 1M tokens.
Claude Fable 5.2
Anthropic
Claude Fable 5.2 is Anthropic's most capable model for the most demanding technical work, with gains over Fable 5.1 in coding, reasoning, and vision. In prerelease testing it completed otherwise-infeasible...
anthropic/claude-fable-5.2Claude Opus 5.5
Anthropic
Claude Opus 5.5 is Anthropic's flagship model for demanding reasoning, coding, and long-horizon agentic work, succeeding Claude Opus 5. It is particularly strong at multi-step changes in large codebases, code...
anthropic/claude-opus-5.5GPT-6.1 Sol
OpenAI
GPT-6.1 Sol is an upgrade to GPT-6 Sol from OpenAI, positioned below the flagship GPT-6 Astra in the GPT-6 series. It is suited for agentic coding, computer use, document-heavy professional...
openai/gpt-6.1-solGPT-6 Astra
OpenAI
GPT-6 Astra is OpenAI's flagship model for demanding end-to-end work. It is suited for advanced analysis, software engineering, deep research, scientific work, and document creation, with particular strengths in long-horizon...
openai/gpt-6-astraGrok 4.7
SpaceXAI
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...
x-ai/grok-4.7Gemini 3.8 Flash
Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning.
google/gemini-3.8-flashClaude Sonnet 5.5
Anthropic
Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade. It is especially strong at building features, fixing bugs, and producing...
anthropic/claude-sonnet-5.5Kimi K3.1 Pro
Moonshot AI
Kimi K3.1 Pro is Moonshot AI's flagship open-weight multimodal reasoning model and a post-trained successor to Kimi K3, with a 1M-token context window. It is built for long-horizon coding, 3D...
moonshotai/kimi-k3.1-proGPT-6.1 Terra
OpenAI
GPT-6.1 Terra is the mid-tier model in OpenAI's GPT-6.1 series, priced below GPT-6.1 Sol. It is suited for everyday agentic, coding, and writing work, is particularly strong at understanding screenshots...
openai/gpt-6.1-terraGLM 5.3
Z.ai
GLM-5.3 is a large-scale reasoning model from Z.ai, built for complex software engineering and long-horizon agent tasks. It supports text input and output with a 1M-token context window, and improves...
z-ai/glm-5.3DeepSeek V4 Pro 0423
DeepSeek
DeepSeek V4 Pro is a large-scale Mixture-of-Experts model from DeepSeek with 1.6T total parameters and 49B activated parameters, supporting a 1M-token context window. It is designed for advanced reasoning, coding,...
deepseek/deepseek-v4-proQwen3.8 Max (0902)
Qwen
Qwen3.8 Max 0902 is an updated snapshot of Qwen3.8 Max from Alibaba's Qwen team. It is a 2.4-trillion-parameter mixture-of-experts model that accepts text, image, and video input and returns text,...
qwen/qwen3.8-max-0902Questions and answers
How do I connect?
Create a free account, make an API key in your dashboard and set the base URL to https://getmegabrain.com/api/gateway/v1 in any OpenAI client: the official SDKs, LangChain, Cursor, Continue. Pass the model id from its page in the model field, for example anthropic/claude-opus-5.5.
How does billing work?
You pay as you go from a prepaid USD balance. Each request is charged for the tokens it actually used: input and output separately, at the per-1M-token price shown on the model page. No subscription is needed.
Are there free models?
Yes. Models marked "free" cost nothing. They are offered by the labs themselves, so availability can change. The mb-auto/free route picks an available free model for you.
Is it the same key for images and video?
Yes. One key and one balance cover text models, image generation and video generation.
Every model, one key
Switch between models by changing one line of code. Pay as you go from a prepaid USD balance.
Get started freeAll text models
Compare 115 models by price, context and capabilities
Claude Fable 5.2
Anthropic
anthropic/claude-fable-5.2
Claude Opus 5.5
Anthropic
anthropic/claude-opus-5.5
GPT-6.1 Sol
OpenAI
openai/gpt-6.1-sol
GPT-6 Astra
OpenAI
openai/gpt-6-astra
Grok 4.7
SpaceXAI
x-ai/grok-4.7
Gemini 3.8 Flash
google/gemini-3.8-flash
Claude Sonnet 5.5
Anthropic
anthropic/claude-sonnet-5.5
Kimi K3.1 Pro
Moonshot AI
moonshotai/kimi-k3.1-pro
GPT-6.1 Terra
OpenAI
openai/gpt-6.1-terra
GLM 5.3
Z.ai
z-ai/glm-5.3
DeepSeek V4 Pro 0423
DeepSeek
deepseek/deepseek-v4-pro
Qwen3.8 Max (0902)
Qwen
qwen/qwen3.8-max-0902
MiniMax M3.1 Flash
MiniMax
minimax/minimax-m3.1-flash
Inkling 2 Small (free)
thinkingmachines
thinkingmachines/inkling-2-small:free
LFM3-1.7B (free)
liquid
liquid/lfm-3-1.7b:free
Flint (free)
recursive
recursive/flint-v1.0:free
Xing4.0 29B A4B (free)
xingchen-agi
xingchen-agi/xing4.0-29b-a4b:free
Nemotron 3.5 Super VL (free)
NVIDIA
nvidia/nemotron-3.5-super-vl:free
Claude Haiku 5.5
Anthropic
anthropic/claude-haiku-5.5
Mistral Large 4
Mistral
mistralai/mistral-large-4-0
GLM 5.3 Prime
Z.ai
z-ai/glm-5.3-prime
GPT-6 Luna
OpenAI
openai/gpt-6-luna
GPT-6 Sol
OpenAI
openai/gpt-6-sol
MiMo-V2.6-Pro
Xiaomi
xiaomi/mimo-v2.6-pro
DeepSeek V4.1 Flash
DeepSeek
deepseek/deepseek-v4.1-flash
Claude Fable 5.1
Anthropic
anthropic/claude-fable-5.1
Qwen3.8 Flash
Qwen
qwen/qwen3.8-flash
GLM 5.3 Flash
Z.ai
z-ai/glm-5.3-flash
Dots3-Note Preview (free)
dots-studio
dots-studio/dots-3-note-preview:free
Gemini 3.7 Flash
google/gemini-3.7-flash
Grok 4.6
SpaceXAI
x-ai/grok-4.6
LFM2.5-2.6B (free)
liquid
liquid/lfm-2.5-2.6b:free
Nemotron 3.5 Lightning (free)
NVIDIA
nvidia/nemotron-3.5-lightning:free
Claude Opus 5
Anthropic
anthropic/claude-opus-5
Gemini 3.6 Flash
google/gemini-3.6-flash
Kimi K3
Moonshot AI
moonshotai/kimi-k3
GPT-5.6 Luna
OpenAI
openai/gpt-5.6-luna
GPT-5.6 Terra
OpenAI
openai/gpt-5.6-terra
GPT-5.6 Sol
OpenAI
openai/gpt-5.6-sol
Grok 4.5
SpaceXAI
x-ai/grok-4.5
Claude Sonnet 5
Anthropic
anthropic/claude-sonnet-5
North Mini Code (free)
cohere
cohere/north-mini-code:free
GLM 5.2
Z.ai
z-ai/glm-5.2
Kimi K2.7 Code
Moonshot AI
moonshotai/kimi-k2.7-code
Claude Fable 5
Anthropic
anthropic/claude-fable-5
Nemotron 3 Ultra (free)
NVIDIA
nvidia/nemotron-3-ultra-550b-a55b:free
Qwen3.7 Plus (20% off)
Qwen
qwen/qwen3.7-plus
MiniMax M3
MiniMax
minimax/minimax-m3
Claude Opus 4.8
Anthropic
anthropic/claude-opus-4.8
Grok Build 0.1
SpaceXAI
x-ai/grok-build-0.1
Gemini 3.5 Flash
google/gemini-3.5-flash
Gemini 3.1 Flash Lite
google/gemini-3.1-flash-lite
Grok 4.3
SpaceXAI
x-ai/grok-4.3
Nemotron 3 Nano Omni (free)
NVIDIA
nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free
GPT-5.5 Pro
OpenAI
openai/gpt-5.5-pro
GPT-5.5
OpenAI
openai/gpt-5.5
DeepSeek V4 Flash 0423
DeepSeek
deepseek/deepseek-v4-flash
GPT-5.4 Image 2
OpenAI
openai/gpt-5.4-image-2
Claude Opus 4.7
Anthropic
anthropic/claude-opus-4.7
GLM 5.1
Z.ai
z-ai/glm-5.1