Skip to content
AI Dev Toolkit.
Esc
  • AI Token CounterCount tokens for GPT, Claude, Gemini, DeepSeek, Qwen and more.Tool
  • LLM API Cost CalculatorEstimate per-request, daily and monthly API costs.Tool
  • AI Model ComparisonCompare prices, context windows and features across models.Tool
  • AI Model Pricing PagesSpecs, real costs and cheaper alternatives for popular models.Tool
  • Context Window CheckerSee whether your text fits each model’s context window.Tool
  • Subscription vs API CalculatorFind out whether a chat plan or the API is cheaper for you.Tool
  • GPU / VRAM CalculatorCheck how much VRAM a local model needs and which GPUs fit.Tool
  • Prompt Caching CalculatorEstimate savings from prompt caching.Tool

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 tokensInputOutput
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

WorkloadTokens in / outRequests/dayPer requestPer month
Support chatbot50% cached1,500 / 4001,000$0.00198$60.18
RAG app20% cached6,000 / 500500$0.00511$77.76
Coding agent80% cached40,000 / 2,000200$0.0178$108.46
Document summariser8,000 / 600300$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.

Check whether your text fits Kimi K2.7 Code’s window.

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

ModelInput / 1MOutput / 1MContextReleased
Kimi K2.7 Code (this page)$0.6712$3.35262,1442026-06-12
Kimi K3$0.80$101,048,5762026-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

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

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.

Updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily; open-weight prices are typical hosted prices. Confirm critical numbers on Moonshot AI’s pricing page. See our methodology.