Code By AI

Code By AI

One API key for Claude, Codex, and Gemini, billed by token, with prices the official website states are roughly 1/6 of the official API.

paid
Last Updated 11/2/2026

About Code By AI

Code By AI is an API aggregation service for AI coding models: with just one API key and one balance, users can use the Claude, GPT, and Gemini model families in terminal agents such as Claude Code, Codex CLI, and Gemini CLI, as well as in desktop IDEs. All three channels share a single base URL, so switching models does not require changing tools. Billing is prepaid by token top-up; the official website states the rates are roughly 1/6 of the official API full prices (about 1/7.5 for Claude Code and Codex, and about 1/10 for Gemini), with no subscription and no minimum spend, and the balance is deducted by usage without resetting at the end of the month. Registration requires no card binding, but using the API requires topping up first. The website also provides configuration documentation for multiple agents, including Claude Code, Codex, Gemini CLI, Cline, Trae, and Qwen Code.

Best for

Developers who write code with multiple model families, including Claude, GPT, and Gemini
Users who work with AI coding agents in the terminal, such as Claude Code, Codex CLI, and Gemini CLI
Individuals or teams who want to reduce AI coding API costs without being locked into subscription plans

Best use cases

Switching between models from different vendors in terminal agents such as Claude Code, Codex CLI, and Gemini CLI

Accessing multiple model families through a unified endpoint in desktop IDEs

Workloads with fluctuating usage where you prefer to pay by actual token consumption rather than a fixed subscription

Compare before choosing

According to the official pricing comparison page: subscription plans charge a fixed monthly fee for capped usage, and once the cap is reached you can no longer use the service, with unused quota not carried over; vendor official APIs bill at full token prices with no cap but higher costs under heavy use; Code By AI bills by token with no monthly commitment

According to the official pricing page: for an example workload of 20 million input tokens and 2 million output tokens per month, gpt-5.6-terra costs $80.00 at the official full price versus $10.67 with Code By AI, a saving of 87%

Features

One key for three model families

One key and one balance cover Claude, GPT, and Gemini, with no need to register with three providers or bind three payment methods.

Unified access endpoint

Claude, GPT, and Gemini share a single base URL in terminal agents and desktop IDEs, so switching models does not require changing tools.

Token-based billing

Billed per million tokens, with rates printed on each model card; no subscription and no minimum spend.

Multi-agent setup documentation

Provides configuration guides for agents such as Claude Code, Codex, Gemini CLI, Cline, Trae, and Qwen Code.

Pros

  • One API key and one balance give access to all three channels: Claude, GPT, and Gemini
  • The official website states token-based billing at roughly 1/6 of the official API full prices, with no subscription and no minimum spend
  • The balance is deducted by usage and does not reset at the end of the month
  • Provides integration documentation for multiple agents, including Claude Code, Codex, Gemini CLI, Cline, Trae, and Qwen Code

FAQ

No. A single API key covers all three channels—Claude, Codex, and Gemini—so there is no need to register separately or bind three different payment methods.
There are no monthly plans or usage quotas. After topping up your balance, you are billed for the tokens you actually use, and the balance does not reset at the end of the month.
Yes. A single API key covers all three channels, each with its own endpoint and interface format. Simply point the corresponding client (Claude Code, Codex CLI, or Gemini CLI) to Code By AI to switch.

Tool Information

DeveloperCode By AI
Release Date11/2/2026
Pricingpaid