

Kimi K2.7 Code and Kimi K2.6 side by side: specs, capabilities, parameters, and live pricing from the EmpirioLabs catalog.
Kimi K2.7 Code and Kimi K2.6 are both Moonshot AI models in the Text Generation category, available through the EmpirioLabs API.
| Spec | Kimi K2.7 Code | Kimi K2.6 |
|---|---|---|
| Model ID | kimi-k2-7-code | kimi-k2-6 |
| Author | Moonshot AI | Moonshot AI |
| Released | Jun 16, 2026 | Apr 20, 2026 |
| Context window | 256K tokens | 256K tokens |
| Max output | 131,072 tokens | 16,000 tokens |
| Input | Text Image Video | Text Image Video |
| Output | Text | Text |
| Structured output | JSON Schema | JSON Schema |
| Region | International | China |
| Endpoints | POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/kimi-k2-7-code:generateContent | POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/kimi-k2-6:generateContent |
| Capabilities |
Live rates from the EmpirioLabs catalog for both models. Each rate card always matches what the API charges.
Request parameters each model lists on EmpirioLabs, with the allowed values or range where one applies. A dash marks a parameter the model does not list.
| Parameter | Kimi K2.7 Code | Kimi K2.6 |
|---|---|---|
| max_tokens | 1 to 262144 Default: 32768 | 1 to 16000 |
| stop | string | string |
| tool_web_search | boolean Default: false | - |
| max_tool_calls | 1 to 20 Default: 5 | - |
| response_format | enum | enum |
| temperature | - | 0 to 1.99 Default: 0.7 |
| top_p | - | 0 to 1 Default: 0.9 |
| enable_thinking | - | boolean Default: true |
| reasoning_effort | - | none, low, medium, high, max Default: medium |
| thinking_budget | - | 1 to 81920 Default: 32768 |
| web_search_linkup | - | boolean Default: false |
| disable_formatting | - | boolean Default: false |
Supports text, image, and video inputs with 256K context, function calling, JSON mode structured output, and built-in web search at $0.015 per invoked call. Thinking is always on and cannot be disabled; reasoning tokens are billed as output tokens. Temperature and other sampling overrides are ignored because the model service uses fixed sampling settings. Multi-step function calling through the API must replay the assistant message with its reasoning_content field intact.
Kimi K2.7 Code serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id kimi-k2-7-code. Both models are called through the same endpoint. Set model to kimi-k2-7-code or kimi-k2-6. Get an API key from the EmpirioLabs dashboard.
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2-7-code",
"messages": [
{"role": "user", "content": "Write a haiku about the ocean."}
]
}'Kimi K2.7 Code is the newer release (Jun 16, 2026); Kimi K2.6 was released on Apr 20, 2026. Both models have a context window of 256K tokens. Kimi K2.7 Code returns up to 131,072 output tokens per response, Kimi K2.6 up to 16,000. The specs, rate cards, and parameters on this page come from the live EmpirioLabs catalog.
Kimi K2.7 Code is the newer release (Jun 16, 2026); Kimi K2.6 was released on Apr 20, 2026.
Kimi K2.6 lists the lower rate for Input (per 1M prompt tokens) and Output (per 1M generated tokens). Both live rate cards are on this page and always match what the API charges.
Yes. Both models use POST /v1/chat/completions with the same EmpirioLabs API key, so most integrations switch by changing the model value. Check the parameters table on this page first if you rely on a model-specific parameter.
Yes. Open each model in the EmpirioLabs playground and run the same prompt on both, with the parameters the API exposes.
Check out our pricing or reach out if you want your own model deployed on our stack.