Moonshot AI · Model
Kimi K2.7 Code API pricing, cost and context window
Kimi K2.7 Code costs $0.60 per million input tokens and $3 per million output tokens. Cached input costs $0.12. It reads up to 262,144 tokens. Prices checked 2026-11-28. By blended price it is the cheapest of Moonshot AI’s 3 current models here.
- Input / 1M
- $0.60
- Output / 1M
- $3
- Cached / 1M
- $0.12
- Context
- 262,144
- Max output
- Not published
- Released
- 2026-06-12
Estimate your cost with Kimi K2.7 CodeCompare all Moonshot AI modelsCount tokens for Kimi K2.7 Code
Pricing
How much does Kimi K2.7 Code cost per million tokens?
| Price per 1M tokens | Input | Output |
|---|---|---|
| Standard | $0.60 | $3 |
| Cached input (read) | $0.12 | – |
Output costs 5.0× the input price; a cache hit costs 20% of it.
Work out your monthly Kimi K2.7 Code bill in the cost calculatorSee what prompt caching saves
History
Has Kimi K2.7 Code’s price changed?
Price cut, −12% blended
- Input
- from $0.65 to $0.60
- −7.7%
- Output
- from $3.50 to $3
- −14%
- Cached input
- from $0.16 to $0.12
- −25%
Price cut, −6.8% blended
- Input
- from $0.70 to $0.65
- −7.1%
- Output
- from $3.75 to $3.50
- −6.7%
- Cached input
- from $0.17 to $0.16
- −5.9%
Price increase
- Cached input
- from $0.16 to $0.17
- +6.3%
Price increase, +10% blended
- Input
- from $0.60 to $0.70
- +17%
- Output
- from $3.50 to $3.75
- +7.1%
Price increase
- Cached input
- from $0.15 to $0.16
- +6.7%
Price increase, +11% blended
- Input
- from $0.56 to $0.60
- +7.1%
- Output
- from $3.10 to $3.50
- +13%
Price cut, −6.6% blended
- Input
- from $0.6725 to $0.56
- −17%
Price increase, +7.1% blended
- Input
- from $0.56 to $0.6725
- +20%
Price cut, −11% blended
- Input
- from $0.6712 to $0.56
- −17%
- Output
- from $3.35 to $3.10
- −7.5%
Price cut
- Cached input
- from $0.18 to $0.15
- −17%
Price increase, +4.9% blended
- Output
- from $3.10 to $3.35
- +8.1%
Price cut, −4.7% blended
- Output
- from $3.35 to $3.10
- −7.5%
Kimi K2.7 Code has open weights, so this is the price of OpenRouter’s top-ranked host, which can move when hosts change rather than because Moonshot AI changed its price. Every change across all models is in the AI pricing changes log.
Examples
How much does a typical Kimi K2.7 Code request cost?
| Workload | Tokens in / out | Requests/day | Per request | Per month |
|---|---|---|---|---|
| Support chatbot50% cached | 1,500 / 400 | 1,000 | $0.00174 | $52.93 |
| RAG app20% cached | 6,000 / 500 | 500 | $0.00452 | $68.80 |
| Coding agent80% cached | 40,000 / 2,000 | 200 | $0.0146 | $89.06 |
| Document summariser | 8,000 / 600 | 300 | $0.0066 | $60.23 |
Change any number in the cost calculator.
Context
What is Kimi K2.7 Code’s context window and max output?
Kimi K2.7 Code accepts up to 262,144 tokens per request, roughly 196,608 English words or 393 pages, prompt and reply together; no separate reply cap is published.
Filling the whole window with one prompt costs about $0.16 at list price.
Features
What can Kimi K2.7 Code do?
- Image input
- Yes
- Tool / function calling
- Yes
- Reasoning mode
- Yes
- Prompt caching
- Yes
- Structured output
- Yes
- Open weights
- Yes
- Accepts
- text, image
- Knowledge cutoff
- Not published
As declared by the provider’s API. It shows a feature exists, not how well it works.
API
What is the Kimi K2.7 Code API model ID?
- OpenRouter
moonshotai/kimi-k2.7-code- Open weights
- moonshotai/Kimi-K2.7-Code
Use the OpenRouter ID when calling it through OpenRouter; Moonshot AI’s own API may name it differently. See the model ID reference for the providers we document.
Moonshot AI
Where does Kimi K2.7 Code sit in Moonshot AI’s line-up?
Ranked by blended price (three parts input to one part output, $1.20 per 1M for Kimi K2.7 Code), it is the cheapest of Moonshot AI’s 3 current models here. One step up, Kimi K3.1 Pro costs $4 (3.3× as much). Unlike Kimi K2.7 Code, it accepts video and reads up to 1,048,576 tokens (262,144 here). See every Moonshot AI model and price
Save
What are cheaper alternatives to Kimi K2.7 Code?
- Seed-2.0-MiniByteDance Seed85% cheaper
- GPT-6 LunaOpenAI83% cheaper
- Claude Haiku 5.5Anthropic83% cheaper
Keeping image input, tool calling, reasoning; by blended price.
Compare
Which models cost about the same?
- Qwen3.5 397B A17BQwen$0.50 / $3.60
- Mistral Large 4Mistral$0.70 / $2.10
- DeepSeek V4 Pro 0423DeepSeek$0.89 / $1.5069
FAQ
Kimi K2.7 Code questions
How much does Kimi K2.7 Code cost?
Kimi K2.7 Code costs $0.60 per million input tokens and $3 per million output tokens, with cached input at $0.12. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.0021. Use the LLM cost calculator for your own workload.
What is Kimi K2.7 Code’s context window?
262,144 tokens, about 196,608 English words or 393 printed pages, shared between your prompt and the reply. No separate limit on the reply is published, so the window is the limit.
Does Kimi K2.7 Code support prompt caching and batch requests?
Yes, cached input is billed at $0.12 per million tokens (20% of the normal input price). No batch price is published for it.
What are cheaper alternatives to Kimi K2.7 Code?
With the same essentials (image input and tool calling), the cheapest options are Seed-2.0-Mini (85% cheaper), GPT-6 Luna (83% cheaper), Claude Haiku 5.5 (83% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.
What is the API model ID for Kimi K2.7 Code?
On OpenRouter it is moonshotai/kimi-k2.7-code. Moonshot AI’s own API may use a different name, so check its model list before you deploy. Pass the ID as the model value in each request.
When was Kimi K2.7 Code released?
Kimi K2.7 Code was first listed on 2026-06-12. It is the first model in its line in our data. Release dates here are when our price source first listed each model.
Is Kimi K2.7 Code open source?
Yes, Kimi K2.7 Code has open weights, so you can run it yourself or choose between several hosting providers. The prices here are a typical hosted price.
Keep exploring