Skip to content

Making LLM access a little simpler

There are more and more models, and each provider has its own API, keys and billing. CodaAPI brings them to one address: one API key, one set of protocols you already know, one balance.

What we do

One entry point

OpenAI, Claude, Gemini, Grok and other models all sit under the same Base URL. To switch models, change the model field.

Native protocols

We do not invent a new API. The official OpenAI, Anthropic and Gemini SDKs, and tools built on them, work as they are.

Pay as you go

You pay for what you use. Chat models price input and output separately, image and similar models are billed per image or per request, and prices are public in Models.

How we keep service stable

Upstream services will sometimes be unstable. We give each model more than one route.

Multi-route scheduling

The same model can be connected through several routes at once, such as the official API and cloud providers. Requests are distributed across the available routes by priority and weight.

Scheduled route checks

Every route is tested on a schedule. A route with an invalid key or rejected authentication, or one that responds too slowly in the test, is disabled automatically and stops receiving requests.

Retry and failover

When an upstream rate-limits a request or returns a server error (such as 429, 500, 502 or 503), the request is retried automatically, and a route is selected again by priority for the retry. Requests that are invalid themselves (such as 400) and upstream gateway timeouts (504) are not retried. You only see an error if the retry fails too.

Privacy commitments

  • We do not use your request content to train models.
  • We do not store the input or output of chat requests. We do record the usage needed for billing and troubleshooting, such as the API key used, the model, token counts, the amount charged, the duration and the route taken. When a request fails, the error message is recorded as well.
  • Asynchronous generation tasks such as video and drawing keep a task record, which includes the prompt you submitted and the task result (such as the result address), so that you can query progress and results.
  • Requests are forwarded to the provider of the model you choose, and how that provider handles data is governed by its own terms.
  • The connection between you and CodaAPI is encrypted with HTTPS.

Read the privacy policy

Support and contact

If you want to evaluate a setup before integrating, or run into call errors, quota and billing questions, or model compatibility problems after you go live, contact us directly.

QR code for CodaAPI WeCom support
WeCom support Scan with WeChat to add

Open source and source code

The CodaAPI console is built on the open-source project New API. Thanks to its authors and contributors. New API is released under the AGPLv3 license.

Visit the New API repository

Our changes to New API

The console on this site runs New API with 2 patches, all published below. Apply them in file-name order to the matching version of the New API source to get the console this site runs.

  • 0001-console-home-to-portal.patch

    Files changed: web/src/routes/about/index.tsx, web/src/routes/index.tsx

    Download
  • 0002-chat2link-studio-key.patch

    Files changed: web/src/routes/_authenticated/-studio-key-link/__tests__/studio-group-option.test.tsx, web/src/routes/_authenticated/-studio-key-link/__tests__/studio-key-link.test.tsx, web/src/routes/_authenticated/-studio-key-link/__tests__/studio-key.test.ts, web/src/routes/_authenticated/-studio-key-link/i18n.ts, web/src/routes/_authenticated/-studio-key-link/studio-group-option.tsx, web/src/routes/_authenticated/-studio-key-link/studio-key-link.tsx, web/src/routes/_authenticated/-studio-key-link/studio-key.ts, web/src/routes/_authenticated/chat2link.tsx

    Download

To apply them, run git apply on each patch, in file-name order, in the root of the New API source tree.

Frontend design and development by New API contributors. github.com/QuantumNous/new-api