What is CodaAPI
An LLM API gateway. One key and one address give you models from multiple providers, billed from your balance by actual usage.
What CodaAPI is
CodaAPI is an LLM API gateway. Sign up for one CodaAPI account and create an API key, and the same address and key work for models from OpenAI, Anthropic (Claude), Google (Gemini), xAI (Grok) and other providers. You don't need to open and fund an account with each one.
- Official API formats: the gateway serves the OpenAI-compatible format, the Anthropic Messages format and the native Gemini format. Code that already uses these official SDKs or tools usually only needs a new Base URL and key.
- One account to pay: every model is billed from the same account balance. The model, token counts and charge of each request are in the console's usage logs.
- Coding tools work directly: tools such as Claude Code and Codex point at CodaAPI through their own configuration, and the console can import a key into CC Switch with one click.
- Console built on an open-source project: the console is built on the open-source project New API. Keys, wallet, usage logs and Model Square are all there.
Which models are available and what each costs changes with the back-end configuration, so Model Square is always the source of truth. The examples in this documentation just pick a few models that are available right now.
How a request flows
Your app / Claude Code / Codex / other tools
│ Base URL: https://codaapi.com/v1
│ Authorization: Bearer sk-…
▼
CodaAPI gateway
├─ Validate the key: is it valid, not expired, enough balance, allowed to use this model
├─ Select a channel: pick an available upstream channel by the key's group and the requested model
└─ Record usage: when the request ends, settle the charge on actual usage and write it to the usage log
▼
Model providers (OpenAI, Anthropic, Google, xAI, etc.)
A few points:
- The group decides which models you can use, which kind of channel is used and which multiplier applies. Each key belongs to one group, and the same model can cost different amounts in different groups. You can view prices by group in Model Square. See Groups for each group, and Pricing and multipliers for the pricing rules.
- A model may have several channels. The gateway chooses among the available ones. Whether it retries on another channel when one fails is a platform setting, so your client should still handle failures and timeouts itself.
- The gateway doesn't change what your request asks for. The request is forwarded to the provider in the protocol you chose, and model capabilities (context length, tool calling, multimodal input and so on) depend on the model itself.
Data and privacy
Chat and the other synchronous endpoints (chat, completions, Responses, Claude Messages, Gemini, embeddings, and the synchronous image endpoints) don't store request or response content. Only the usage information needed for billing and troubleshooting is recorded, such as the key used, model, token counts, charge and duration. Asynchronous tasks such as video generation and Midjourney drawing store the submitted content and the task result so you can check their progress. The full details are in the console's Privacy Policy.
Requests are forwarded to the provider of the model you pick. How that provider handles data is governed by its own terms.
Next steps
When you're ready, go to the Quickstart: get the three things you need, an API key, a base URL and a model name, and send your first request.