Save up to 90%
200+ LLMs
One API
Call 200+ models through OpenAI- and Anthropic-compatible APIs by changing only your base URL. You get the same models at the same quality as going direct, for up to 90% less, because we buy compute wholesale.
Popular model pricing
Save up to 90%One key covers the vendors you already use and the full catalog of 200+ models.
Text, image and video models on one key.
Here’s the flagship model in each modality, all at the same discount. The prices below are what you actually pay.
TextUSD / 1M tokens, in · out
Why developers switch.
Lower prices than the official APIs, no code changes beyond the base URL, and automatic failover between channels.
Well below official prices
You get the same models for a fraction of the official list price. Every rate is public, so you can check us line by line against the provider’s own pricing.
Drop-in replacement
The endpoint is OpenAI-compatible, so you change the base URL and your existing SDKs, agents and tools keep working. Switching models is a one-line change.
Built for uptime
Every model is backed by multiple providers and channels. You set a primary and a backup channel, and requests fail over to the backup automatically if the primary goes down.
Transparent USD billing
Prices are in plain USD per 1M tokens. There are no credits, points or other made-up units, and you’re charged exactly the price you see.
Pay as you go
There’s no subscription and no minimum spend. Top up whenever you like and pay only for the tokens you actually use.
No hidden routing
Discounted channels are labeled for what they are and never presented as official. You decide, model by model, whether stability or savings matters more.
Three steps to production.
It takes about two minutes from signup to your first call, whether you use your SDK, Claude Code or Codex.
- 1
Create an account
New accounts come with free tokens, so your first calls cost nothing. No card required.
- 2
Set up your API key
One key covers all 200+ models. Cap its daily, weekly or monthly spend if you want.
- 3
Ship with the API
The API is OpenAI-compatible: change one line in your SDK, or point Claude Code and Codex straight at MirAPI.
import os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="claude-fable-5", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "claude-fable-5", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-fable-5", "messages": [{"role": "user", "content": "Hello"}] }'
# ~/.zshrc export ANTHROPIC_BASE_URL="https://api.mirapi.ai" export ANTHROPIC_AUTH_TOKEN="$MIRAPI_API_KEY" # start as usual (model names stay the same) claude --model claude-fable-5
# ~/.codex/config.toml model_provider = "mirapi" model = "gpt-5.2-codex" [model_providers.mirapi] name = "MirAPI" base_url = "https://api.mirapi.ai/v1" env_key = "MIRAPI_API_KEY" wire_api = "responses"
Why is it this cheap?
The savings come from how we buy capacity and how we run our infrastructure. You pay for the inference itself and nothing else.
Contracted capacity
We hold annual volume commitments with model vendors, cloud platforms and inference providers at rates well below on-demand list prices. You get the discounted rate without making any commitment yourself.
Self-hosted inference
We run our own inference clusters for the busiest open-weight models, so there’s no middle layer adding to the price.
Channels you choose
The same model is priced differently on each channel, and stability varies from channel to channel too. Each model page lists every channel’s price, and you pick a primary and a backup channel per API key to balance cost against stability.
Session affinity
Consecutive requests in a session reuse the same upstream wherever possible, so 90%+ of your conversation history bills at the vendor’s published cached-input rate.
Per-key spending limits and an itemized billing log.
Limits are set on each API key, not on the account. If you cap an agent’s key at $20 a day, it can spend $20 a day and no more, and the rest of your balance is untouched.
| Time | Model | Channel | Tokens | Change | Balance |
|---|---|---|---|---|---|
| 14:32:07 | claude-fable-5 | anthropic_official | 8 → 412 · 24.2K cached | −$0.0271 | $68.38 |
| 14:31:55 | claude-fable-5 | anthropic_official | 6 → 388 · 24.2K cached | −$0.0254 | $68.41 |
| 14:31:40 | claude-fable-5 | anthropic_azure | 2,104 → 96 · cache write | −$0.0038 | $68.43 |
| 14:29:12 | gpt-5.2-codex | openai_reserved | 1,860 → 744 · 0 cached | −$0.0021 | $68.44 |
| 09:04:33 | Top-up | $100.00 @ 1.0000 | — | +$100.00 | $100.00 |
Does Claude Code work without a subscription?
ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to point Claude Code at MirAPI, and it runs on your balance, billed per token. Cache reads are charged at the cached rate and itemized in the log.Is the model modified to reach these prices?
Is my balance in dollars or in credits?
Can I cap what a single key spends?
How do I know which channel served my request?
What happens during a provider outage?
Make your first call in two minutes.
One key for 200+ models, and 1M free tokens to start. No card required.