api.foo Docs
api.foo is an LLM API aggregator: create one API key in the console and call Claude, GPT, Gemini, DeepSeek and other models through a single endpoint. OpenAI, Claude (Anthropic) and Gemini request formats are all supported.
Endpoints
| Route | Base URL | Best for |
|---|---|---|
| Default | https://api.foo |
Everyday use. Works with or without /v1 |
| Direct | https://dc.api.foo |
Long-running tasks and large requests (no 100-second timeout). API only |
Get started in three steps
- Sign up at api.foo, open Console → API Keys and click Create API Key.
- Top up in Console → Wallet and pay as you go. You can pay by card (Stripe), Alipay, WeChat Pay or USDT on BNB Smart Chain (from ¥40). Balances and prices are in Chinese yuan (CNY, ¥).
- Paste the base URL and key into your tool — see the guides below.
Model IDs and prices are listed on the Models page.
All guides
Get started
| Goal | Guide |
|---|---|
| Install Claude Code on macOS, Windows or Linux | Install Claude Code |
| Point Claude Code at a custom API or base URL | Claude Code with a custom API |
| Install Codex CLI and set up config.toml | Install Codex CLI |
| Install Gemini CLI or use a custom endpoint | Install Gemini CLI |
| Switch Claude Code and Codex providers in one click | CC Switch guide |
| Add a custom API provider in Cherry Studio | Cherry Studio guide |
| Use your own API key or base URL in Cursor | Cursor API key setup |
| Set up Cline in VS Code or the Cline CLI | Cline setup guide |
Pricing & API keys
| Goal | Guide |
|---|---|
| Understand what Claude Code costs | Claude Code pricing |
| Compare Claude API prices and estimate costs | Claude API pricing |
| Compare OpenAI API prices | OpenAI API pricing |
| Check DeepSeek API prices and off-peak discounts | DeepSeek API pricing |
| Get started with the Grok API | Grok API guide |
| Check Kimi K3 prices, API keys and rate limits | Kimi API guide |
| Check GLM-5.3 prices, free models and the Coding Plan | GLM API guide |
| Check MiniMax-M3 prices and the M2.7 retirement | MiniMax API guide |
| Generate images with Nano Banana | Nano Banana API |
| Generate images with GPT Image 2 | GPT Image 2 API |
| Get an Anthropic API key | Get a Claude API key |
| Get an OpenAI API key | Get an OpenAI API key |
| Choose between Claude Code, Codex, Cursor and OpenCode | Claude Code vs Codex vs Cursor vs OpenCode |
Concepts & errors
| Goal | Guide |
|---|---|
| Learn what "OpenAI-compatible" really means | OpenAI-compatible APIs explained |
| Compare alternatives to the OpenAI API | OpenAI API alternatives |
| Find LLM APIs with a real free tier | Free LLM APIs |
| Fix 401, 403, 429 and 529 errors | LLM API errors explained |
Found a mistake? Email [email protected].