About Code By AI
Use Claude Code, Codex and Gemini CLI with one API key and one endpoint. Pay per token from 1/6 of official prices across 21 models, no subscription.
Code By AI is a unified API gateway for AI coding agents. Developers get one key and one prepaid balance that works across Claude, GPT/Codex and Gemini models, and keep the tools they already use (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cline, Trae, Qwen Code and more) by pointing them at Code By AI's base URL. It supports Anthropic Messages, OpenAI Responses, OpenAI Chat Completions and Google Gemini formats with the same key. Pricing is pay-as-you-go per token, from 1/6 of official price, with no subscription and no minimum spend. Account creation is free; API calls require a top-up.