Skip to content

Pricing · Beginner

Kimi API pricing explained: what you actually pay for

Kimi API pricing has three tiers per model: cache-hit input, cache-miss input, and output. Output is the most expensive everywhere — $15.00 per million tokens on Kimi K3, $4.00 on K2.6 and K2.7 Code. The cache-hit rate is the single largest lever on a real bill.

By

Last updated

Published

How is Kimi API pricing structured?

For each model, there are three prices (quoted per million tokens):

  • cache-hit input,
  • cache-miss input, and
  • output.

Kimi K3 adds a fourth price, cache-write input.

There's no free tier. It's pay-as-you-go. Top up a balance, spend tokens.

Except for Kimi K3, there are no special requirements to use a given model.

Except for Kimi K3, which requires that you've topped up your account with at least $1 (which also determines your rate limits).

Two observations:

  • Across all models, the output price is 4-5× the cache-miss input price. Long model responses are expensive!
  • Across all price tiers, K2.7 Code HighSpeed is exactly 2× K2.7 Code, even though they use the same model weights. You're paying for speed.
Model Input (hit) Input (miss) Output Context
Kimi K3 $0.30 $3.00 $15.00 1,048,576
Kimi K2.7 Code $0.19 $0.95 $4.00 262,144
Kimi K2.7 Code HighSpeed $0.38 $1.90 $8.00 262,144
Kimi K2.6 $0.16 $0.95 $4.00 262,144

USD per million tokens, excluding tax. Source: Moonshot's model pricing page, verified 22 October 2026. Kimi K2.5, which was cheaper on every tier, was discontinued on 31 August 2026.

What is context caching and why does it dominate real bills?

Moonshot automatically caches the prefix of your prompt, if it's seen it before. Those tokens then cost much less - for Kimi K3, $0.30 instead of $3.00 per million tokens, a factor of 10.

This can substantially impact your total cost, especially in agentic settings, where often most of the prompt (system prompt, tool definitions, few-shot examples, etc.) is the same every time, and only a relatively small user prompt is appended.

For example, assuming a prompt structure with 100,000 input tokens and 5,000 output tokens, using Kimi K3:

Cache state Input served from cache Cost per request
Cold 0% $0.375
Warm 80% $0.159

... results in a 58% saving, simply due to the structure of the prompt.

Make sure the start of your prompt is static! Including something that changes, like a timestamp or session ID, or even the order of few-shot examples, can break prompt caching and result in losing this potentially-significant discount.

How do Kimi K3's 5-minute and 1-hour cache writes work?

Kimi K3 adds an additional wrinkle. Cache writes are an explicit cost, and you can choose the cache lifetime, 5 minutes (default) or 1 hour.

A cache write with a 5-minute lifetime costs $3.00 per million tokens - i.e. the same as the cache-miss input price. This means that using the default options doesn't change the cost from what it was before.

Billing item on Kimi K3 Price per 1M tokens When it applies
Input, cache miss $3.00 The part of a request that misses the cache
Cache write, 5 minutes $3.00 Once, when a prefix is first written. The default
Cache write, 1 hour $6.00 Once, when a prefix is first written with the longer lifetime
Cached input $0.30 The part of a request served from the cache

When does the 1-hour cache pay off?

A cache write with a 1-hour lifetime costs $6.00 per million tokens. When might that be worth it? If your prompts are repeated within an hour, but not within 5 minutes. With the default 5-minute lifetime, they would all have triggered new cache writes. With the 1-hour lifetime, you pay for a write once, and all subsequent prompts within the hour get the discounted price.

For a prompt with 1 million tokens, this would look like:

Requests in the hour, over 5 minutes apart 5-minute cache 1-hour cache Saving with 1-hour
1 $3.00 $6.00 -$3.00
2 $6.00 $6.30 -$0.30
3 $9.00 $6.60 $2.40
5 $15.00 $7.20 $7.80
10 $30.00 $8.70 $21.30

... so the 1-hour lifetime isn't worth it for 1-2 repeated prompts, but pays off from the third prompt onwards. (This agrees with the break-even point in Moonshot's documentation.) If your repeated prompts usually come in less than 5 minutes apart, however, don't bother. And if they come in less than once per hour, neither option will be of much use.

The cache lifetime is set per-request, using prompt_cache_options. With the OpenAI SDK, you can use extra_body:

response = client.chat.completions.create(
    model="kimi-k3",
    messages=messages,
    extra_body={"prompt_cache_options": {"mode": "implicit", "ttl": "1h"}},
)

Three further things to note, from Moonshot's documentation:

  • When the prompt is repeated within the lifetime, it renews the lifetime of the cache entry, and costs nothing extra. To use a different cache lifetime, you have to wait for the current entry to expire.
  • Prompt caching happens within your organisation, but not across organisations, and cannot be manually cleared.
  • Prompts are cached in chunks, and an uncached final partial chunk will be billed at the cache-miss input price.

How can you see what was cached and what was written?

Check the usage field returned with each response. It should now contain three statistics, the total number of input tokens, the number of these served from the cache, and the number written to the cache. (The Anthropic-compatible Messages API instead reports cache_read_input_tokens and cache_creation_input_tokens.) Cross-check these with your final bill - it's the only reliable way to validate cost estimates, ours included.

What you want to know Field in a Chat Completions response
Total input tokens usage.prompt_tokens
Input read from the cache usage.prompt_tokens_details.cached_tokens
Input written to the cache usage.prompt_tokens_details.cache_write_tokens

What do the three mistakes look like?

Here are three ways that we found can lead to your actual Kimi K3 bill being significantly higher than your cost estimates:

  1. Kimi K3 has reasoning enabled by default

K3 will always do some level of reasoning, with the depth controlled using the reasoning_effort parameter, and by default, this is set to the most expensive option!

These reasoning tokens count towards output tokens, and will be billed at the (fairly hefty) $15.00 per million output tokens. Unless you know that your workload requires maximum reasoning effort, we would advise setting it to low, especially for high-volume simple use-cases where the extra cost may outweigh any marginal benefit.

  1. Assuming you'll always pay the advertised input price

...when in reality, if all your prompts are different, you'll always get a cache miss, and pay the full $3.00 (rather than $0.30) price. Equally, if you've thought hard about your prompts, and get lots of cache hits, using the cache-miss price for costing may overestimate your bill by 2-3×. Do some costing both ways!

  1. ...or forgetting about tax

Prices are stated excluding tax, which will be added at checkout depending on your tax regime. Depending on where you are, this may or may not be the rounding-error we were hoping for!

Does file processing cost extra?

Moonshot also offer an API for file storage and content extraction. As of writing, they explicitly state in their documentation that these APIs are temporarily free, so you can upload a file, and request the extracted content, without incurring a cost.

This isn't the same as saying that files are free, though. As soon as you start using that content as part of your model input, it will count towards your input tokens, just like anything else you might pass in. Extracting the text from a 200-page PDF is free. Asking Kimi to summarise it is not!

Also note the word temporarily - we wouldn't count on this sticking around forever, if you're building a business on top of it!

How should you actually estimate your costs?

Rather than simply costing based on $/M tokens, we would advise estimating your total costs like so:

  1. Estimate the number of tokens used per request - as a rough guide, for natural-language English text, there are around 3-4 characters per token, but this will vary depending on the exact content (code and non-English languages may not be as efficient). Use a token counter to get a better estimate if you can!
  2. ...separately for inputs and outputs - these have significantly different prices, and the latter are easy to underestimate if there's hidden reasoning going on
  3. Work out what proportion of input tokens are likely to be cache hits - we'd guess anything from 0-20% if your prompts are all over the place, through to 60-90% if you have an agentic use-case with a large static system prompt
  4. Multiply by your assumed usage and add tax

Our Kimi API cost calculator does steps 2-4 for you, across all models, and has a slider to control your assumed cache hit-rate, a variable that most calculators seem to miss out, but makes a big difference!

Is the Kimi API cheaper than the alternatives?

Depends! "How much does it cost?" is always a tricky question to answer, as the $/M tokens price-tag may not be the most relevant number, it's all very well Model A being cheaper than Model B, but that doesn't necessarily mean it's the better choice for your particular workload.

That said, without quoting any unverified numbers, we can at least highlight some of the potentially-significant within-Kimi deltas that we can verify from Moonshot's pricing page:

For models available to new sign-ups, there's up to a 3.75× difference in output pricing (between $4.00 and $15.00)

... and a 10× difference between cached and non-cached input tokens (at least for K3)

...both of which are likely to make a bigger difference to your overall bill than the vendor/model deltas you're worrying about!

Get your costs as low as possible with good prompting, whatever model you're using - it's the cheapest trick there is!

Frequently asked questions

How much does the Kimi API cost?

Depends which model you're using! To summarise, Kimi K3 costs $3.00 for cache-miss input and $15.00 for output. Kimi K2.6 and Kimi K2.7 Code cost $0.95 and $4.00. All prices ex. tax and per million tokens.

Which Kimi model is cheapest?

Kimi K2.6 currently has the cheapest cache-hit price, at $0.16, although its other rates ($0.95/$4.00) are also tied with Kimi K2.7 Code for the lowest. Kimi K2.5 was even cheaper, but has been discontinued as of 31 August 2026.

What is context caching and how much does it save?

Essentially, if you've got any commonality between your prompts, Moonshot will (hopefully!) automatically cache the shared prefix, and charge you accordingly. On Kimi K3 this can make a 10× difference to your input token price ($0.30 instead of $3.00).

What is the difference between the 5-minute and 1-hour cache on Kimi K3?

There are effectively two different cache-write prices for Kimi K3. $3.00 (i.e. the same as non-cached input) for the default 5 minute cache duration, and $6.00 if you want it kept around for an hour instead. The longer TTL can pay for itself from just two re-uses (assuming >5 mins apart, obviously).

Does the Kimi API have a free tier?

Unfortunately not - it's pay-as-you-go only, with no (permanent) free tier and no subscription option. You will need to add some funds to your account before you can get started, indeed, you won't even have access to Kimi K3 until you've topped up with at least $1. NB. Kimi API usage is billed separately from Kimi Code and/or Kimi Membership.

Are Kimi API prices inclusive of tax?

Nope. Moonshot point out that the tax owed will depend on your location, and will be calculated at checkout.

Do file uploads cost anything on the Kimi API?

As far as we can tell from Moonshot's documentation, both file storage and content extraction are currently free of charge. That said, once extracted, the contents will presumably be passed to your chosen model as inputs, at which point they'll attract the usual input token cost, as with any other data.

Models mentioned

  • Kimi K3 is Moonshot AI’s flagship model, with 2.8 trillion parameters, native visual understanding and a 1,048,576-token context window.

  • Kimi K2.7 Code is Moonshot AI’s coding-focused model, with a 262,144-token context window and higher instruction-following reliability in long contexts.

  • Kimi K2.6 is a general-purpose model with a 262,144-token context window, supporting text, image and video input across thinking and non-thinking modes.

Read next