ModelRefs / Kimi K3.1 Pro - AI model implementation reference

Kimi K3.1 Pro - AI model implementation reference

Kimi K3.1 Pro is Moonshot AI's natively multimodal agentic model, the first in the K3.1 series and post-trained from Kimi K3. Moonshot lists 2.8T total and 104B activated parameters in a mixture-of-experts design with a 1,048,576-token context, text and image input, and weights published under the Kimi K3.1 Pro License. It launched in the Kimi API on 23 October 2026 at $2 input and $10 output per million tokens, with the weights following on 4 November 2026, and it is the replacement Moonshot points to as it winds down the K2 series.

Overview

Kimi K3.1 Pro is attributed to Moonshot in ModelRefs' canonical registry. Tracked modalities: Text input and output, Image input. Primary use cases considered on ModelRefs: Long-horizon agentic coding with Kimi Code and similar harnesses; Financial research and document analysis over real filings and PDFs; 3D asset and CAD code generation from text, sketches or reference images.

This ModelRefs profile is decision-support material, not a final or universal ranking. Confirm current behavior, access, pricing, limits, licensing, and lifecycle in Moonshot's own documentation, and evaluate Kimi K3.1 Pro on representative workloads before implementation.

Lifecycle

Active. The provider lists this model as current and supported.

Moonshot's pricing page lists kimi-k3.1-pro as a current K3-series model and announces no deprecation for it; the retirement notice on the same page applies to the K2 series only.

Source: platform.kimi.ai, checked 2026-11-19.

Benchmark & Evaluation

ModelRefs currently has partial, narrow benchmark coverage for Kimi K3.1 Pro. Treat the available benchmark evidence as one input to the decision, not a guarantee that Kimi K3.1 Pro is the strongest option for your workload, and evaluate it on representative workloads before selecting it.

  • No benchmark score is imported into this editorial record. Provider-reported evaluations are held as source-scoped canonical runs with their harness, effort and tool conditions attached; a number quoted here would detach from those conditions.
  • Moonshot's model card publishes a provider-run table with footnotes naming harnesses (Claude Code, Kimi Code or the Kimi Agent harness), reasoning effort and sampling parameters, and mixes internal benchmarks with public ones. Only public, source-scoped figures are held; internal benchmarks and competitor figures in the table are not.

Implementation considerations

  • Thinking is always on and cannot be disabled. reasoning_effort accepts low, high and max, defaults to max, and temperature, top_p, n and the penalty parameters are fixed, so requests should omit them.
  • For multi-turn conversations and tool calls, send back the complete assistant message the API returned, not only its content, or reasoning state is lost.
  • Images are sent as base64 or as ms://file-id references, not as public URLs, and video goes through file upload. Structured output supports strict JSON Schema. Moonshot says web search is being updated and is not recommended for production at present.
  • Access is unlocked after a successful top-up of at least $1, and rate limits depend on cumulative top-up, so plan for tiered concurrency during a launch.
  • The API is OpenAI-compatible at api.moonshot.ai/v1 with model ID kimi-k3.1-pro; a kimi-k3.1-pro-highspeed variant is listed at $4 input and $20 output per million tokens and described as 2 to 3 times faster. Cached input is billed at $0.20 per million tokens, cache writes at $2.00 (5-minute) or $4.00 (1-hour), and batch inference at three fifths of the standard price.
  • Weights are on Hugging Face as moonshotai/Kimi-K3.1-Pro, stored with MXFP4 weights and MXFP8 activations from quantisation-aware training. The model is also in Kimi.ai, the Kimi apps, Kimi Work and Kimi Code; Zero Data Retention is available for API customers.
  • Moonshot's pricing page says K2 series models closed to newly registered users on 31 October 2026 and are planned for retirement by the end of December 2026; K3.1 Pro is the migration target its quickstart names.

Architecture disclosure

  • Moonshot's model card lists a mixture-of-experts model with 2.8T total and 104B activated parameters, 93 layers (one dense), 896 experts with 16 selected per token and 2 shared experts, a 7,168 attention hidden dimension and 96 heads, and a 160K vocabulary.
  • Attention combines 69 KDA layers with 24 Gated DeepSeek Sparse Attention layers; Moonshot says it replaced K3's full-attention Gated MLA layers with Gated DSA for more efficient long-context modelling. The vision encoder is MoonViT-V2 with 401M parameters, and the context length is 1,048,576 tokens.

Prompts and code examples

Kimi K3.1 Pro with explicit reasoning effort through the OpenAI SDK

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["MOONSHOT_API_KEY"],
    base_url="https://api.moonshot.ai/v1",
)

completion = client.chat.completions.create(
    model="kimi-k3.1-pro",
    reasoning_effort="max",  # low, high or max; thinking cannot be disabled
    messages=[{"role": "user", "content": "Prove that the square root of 2 is irrational."}],
)

print(completion.choices[0].message.content)

Provider implementation source

Training disclosure

  • Moonshot describes K3.1 Pro as a post-trained version of Kimi K3 with substantially more post-training compute: large-scale joint reinforcement learning across hundreds of downstream domains, with the RL framework, long-context inference, sandbox infrastructure, rollout scheduling and environment quality checks optimised so that each increment of compute gives predictable returns.
  • Weights use quantisation-aware training with MXFP4 weights and MXFP8 activations. Cyber-related data was removed from mid-training and RL before the weights release. Moonshot publishes no corpus composition or compute figure.

History and source-reviewed changelog

  1. 2026-10-23 — Kimi K3.1 Pro launched in the API

    Moonshot launched Kimi K3.1 Pro and the kimi-k3.1-pro-highspeed variant in the Kimi API, announcing that the weights would follow by 4 November 2026. The date is the trade-press launch date; Moonshot's own pages state none.

    Milestone source
  2. 2026-10-31 — K2 series closes to new users

    Moonshot stopped offering K2 series models to newly registered API users and announced plans to retire all K2 series models by the end of December 2026.

    Milestone source
  3. 2026-11-04 — Kimi K3.1 Pro weights published

    Moonshot published the moonshotai/Kimi-K3.1-Pro weights on Hugging Face under the Kimi K3.1 Pro License, after the API launch.

    Milestone source

Risks and limitations

  • Hosted-model behaviour, quotas, pricing and data controls can change without a client-side version pin; pin the exact model ID and re-check the provider's pricing and lifecycle pages before relying on a figure.
  • Provider-reported capabilities require task-specific evaluation before production reliance.
  • The Kimi K3.1 Pro License is not an OSI-approved licence. It grants broad rights to use, modify and sell, but a licensee or affiliate that operates a Model-as-a-Service business with more than 20 million US dollars of revenue over any 12 months must enter a separate agreement with Moonshot before commercial use, and a commercial product with more than 100 million monthly active users or more than 20 million US dollars of monthly revenue must display Kimi K3.1-Pro prominently. Internal use, and use through Moonshot's official products or certified inference partners, are exempt.
  • Moonshot states it removed cyber-related data from both mid-training and reinforcement learning before the weights release, and that cyber capability remains behind frontier proprietary models. The removal is Moonshot's own measure and is not an independent safety evaluation, so security applications still need their own controls.
  • Moonshot's own pages state that its hallucination benchmarks are stress tests and that the reported rates do not represent overall error rates in daily use; verify factual output on your own tasks, especially for finance.
  • A 2.8T-parameter model needs a large multi-GPU serving stack even with quantisation-aware weights, and open-weight results depend on the runtime and precision.

Source coverage

ModelRefs reviewed Moonshot AI's published material on 2026-11-19. Model behavior, access, pricing, limits, and lifecycle can change, so verify the linked provider documentation before implementation. What remains open is recorded on this page: Moonshot's pages state no release date; the 23 October 2026 API launch date is taken from trade-press reports and is consistent with an asset path on Moonshot's own blog. Fit and comparison signals remain provisional until tested on your own workload.

Sources

Decision pages that rank this model

Open the AI Decision Helper to narrow the candidates by your own constraints.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Kimi K3.1 Pro - AI model implementation reference.