Kimi K2.7 Code vs Kimi K2.6

Kimi K2.7 Code and Kimi K2.6 side by side: specs, capabilities, parameters, and live pricing from the EmpirioLabs catalog.

Moonshot AI Text Generation

Kimi K2.7 Code vs Kimi K2.6 at a glance

Kimi K2.7 Code and Kimi K2.6 are both Moonshot AI models in the Text Generation category, available through the EmpirioLabs API.

Key differences

  • 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.
  • Capabilities listed only for Kimi K2.7 Code: agentic coding, web search.
  • Capabilities listed only for Kimi K2.6: cache.
  • Kimi K2.6 lists the lower rate for Input (per 1M prompt tokens) and Output (per 1M generated tokens).

Kimi K2.7 Code vs Kimi K2.6: specs

SpecKimi K2.7 CodeKimi K2.6
Model IDkimi-k2-7-codekimi-k2-6
AuthorMoonshot AIMoonshot AI
ReleasedJun 16, 2026Apr 20, 2026
Context window256K tokens256K tokens
Max output131,072 tokens16,000 tokens
Input
Text Image Video
Text Image Video
Output
Text
Text
Structured outputJSON SchemaJSON Schema
RegionInternationalChina
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
reasoning function calling multimodal agentic coding web search
reasoning function calling cache multimodal

Kimi K2.7 Code vs Kimi K2.6: API pricing

Live rates from the EmpirioLabs catalog for both models. Each rate card always matches what the API charges.

Kimi K2.7 Code vs Kimi K2.6: API parameters

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.

ParameterKimi K2.7 CodeKimi K2.6
max_tokens1 to 262144 Default: 327681 to 16000
stopstringstring
tool_web_searchboolean Default: false-
max_tool_calls1 to 20 Default: 5-
response_formatenumenum
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

Kimi K2.7 Code vs Kimi K2.6: limits and notes

Kimi K2.7 Code

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.

How to call Kimi K2.7 Code and Kimi K2.6

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
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 vs Kimi K2.6: common questions

What is the difference between Kimi K2.7 Code and Kimi K2.6?

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.

Which is newer, Kimi K2.7 Code or Kimi K2.6?

Kimi K2.7 Code is the newer release (Jun 16, 2026); Kimi K2.6 was released on Apr 20, 2026.

Which has the lower rate, Kimi K2.7 Code or Kimi K2.6?

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.

Can I switch between Kimi K2.7 Code and Kimi K2.6 without rebuilding my integration?

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.

Can I try Kimi K2.7 Code and Kimi K2.6 in the browser before integrating?

Yes. Open each model in the EmpirioLabs playground and run the same prompt on both, with the parameters the API exposes.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.