Kimi K2.7 Code

POST /v1/chat/completionsKimi K2.7 Code is Moonshot’s trillion-parameter agentic coding model with 256K context, always-on reasoning, and text, image, and video inputs.
At a glance
Pricing
Example request
Parameters
Notes
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.
Per-tool billing (usage.tool_usage)
When this model invokes built-in tools inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. Tool counts are already factored into cost_usd and are surfaced for transparency.
Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/kimi-k2-7-code.
