Try Kimi at kimi.com →

Kimi K2.7 Code

Kimi K2.7 Code is Moonshot AI's model made for programming. You give it a coding task, and it reads your files, makes changes, runs tests and keeps going until the job is done. It is the model behind much of Kimi's coding work today. This page explains what it does, what it costs and how to use it.

Announced 16 June 2026Current model
Kimi K2.7 Code at work $ kimi "fix the failing login test"thinking: find where the session is setread auth/session.pyedit auth/session.py +6 -2run pytest tests/test_login.pyPASS 14 tests Think, act, check, repeat ✓

An illustration of the working loop, not a recording of a real session.

We are an independent guide. Kimi K2.7 Code is made by Moonshot AI. We are not affiliated with them. The scores on this page are Moonshot's own published figures, not our tests. Prices and limits change, so confirm them on Moonshot's sites.
QUICK ANSWER

The short version

  1. 1

    What it is

    Kimi's dedicated coding model, built on Kimi K2.6 and tuned for long tasks.

  2. 2

    What it costs

    $0.95 in and $4 out per million tokens on the API. HighSpeed is double.

  3. 3

    How to use it

    Through the Kimi Code tool, the API, or by running the open weights yourself.

THE MODEL

What Kimi K2.7 Code is

Most AI models are generalists. Kimi K2.7 Code is a specialist. Moonshot took its general model, Kimi K2.6, and trained it further for one kind of work: software tasks that take many steps. Moonshot describes it as following instructions more reliably in long sessions and finishing coding tasks more often.

256Ktokens it can read at once, enough for a large codebase
30% fewerthinking tokens than Kimi K2.6, on average
180+tokens a second in the HighSpeed version
Openweights, under a Modified MIT License

From Moonshot's model card, models page and launch announcement. Under the hood it is the same size as Kimi K2.6: about 1 trillion parameters, with 32 billion active at a time.

CHANGES

What changed from Kimi K2.6

Built for long jobs

Moonshot says it succeeds more often on very long runs: sequences of more than 4,000 tool calls and more than 12 hours of continuous work.

Less wasted thinking

It uses about 30% fewer thinking tokens than Kimi K2.6. That means lower bills and faster answers for the same work.

Always thinks first

Thinking is switched on permanently. There is no instant mode, unlike Kimi K2.6.

A faster version

HighSpeed runs the same model at about 180 tokens a second, for people who want quicker responses and will pay more.

SCORES

How it scored

Moonshot published six test results comparing Kimi K2.7 Code with Kimi K2.6. Higher is better. It improved on all six.

Kimi Code Bench v2

Moonshot's own coding test

K2.650.9
K2.7 Code62.0

Program Bench

Writing whole programs

K2.648.3
K2.7 Code53.6

MLS Bench Lite

Machine-learning engineering tasks

K2.626.7
K2.7 Code35.1

Kimi Claw 24/7 Bench

Moonshot's own long-running agent test

K2.642.9
K2.7 Code46.9

MCP Atlas

Using outside tools

K2.669.4
K2.7 Code76.0

MCP Mark Verified

Using outside tools, verified

K2.672.8
K2.7 Code81.1
Read these with care. All six are Moonshot's own figures, and two of the tests were created by Moonshot. We did not run them. On the same model card, Moonshot's table shows OpenAI's GPT-5.5 ahead on all six tests and Anthropic's Claude Opus 4.8 ahead on five. Kimi K2.7 Code's case is strong results at a much lower price, not first place.

For outside views, see our Kimi AI review and the comparison hub.

SPEED

Standard or HighSpeed?

StandardHighSpeed
API namekimi-k2.7-codekimi-k2.7-code-highspeed
SpeedNormalAbout 180 tokens a second, up to 260 in short conversations
Input price$0.95$1.90
Repeated input$0.19$0.38
Output price$4.00$8.00
QualityThe same model, so the same answers
Pick it whenCost matters, or jobs run in the backgroundYou are waiting at the keyboard and time matters

On a small screen, swipe the table sideways to see every column.

Prices are per million tokens, before tax, from Moonshot's price page. More: K2.7 Code HighSpeed.

GET STARTED

Four ways to use it

Kimi Code

Moonshot's coding tool for your terminal. The route Moonshot recommends. Needs a paid Kimi membership.

Kimi Code setup

The API

Call the model from your own software or another coding tool. Pay per token, no subscription.

K2.7 Code API

The Kimi app

Moonshot's launch post says it is available in chat and agent mode at kimi.com.

Kimi for coding

Your own servers

Download the open weights from Hugging Face. Needs a multi-GPU server and the skills to run it.

Notes below

Not a programmer? You do not need this model directly. To build a site or an app screen without code, start with the Website Builder or Design to Code.
COST

Prices and calculator

On the API you pay for the text going in and the text coming out. Enter a month's usage to compare the two versions.

Standard, a month$0
HighSpeed, a month$0

List prices before tax. "Repeated input" is text the model has already seen, which costs much less. Coding tools resend a lot of the same context, so the share is often high, but yours will differ. Thinking counts as output.

Coding every day? A Kimi membership with Kimi Code may cost less than paying per token. See API vs subscription, API pricing and Kimi AI pricing.

TRY IT

Prompts to try

A coding model works best with a clear goal and a way to check its work. Replace the parts in [brackets].

Fix a bug

The test [test name] is failing. Find the cause, fix it with the smallest change you can, and run the tests again to confirm.

Understand a project

Read this project and explain how it is organised. List the main folders, what each does, and where I should look to change [feature].

Add a feature

Add [feature] to this project. First show me your plan and wait for my OK. Then make the changes and add tests for them.

Full walkthrough: Kimi Code setup and first coding task.

HONEST NOTES

Limits to keep in mind

CHOOSE

Kimi K2.7 Code, K2.6 or K3?

Kimi K2.7 CodeKimi K2.6Kimi K3
Made forProgrammingEveryday general workThe hardest tasks of any kind
Reads at onceAbout 262K tokensAbout 262K tokensAbout 1 million tokens
ThinkingAlways onOn or offAlways on
API price, in / out$0.95 / $4.00$0.95 / $4.00$3.00 / $15.00
Faster versionYes, HighSpeedNoNo
Pick it forDaily coding at a low priceChat, writing and mixed tasksHuge codebases and deep reasoning

On a small screen, swipe the table sideways to see every column.

More: Kimi K2.6 · Kimi K3 · choose a Kimi model

FAQ

Kimi K2.7 Code questions

Kimi K2.7 Code is Moonshot AI's dedicated coding model, announced on 16 June 2026. It is built on Kimi K2.6 and tuned for long programming tasks where the model works through many steps with tools.

On Moonshot's API it costs $0.95 per million input tokens and $4.00 per million output tokens. The HighSpeed version costs double: $1.90 and $8.00. Prices exclude tax. In Kimi Code it is included with a paid membership.

A faster version of the same model. Moonshot says it writes about 180 tokens a second, and up to 260 in short conversations. It costs twice as much on the API.

For coding, Moonshot's own tests say yes on all six benchmarks it published, and it uses about 30% fewer thinking tokens. Kimi K2.6 remains the more flexible general model, because its thinking can be switched off.

Its weights are published on Hugging Face under a Modified MIT License. Running it needs powerful server hardware. Read the license before commercial use.

Yes. Moonshot's model card lists text and image input. Video input is described as experimental and limited to Moonshot's own API.
NEXT

Related guides

Start coding with Kimi

Kimi Code and the API are on Moonshot AI's own sites. We are an independent guide and do not offer sign-in or downloads here.