Why teams look for an alternative
Most teams that go looking are not unhappy with the models. They want one of four things: a lower bill, access to models from other companies, protection against a single provider's outages and rate limits, or a simpler way to pay. Being clear about which of these you want makes the choice much easier, because the options below solve different problems.
The four kinds of alternative
1. Another model provider, directly
You sign up with a different model maker and use its API. This gets you different models and a second supplier. The cost is a second account, a second bill, a second set of keys and, often, a different request format that your code has to learn.
2. A cloud platform
The large cloud providers resell models inside their own platforms. This suits companies that already buy everything through one cloud and need its access controls and contracts. Setup is heavier, and model availability can lag behind the direct APIs.
3. Models you host yourself
Open-weight models can run on your own hardware. You get full control and predictable costs at high volume. You also take on servers, scaling, updates and monitoring. For most small teams the engineering time costs more than the tokens would have.
4. A gateway or aggregator
A gateway sits between your app and many model providers and gives you one API, one key and one bill for all of them. Some, like CheapTokens, also sell access below list price because they buy capacity in volume. You add a dependency on the gateway, and you gain the freedom to change models without touching your integration.
What "OpenAI-compatible" really means
The OpenAI request format has become the common language of AI tools. An API that calls itself OpenAI-compatible accepts the same requests at the same paths, so the official SDKs and most third-party tools work by changing two settings: the base URL and the API key.
Compatible does not mean identical, though. Before you rely on it, check these:
- Which endpoints exist. Chat Completions is nearly universal. The newer Responses API, image generation, embeddings and audio are not. Some coding tools, such as Codex, only speak the Responses format.
- Streaming. Test that streamed replies arrive smoothly and end with a usage report, since some tools bill or display from it.
- Tool calling. Coding agents depend on it. A model that chats well but mishandles tool calls will reply and then never edit a file.
- Parameters. Options like JSON mode, reasoning effort or seed may be ignored or rejected by some models.
- Errors. Your retry logic depends on status codes and error codes being what it expects.
- Model names. Every provider has its own IDs. Keep the model name in configuration, not scattered through code.
Claude is a useful example. Claude models can be called through an OpenAI-compatible endpoint, but Anthropic's own tools, such as Claude Code, use the native Messages format. A gateway that supports both lets each tool use the format it was built for. CheapTokens exposes Chat Completions, Responses and Claude Messages on the same key.
What to compare
| Area | What to look for |
|---|---|
| Price | Published input and output prices per model, and whether failed requests are charged. |
| Models | The specific models you need, under names you can verify, and how quickly new ones arrive. |
| Compatibility | The endpoints and features your tools actually use, tested, not assumed. |
| Reliability | What happens during an upstream outage, and how errors are reported. |
| Limits | Requests per minute, and how to get them raised. |
| Visibility | A per-request history with tokens and cost, and spend limits per key. |
| Data | Whether prompts and replies are stored, and which companies they pass through. |
| Payment | Prepaid or postpaid, accepted payment methods, minimum top-up and refund terms. |
How to switch without breaking things
- Put the base URL, key and model name in configuration. If they are already environment variables, the switch is a config change.
- Create a separate key for testing with a small spend limit.
- Replay real traffic. Run a sample of your own requests through the new API and compare the answers, latency and cost with what you have today.
- Test the awkward paths: streaming, tool calls, long inputs, images if you use them, and deliberately bad requests to see the errors.
- Move a small share first. Send a few percent of traffic, watch error rates and cost for a few days, then increase.
- Keep the old key working until you are sure. A fallback you can turn on in one line is worth having.
For coding tools the switch is usually even simpler. The setup wizard shows the exact settings for Claude Code, Codex, Cursor, Cline, Continue, OpenCode, Aider and others.
Common mistakes
- Comparing list prices only. Compare cost per finished task on your own requests.
- Assuming every model supports every feature. Check tool calling and context size for each model you plan to use.
- Hard-coding model names. You will want to change them.
- Sending data you shouldn't. Any intermediary sees your requests in transit. Read its privacy terms and keep regulated data out unless you have agreed terms for it.
- Skipping spend limits. A loop in an agent can burn through a balance in minutes.
Where CheapTokens fits
CheapTokens is the fourth kind of alternative: one key and one prepaid balance for GPT, Claude, Gemini, DeepSeek, Qwen, GLM, Kimi and MiniMax models, at per-token prices below list. You keep your existing SDK and tools and change the base URL. Prices are on the models page and the request formats are in the docs.
Create a CheapTokens account ↗