Moonshot · Open weights
Kimi K2.7 Code
Kimi K2.7 Code is Moonshot AI's coding-focused agentic model built for long-horizon software engineering workflows. It supports native image input, tool calling, and forced thinking mode; instant/non-thinking mode is not supported.
- Reasoning
- Tools
- Vision
- Parallel tools
- Input
- Text, Images
- Output
- Text
- Discovery tier
- Open weights
Pricing
USD per 1M tokens- Input
- $0.67
- Output
- $3.35
- Cache read
- $0.15
Reference prices as published by the model provider. API example
Specifications
- Context window
- 262.1K
- Max output
- 65.5K
- Average output (7 days)
- 1.8K tokens
- Longer than 89% of 473 models
Side by side
Kimi K2.7 Code compared
Specifications, prices, speed and benchmark scores next to each other. Benchmarks below show every compared model too.
| Kimi K2.7 CodeMoonshotThis model | Grok 4.20xAIRemove | |
|---|---|---|
| Provider | Moonshot | xAI |
| Discovery tier | Open weights | Balanced |
| Added | Jun 12, 2026 | Mar 31, 2026 |
| Limits | ||
| Context window | 262.14K | 2MBest |
| Max output | 65.54K | 131.07KBest |
| Average output | 1.8K tokens | 679 tokens |
| Pricing, USD per 1M tokens | ||
| Input | $0.67Best | $1.25 |
| Output | $3.35 | $2.50Best |
| Cache read | $0.15Best | $0.20 |
| Performance | ||
| Throughput | 72.0 tok/s | 108.7 tok/sBest |
| Time to first token | 3.0 s | 2.5 sBest |
| Request success (24h) | 99.7% | 99.8%Best |
| Benchmark indexes | ||
| Intelligence Index | 25.8Best | 25.7 |
| Coding Index | 60.8 | — |
| Capabilities | ||
| Reasoning | Yes | Yes |
| Tools | Yes | Yes |
| Vision | Yes | Yes |
| Structured output | No | Yes |
| Parallel tools | Yes | No |
| Reasoning effort | — | — |
Public evaluations
Benchmarks
Independent evaluation results, with how each score ranks among the models in the Noumen catalog.
- Kimi K2.7 Code
- Grok 4.20
Intelligence Index
- Kimi K2.7 Code25.8
- Grok 4.2025.7
Kimi K2.7 Code: Better than 63% of 326 scored models
Indexes
Coding Index
Composite of the coding evaluations
- Kimi K2.7 Code: 60.8
- Grok 4.20: —
Agentic work
AutomationBench-AA
Workflow automation, penalized for guardrail violations
- Kimi K2.7 Code: 24.5%
- Grok 4.20: —
AutomationBench-AA tasks completed
Workflows finished end to end without a guardrail violation
- Kimi K2.7 Code: 4.7%
- Grok 4.20: —
AA-Briefcasev1.1
Agentic knowledge work, rated head to head
- Kimi K2.7 Code: 858 Elo
- Grok 4.20: —
GDPval-AAv2.1
Economically valuable occupational tasks, rated head to head
- Kimi K2.7 Code: 1,038 Elo
- Grok 4.20: —
Document reasoning
GDP.pdf
Professional reasoning over PDF documents, all-pass rate
- Kimi K2.7 Code: 11.2%
- Grok 4.20: —
AA-LCRv1.1
Reasoning across long documents
- Kimi K2.7 Code: 79.3%Top
- Grok 4.20: 69.0%
MLCR-AA
Long-context reasoning over medical records
- Kimi K2.7 Code: 12.2%
- Grok 4.20: —
Reasoning and knowledge
Humanity’s Last Exam
Expert-level questions across academic fields
- Kimi K2.7 Code: 35.0%Top
- Grok 4.20: 34.5%
GPQA Diamond
Graduate-level science questions
- Kimi K2.7 Code: 89.6%
- Grok 4.20: 91.1%Top
IFBench
Following precise output instructions
- Kimi K2.7 Code: 63.1%
- Grok 4.20: 81.2%Top
Coding
Terminal-Benchv4.0
Practical software engineering in a terminal
- Kimi K2.7 Code: 1.0%
- Grok 4.20: —
SciCode
Scientific computing in Python
- Kimi K2.7 Code: 47.8%
- Grok 4.20: —
Legacy evaluations
Terminal-Bench Hard
Earlier terminal task suite
- Kimi K2.7 Code: 44.7%Top
- Grok 4.20: 37.9%
τ²-Bench Telecom
Tool use in a customer-support simulation
- Kimi K2.7 Code: 90.1%
- Grok 4.20: 93.0%Top
AA-LCR (unversioned)
Long-context reasoning, earlier grading
- Kimi K2.7 Code: 79.3%Top
- Grok 4.20: 69.0%
Scores from Artificial Analysis, updated Oct 26, 2026. Artificial Analysis
- Kimi K2.7 Code
- Grok 4.20
| Leaderboard | Kimi K2.7 Code | Grok 4.20 |
|---|---|---|
| FrontierMath v2 (Tiers 1–3) | #9 · 54.0% | #14 · 44.9% |
| GPQA Diamond | #13 · 87.9% | #12 · 89.3% |
Ranks among Noumen catalog models on Epoch AI leaderboards. Only top-20 placements are listed.Epoch AI
- Kimi K2.7 Code
- Grok 4.20
| Leaderboard | Kimi K2.7 Code | Grok 4.20 |
|---|---|---|
| Agentic Game Dev | #18 · 1093 | Not in top 20 |
Ranks among Noumen catalog models on Design Arena leaderboards. Only top-20 placements are listed.Design Arena
- Kimi K2.7 Code
- Grok 4.20
| Leaderboard | Kimi K2.7 Code | Grok 4.20 |
|---|---|---|
| Vision Style Control · Entity Recognition | Not in top 20 | #7 · 1238.1 |
Ranks among Noumen catalog models on LMArena leaderboards. Only top-20 placements are listed.LMArena
- Kimi K2.7 Code
- Grok 4.20
| Leaderboard | Kimi K2.7 Code | Grok 4.20 |
|---|---|---|
| ARC-AGI-3 (Default harness) | Not in top 20 | #20 · 0.1% |
Ranks among Noumen catalog models on ARC Prize leaderboards. Only top-20 placements are listed.ARC Prize
Live routing data
Performance and reliability
Recent averages across requests routed for this model. Your own speed depends on prompt length, reasoning effort and load.
- Throughput
- 72.0 tok/s
- Faster than 49% of 256 models
- Time to first token
- 3.0 s
- Quicker than 50% of 256 models
- Prompt cache hits
- 68.3%
- About $0.32 per 1M input tokens with caching
- Request success (24h)
- 99.7%
- Reliable
Cache hits are the share of input tokens recently served from a prompt cache across all requests. They are not a forecast of your own hit rate.
- Healthy (98% or more)
- Degraded (90–98%)
- Down (under 90%)
- No requests
Developers
Use it through the API
Noumen’s API is OpenAI-compatible: any Chat Completions client works with a base URL and a key.
curl https://www.noumen.xyz/api/v1/chat/completions \
-H "Authorization: Bearer $NOUMEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [{ "role": "user", "content": "Explain this stack trace." }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://www.noumen.xyz/api/v1", api_key=os.environ["NOUMEN_API_KEY"])
reply = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print(reply.choices[0].message.content)Moonshot
Related models
Other Moonshot models, starting with the same family.