Kimi K2.7 Code
moonshotai/kimi-k2.7-codeA chat model with a 256K-token context window, at $0.9975 per million input tokens and $4.20 per million output tokens.
Details
- Maker
- moonshotai
- Kind
- Chat
- Context window
- 256,000 tokens
- Max output
- 32,768 tokens
- Input
- $0.9975 per million tokens
- Cached input
- $0.1995 per million tokens, 80% off
- Cache write
- Same as input
- Output
- $4.20 per million tokens
- Capabilities
- Reasoning, tool use, vision, file input
- Takes
- Text, image, pdf, video
- Returns
- Text
- Zero data retention
- Yes, on every provider
- No training on requests
- Yes, on every provider
- Released
- 2026-06-12
Description
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.
Call it
curl
curl https://phantom.codes/v1/chat/completions \
-H "Authorization: Bearer $PHANTOM_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.