Wholesale inference pricingWhy so cheap?

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.

No request logging Pay as you go Transparent USD pricing No vendor lock-in
300+
Models on one endpoint
25
Model vendors on one key
1M
Free tokens to start
2 min
From signup to first call
Features

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.

Quick start

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. 1

    Create an account

    New accounts come with free tokens, so your first calls cost nothing. No card required.

  2. 2

    Set up your API key

    One key covers all 200+ models. Cap its daily, weekly or monthly spend if you want.

  3. 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"}],
)
Cost structure

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.

Unmodified models. We don’t quantize, distill, truncate the context or swap in a smaller variant. You get the same weights and defaults as calling the vendor directly.
Cost control

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.

Per day
$20.00
resets at 00:00 UTC
Per week
$100.00
resets Monday at 00:00 UTC
Per month
$300.00
resets on the 1st at 00:00 UTC
Total
$1,000.00
fixed cap, never resets
Billing log
TimeModelChannelTokensChangeBalance
14:32:07claude-fable-5anthropic_official8 → 412 · 24.2K cached−$0.0271$68.38
14:31:55claude-fable-5anthropic_official6 → 388 · 24.2K cached−$0.0254$68.41
14:31:40claude-fable-5anthropic_azure2,104 → 96 · cache write−$0.0038$68.43
14:29:12gpt-5.2-codexopenai_reserved1,860 → 744 · 0 cached−$0.0021$68.44
09:04:33Top-up$100.00 @ 1.0000—+$100.00$100.00
Cache reads, cache writes and plain input are itemized separately, because on agent runs their prices are very different. When a request fails over, the failed attempt is logged and costs nothing.
Questions

FAQ

Routing, rate limits and per-channel terms are in the developer documentation.

Does Claude Code work without a subscription?
Yes. Set 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?
No. We don’t quantize or distill models, truncate the context window or substitute a different variant. The savings come only from how we buy capacity and where it runs.
Is my balance in dollars or in credits?
Dollars. You top up in your own currency at the day’s exchange rate, with the rate and the spread shown separately, and your balance is credited in USD. Later exchange-rate changes don’t revalue it, and there’s no points system on top.
Can I cap what a single key spends?
Yes. You can set a daily, weekly or monthly limit, or a fixed total cap. Daily limits reset at 00:00 UTC, weekly limits on Monday and monthly limits on the 1st. The cap is set on the key itself, independent of your account balance.
How do I know which channel served my request?
Every request is logged with the model, the channel and its discount, token counts split into cache read, cache write and plain input, the cost, and your balance afterwards. You can query the log by key and time range.
What happens during a provider outage?
The request fails over to your configured backup inside the same call, at that channel’s price. The failed attempt is logged and charged nothing. If both of your channels are down, you get an error. We don’t reroute the request into a pool you never picked.

Make your first call in two minutes.

One key for 200+ models, and 1M free tokens to start. No card required.