Overview
Kimi K3.1 Pro is Moonshot AI’s reasoning model for software development, complex reasoning, and multi-step tool workflows. APIYI provides the official-relay modelskimi-k3.1-pro and kimi-k3.1-pro-highspeed. Both use the same request format; switch between them by changing model.
reasoning_effort controlling its depth. Highspeed has higher input, output, and cache-write prices.Quick Start
Models and Pricing
Reasoning and Tools
Context Caching
Model Selection and Pricing
Both models are billed by actual token usage, and APIYI’s current configured rates match official prices. All rates below are in USD per 1M tokens. Regular-input and output charges were checked; cache rates are configured prices, not cache charges verified by this test run:Effective Cost with Top-up Bonuses
For top-ups that qualify for the 20% bonus promotion, each unit paid provides 1.2 units of usable credit. Effective cost is therefore1 ÷ 1.2 ≈ 83.33% of the listed price.
The bonus increases available credit; listed model prices stay the same. Check the promotion page for eligibility, bonus rates, and current terms.
Basic Capability Tests
APIYI verified the following basic cases for both models on 2026-10-25 (UTC+8):POST /v1/responses. The image test used Base64 data.
Basic requests to POST /v1/messages also passed. Explicitly set top_p: 0.95 and temperature: 1 to avoid errors from default sampling-parameter conversion.
Quick Start
Use an APIYI Token to callPOST /v1/chat/completions. Start with reasoning_effort: "low", then increase it for tasks that require deeper reasoning.
Reasoning and Key Parameters
Both models always use reasoning. Control depth withreasoning_effort; do not carry over the Kimi K2.5 enable_thinking switch.
temperature=1, top_p=0.95, n=1, presence_penalty=0, and frequency_penalty=0. The Chat Completions examples omit them; for Messages, explicitly set the sampling parameters as described above. Avoid carrying incompatible settings over from another model.
Reading the Response
The final answer is inchoices[0].message.content. Reasoning is returned in choices[0].message.reasoning_content. Read content for the answer, and handle reasoning_content separately if your interface displays it.
Reasoning tokens are billed at the output rate. Estimate cost from response usage and console logs rather than visible answer length.
Streaming
Reasoning and answer text arrive indelta.reasoning_content and delta.content, respectively. A final usage chunk may have an empty choices array, so check chunk.usage before reading choices.
Tool Calls
The model generates function names and arguments; your application executes them. When the model returnstool_calls, append the complete assistant message, including reasoning_content and tool_calls, to history. Then append each tool result with its matching tool_call_id and send the next request.
Context Caching
The official caching mechanism is intended for repeated long system instructions, reference documents, and code context. Put stable content first and changing questions last. These results describe this test run; they do not establish that caching is unsupported for every request. Budget for regular-input charges until your own requests show cache usage and matching billing. The parameters and behavior below are references to the official format.Choosing a Cache Lifetime
Chat Completions uses the top-level request fieldprompt_cache_options. The default lifetime is 5 minutes. To request a 1-hour lifetime:
LONG_STABLE_CONTEXT represents the long text you want to reuse. Keep that prefix identical in later requests and replace the final question.
ttl: "1h" for an existing 5-minute cache does not upgrade it. A hit refreshes the original lifetime. Compare policies using a different fresh prefix for each one.How Reads and Writes Are Billed
- Cache read: reused prefix tokens are charged at the cache-read rate.
- Cache write: new cached prefix tokens are charged at the chosen 5-minute or 1-hour write rate.
- Regular input: input outside the cached portion is charged at the regular input rate.
- Output: reasoning and the final answer are charged at the output rate.
usage, cache-read and cache-creation fields, and console billing logs; parameter acceptance alone is insufficient.
Technical Specifications and Integration Tips
Start with low reasoning effort
Budget for reasoning
max_completion_tokens based on usage and finish_reason. Increase reasoning_effort for more complex tasks.Stream long-running tasks
Verify cache usage before scaling
FAQ
What changes when I select Highspeed?
What changes when I select Highspeed?
Can I disable reasoning as I could with Kimi K2.5?
Can I disable reasoning as I could with Kimi K2.5?
reasoning_effort: "low" to control overhead rather than carrying over the old enable_thinking parameter.Why is billed output larger than the visible answer?
Why is billed output larger than the visible answer?
usage and console logs.Can I change an existing cache to one hour by setting ttl to 1h?
Can I change an existing cache to one hour by setting ttl to 1h?
ttl: "1h" requires a fresh prefix. APIYI’s tests did not verify 1-hour retention or write charges; successful parameter acceptance is not proof of support.How does a 20% top-up bonus affect cost?
How does a 20% top-up bonus affect cost?
1 ÷ 1.2 ≈ 83.33% of list price. See the promotion terms for eligibility.Related Docs
Official references:platform.moonshot.ai/docs/guide/kimi-k3-1-pro-quickstart, platform.kimi.ai/docs/guide/context-caching, and platform.moonshot.ai/docs/pricing/chat.