Kimi K3.1 Pro

POST /v1/chat/completionsMoonshot’s flagship reasoning model for long coding and agent work, with a 1M token context, image input, web search, and a code interpreter.
At a glance
Pricing
Example request
Parameters
Notes
Supports text and image inputs with a 1M token context, function calling, and JSON schema structured output. Built-in tools are off by default: web search at $0.015 per invoked call, and a web extractor and a code interpreter at no extra charge. One request can run more than one search, and each search is billed. Thinking is on by default: set its depth with reasoning_effort (max is the default), or turn it off with enable_thinking, which lowers output quality. Reasoning tokens are billed as output tokens. The web extractor and the code interpreter need thinking on, and the web extractor also needs web search. Stop strings apply to reasoning as well as the answer, so a stop string that appears in the reasoning ends the reply early. Temperature and other sampling settings are fixed by the model service.
Per-tool billing (usage.tool_usage)
When this model invokes tools (web search, code interpreter, etc.) inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. The example below shows the shape, exact field names, units, and which tools appear can vary slightly per provider:
The tool counts are already factored into cost_usd, they are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.
Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/kimi-k3-1-pro.
