Kimi AI API Pricing (2026): How Token Bills Work
Unicorn API Team · · 10 min read
Kimi AI API pricing follows the same pattern as most large language model APIs: you pay per million tokens, with separate rates for the text you send, the text you get back, and input the provider can serve from cache. The tricky part is not the model. It is that search results quote prices for different Kimi versions, different sellers and different dates, and many of them mix up the Kimi app subscription with the API. This guide explains how the bill is built, why the numbers you find online disagree, and how to estimate your own monthly cost before you write a line of production code.
A note on numbers: we do not reproduce Moonshot’s per-token rates here, because they change with each model release and third-party copies go stale quickly. Take the current rates from Moonshot’s official pricing page, then plug them into the formula and code below.
How Kimi AI API pricing works
Kimi is the model family from Moonshot AI, a Chinese lab. The models are available to developers through Moonshot’s own platform and through third-party routers, which are services that resell many providers’ models behind one API. Over the past year the family has moved through the K2 and K3 generations, including “thinking” variants that reason step by step before answering.
Kimi AI API pricing for the current chat models has three main parts:
- Input tokens. Everything you send: the system prompt, the conversation history, any documents or code you paste in, and tool definitions. A token is a chunk of text, roughly three quarters of an English word on average.
- Output tokens. Everything the model writes back. Output is priced several times higher than input on nearly every LLM API, Kimi included.
- Cached input tokens. When the start of your prompt matches a prompt the provider has seen recently, it can reuse its earlier work. Those “cache hit” tokens are billed at a steep discount compared with normal input.
Two further details matter. First, thinking models produce reasoning tokens before the final answer, and those are billed as output even when you never display them. Second, some older Moonshot models were priced by context window size, so a model with a longer maximum context cost more per token than a shorter one. If you are reading a price page, check which of these schemes the model you want uses.
There is no charge for creating an API key. You load a balance, and each request draws it down based on the token counts the model reports.
Kimi app plans vs the API: two separate bills
A lot of confusion around Kimi AI API pricing comes from the consumer product. Moonshot sells monthly subscriptions to the Kimi assistant and its coding agent, with a free tier and several paid tiers. Those plans give you higher limits inside Moonshot’s own apps. They do not give you an API key with a token allowance you can call from your own software.
The API is a different product with a different bill:
| Kimi app subscription | Kimi API | |
|---|---|---|
| What you pay for | A monthly plan with usage limits | Tokens actually processed |
| Where you use it | Moonshot’s chat app and coding agent | Your own code, scripts, agents and products |
| Cost predictability | Fixed per month | Varies with traffic and prompt size |
| Good for | One person chatting or coding interactively | Automation, apps, batch jobs, teams |
Some coding plans bundle API-style access for use inside specific tools, which is why you will see forum threads comparing “API value” against a subscription price. That comparison only holds if the plan lets you send requests from the tool you actually use, and only up to the plan’s rate limits. For anything you build and ship, pay-per-token is the relevant number.

What drives a Kimi API bill
Once you know the rates, the bill depends almost entirely on the shape of your traffic. These are the factors that move it most.
Output length
Because output costs several times more than input, long answers dominate the bill. Setting max_tokens sensibly and asking for concise formats (bullet points, JSON with only the fields you need) is the single cheapest optimisation.
Thinking tokens
A thinking model may write hundreds or thousands of reasoning tokens before a short final answer. All of them count as output. For simple classification or extraction tasks, a non-thinking model or a lower reasoning setting often gives the same result for a fraction of the cost.
Conversation history
Chat APIs are stateless: every turn resends the whole conversation. A 20-turn chat means the first message is billed 20 times. Agents are worse, because tool results (file contents, search results, logs) pile up in the context. This is why coding agents can burn through millions of input tokens in an afternoon.
Cache hit rate
Caching rewards stable prompt prefixes. If your system prompt, tool definitions and long reference documents come first and never change, most of each request can hit the cache. If you put a timestamp or a random ID at the top of the prompt, you break the cache on every call and pay full input price.
Retries and failures
Timeouts, malformed JSON that you re-request, and agent loops that repeat a step all cost tokens. Logging token usage per request is the only reliable way to see them.
How to estimate Kimi AI API pricing for your workload
You do not need a pricing calculator site. The formula is short:
cost = (uncached_input_tokens × input_rate
+ cached_input_tokens × cached_rate
+ output_tokens × output_rate) / 1,000,000
# rates are per 1M tokens, taken from the provider's price page
# output_tokens includes any reasoning / thinking tokens
To use it, measure a realistic sample of requests rather than guessing. Run 50 to 100 representative calls, record the usage object each response returns, and average the three counts. Then multiply by expected daily volume.
A worked example
Say you run an internal code review bot. A sample of real requests shows these averages per review:
- 12,000 input tokens, of which 9,000 are a fixed system prompt and style guide that hits the cache
- 3,000 uncached input tokens (the diff itself)
- 1,500 output tokens, including reasoning
At 400 reviews a day for 22 working days, that is 8,800 reviews a month:
| Token type | Per review | Per month |
|---|---|---|
| Cached input | 9,000 | 79.2M |
| Uncached input | 3,000 | 26.4M |
| Output | 1,500 | 13.2M |
Now multiply each monthly figure by the matching per-million rate from Moonshot’s current price list and add them up. That total is your Kimi AI API pricing estimate for this workload. Notice what the table shows even before you fill in rates: the cached input is the biggest token count, but at a discounted rate it is likely the smallest cost line. Output, at 13.2M tokens, will usually be the largest. If that review bot had its style guide at the end of the prompt instead of the start, all 79.2M cached tokens would bill at full input price.
Add a safety margin of 20 to 30 percent for retries, unusually large diffs and growth. Then set a hard spending limit in your provider dashboard so a bug cannot run up an open-ended bill.
Why Kimi API prices look different across sites
If you have searched for Kimi AI API pricing, you have probably seen several numbers that do not agree. There are four ordinary reasons for that.
- Different model versions. K2, K2 Thinking, later K2 point releases and the K3 line are separate models with separate rates. A page about one says nothing about another. Newer flagship models have generally been priced higher than the previous generation’s open-weight releases.
- Different sellers. Moonshot sets its own price. Routers set theirs, and they may route your request to whichever host is cheapest or fastest at that moment, so the effective price can vary between requests. Router prices can be lower or higher than official ones.
- Different currencies. Moonshot runs a mainland China platform priced in yuan and an international platform priced in dollars. Pages that convert yuan prices use whatever exchange rate they picked, which may not match the dollar price list.
- Different dates. LLM prices change often, sometimes within weeks of a release. A page dated a few months ago may be quoting a promotional or launch price that no longer applies.
The practical rule: trust only a price that names the exact model ID, the seller and a recent date. For budgeting, use the rate from the seller you will actually call.

Kimi vs OpenAI, Claude, Google and Z.ai API pricing
People searching for Kimi often compare it with OpenAI API pricing, Claude AI API pricing, Google AI Studio API pricing and Z.ai (GLM) API pricing. Exact rates change too fast to be worth a static table, but the billing structure is close enough that one comparison method works for all of them.
| Provider | Billing unit | Input / output split | Cache discount | Reasoning billed as |
|---|---|---|---|---|
| Moonshot (Kimi) | Per 1M tokens | Yes | Yes | Output |
| OpenAI | Per 1M tokens | Yes | Yes | Output |
| Anthropic (Claude) | Per 1M tokens | Yes | Yes, with separate cache write and read rates | Output |
| Google (Gemini) | Per 1M tokens | Yes | Yes | Output |
| Z.ai (GLM) | Per 1M tokens | Yes | Yes | Output |
Because the structure matches, the fair comparison is not “price per million output tokens”. It is total cost for your measured workload. Run the same sample prompts through each candidate, record the usage numbers, and apply each provider’s rates with the formula above. A model with a higher sticker price can be cheaper overall if it answers in fewer tokens or needs fewer retries. Our GPT 5.6 Sol vs Sonnet 5 comparison walks through that method for two other models.
Video APIs such as Kling are billed differently: per clip or per second of output, usually varying with resolution and length rather than tokens. Do not try to compare them with chat model token prices.
Running the same cost math on Unicorn API
Every one of those providers means a separate account, key, balance and invoice. Unicorn API gives you one key and one bill across chat, image, video and audio models, priced in credits. Monthly plans give credits at $0.01 each (Starter $25, Creator $50, Studio $100, Pro $200 per month). Top-ups cost $0.015 per credit and never expire. Full details are on the pricing page.
If you are comparing Kimi against other chat models, check the model catalog for what is currently listed. As a concrete example with known rates, Gemini 4 Neon, Google’s 1M-context reasoning model for coding, analysis and science, costs:
| Token type | Credits per 1M | On a monthly plan | On top-up credits |
|---|---|---|---|
| Input | 240 | $2.40 | $3.60 |
| Cached input | 12 | $0.12 | $0.18 |
| Output | 1,200 | $12.00 | $18.00 |
Applied to the code review example above (79.2M cached, 26.4M uncached, 13.2M output), that comes to 950.4 + 6,336 + 15,840 = 23,126.4 credits, or about $231 a month on plan credits. Note that output is about two thirds of the total, which matches the general pattern.
Chat models on Unicorn API use the OpenAI-compatible /v1/chat/completions endpoint, so the same code works whichever model you pick. This Python script sends a request and computes its exact cost from the usage the model reports:
import os
import requests
API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}
# Gemini 4 Neon rates in credits per 1M tokens
RATES = {"input": 240, "cached": 12, "output": 1200}
resp = requests.post(
f"{API}/v1/chat/completions",
headers=HEADERS,
json={
"model": "gemini-4-neon",
"messages": [
{"role": "system", "content": "You review code diffs. Reply in at most five bullet points."},
{"role": "user", "content": "Review this diff:\n- return a+b\n+ return a - b"},
],
"max_tokens": 400,
},
timeout=120,
)
resp.raise_for_status()
data = resp.json()
usage = data["usage"]
cached = (usage.get("prompt_tokens_details") or {}).get("cached_tokens", 0)
uncached = usage["prompt_tokens"] - cached
output = usage["completion_tokens"]
credits = (uncached * RATES["input"]
+ cached * RATES["cached"]
+ output * RATES["output"]) / 1_000_000
print(data["choices"][0]["message"]["content"])
print(f"Tokens: {uncached} input, {cached} cached, {output} output")
print(f"Cost: {credits:.4f} credits (about ${credits * 0.01:.5f} on plan credits)")
Run it on 50 real prompts, sum the credits and you have a measured cost per request instead of a guess. You can also get the exact price of a request before running it with POST /v1/models/price; the request format is in the API documentation. To get started, create an API key. If you work inside Cursor or Claude Code, the agents page shows how to connect the same key over MCP.
The same credits cover media models, which is where a single bill pays off. For instance, a 5-second 720p clip from Grok Imagine Video 1.5 is 22.5 credits, and MAGI-2 Text to Video is 17.6 credits per second at 1080p.
Common mistakes that inflate API bills
- Budgeting from a subscription price. An app plan’s monthly fee tells you nothing about Kimi AI API pricing for your own software. Use per-token rates.
- Comparing only input prices. Input is the cheap line. Output, including reasoning, usually drives the bill.
- Ignoring thinking tokens. A thinking model on a simple task can produce many times more output tokens than the visible answer. Check
completion_tokens, not the length of the reply. - Breaking the cache. Dynamic content at the start of the prompt means every request pays full input price. Keep stable content first, variable content last.
- Unbounded history. Resending a long conversation on every turn multiplies input cost. Summarise or trim old turns.
- Using a stale or third-party price. Confirm the model ID, the seller and the date before you put a number in a spreadsheet.
- No spending cap. A looping agent can run all night. Set limits and alerts before you deploy.
The short version: Kimi AI API pricing is easy to reason about once you separate the app from the API, take rates from the seller you will actually call, and measure your real token usage. Do that for every model on your shortlist, and the cheapest option for your workload becomes obvious.
Frequently asked questions
Is the Kimi 2.6 API free?
No. The Kimi API is billed per token through Moonshot's developer platform. The consumer Kimi app has a free tier, but that covers chatting in the app, not programmatic access. New developer accounts sometimes receive small trial credits, so check the platform's billing page when you sign up. Any free allowance is meant for testing and will not cover a production workload.
How much do API keys cost?
The key itself is free on almost every platform, including Moonshot's. You pay for usage: tokens for chat models, images or seconds of video for media models. Some providers require a prepaid balance before the key works. On Unicorn API, creating a key is free and usage is paid in credits, either from a monthly plan or from top-ups that never expire.
How is API pricing calculated?
For chat models, the provider counts the tokens you send (input), the tokens the model returns (output) and sometimes input served from cache. Each count is multiplied by its per-million rate and summed. Reasoning or thinking tokens are billed as output. Media models are priced per image, per clip or per second of video, often varying with resolution and quality.
What API does Kimi use?
Kimi models are served by Moonshot AI through its own developer platform, which exposes an OpenAI-style chat completions interface. That means most OpenAI SDKs work by changing the base URL, API key and model name. Kimi models are also resold through third-party routers, which use the same request format but set their own per-token prices.
Why do Kimi API prices differ between websites?
Pages compare different model versions, different dates and different sellers. Moonshot's own rates, router rates and app subscription prices are three separate things, and some pages convert from Chinese yuan using their own exchange rate. Always check which model ID, which seller and which date a quoted price refers to before using it in a budget.