Skip to content

Kimi K2.7 Code

Kimi-K2.7-Code is a coding model from Moonshot AI. It has improved coding & agent performance over K2.6, more reasoning efficiency with less overthinking, and improved instruction following for long-horizon coding.

ReasoningTool UseImplicit CachingFile InputVision (Image)
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'moonshotai/kimi-k2.7-code',
prompt: 'Why is the sky blue?'
})

Playground

Try out Kimi K2.7 Code by Moonshot AI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Moonshot AI
Legal:Terms
Privacy
256K
2.1s
45tps
$0.95/M$4.00/M
Read:$0.19/M
Write:
+3
06/12/2026
Throughput

P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.

Latency

P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.

Uptime

Direct request success rate on AI Gateway and per-provider. Visit the docs for more info.

More models by Moonshot AI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
262K
0.3s
152tps
$0.95/M$4.00/M
Read:$0.16/M
Write:
+3
baseten logo
fireworks logo
moonshotai logo
+2
04/20/2026
262K
0.4s
92tps
$0.60/M$3.00/M
Read:$0.1/M
Write:
+2
baseten logo
bedrock logo
fireworks logo
+2
01/26/2026
262K
0.7s
30tps
$0.60/M$2.50/M
Read:$0.15/M
Write:
+1
deepinfra logo
moonshotai logo
11/06/2025
131K
1.1s
25tps
$0.57/M$2.30/M
novita logo
09/05/2025