Skip to main content
Moonshot AI

Kimi K2.7 Code pricing, context window and limits

Kimi K2.7 Code costs $0.9711 per million input tokens and $4.0337 per million output tokens at Moonshot AI list price. It accepts up to 262,144 tokens of context and returns up to 262,144 tokens.

  • Model id kimi-k2.7-code
  • Snapshot

What does Kimi K2.7 Code cost?​

List prices in US dollars per million tokens
Input$0.9711
Output$4.0337
Cached input (read)$0.1942
Cache write—

US dollars per million tokens. A dash means no price is published.

How much can Kimi K2.7 Code read and write?​

Token limits
Context window262,144
Max output262,144

What can Kimi K2.7 Code do?​

Capabilities
Vision (image input)Yes
Tool callingYes
Structured outputYes
ReasoningYes
Inputtext, image, video
Outputtext

What does a request to Kimi K2.7 Code cost?​

Cost of example requests at list price, in US dollars
A typical request: 1,000 tokens in, 500 out$0.003
A long request: 10,000 tokens in, 1,000 out$0.014
1,000 typical requests$2.99
1 million tokens in and 1 million out$5

Input read from the provider's prompt cache costs $0.1942 per million tokens instead of $0.9711, 80% less. A request that repeats a 1,000-token prompt from the cache costs $0.0022 instead of $0.003.

Among 6 Moonshot AI models with a published price, Kimi K2.7 Code is the cheapest by input price. Its context window is the 4th largest of 6. List prices only; discounts, batch prices and prices above 200K tokens are not shown.

How do I add Kimi K2.7 Code to Flightdeck?​

Copy this, open the provider's Models page in Flightdeck, paste it into Paste JSON, check the form and save. Release the model once the prices are right.

{
  "provider": "moonshot",
  "model": "kimi-k2.7-code",
  "name": "Kimi K2.7 Code",
  "inputPerMillion": 0.9711,
  "outputPerMillion": 4.0337,
  "cacheReadPerMillion": 0.1942,
  "contextTokens": 262144,
  "outputTokens": 262144,
  "tools": true,
  "reasoning": true,
  "structuredOutput": true,
  "inputModalities": [
    "text",
    "image",
    "video"
  ],
  "outputModalities": [
    "text"
  ]
}

How do I call Kimi K2.7 Code through DVARA?​

Configure the moonshot provider in the DVARA LLM Gateway and send the model id kimi-k2.7-code. DVARA, the AI gateway, applies your policies, audit and cost attribution to the call. See LLM cost attribution and budgets.

In DVARA, if you haven't set your own price for a model, its calls are costed at the price in the catalogue that ships with your DVARA version. A price you set in Flightdeck always wins. You can switch catalogue prices off. Then a model with no price you set gets no cost record: its calls count against no budget and appear in no report, and the gateway records the model as unpriced. Every cost record says which price it used.

What should I check before relying on this data?​

The weekly review marked this entry. A person saw each mark and kept the model listed.

  • The price differs by more than 1% from another published price list.

Which other Moonshot AI models are there?​

All 6 Moonshot AI models · Search the full catalogue

Which models from other providers are similar to Kimi K2.7 Code?​

These are the closest in context window and input price, one per provider.

Snapshot 23 November 2026. DVARA reviews every price weekly before it is published. Get the whole catalogue as llm-models.json. Prices are list prices in US dollars per million tokens; check your provider contract before you budget.