Skip to content

OpenAI-compatible · Latest open models · Transparent pricing

Kimi, GLM and DeepSeek — up to 68% below the official rate

36–42% below each model’s own publisher on the rate card, and 65–68% on agent and chat workloads, where the prompt prefix you resend every turn is billed at the cached rate. The publisher’s rate is printed beside ours on every row.

Guaranteed at least 20% below official— the smallest discount we carry today is 36%

  • No markup
  • OpenAI SDK compatible
  • Pay as you go
  • Cancel anytime
Live pricingper 1M tokens
ModelOursSave
Kimi K2.6$0.55 / $2.3042%
Kimi K3$1.85 / $9.0040%
GLM-5.2$0.82 / $2.5542%
Cached input billed separately, from $0.11/M
$5 in free creditsNo credit card required36–42% below official pricing65–68% on cached agent workloadsAt least 20% below official, guaranteedOpenAI SDK compatibleCached input published, not buriedOpen licenses onlyNo platform feeNew models within 24 hours

Prices updated 46 days ago · See full pricing →

Models from the labs leading open weights

01

Every open model behind one key

Text, video and image. One endpoint, one bill, one dashboard — instead of four provider accounts and four invoices to reconcile.

02

Cut inference cost 36–42%

Rising to 65–68% once a repeated prompt prefix is cached, on 400M input tokens a month with a 60% repeated prefix, and 8M output. We publish the official rate next to ours on every row, including cached input, so the saving is checkable rather than asserted.

03

Scale without surprise bills

Spending caps per account and per key, set before your first request. Hit the limit and requests pause — they do not silently keep billing.

Switch in one line

If your project already uses the OpenAI SDK, this is the only change you need to make.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://router.xark.io/api/v1"   # ← the only line that changes
)

response = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Hello"}]
)

Full migration guide

Works with the tools developers already build with

LangChainLlamaIndexDifyCursorContinueAnythingLLMVercel AI SDK

Any client that speaks the OpenAI chat-completions format works without a plugin.

Put your own numbers in

Pick the workload closest to yours, or type your monthly token counts. The comparison is done at the rates the API actually bills.

M
M
60% of input cached

An agent or chat loop resends the same system prompt on every turn. That repeated prefix is billed at the cached rate, and on most models that is a fifth of the standard input rate. Set this to zero if every request you send is different.

Cheapest for this shape of work
$20.16/mo on DeepSeek V4 Flash
Against the official rate
$31.36−36%

That is $11.20 a month, or $134.40 a year, on the same tokens through the same model.

An estimate, not a quote — but it is computed from the same rate table the API bills from, so the only assumptions in it are the ones you set above. Third-party figures are those providers’ own published rates; where a provider does not publish one, the cell is blank rather than guessed.

Open the full calculator to compare every callable model at once.

Questions people actually ask

The things worth knowing before you move production traffic to a smaller provider.

What is AI Token Router?

AI Token Router is an OpenAI-compatible API gateway for open-weight AI models. Point your existing OpenAI SDK at one endpoint and you get Kimi K3, GLM-5.2, DeepSeek V4 and open-source video models like Wan 2.2 and LTX-2.5, at 36–42% below official pricing, rising to 65–68% on agent and chat workloads where a repeated prompt prefix is billed at the cached rate. One key, one bill, and the official rate printed next to ours on every row.

How can you be 36–42% cheaper than official pricing?

We buy inference capacity in bulk, run it at high utilisation, and pass most of that discount through instead of keeping it as margin. There is no platform fee and no surcharge on top of the per-token rate you see. It is also why we only carry open-weight models: their licenses permit third-party hosting, so we control the cost base rather than reselling someone else's API at a markup.

Do I have to rewrite my code to switch?

No. The API is OpenAI-compatible, so if you already use the OpenAI SDK -- or any framework built on it, which is most of them -- switching is a one-line change to your base URL. Request shapes, streaming frames, the usage block and the error envelope all match what your code already handles.

Which models do you support?

Twenty-four open-weight models are catalogued and seven are callable right now: Kimi K3, Kimi K2.6, GLM-5.2, DeepSeek V4 Pro, DeepSeek V4 Flash, Qwen-Image and Qwen3-Embedding-8B. The rest -- GLM-5.2 Air, Qwen3, MiniMax M2, Llama 4, Mistral Large 3, GPT-OSS, and the video models Wan 2.2, LTX-2.5, HunyuanVideo 1.5, CogVideoX and Mochi 1 -- are listed with published prices but are not yet served, and every model page and pricing row says which is which rather than letting you find out at call time. New open-weight releases are added at a published price as capacity for them comes online.

How does cached-token pricing work?

When you resend the same prefix -- a long system prompt, a fixed tool schema, a document you keep querying -- it is served from the model's KV cache and billed at the cached-input rate, typically 80-90% below the standard input rate. It happens automatically with no header to set, and a cache entry lives about five minutes after its last use. For agent loops this is usually the largest line on the bill, which is why the cached rate has its own column on the pricing table instead of a footnote.

Are there hidden fees?

No. The per-model rate is the whole price. No platform fee, no minimum spend, no card-processing surcharge at checkout, and no charge for failed requests. Worth checking when you compare: OpenRouter adds roughly 5.5% on credit purchases, which does not appear on their per-model pricing table.

What stops a runaway agent from running up a huge bill?

Your prepaid balance is a hard ceiling, enforced by the gateway on every request — a runaway agent stops at what you have already paid, never at an invoice. Unlike a configured cap, it cannot be misconfigured. Automatic recharge is off by default, and when enabled it is bounded too: a fixed amount, capped at three recharges in any 24 hours, switched off after three consecutive declines. Per-key limits are on the roadmap.

What happens if a model provider has an outage or rate-limits me?

The request fails with the upstream status and a machine-readable error code rather than being silently retried on a different model, and the failure is not billed. Automatic cross-model fallback is not implemented yet: substituting a model changes the output, the price and the licence terms of what you receive, so we would rather return an honest error your code can branch on than quietly hand you a different model's answer. Rate-limit responses come back as 429 with `rate_limit_exceeded`, which is distinct from the 429 with `insufficient_credits` you get when the balance runs out.

How do you handle my prompts and data?

We do not train on your prompts or completions, ever. Prompts and completions from a normal chat or completion request are relayed and not stored by us at all. The inputs and results of asynchronous jobs -- video and image generation, which cannot return inline -- are held for 30 days from completion so you can fetch them, or deleted immediately on request. Usage metadata (model, token counts, latency, cost) is kept for 24 months, because that is what the dashboard and your invoice are built from. The full schedule is in the privacy policy, and the numbers there are the authoritative ones.

Can I bring my own provider API key?

Not yet. Routing your own negotiated provider contract through us -- keeping your rate while gaining logs and per-key attribution -- is designed and on the roadmap, but it is not shipped, so today every request is billed against your prepaid balance at our published rate. We would rather say so here than let you discover it after signing up.

How is this different from OpenRouter?

OpenRouter is a router across 500+ models including closed frontier models like GPT, Claude and Gemini, with multi-provider failover. If you need those, OpenRouter is the better fit and we say so on our comparison page. We are narrower on purpose: open-weight models only — 7 callable today out of 24 catalogued, and the catalogue marks which is which rather than failing at call time — with no platform fee, published cached-input rates, and open video generation treated as a first-class category rather than something we do not carry.

Why only open-weight models?

Because reselling closed-weight model access frequently violates the origin provider's terms of service, and that is a risk we will not take on or expose customers to. Open licenses permit third-party hosting, which is what lets us run the inference ourselves, control the price, and publish it. It is also why we do not serve Sora 2, Veo 3.1, Runway Gen-4, Kling, or Wan 2.5/2.6 -- the last of which is API-only, with weights never released, despite the open Wan 2.1/2.2 lineage.

How quickly can I make my first call?

About twenty seconds. Sign up with GitHub, Google or an email and password, and your API key is shown on the dashboard immediately along with a copy-runnable snippet. New accounts get $5 in free credits, so the first calls cost nothing and no card is required. Every model page also carries a snippet with the model id already filled in.

Do I need a credit card to start?

No. Sign up with GitHub or Google -- no password to set, nothing to leak -- and you get $5 in credits plus 2M free tokens on any open-weight model. You only add a payment method when the free credit runs out, and there is no subscription -- it is pay as you go with no minimum spend, cancel anytime.

Do you offer volume or enterprise pricing?

Yes. Accounts spending $1,000+ per month qualify for custom rates, with deeper discounts, priority support and dedicated SLAs at higher tiers. We reply within 24 hours.

Still deciding? See how we compare to OpenRouter — including where they win.

Work out whether this is right for you

Everything below is written to be checked rather than believed.

Pick a model for the job

Each page prices a real monthly volume, ours against the official rate.

Understand the bill

How token pricing actually works, written from the billing code.

Compare the field

Including the cases where another provider is the better answer.

Start building in 5 minutes

$5 in free credits, no credit card required.

Set a spending cap before your first request. Cancel anytime.