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 moonshotai, 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
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Moonshot AI
256K
3.4s
70tps
$0.95/M$4.00/M
Read:$0.19/M
Write:
+3
06/12/2026
DeepInfra
262K
0.9s
27tps
$0.74/M$3.50/M
Read:$0.15/M
Write:
+3
06/12/2026
Fireworks
262K
2.1s
92tps
$0.95/M$4.00/M
Read:$0.19/M
Write:
+3
06/12/2026
Baseten
256K
1.0s
156tps
$0.95/M$4.00/M
Read:$0.16/M
Write:
+3
06/12/2026