Skip to navigation

Kimi K3.1 Pro

Kimi K3.1 Pro
Moonshot AI · Text Generation
POST /v1/chat/completions

Moonshot’s flagship reasoning model for long coding and agent work, with a 1M token context, image input, and web search.

At a glance

FieldValue
Model idkimi-k3-1-pro
Model release date2026-10-23
Input modalitiesText, Image
Output modalitiesText
Context window1M
Weight precision-
Max output tokens131,072
RegionGermany
Featuresreasoning, function_calling, multimodal, vision, agentic_coding, cache
Native inferenceNo
NewYes
Structured outputJSON Schema
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/kimi-k3-1-pro:generateContent
Alternate model idskimi-k3.1-pro, moonshotai/kimi-k3.1-pro

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$2.00
Outputper 1M generated tokens$10.00
Implicit cache readper 1M cached input tokens$0.184
Web Search (Linkup)per call when invoked$0.013

Example request

curl https://api.empiriolabs.ai/v1/chat/completions \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "kimi-k3-1-pro", "messages": [{"role":"user","content":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
max_tokensnumberno131072Maximum output tokens. Reasoning tokens count toward this limit. · Range: 1 – 131072
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable reasoning before answering. Turning it off lowers output quality.
reasoning_effortenumno"max"Kimi K3.1 Pro reasoning effort. Higher effort spends more reasoning tokens before answering. Max is recommended and the default. · Allowed: low, medium, high, max
response_formatenumno-Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.
web_search_linkupbooleannofalseOptional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model’s normal token cost. Disabled by default.
disable_formattingbooleannofalseReturn the answer without the Sources list that web search adds.

Notes

Supports text and image inputs with a 1M token context, function calling, and JSON schema structured output. Linkup web search is available through web_search_linkup and adds $0.013 per call when invoked. 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. 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.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/kimi-k3-1-pro.