Get started
Documentation
In short: The developer docs are the guide to calling many models through one OpenAI- and Anthropic-compatible API and key: quickstart, reference, errors, tool guides.
On this page
One AI API Key is a prepaid gateway that puts many models behind one API key. If your code or tool already talks to the OpenAI or Anthropic API, you change two things: the base URL and the API key. Request bodies, SDKs and streaming stay the same.
Where do I start?#
Start with the quickstart; the pages below cover the API reference, errors, data handling, tool guides and models.
- 01QuickstartCreate a key and make your first request with curl, Python or Node.
- 02API referenceEndpoints, headers, request and response shapes, streaming, tool calling and usage fields.
- 03Errors and limitsWhat each status code means, how to fix it, and a retry pattern that does not waste credit.
- 04Sign in a command-line toolHow a terminal tool gets an API key without copy and paste, using the device login flow.
- 05Your dataWhat the gateway sees, what the model provider receives, what we store, for how long, and how to delete it.
- 06Tool guidesExact settings for 8 coding tools, including Claude Code, Codex CLI, Cursor.
- 07Models and rates78 models across Claude, GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2, Roleplay, Gemini, Muse, MiMo, with exact ids and per-token prices.
How it works#
Your app sends a normal OpenAI- or Anthropic-format request with your key. The gateway checks the key and your balance, forwards the request to the model you named, returns the answer in the format you used, and deducts the tokens used at that model's published rate.
Client
Your app or coding tool
Bearer sk-…
One AI API Key gateway
- 1 Check key and balance
- 2 Route to the model you named
- 3 Meter tokens, deduct at the model's rate
Upstream
Model provider
Claude · GPT · Grok · DeepSeek · Kimi · GLM · MiniMax · Qwen · Step · Beam · Nemotron · ERNIE · Hunyuan · Gemma · Laguna · LFM · LongCat · Llama · Solar · Jais · Mistral · K2 · Roleplay · Gemini · Muse · MiMo
usage object lists the tokens you are charged for.What are the base URLs?#
There are two base URLs: one for OpenAI-format clients and one for Anthropic-format clients.
| Format | Base URL | Auth header | Copy |
|---|---|---|---|
| OpenAI | https://api.oneaiapikey.com/v1 | Authorization: Bearer sk-… | |
| Anthropic | https://api.oneaiapikey.com | x-api-key: sk-… |
How does billing work?#
- Billing is prepaid. One credit is one US dollar of usage at the per-model rates on the models page.
- New accounts receive $10 of sign-up credit that pays for every model at its listed price. Free-lane models (ids ending in
:free) share 100 requests a day per account, and the ones with no priced twin cost nothing per token (how the free lane bills). When the balance reaches $0, add a top-up in any amount. - Each request is charged for the input and output tokens it used. Requests the gateway rejects up front (invalid key, empty balance, unknown model) are not charged.
- Your keys, per-request usage log and balance live in the console.
Which coding tools have a guide?#
Each tool guide gives the exact fields to fill in for one ready-made coding tool, so you do not need to write code.