Skip to main content
AnyAIGC

Moonshot AI · kimi-k3.1-pro

Kimi K3.1 Pro API

The first Kimi K3.1 series model, with 1M context. Moonshot says it improves on K3 in coding, 3D creation, financial research and long-horizon agents, and it costs about a third less. On AnyAIGC it costs about 40% of the official price.

kimi-k3.1-pro input $0.8100 per 1M tokens, output $4.0500 per 1M tokens, cache hit $0.0810. Works with the OpenAI-compatible API and in Claude Code.

  • Model ID kimi-k3.1-pro
  • Context 1M tokens
  • Input $0.8100 / 1M
  • Concurrency Unlimited
  • Business Self-service invoices
About

The first K3.1 model, with heavier post-training

Moonshot AI says Kimi K3.1 Pro is the first model in the new K3.1 series and its strongest 3T-class open-weight model so far. Moonshot describes it as a post-trained version of Kimi K3, built with much more post-training compute and joint reinforcement learning across hundreds of downstream domains.

Moonshot reports gains in four areas: long-horizon coding (Unity, Unreal Engine and Godot support, plus more complete layout, typography and animation in front-end and Three.js work), 3D creation (Blender and CAD scripts for parametric modeling), financial research (64.4 on OfficeQA Pro v2), and a lower hallucination rate. It has a 1,048,576-token context, thinking is always on, and it accepts text, image and video input.

On AnyAIGC, kimi-k3.1-pro runs on the OpenAI-compatible /v1/chat/completions endpoint with the same parameter constraints as K3, so migrating from K3 only means changing the model name. It also works directly in Claude Code, with unlimited concurrency.

Context window
1,048,576Max input tokens
Max output
131,072Default, can be set up to 1,048,576
Parameters
3T-classPost-trained from Kimi K3
Input
Text, images, videoNative vision
Thinking
Always onreasoning_effort: low / high / max
Weights
Coming soonMoonshot says by November 4
Capabilities

What Kimi K3.1 Pro can do

  • 01

    Long-horizon coding

    Moonshot reports 61.2 on Kimi Code Bench 3.0 for long-horizon coding (K3: 55.95), 51.7 on SWE Marathon v1.1 and 65.7 on Terminal-Bench 4.0.

  • 02

    Games and 3D front end

    Covers Unity, Unreal Engine, Godot and Three.js. Moonshot says its front-end output is better in layout, typography, animation and completeness.

  • 03

    3D creation and CAD

    Handles parametric modeling and can write Blender and CAD scripts directly, without an MCP connector. Moonshot reports 92.7 on BenchCAD (with tools).

  • 04

    Financial research

    In Moonshot's internal evals, financial research rose from 58.8 to 70.4 and financial modeling from 50.4 to 57.6. OfficeQA Pro v2 is 64.4.

  • 05

    Fewer hallucinations

    Moonshot says the per-claim hallucination rate fell from 23.4% on K3 to 8.3%, and the share of answers with a factual error fell to 42.4% of K3's.

  • 06

    Long-horizon agents

    Moonshot reports 92.1 on BrowseComp, 70.0 on HLE-Full (with tools) and 73.3 on Automation Bench-AA. AnyAIGC does not cap concurrency, so many agents can run at once.

Pricing

Kimi K3.1 Pro API pricing

Pay per token at fixed rates, with no subscription or monthly fee. Input, output and cache hits all cost about 40% of Moonshot's official USD prices, and about a third less than K3.

  • Per tokenInput, output and cache priced separately
  • About 60% offvs Moonshot official USD prices
  • Unlimited concurrencyOn by default for every user
  • USDOne balance for 300+ models
kimi-k3.1-pro prices per 1M tokens (USD), AnyAIGC vs Moonshot official
ItemModelAnyAIGCMoonshot officialSavings
Inputper 1M tokenskimi-k3.1-pro$0.8100$2.0060%
Outputper 1M tokens, incl. thinkingkimi-k3.1-pro$4.0500$10.0060%
Cache hitper 1M tokenskimi-k3.1-pro$0.0810$0.2060%

Prices are in USD and billed on the tokens you actually use. Output includes thinking tokens, and repeated prompt prefixes are billed at the cache-hit rate automatically. Official prices come from the Kimi platform pricing page (USD). The table shows the lowest price in the model catalog; see the AnyAIGC model catalog for live pricing.

Cost examples

Estimates for common workloads. The struck-through figure is the same usage at Moonshot official prices.

  • 20 agent coding turns

    Each turn: 50K cache-hit tokens + 5,000 input + 3,000 output

    $0.405

    Official $1.00

  • Analyze 500K tokens of financial reports

    500K input tokens + 5,000 output

    $0.425

    Official $1.05

  • 1M input + 1M output

    1M input tokens + 1M output tokens

    $4.86

    Official $12.00

Benchmarks

Kimi K3.1 Pro official benchmarks

Scores Moonshot AI published in the K3.1 Pro technical blog (max reasoning effort), alongside the other models it compared against.

K3.1 Pro vs K3 · Moonshot evals

  • K3.1 Pro · long-horizon coding61.2
  • K3 · long-horizon coding55.95
  • K3.1 Pro · financial research70.4
  • K3 · financial research58.8
  • K3.1 Pro · financial modeling57.6
  • K3 · financial modeling50.4
Kimi K3.1 Pro official benchmark scores and comparisons (published by Moonshot AI)
BenchmarkK3.1 ProClaude Opus 5.5GPT-6 Astra
Terminal-Bench 4.0Terminal coding65.766.458.2
SWE Marathon v1.1Long-horizon software engineering51.746.342.5
DeepSWE v1.1Software engineering75.574.274.1
Kimi Code Bench 3.0Long-horizon coding, internal61.258.566.5
BenchCADCAD modeling, with tools92.796.295.9
HLE-FullGeneral reasoning, with tools70.067.757.2
BrowseCompWeb browsing agent92.190.891.5
OSWorld V2.1Computer use79.681.875.8
OfficeQA Pro v2Office and finance QA64.462.254.4
Frontier FinanceFinance58.656.745.0
Automation Bench-AAAutomation agent73.369.568.5
GDPval-AA v2.1Knowledge work, Elo184618661573
GPQA-DiamondScience reasoning94.293.996.1
MMMU-ProMultimodal understanding84.187.786.9

Source: the Kimi K3.1 Pro technical blog. Scores are Moonshot AI's published results at max reasoning effort; most coding scores use Claude Code as the harness. K3 comparison figures come from Moonshot's internal evals.

Compare

Kimi K3.1 Pro vs K3 vs K2.7 Code

For new projects, start with K3.1 Pro: it is newer and cheaper than K3. For high-volume, budget-sensitive coding, use K2.7 Code.

Kimi K3.1 Pro, K3 and K2.7 Code compared; prices are AnyAIGC USD per 1M tokens
SpecK3.1 ProK3K2.7 Code
RoleLatest flagshipPrevious flagshipCoding agent
Parameters3T-class2.8T1T
Context1M1M256K
InputText, images, videoText, imagesText, images
AnyAIGC inputper 1M tokens$0.8100$1.2150$0.3847
AnyAIGC outputper 1M tokens$4.0500$6.0750$1.5980
Cache hitper 1M tokens$0.0810$0.1215$0.0770

Specs come from Moonshot AI's public materials. Prices are current AnyAIGC prices; see the model catalog for live pricing. More on the Kimi K3 API and Kimi K2.7 Code API.

Use cases

Where Kimi K3.1 Pro fits

  • 01 · Long-horizon coding

    Large repos and game development

    Load the whole codebase into 1M context for cross-module refactors and migrations, or keep iterating on Unity, Godot and Three.js projects.

  • 02 · Financial research

    Reports, valuation and sector research

    Load full annual reports, prospectuses and research notes into context to extract data, build financial models and write up findings. Reused material is billed at the cache-hit rate.

  • 03 · 3D creation

    Parametric modeling and CAD scripts

    Describe a part or a scene, have the model write Blender or CAD scripts, then refine them against rendered screenshots.

  • 04 · Agents

    Long-running autonomous tasks

    Run tasks with dozens or hundreds of steps in Claude Code or your own agent. A lower hallucination rate means fewer errors over long chains. AnyAIGC does not cap concurrency.

Quickstart

Connect to the Kimi K3.1 Pro API in three steps

  1. Sign up and add credit: create an account at anyaigc.ai. Top up from $1; your balance works across every model on the platform.
  2. Create an API key: create a key in the console, copy the value that starts with sk-, and store it in the ANYAIGC_API_KEY environment variable.
  3. Send a request: call POST https://anyaigc.ai/v1/chat/completions with model set to kimi-k3.1-pro and an Authorization: Bearer header. With the OpenAI SDK, just set base_url to https://anyaigc.ai/v1.
POST /v1/chat/completions
curl https://anyaigc.ai/v1/chat/completions \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k3.1-pro",
    "messages": [
      {"role": "user", "content": "Explain what a MoE model is in three sentences."}
    ]
  }'
Python · openai SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)

resp = client.chat.completions.create(
    model="kimi-k3.1-pro",
    messages=[
        {"role": "system", "content": "You are a senior financial analyst. Cite the data source for every conclusion."},
        {"role": "user", "content": "Compare how the gross margins of two companies changed over the last three years, and explain why."},
    ],
)
msg = resp.choices[0].message
print(getattr(msg, "reasoning_content", None))  # reasoning trace, if any
print(msg.content)
print(resp.usage)
Python · reasoning_effort
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

# The K3 series always thinks; reasoning_effort sets the depth: low / high / max (default max)
resp = client.chat.completions.create(
    model="kimi-k3.1-pro",
    reasoning_effort="low",
    messages=[{"role": "user", "content": "Rewrite this SQL to use window functions: SELECT ..."}],
)
print(resp.choices[0].message.content)
Python · stream=True
import os
from openai import OpenAI

client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])

stream = client.chat.completions.create(
    model="kimi-k3.1-pro",
    messages=[{"role": "user", "content": "Explain why the sky is blue."}],
    stream=True,
)
for chunk in stream:
    if not chunk.choices:
        continue
    delta = chunk.choices[0].delta
    # reasoning_content deltas arrive first, then the final answer in content
    reasoning = getattr(delta, "reasoning_content", None)
    if reasoning:
        print(reasoning, end="", flush=True)
    if delta.content:
        print(delta.content, end="", flush=True)
print()

Tip: K3.1 Pro always thinks, and the reasoning comes back in reasoning_content. Sampling parameters such as temperature and top_p are fixed by Moonshot, so do not send them. In multi-turn chats and tool calls, send the full assistant message from the API (including reasoning_content and tool_calls) back in the next request unchanged.

See the Chat Completions reference for every parameter. Replace the model name in the docs examples with the Kimi model ID you want.

Claude Code

Use Kimi K3.1 Pro in Claude Code

Switch Claude Code to Kimi K3.1 Pro: 1M context, and Moonshot ran most of its coding benchmarks with Claude Code as the harness.

  1. Install Claude Code: use the official installer (for example npm install -g @anthropic-ai/claude-code).
  2. Add the config: edit ~/.claude/settings.json, add the env block below, and replace ANTHROPIC_AUTH_TOKEN with the key you created on AnyAIGC.
  3. Start coding: run claude in your project folder. Type /model to confirm the current model is kimi-k3.1-pro.
~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://anyaigc.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
    "ANTHROPIC_MODEL": "kimi-k3.1-pro",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3.1-pro",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3.1-pro",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-k3.1-pro",
    "API_TIMEOUT_MS": "300000"
  }
}

Save on side tasks: set ANTHROPIC_DEFAULT_HAIKU_MODEL to kimi-k2.7-code so Claude Code's lightweight subtasks use the cheaper model while the main task stays on K3.1 Pro.

For the full walkthrough and common errors, see the Claude Code setup guide. Swap the model name in the guide for kimi-k3.1-pro.

Enterprise

Kimi K3.1 Pro API for teams and enterprises

Teams can top up, issue invoices themselves, and work with a dedicated support and technical contact.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

SPECS

Specs and how to choose it

Kimi's official model list describes kimi-k3.1-pro as the first model in the Kimi K3.1 series and its most capable flagship to date.

The vendor states it has trillion-scale (3 trillion) parameters, native vision understanding and a 1,000,000-token context window, with notable gains in code, 3D creation, and financial research and modeling.

A high-speed variant, kimi-k3.1-pro-highspeed, is offered at roughly 2 to 3 times the speed of the standard version.

This page lists Input at $0.8100, Output at $4.0500, Cache hit at $0.0810, matching the pricing table above.

Compared with kimi-k3: the official list calls K3 the previous-generation flagship with 2.8 trillion parameters, while K3.1 Pro improves notably in code, 3D creation and financial research.

Specs come from the vendor's official documentation (platform.kimi.com). The table on this page is the price, and the model catalog is authoritative for live rates.

FAQ

Kimi K3.1 Pro API FAQ

How much does the Kimi K3.1 Pro API cost?

On AnyAIGC, kimi-k3.1-pro is billed per token: input $0.8100 per 1M tokens, output $4.0500 per 1M tokens, cache hit $0.0810 per 1M tokens. Moonshot's official USD prices are input $2.00, output $10.00 and cache hit $0.20, so AnyAIGC is about 40% of official. Output includes thinking tokens. See the model catalog for live pricing.

What is the Kimi K3.1 Pro model ID, and how large is the context?

The model ID is kimi-k3.1-pro. Moonshot lists a 1,048,576-token (1M) context window. max_completion_tokens defaults to 131,072 and can be set as high as 1,048,576.

How is Kimi K3.1 Pro different from K3?

Moonshot says K3.1 Pro is Kimi K3 trained with much more post-training compute, using joint reinforcement learning across hundreds of downstream domains. The gains Moonshot reports include long-horizon coding (Kimi Code Bench 3.0 up from 55.95 to 61.2), financial research (internal eval up from 58.8 to 70.4) and factual accuracy (per-claim hallucination rate down from 23.4% to 8.3%). Parameter constraints match K3, so migrating only means changing the model name. On AnyAIGC, K3.1 Pro costs $0.8100 input and $4.0500 output, about a third less than K3.

How do I adjust Kimi K3.1 Pro's thinking depth?

K3.1 Pro always thinks and thinking cannot be turned off. Use the top-level reasoning_effort field in the request body to set depth: low, high or max (default max). Sampling parameters such as temperature and top_p are fixed by Moonshot, so leave them out of the request.

Does Kimi K3.1 Pro support tool calls, image and video input?

Yes. Moonshot's docs list function calling (tools / tool_choice), structured output (json_schema), streaming, and image and video input. In multi-turn chats and tool calls, send the full assistant message (including reasoning_content and tool_calls) back in the next request unchanged.

Can I use Kimi K3.1 Pro in Claude Code?

Yes. In the env block of ~/.claude/settings.json, set ANTHROPIC_BASE_URL to https://anyaigc.ai, ANTHROPIC_AUTH_TOKEN to your API key, and ANTHROPIC_MODEL to kimi-k3.1-pro. Then run claude.

Is Kimi K3.1 Pro open source?

Moonshot calls K3.1 Pro its strongest 3T-class open-weight model so far and says the full weights will be released by November 4, 2026. Calling the API through AnyAIGC means you do not have to host it yourself. Model licenses and commercial use are governed by Moonshot AI's official terms.

Are there concurrency or rate limits?

AnyAIGC does not cap concurrency for kimi-k3.1-pro, and every user gets this by default. That suits batch jobs, CI pipelines and parallel agents. Moonshot's own platform limits concurrency, RPM, TPM and TPD by top-up tier; those tiers do not apply when you call through AnyAIGC.

How do I get a Kimi K3.1 Pro API key?

Sign up at anyaigc.ai, add credit, and create a key in the console. The same key works for every Kimi model and 300+ other models on the platform, so you do not need a separate Moonshot platform account.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Will my data be used for training?

No. Except where required by law, AnyAIGC does not persistently store your prompts or outputs and does not use them to train models. Requests are encrypted over HTTPS. See the AnyAIGC Privacy Policy. The model's own data policy is governed by Moonshot AI's official terms.

Run Kimi K3.1 Pro at about 40% of the official price

Sign up, create an API key, and you can use kimi-k3.1-pro in your code or Claude Code within minutes.