Moonshot AI · Model
Kimi K2.7 Code pricing, context window and specs
Kimi K2.7 Code costs $0.6712 per million input tokens and $3.35 per million output tokens, and reads up to 262,144 tokens per request. By blended price it is the cheapest of Moonshot AI’s 2 current models here.
- Input / 1M
- $0.6712
- Output / 1M
- $3.35
- Cached / 1M
- $0.18
- 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
Kimi K2.7 Code API pricing
| Price per 1M tokens | Input | Output |
|---|---|---|
| Standard | $0.6712 | $3.35 |
| Cached input (read) | $0.18 | – |
Output costs 5.0× the input price, so long replies drive the bill more than long prompts. If your requests share a long fixed prefix, such as a system prompt or tool definitions, caching cuts that part to 27% of the normal input price.
Examples
What Kimi K2.7 Code costs in practice
| Workload | Tokens in / out | Requests/day | Per request | Per month |
|---|---|---|---|---|
| Support chatbot50% cached | 1,500 / 400 | 1,000 | $0.00198 | $60.18 |
| RAG app20% cached | 6,000 / 500 | 500 | $0.00511 | $77.76 |
| Coding agent80% cached | 40,000 / 2,000 | 200 | $0.0178 | $108.46 |
| Document summariser | 8,000 / 600 | 300 | $0.00738 | $67.34 |
Change any number in the cost calculator.
Context
Context window
Kimi K2.7 Code accepts up to 262,144 tokens per request, roughly 196,608 English words or 393 pages. That budget is shared between your prompt and the reply, and no separate cap on the reply is published.
Filling the whole window with one prompt costs about $0.18 at list price, so for repeated long-document work, retrieval (sending only the relevant parts) or prompt caching is usually much cheaper.
Features
Capabilities
- 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
Kimi K2.7 Code 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 Kimi K2.7 Code sits in Moonshot AI’s line-up
Ranked by blended price (three parts input to one part output, $1.3409 per 1M for Kimi K2.7 Code), it is the cheapest of Moonshot AI’s 2 current models here. One step up, Kimi K3 costs $3.10 (2.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
| Model | Input / 1M | Output / 1M | Context | Released |
|---|---|---|---|---|
| Kimi K2.7 Code (this page) | $0.6712 | $3.35 | 262,144 | 2026-06-12 |
| Kimi K3 | $0.80 | $10 | 1,048,576 | 2026-07-16 |
Moonshot AI’s current models with a page here, cheapest first. Older and superseded models are listed on the provider page and in the comparison table.
Save
Cheaper alternatives
- Gemma 4 31BGoogle89% cheaper
- Seed-2.0-MiniByteDance Seed87% cheaper
- GPT-6 LunaOpenAI85% cheaper
- Claude Haiku 5.5Anthropic85% cheaper
- Qwen3.8 Omni FlashQwen83% cheaper
Current models from major providers, one per provider, that keep image input, tool calling, a reasoning mode, a usable context window and output limit. Compared by blended price.
Compare
Similarly priced models
- Qwen3.5 397B A17BQwen$0.55 / $3.50
- Grok Build 0.1xAI$1 / $2
- Gemini 3.8 FlashGoogle$0.75 / $3.75
- Seed-2.0-CodeByteDance Seed$0.50 / $3
- GPT-5.4 MiniOpenAI$0.75 / $4.50
Current models from other major providers, closest blended price.
FAQ
Kimi K2.7 Code questions
How much does Kimi K2.7 Code cost?
Kimi K2.7 Code costs $0.6712 per million input tokens and $3.35 per million output tokens, with cached input at $0.18. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.00235. 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.18 per million tokens (27% 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 Gemma 4 31B (89% cheaper), Seed-2.0-Mini (87% cheaper), GPT-6 Luna (85% 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.
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.