Vision / Moonshot
kimi-k2.7-code
Visual UnderstandingDeep Thinking
Overview
kimi-k2.7-code is Kimi's most intelligent coding model to date. It follows instructions more reliably over long contexts and completes programming tasks with higher success rates. It supports text, image, and video inputs, along with thinking mode, conversation, and agent tasks.
- Model type: Vision
- Input: Text / Image / Video
- Output: Text
- Endpoints: chat / chat_completion
Tiered billing details
| Tier | Input | Output | Cache hit |
|---|---|---|---|
| Fallback tier | $0.0009/1K | $0.0040/1K | $0.0002/1K |
Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).
Capabilities
- Long-range coding capabilities have been further enhanced.
- Enhanced agentic capabilities.
- Visual comprehension plus tool‑calling abilities.
- Extended reasoning capabilities.
Code example
Call with kimi-k2.7-code :
curl https://www.starunion.net/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{
"role": "user",
"content": [
{ "type": "text", "text": "Describe this image" },
{ "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
]
}]
}'