NewKimi K3.1 Pro is now availableTry it now
GuidePublished 7 min read

Kimi K3 Pricing: K3.1 Pro, K3, Fast & K2.6 API Rates

Live Kimi K3 and Kimi K3.1 Pro API pricing per 1M tokens on Inference.net, with 1M-context specs, 40-turn prompt-cache math, and SDK quickstarts.

Inference.net

Live Kimi K3 and Kimi K3.1 Pro API pricing

On Inference.net, Kimi K3 API pricing starts at $0.245 per 1M fresh input tokens, $0.224 per 1M cached reads, and $15.00 per 1M output tokens on moonshotai/kimi-k3, while moonshotai/kimi-k3.1-pro is $1.80 fresh input, $0.198 cached input reads (an 89.0% discount), and $9.00 output per 1M tokens. Every Kimi K3 and K3.1 model supports a 1,048,576-token context window (1M), 1,048,576 max output tokens, vision (text + image), tool calling, and both OpenAI /v1/chat/completions and native Anthropic /v1/messages with one API key.

All model IDs, context limits, and per-1M-token rates below were verified directly from GET https://api.inference.net/v1/models on 2026-12-06 (the API returns per-token prices; multiply by 1,000,000 for per-1M rates):

Model IDContext / max outputFresh input ($/1M)Cached read ($/1M)Output ($/1M)Tools & modalitiesHosting & ZDR scopeModel page
moonshotai/kimi-k3.1-pro1,048,576 / 1,048,576$1.80$0.198$9.00Tools, text + imageInference.net-hosted (US, ZDR)Kimi K3.1 Pro
moonshotai/kimi-k3.1-pro-fast1,048,576 / 1,048,576$2.70$0.27$13.50Tools, text + imageInference.net-hosted (US, ZDR)Kimi API Hub
moonshotai/kimi-k31,048,576 / 1,048,576$0.245$0.224$15.00Tools, text + imageInference.net-hosted (US, ZDR)Kimi K3
moonshotai/kimi-k3-fast1,048,576 / 1,048,576$0.45$0.40$18.00Tools, text + imageInference.net-hosted (US, ZDR)Kimi K3
kimi-k2.6262,144 / 262,144$1.25$0.21$5.30Tools, text + imageExternal route (upstream terms)Kimi K2.6
kimi-k2.5262,144 / 262,144$0.80$0.13$3.95Text + image (supports_tools: false)External route (upstream terms)Kimi K2.5

Which Kimi model should you pick?

  • Multi-turn coding agents and complex refactors: moonshotai/kimi-k3.1-pro ($1.80 / $0.198 cached / $9.00 output). Its lower cached-read rate ($0.198 vs $0.224) and lower output rate ($9.00 vs $15.00) make it cheaper per multi-turn coding session than moonshotai/kimi-k3 while giving full 1M context and reasoning controls (none, low, high, max).
  • Single-turn, input-heavy document or repo analysis: moonshotai/kimi-k3 ($0.245 / $0.224 cached / $15.00 output). When each request sends hundreds of thousands of fresh input tokens and produces a short summary or structured decision, Kimi K3's $0.245/1M fresh input rate beats Kimi K3.1 Pro by more than 5x on total request cost.
  • Latency-sensitive interactive coding: moonshotai/kimi-k3.1-pro-fast ($2.70 / $0.27 cached / $13.50 output) or moonshotai/kimi-k3-fast ($0.45 / $0.40 cached / $18.00 output) for faster decode tiers on Inference.net-hosted US GPUs.
  • Smaller 262K-context workflows: kimi-k2.6 ($1.25 / $0.21 cached / $5.30 output) supports tool calling and vision within a 262,144-token window, though it is externally routed rather than covered by Inference.net-hosted ZDR.

Browse all live Moonshot AI models on the Kimi API hub, or compare moonshotai/kimi-k3.1-pro against Claude Opus 5 and moonshotai/kimi-k3 against GLM-5.3.

40-turn coding-agent prompt-cache math

Multi-turn coding agents (Claude Code, OpenCode, Cursor, Cline) replay system prompts, tool schemas, and opened files on every turn. Using our standard Coding Agent workload shape: 40 turns per session, 14,000 average input tokens per turn (560K total input = 84K fresh + 476K cached reads at an 85% cache hit rate), and 900 average output tokens per turn (36K total output). Monthly spend scales to 750,000 requests/month (18,750 sessions).

Model IDFresh input (84K)Cached read (476K)Output (36K)40-turn session (85% cache)Session without cacheMonthly (750K reqs)
kimi-k2.6$0.1050$0.1000$0.1908$0.3958$0.8908$7,420.50
moonshotai/kimi-k3.1-pro$0.1512$0.0942$0.3240$0.5694$1.3320$10,677.15
moonshotai/kimi-k3$0.0206$0.1066$0.5400$0.6672$0.6772$12,510.08
moonshotai/kimi-k3.1-pro-fast$0.2268$0.1285$0.4860$0.8413$1.9980$15,774.75
moonshotai/kimi-k3-fast$0.0378$0.1904$0.6480$0.8762$0.9000$16,428.75

Two takeaways stand out from the exact math:

  1. Prompt caching cuts Kimi K3.1 Pro session spend by 57.2%: Dropping 476K repeated prompt tokens from $1.80/1M to $0.198/1M lowers a 40-turn session from $1.3320 to $0.5694.
  2. K3.1 Pro beats K3 on long coding loops, while K3 wins on fresh-input synthesis: On a single-turn 500K fresh input + 4K output repository audit with zero cache hits, moonshotai/kimi-k3 costs $0.1825 ($0.1225 input + $0.0600 output) compared to $0.9360 on moonshotai/kimi-k3.1-pro ($0.9000 input + $0.0360 output).

Model your exact prefix length, turn count, and hit rate in the Prompt Cache Calculator or compare Kimi against peer open-weight models in the LLM Pricing Calculator.

How prompt caching works on Kimi models

Prompt caching mechanics on Inference.net depend on the Kimi generation:

  • moonshotai/kimi-k3, moonshotai/kimi-k3-fast, moonshotai/kimi-k3.1-pro, moonshotai/kimi-k3.1-pro-fast, and kimi-k2.6: Automatic (implicit) prefix caching. No special request field is required. Keep your system prompt, tool definitions, and stable context byte-identical at the start of every request.
  • kimi-k2.5: Requires a stable session_id string alongside byte-identical leading messages to maintain routing stickiness.
  • Verify hits in every response: Read usage.prompt_tokens_details.cached_tokens on OpenAI responses (with stream_options: { "include_usage": true } when streaming) or cache-read usage fields on Anthropic /v1/messages responses.

Quickstart: OpenAI SDK and native Anthropic /v1/messages

Create a free account at /register and generate a key in API keys. Export INFERENCE_API_KEY before running either snippet:

bash
export INFERENCE_API_KEY="inf_sk_..."

OpenAI Python SDK (/v1/chat/completions)

python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inference.net/v1",  # or https://us.api.inference.net/v1
    api_key=os.environ["INFERENCE_API_KEY"],
)

stream = client.chat.completions.create(
    model="moonshotai/kimi-k3.1-pro",
    stream=True,
    stream_options={"include_usage": True},
    reasoning_effort="high",
    messages=[
        {"role": "system", "content": "You are a senior systems engineer. Return concise, runnable code."},
        {"role": "user", "content": "Design a lock-free ring buffer interface in Rust."},
    ],
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        cached = getattr(chunk.usage.prompt_tokens_details, "cached_tokens", 0) or 0
        print(f"\n[usage] prompt={chunk.usage.prompt_tokens} cached={cached} output={chunk.usage.completion_tokens}")

Native Anthropic SDK (/v1/messages) and Claude Code

Inference.net serves native Anthropic /v1/messages directly on all hosted Kimi K3 and K3.1 models. Omit /v1 from base_url when using the official Anthropic SDK or Claude Code because those clients append /v1/messages automatically (see Anthropic SDK docs and Claude Code setup).

python
import os
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.inference.net",
    auth_token=os.environ["INFERENCE_API_KEY"],
)

message = client.messages.create(
    model="moonshotai/kimi-k3.1-pro",
    max_tokens=2048,
    messages=[
        {"role": "user", "content": "Review this migration plan for zero-downtime Postgres schema changes."}
    ],
)

for block in message.content:
    if block.type == "text":
        print(block.text)

To wire Claude Code directly to Kimi K3.1 Pro, see the Claude Code integration guide or run fast claude on --model moonshotai/kimi-k3.1-pro.

Privacy, Zero Data Retention, and US routing

Inference.net enables Zero Data Retention by default for new accounts under SOC 2 Type II controls on eligible Inference.net-hosted routes (moonshotai/kimi-k3, moonshotai/kimi-k3-fast, moonshotai/kimi-k3.1-pro, and moonshotai/kimi-k3.1-pro-fast). Those hosted Kimi routes also accept requests on the US-only endpoint https://us.api.inference.net/v1. Externally routed legacy K2 models (kimi-k2.6, kimi-k2.5) are excluded from Inference.net's ZDR policy and follow their upstream provider's retention terms.

Frequently asked questions

What is the difference between moonshotai/kimi-k3 and moonshotai/kimi-k3.1-pro?

Both run on Inference.net-hosted US infrastructure with a 1,048,576-token context window, 1,048,576 max output tokens, vision, tool calling, and none/low/high/max reasoning efforts. moonshotai/kimi-k3 charges $0.245/1M fresh input, $0.224/1M cached reads, and $15.00/1M output, making it best for input-heavy single-turn workloads. moonshotai/kimi-k3.1-pro charges $1.80/1M fresh input, $0.198/1M cached reads, and $9.00/1M output, making it cheaper and stronger for multi-turn coding agents.

Do I need prompt_cache_key for Kimi K3 or Kimi K3.1 Pro?

No. moonshotai/kimi-k3, moonshotai/kimi-k3-fast, moonshotai/kimi-k3.1-pro, moonshotai/kimi-k3.1-pro-fast, and kimi-k2.6 all use automatic implicit prefix caching. Keep your system prompt, tool definitions, and leading messages byte-identical across turns. Only kimi-k2.5 uses an explicit session_id field for routing stickiness.

What happens if I call bare kimi-k3-fast instead of moonshotai/kimi-k3-fast?

Unprefixed kimi-k3-fast is a compatibility alias that resolves to the hosted moonshotai/kimi-k3-fast endpoint before routing and billing, so requests run on the hosted US route at $0.45 input / $0.40 cached / $18.00 output per 1M tokens. Use the canonical moonshotai/kimi-k3-fast (or moonshotai/kimi-k3.1-pro-fast) identifier in new integrations so your configuration matches the hosted catalog ID.

Can I run Kimi K3.1 Pro inside Claude Code or OpenCode?

Yes. All hosted Kimi K3 and K3.1 models support native Anthropic /v1/messages for Claude Code and OpenAI /v1/chat/completions for OpenCode, Cursor, and LiteLLM Proxy.

Related reading & models

Back to all guides