# One API key for all AI models

Updated November 30, 2026

One API key for all AI models is an OpenCheap key: 893 chat models from 86 labs, Anthropic, OpenAI, Google, DeepSeek, Moonshot and Qwen among them. The API stays OpenAI-compatible, so the SDK you already use keeps working: set the base URL to `https://api.opencheap.si/v1`, use the OpenCheap key, and pass any model id. Each request goes to the cheapest healthy provider of that model, and one prepaid balance pays for all of them.

[Get API key](https://opencheap.si/start?onboarding=signin)

**893** chat models on one key

**86** labs, from Anthropic to Zhipu

**3** API shapes: OpenAI chat, Responses, Anthropic Messages

## Switch in two lines

The base URL and the key change; your prompts, tools and parsing stay the same.

python

```
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.opencheap.si/v1",
    api_key=os.environ["OPENCHEAP_API_KEY"],
)

for model in ["claude-sonnet-5", "gemini-3.5-flash", "deepseek-v4-flash", "kimi-k3"]:
    r = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": "One line: who made you?"}],
    )
    print(model, r.choices[0].message.content, r.usage.cost)
```

javascript

```
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.opencheap.si/v1",
  apiKey: process.env.OPENCHEAP_API_KEY,
});

const r = await client.chat.completions.create({
  model: "gpt-5.5",
  messages: [{ role: "user", content: "Hello" }],
});
```

`usage.cost` in every answer is what that request was charged, in USD. Setup for Cursor, Claude Code, Codex, LangChain, LiteLLM, the Vercel AI SDK and others is in the [integrations](https://docs.opencheap.si/integrations).

## Models by lab

Live from the catalog. Each name opens the model's page with every provider's price, speed and uptime.

| Lab | Models | For example |
| --- | --- | --- |
| Anthropic | 26 | [claude-sonnet-5](https://opencheap.si/models/claude-sonnet-5)[claude-opus-5.5](https://opencheap.si/models/claude-opus-5.5)[claude-4-opus](https://opencheap.si/models/claude-4-opus) |
| OpenAI | 112 | [gpt-5.5](https://opencheap.si/models/gpt-5.5)[gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b)[gpt-oss-20b](https://opencheap.si/models/gpt-oss-20b) |
| Google | 101 | [gemini-3.5-flash](https://opencheap.si/models/gemini-3.5-flash)[gemma-4-26b-a4b](https://opencheap.si/models/gemma-4-26b-a4b)[gemma-4-31b](https://opencheap.si/models/gemma-4-31b) |
| DeepSeek | 58 | [deepseek-v4-flash](https://opencheap.si/models/deepseek-v4-flash)[deepseek-v4-pro](https://opencheap.si/models/deepseek-v4-pro)[deepseek-v4.1-flash](https://opencheap.si/models/deepseek-v4.1-flash) |
| Moonshot | 17 | [kimi-k3](https://opencheap.si/models/kimi-k3)[kimi-k3.1-pro](https://opencheap.si/models/kimi-k3.1-pro)[kimi-k2.7-code](https://opencheap.si/models/kimi-k2.7-code) |
| Qwen | 110 | [qwen3.8-flash](https://opencheap.si/models/qwen3.8-flash)[qwen3-coder](https://opencheap.si/models/qwen3-coder)[qwen3-coder-next](https://opencheap.si/models/qwen3-coder-next) |
| Zhipu | 53 | [glm-5.3-flash](https://opencheap.si/models/glm-5.3-flash)[glm-5.3](https://opencheap.si/models/glm-5.3)[glm-5.2](https://opencheap.si/models/glm-5.2) |
| xAI | 40 | [grok-4.7](https://opencheap.si/models/grok-4.7)[grok-3](https://opencheap.si/models/grok-3)[grok-4](https://opencheap.si/models/grok-4) |
| Meta | 25 | [llama-3.3-70b](https://opencheap.si/models/llama-3.3-70b)[llama-4-maverick](https://opencheap.si/models/llama-4-maverick)[llama-4-scout](https://opencheap.si/models/llama-4-scout) |
| Mistral | 50 | [mistral-small-3.2-24b](https://opencheap.si/models/mistral-small-3.2-24b)[mistral-nemo](https://opencheap.si/models/mistral-nemo)[mistral-saba](https://opencheap.si/models/mistral-saba) |
| MiniMax | 11 | [minimax-m3](https://opencheap.si/models/minimax-m3)[minimax-01](https://opencheap.si/models/minimax-01)[minimax-m2](https://opencheap.si/models/minimax-m2) |
| ByteDance | 24 | [seed-2.0-pro](https://opencheap.si/models/seed-2.0-pro)[seed-2.1-pro](https://opencheap.si/models/seed-2.1-pro)[seed-oss-36b](https://opencheap.si/models/seed-oss-36b) |
| NVIDIA | 19 | [nemotron-3-super-120b-a12b](https://opencheap.si/models/nemotron-3-super-120b-a12b)[nemotron-nano-9b-v2](https://opencheap.si/models/nemotron-nano-9b-v2)[nemotron-nano-12b-v2](https://opencheap.si/models/nemotron-nano-12b-v2) |
| OrcaRouter | 16 | [orcacyber-hy4](https://opencheap.si/models/orcacyber-hy4)[orcacyber-glm-5.3](https://opencheap.si/models/orcacyber-glm-5.3)[orcacyber-k3.1-pro](https://opencheap.si/models/orcacyber-k3.1-pro) |

And 72 more labs. [Every model](https://opencheap.si/models) is on one page.

## What “OpenAI-compatible” covers here

| Endpoint | For |
| --- | --- |
| `POST /v1/chat/completions` | Any OpenAI SDK or tool, streaming included. |
| `POST /v1/responses` | Tools built on the Responses API, such as Codex. |
| `POST /v1/messages` | Tools built on Anthropic's API, such as Claude Code: point them at the host without /v1. |
| `GET /v1/models` | The model list. |

Model ids are the plain name: `claude-sonnet-5`, `gpt-oss-120b`. The vendor/model spelling and a provider's own id are aliases of the same model, and `opencheap/` in front works everywhere (Cursor needs it for names that start with claude-).

## Questions, answered

### Is there one API key for all AI models?

Yes. One API key for all AI models is an OpenCheap key: it calls 893 chat models from 86 labs through one OpenAI-compatible API at https://api.opencheap.si/v1. Keep the OpenAI SDK, set the base URL, and pass any model id.

### Is there one API key that works for Claude, Gemini, GPT and DeepSeek models?

Yes. One OpenCheap key calls 893 chat models from 86 labs, Anthropic, OpenAI, Google and DeepSeek among them, through one OpenAI-compatible API at https://api.opencheap.si/v1. You do not need an account with each model maker.

### Can I keep using the OpenAI SDK?

Yes. Set the SDK's base URL to https://api.opencheap.si/v1, use your OpenCheap key as the API key, and pass any model id. Python, JavaScript and any other OpenAI client work the same way.

### Which endpoints does it support?

Chat completions (with streaming), the Responses API for tools built on it such as Codex, and Anthropic's Messages API for tools built on that, such as Claude Code. The model list is at /v1/models.

### How is this different from OpenRouter?

Both give you one OpenAI-compatible key for models from many labs. OpenCheap sends every request to the cheapest healthy provider of the model by default, and every answer reports what it cost in usage.cost.

### Do OpenRouter-style model ids work?

Yes. The plain id (claude-sonnet-5) is the usual one; the vendor/model spelling (anthropic/claude-sonnet-5) and a provider's own id are accepted as aliases of the same model, and every id also works with opencheap/ in front.

### What does it cost?

You pay per token, at the price of the provider that serves each request: every request goes to the cheapest healthy provider of the model. There is no monthly fee, and credits never expire. Each model's page shows its price.

### Are there free models?

Yes, 4 rate-limited models right now: add :free to the model id, capped at 10 requests a minute and 200 a day per key. The same model without :free is billed per token, with no such cap.

## More guides

- [Cheapest LLM API (Live Prices, Updated Daily)](https://opencheap.si/guides/cheapest-llm-api): Live prices per 1M tokens for popular models, routed to the cheapest healthy provider. One OpenAI-compatible key. Pay as you go; no monthly fee.
- [A cheaper DeepSeek API, with official prices side by side](https://opencheap.si/guides/cheapest-deepseek-api): Official DeepSeek API prices next to live OpenCheap rates for V4.1 Flash, V4 Pro and other DeepSeek models. One OpenAI-compatible key. Prices move; the tables are dated.
- [An LLM router that sends each request to the cheapest provider](https://opencheap.si/guides/cheapest-llm-router): OpenCheap routes each request to the cheapest healthy provider of your model, fails over before the first byte, and bills that provider's price.
- [Pay for LLM API calls with USDC, without an account or an API key](https://opencheap.si/guides/pay-for-llm-api-with-usdc): An AI agent can pay OpenCheap for one completion in USDC on Base with x402: call with no key, read the 402 price, sign, and get the answer in the same request.
- [Set a daily spend limit on each API key your agents use](https://opencheap.si/guides/llm-api-spend-limits): Give each OpenCheap key a daily, weekly, monthly or lifetime spend limit, so an agent left running overnight can't spend more than you allow.
- [Connect Cursor, LiteLLM or the OpenAI SDK with the base URL](https://opencheap.si/guides/cursor-litellm-openai-sdk): Connect Cursor, LiteLLM and the OpenAI SDK to OpenCheap with a base URL, a key and a model id. Steps, env variables, code and common errors.
- [OpenCheap vs OpenRouter for cheapest pricing and failover](https://opencheap.si/guides/opencheap-vs-openrouter): OpenCheap routes to the cheapest provider by default; OpenRouter balances price, speed and uptime. Compare live prices, failover and fees.
- [A cheap Claude API, with official prices side by side](https://opencheap.si/guides/cheapest-claude-api): Anthropic's list prices next to live OpenCheap rates for Claude. One OpenAI-compatible key. Prices move; both tables are dated.
- [GPT API pricing, and the cheapest way to call it](https://opencheap.si/guides/cheapest-gpt-api): GPT API pricing per 1M tokens: OpenAI's list rates for GPT-6, GPT-5 and GPT-4 models next to live OpenCheap prices, on one OpenAI-compatible key.
- [The cheapest way to use Gemini through an API](https://opencheap.si/guides/cheapest-gemini-api): Gemini chat models on OpenCheap, with today's price per million input and output tokens from the same book as the pricing page.
- [The cheapest Qwen API, with official prices side by side](https://opencheap.si/guides/cheapest-qwen-api): Qwen API pricing per 1M tokens: Alibaba Cloud's list rates next to live OpenCheap prices for Qwen4 Max, Qwen3 Coder and more. One OpenAI-compatible key.
- [The cheapest Llama API, priced live](https://opencheap.si/guides/cheapest-llama-api): Llama API pricing per 1M tokens for Llama 4 Maverick, Scout, 3.3 70B and 3.1 8B, at the cheapest healthy provider. One OpenAI-compatible key.
- [The cheapest Kimi API, with official prices side by side](https://opencheap.si/guides/cheapest-kimi-api): Kimi API pricing per 1M tokens: Moonshot's list rates next to live OpenCheap prices for Kimi K3.1 Pro, K3 and K2.6. One OpenAI-compatible key.
- [Run Claude Code for less](https://opencheap.si/guides/claude-code-cheaper): Point Claude Code at OpenCheap and pick a model per task: Claude at the provider's price, or open models for a fraction, on one key with a spend limit.

---

Source: https://opencheap.si/guides/openai-compatible-api · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
