Agents for serious shipping
Code By AI — one key for Claude, Codex and Gemini
No credit card required · pay per token
At a glance
Three reasons to switch
Same terminal, one key, lower spend — that is the entire migration.
1API key
One key and one balance cover Claude, Gemini, and Codex — no three sign-ups, no three payment methods.
3mainstream agents
Claude Code, Codex CLI, and Gemini CLI all point their base URL here, so switching models never means switching tools.
1/6of the official price
Billed per 1M tokens at the rate printed on every model card — no subscription, no minimum spend.
Works with the agents you already use
One key, one endpoint: keep the terminal you already like.
One key · 4 protocols
Bring the SDK you already use
The same key and the same balance answer four wire formats. No adapter, no gateway rewrite, no second vendor account.
Anthropic Messages
Claude modelsPOST /api/agent/v1/messagesPoint ANTHROPIC_BASE_URL here and Claude Code, the Anthropic SDK and Cline keep their native protocol — streaming, tool calls and token usage unchanged.
Setup guide →OpenAI Responses
GPT + Claude modelsPOST /api/agent/v1/responsesThe wire_api = "responses" target for Codex CLI. Reasoning items, tool calls and usage frames pass through untouched.
Setup guide →OpenAI Chat Completions
GPT + Claude modelsPOST /api/agent/v1/chat/completionsThe endpoint most OpenAI clients already speak: OpenCode, Pi, and anything built on the OpenAI SDK.
Setup guide →Gemini generateContent
Gemini modelsPOST /api/agent/v1beta/models/{model}:generateContentGemini CLI and the Google SDK send :generateContent and :streamGenerateContent here.
Setup guide →Claude models answer on the Messages endpoint and on both OpenAI-format endpoints — a claude-* model sent to /v1/chat/completions or /v1/responses is forwarded to the Claude channel and billed at Claude prices. GPT and Codex models answer on the OpenAI endpoints, Gemini models on the Gemini endpoint. We forward the request as-is and never translate between protocols, so only a model that belongs to neither family gets a clear 400 instead of a silent substitution.
One-command setup
From key to working agent in one command
Paste one line into a terminal. It asks for your key, writes each tool's own config, backs up every file it touches, and checks the key. Run it again to add tools; --uninstall undoes what it added.
curl -fsSL https://www.codebyai.net/setup.sh | sh -s -- --claudeTransparent Pricing
AI Model Token Pricing Comparison
Compare official token pricing with Code By AI's significantly lower rates. Our prices start at 1/6th of the official rates, making advanced AI development more accessible.
Prices per 1M tokens in USD. Official prices are the vendors' list prices.
Input from $0.08 per 1M tokens
Volume Discount
Top up more, save up to 15%
Automatic tiered discount applied at checkout — the higher the top-up, the bigger the savings.
−3%
120+ quota
−6%
300+ quota
−10%
600+ quota
- BEST VALUE
−15%
1000+ quota
6 quota units = $1 before discounts. The discount reduces the payment, not the quota; payment processing fees may apply.
GPT IMAGE 2.5
AI Image Generation
Create stunning images from text descriptions with GPT Image 2.5. From concept art to product mockups, bring your ideas to life.

Generate anything you can imagine
GPT Image 2.5 delivers photorealistic quality with precise text rendering and style control. Available through your existing API key.
- Text-to-image and image-to-image generation
- Multiple output sizes from 1K to 4K resolution
- Seamless integration with your CodeByAI account
What Developers Are Saying
“Switching between agents for different tasks is a game changer. Claude for architecture, Gemini for quick fixes.”
“The unified context window is incredible. It actually understands how my whole repo fits together.”
“I love how it handles the boring stuff like refactoring and tests automatically. Huge time saver.”
“Being able to access all these top-tier models at this price point is unbelievable value.”
“The 'natural language' commands are spot on. I just ask it to fix a bug and it does it.”
“Professional server maintenance means I never worry about downtime. Rock solid performance.”
Frequently Asked Questions
Find answers to common questions about Code By AI and get started with AI-powered coding assistance.
Still have questions?
Can't find the answer you're looking for? Our team is here to help.
Contact our support team