One key workflow, many clients
Claude Code, Codex CLI, Gemini CLI and OpenAI-compatible SDKs can all connect through QuotaAPI.
Use one API Key workflow to access Claude, GPT, Gemini, DeepSeek and compatible clients while managing balance, usage, request records and model groups in a single console.
Create an API Key in the QuotaAPI console, then choose the Base URL for your client. Client setting names vary, but authentication uses your QuotaAPI API Key.
ANTHROPIC_BASE_URL=https://quotarouter.ai for the Anthropic Messages protocol.OPENAI_BASE_URL=https://quotarouter.ai/v1 for /v1/chat/completions and /v1/responses.GEMINI_BASE_URL=https://quotarouter.ai for /v1beta/models and Gemini generateContent.Create an API Key, choose a model group and send your first test request.
Claude CodeConfigure the Anthropic Base URL and authentication variables.
Codex CLIUse the OpenAI-compatible API for GPT / Codex model groups.
Gemini CLIConfigure Gemini v1beta and verify the model list.
API Key ManagementUnderstand key creation, groups, permissions and security practices.
Balance, Billing & UsageReview billing behavior, request records and insufficient-balance handling.
Images & EmbeddingsSee OpenAI-compatible image generation, image edit and embedding examples.
| Use case | Base URL | Common endpoints |
|---|---|---|
| OpenAI-compatible SDK / Codex CLI | https://quotarouter.ai/v1 | /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/images/generations, /v1/images/edits, /v1/models |
| Claude Code / Anthropic Messages | https://quotarouter.ai | /v1/messages, /v1/models |
| Gemini CLI / Gemini v1beta | https://quotarouter.ai | /v1beta/models, /v1beta/models/{model}:generateContent |
TIP
Examples use YOUR_QUOTAAPI_KEY as a placeholder. Do not put real API Keys in public repositories, logs or screenshots.