Moonshot

Moonshot

Kimi K2.7 Code

Moonshot's coding-specialist build of Kimi K2 on Kyma — a trillion-parameter mixture-of-experts model tuned for end-to-end programming, with a 262K-token context window and an always-on thinking mode.

Modalities

Text+Image → Text

Below release

None reported

Weights

Published

moonshotai/Kimi-K2.7-Code

Where it sits in the catalogue Kyma measures

Every number against every text model Kyma prices per token — a stated rule, not a chosen line-up.

Price · input#35/71

$1.009

output $4.774

median $1.013 · best $0.0494

Price · output#42/70

$4.774

per 1M tokens generated

median $3.531 · best $0.218

Availability · 30d#1/70

100%

45 observations since 2026-06-19

median 96.5% · best 100.0%

Throughput#41/66

32 tok/s

probe median, one fixed prompt

median 36.3 tok/s · best 377.8 tok/s

Response time#38/66

2.97 s

probe median, to a complete answer

median 2.73 s · best 0.84 s

Context

262K

max output 16,384

published by Moonshot, not measured here

Tick above each rail is this model, below it the other 70. Dashed rule is the field median, solid is its best. Better is left; the axis stops at the 90th percentile, so a few models sit past its right edge.

Usage

How much this model is actually called here.

Rank

#44

of 100 active models

Tokens served

3.1M

all-time

Platform share

0.1%

of all tokens

Pricing

Pay per token. Cached input bills at this model’s own cached rate, listed below.

$1.009 /1M input$4.774 /1M output
Hobby10 req/day · 2K in / 500 out
~$1.32/mo
Production1,000 req/day · 2K in / 500 out
~$132/mo
Scale20,000 req/day · 2K in / 500 out
~$2,643/mo
+ Estimate your workload
1,000
2,000
500

Estimated monthly cost

$132

$4.40 / day on Kimi K2.7 Code

Same workload on:

Kimi K3$509+285%
Kimi K2.6$102-23%

Estimates use list pricing. Actual bills depend on real token counts, and every response includes its exact cost.

When to use Kimi K2.7 Code

Updated 2026-06-19

Where this model earns its cost — and where it doesn't.

Kimi K2.7 Code is Moonshot AI's June 2026 coding-focused release in the Kimi K2 family, a 1T-parameter mixture-of-experts model released under a modified MIT license. Where the general K2.6 spreads across agentic, vision, and reasoning work, K2.7 Code is built to complete programming tasks reliably over long contexts, and it always operates in a thinking mode that preserves full reasoning across multi-turn conversations.

Against K2.6 it posts +21.8% on Kimi Code Bench v2 and +31.5% on MLS Bench Lite while using roughly 30% fewer reasoning tokens — so it tends to reach a correct answer with less generated text, which lowers the effective cost on output-heavy coding loops. It accepts both text and image input and supports function calling and structured outputs, so it slots into existing agent frameworks.

On Kyma it routes with automatic failover across multiple serving paths, bills exact per-request cost in usage.cost, and is reachable with the same OpenAI-compatible key as every other model. The 262K-token context window holds a substantial codebase plus the agent's working state, and the always-thinking design suits multi-step tasks over one-shot replies.

End-to-end coding tasks

Its core design target — completing programming work reliably across long contexts rather than answering isolated snippets.

Agentic programming loops

Function calling plus structured outputs keep read-edit-test-iterate agent cycles parseable and on schema.

Cost-sensitive coding

Roughly 30% fewer reasoning tokens than K2.6 means lower output spend on long, output-heavy sessions.

Multimodal code context

Text-plus-image input lets you pass screenshots, diagrams, or UI mockups alongside the code prompt.

Not ideal for: Quick interactive chat where its always-on thinking mode adds latency, or general non-coding agentic work — for that, Kimi K2.6 is the better fit.

How it compares

Against the peers people actually weigh it against.

SpecKimi K2.7 CodeKimi K3Kimi K2.6
Input /1M$1.009$3.768$0.7856
Output /1M$4.774$18.837$3.667
Context262K1M262K
ToolsYesYesYes
ReasoningYesYesYes
Throughput32 tok/s49 tok/s29 tok/s

Quick start

Up and running in under two minutes.

  1. 1

    Create an API key

    Sign up and grab a key from the dashboard. Kimi K2.7 Code needs a top-up — the signup credit covers the free tier.

    Get API key →
  2. 2

    Make your first request

    Drop in your key and send a chat completion — fully OpenAI-compatible.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "kimi-k2.7-code",
        "messages": [
          {"role": "user", "content": "Explain prompt caching in one paragraph."}
        ]
      }'
  3. 3

    Stream responses

    Add "stream": true to receive tokens as they arrive.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "kimi-k2.7-code",
        "stream": true,
        "messages": [{"role": "user", "content": "Hello!"}]
      }'

FAQ

Common questions about this model.

What is the context window of Kimi K2.7 Code?

Kimi K2.7 Code has a 262K-token context window — roughly 386 pages of text in a single request.

How much does the Kimi K2.7 Code API cost?

$1.009 per 1M input tokens and $4.774 per 1M output tokens. No subscription; you pay only for what you use.

Does Kimi K2.7 Code support function calling?

Yes — Kimi K2.7 Code supports tool/function calling and structured outputs (JSON mode), so it works with agent frameworks out of the box.

Are the weights for Kimi K2.7 Code publicly available?

Yes. Moonshot publishes Kimi K2.7 Code's weights as moonshotai/Kimi-K2.7-Code, so you can download and run the model yourself (https://huggingface.co/moonshotai/Kimi-K2.7-Code, read 2026-08-14). Kyma serves it because it is convenient and has failover behind it, not because it is the only way to reach it.

Is Kimi K2.7 Code ever served below the precision its creator released it at?

Not as far as Kyma can see. Kimi K2.7 Code was released by Moonshot at int4 + bf16 (https://huggingface.co/moonshotai/Kimi-K2.7-Code, read 2026-08-14), and no route serving it here reports a format below that, as checked on 2026-09-21. Read that as the absence of a claim rather than as a guarantee: a route publishes its precision only where it chooses to, and most state nothing either way.

How do I use Kimi K2.7 Code?

Kyma is OpenAI-compatible: point your SDK's base URL at https://kymaapi.com/v1, use your Kyma API key, and set the model to kimi-k2.7-code. Signing up is free, but this model needs a top-up: the $0.50 signup credit covers the free tier only.

How is Kimi K2.7 Code different from K2.6?

K2.7 Code is the coding-specialist build: it posts +21.8% on Kimi Code Bench v2 versus K2.6 and uses about 30% fewer reasoning tokens, but it's tuned for programming rather than the broad agentic and vision work K2.6 covers. It always runs in thinking mode and has a 262K context window.

Does Kimi K2.7 Code support tool calling and images?

Yes — it supports function calling and structured outputs, and accepts both text and image input, so it works in agent frameworks and can take screenshots or diagrams alongside a code prompt.

Why run Kimi K2.7 Code through Kyma?

One OpenAI-compatible key and endpoint cover this and every other model on the platform, with automatic failover when a serving path degrades, and exact per-request cost in usage.cost.

Needs a top-up — the signup credit covers the free tier.Create account →

More models by Moonshot

ModelContextInputOutput
MoonshotKimi K31M$3.768$18.837
MoonshotKimi K2.6262K$0.7856$3.667