Skip to content
Dashboard

Kimi K2.7 Code

Kimi K2.7 Code is Moonshot AI's coding-focused agentic model with stronger coding and agent performance than Kimi K2.6, less overthinking, and a context window of 262.1K tokens, available through AI Gateway via Moonshot AI, DeepInfra, Fireworks, Baseten.

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?'
})

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
Max Output
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Regional Inference
Release Date
Moonshot AI
Legal:Terms
Privacy
256K33K
3.0s
107tps
$0.95/M
$4/M
Read:$0.19/M
Write:
+2
06/12/2026
DeepInfra
Legal:Terms
Privacy
262K33K
0.7s
62tps
$0.74/M
$3.50/M
Read:$0.15/M
Write:
+2
06/12/2026
Fireworks
Legal:Terms
Privacy
262K33K
3.6s
101tps
$0.95/M
$4/M
Read:$0.19/M
Write:
+2
06/12/2026
Baseten
Legal:Terms
Privacy
256K33K
0.8s
$0.95/M
$4/M
Read:$0.16/M
Write:
+2
US
06/12/2026