
Kimi K2.7 Code
tools visionkimi-k2.7-codeCoding-focused Kimi K2 model for long programming tasks.
Input / 1M tokens
$0.6712
$0.0000006712 / token
Output / 1M tokens
$3.35
$0.00000335 / token
Cached input / 1M
$0.18
Uptime · 24h
—
No traffic yet
Details
- Type
- Chat
- Input
- text, image
- Output
- text
- Context
- 262,144 tokens
Supported parameters
max_tokenstemperaturetop_pstopseedpresence_penaltyfrequency_penaltyresponse_formatpluginstoolstool_choiceparallel_tool_callsLast 24 hours
Requests per hour; red = provider errors.
- Avg latency
- —
- Avg first token
- —
- Throughput
- —
Endpoints
Requests go to these routes in order and fail over between them. Pick or exclude them by label with provider.order / only / ignore, or reorder with provider.sort.
| Label | Input / output per 1M | First token | Throughput | Status |
|---|---|---|---|---|
primary | $0.6712 / $3.35 | — | — | Available |
backup | $0.6 / $3 | — | — | Available |
Use it
curl https://staging-api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Anthropic SDK / Claude Code
curl https://staging-api.ultragpt.pro/v1/messages \
-H "x-api-key: $ULTRAGPT_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"max_tokens": 1024,
"messages": [{ "role": "user", "content": "Hello!" }]
}'Compare Kimi K2.7 Code
FAQ
How much does the Kimi K2.7 Code API cost?
$0.6712 input / $3.35 output per 1M tokens; cached input $0.18 per 1M tokens. You pay per use from a prepaid balance - no subscription, and every response reports its exact cost in usage.cost.
How do I call Kimi K2.7 Code through the API?
Create an UltraGPT API key, point the official OpenAI SDK (or any OpenAI-compatible client) at https://staging-api.ultragpt.pro/v1 and pass "kimi-k2.7-code" as the model. Anthropic SDKs and Claude Code work too, through /v1/messages.
What is the context window of Kimi K2.7 Code?
Kimi K2.7 Code accepts up to 262,144 tokens of context on UltraGPT.
Does Kimi K2.7 Code support tools, vision and reasoning?
Tool / function calling: yes. Image input (vision): yes. Reasoning: no. Input: text, image; output: text.