Kimi API
Run every live Moonshot AI Kimi model through one serverless Inference.net API with OpenAI /v1/chat/completions and native Anthropic /v1/messages support. Compare live pricing, cached-read rates, and context windows up to 1M tokens across Kimi K3.1 Pro, Kimi K3, Kimi K3 Fast, and Kimi K2.6 (262K context), with Zero Data Retention on eligible Inference.net-hosted routes.
- Serverless per-token billing with prompt-cache discounts
- Zero Data Retention (ZDR) by default on eligible Inference.net-hosted routes (SOC 2 Type II)
- OpenAI /v1/chat/completions and native Anthropic /v1/messages support
- Up to 1M-token context windows on K3 models for multi-file coding and agent workflows
All live Kimi models on Inference.net
Every rate, context limit, and capability below is pulled directly from the live public catalog. Select any model for full specs, live latency benchmarks, and prompt-caching guidance.
| Model | Context | Max output | Input / 1M | Cached / 1M | Output / 1M | Capabilities | Start |
|---|---|---|---|---|---|---|---|
Kimi K3.1 Pro moonshotai/kimi-k3.1-pro | 1M | 1M | $1.80 | $0.198 | $9.00 | Vision, Tools, Reasoning | Use API |
Kimi K3 moonshotai/kimi-k3 | 1M | 1M | $0.245 | $0.224 | $15.00 | Vision, Tools, Reasoning | Use API |
Kimi K3 Fast kimi-k3-fast | 1M | 1M | $4.50 | $0.45 | $22.50 | Vision, Tools, Reasoning | Use API |
Kimi K2.6 kimi-k2.6 | 262K | 262K | $1.25 | $0.21 | $5.30 | Vision, Tools | Use API |
Kimi K2.5 kimi-k2.5 | 262K | 262K | $0.80 | $0.13 | $3.95 | Vision | Use API |
Call Kimi over OpenAI or Anthropic SDKs
Use the top live model ID (moonshotai/kimi-k3.1-pro) with the standard OpenAI SDK, curl, or Claude Code over native /v1/messages.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.inference.net/v1',
apiKey: process.env.INFERENCE_API_KEY,
})
const completion = await client.chat.completions.create({
model: 'moonshotai/kimi-k3.1-pro',
messages: [{ role: 'user', content: 'Hello' }],
})import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inference.net/v1",
api_key=os.environ["INFERENCE_API_KEY"],
)
completion = client.chat.completions.create(
model="moonshotai/kimi-k3.1-pro",
messages=[{"role": "user", "content": "Hello"}],
)curl https://api.inference.net/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k3.1-pro",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'Point Claude Code or any Anthropic SDK client at Inference.net with zero proxy setup and full prompt-cache support.
export ANTHROPIC_BASE_URL="https://api.inference.net"
export ANTHROPIC_AUTH_TOKEN="$INFERENCE_API_KEY"
export ANTHROPIC_MODEL='moonshotai/kimi-k3.1-pro[1m]'
export ANTHROPIC_DEFAULT_OPUS_MODEL='moonshotai/kimi-k3.1-pro[1m]'
export ANTHROPIC_DEFAULT_SONNET_MODEL='moonshotai/kimi-k3.1-pro[1m]'
export ANTHROPIC_DEFAULT_HAIKU_MODEL='moonshotai/kimi-k3.1-pro[1m]'
export CLAUDE_CODE_SUBAGENT_MODEL='moonshotai/kimi-k3.1-pro[1m]'
claudeBenchmark, compare, and model Kimi costs
Verify unit economics across prompt-cache hit rates, compare providers, and explore engineering guides for Kimi.
Explore other open-weight model families
Switch across DeepSeek, Kimi, GLM, and the full catalog with one API key and one OpenAI-compatible client.
Frequently asked questions.
Quick answers to help you get started
Inference.net currently serves 5 live Kimi models with transparent pay-as-you-go per-token billing. Input rates start at $0.245 per 1M input tokens ($15.00 per 1M output tokens) on Kimi K3. Every rate in the comparison table above pulls directly from the live public catalog.
Yes. Keeping repeated system instructions, tool schemas, and repository context byte-identical across turns unlocks automatic prompt caching on supported Kimi K3 and K2.6 routes (pass x-session-id on Kimi K2.5). On Kimi K3.1 Pro, cached input reads are $0.198 per 1M tokens (89% less than standard input). Estimate multi-turn savings with the Prompt Cache Calculator.
Yes. Point the official OpenAI TypeScript or Python SDK to https://api.inference.net/v1 with your INFERENCE_API_KEY and set model to "moonshotai/kimi-k3.1-pro". You can also call supported Kimi models over the native Anthropic /v1/messages endpoint for Anthropic SDK apps and Claude Code.
Yes, on eligible Inference.net-hosted routes. Zero Data Retention (ZDR) is enabled by default for new accounts under SOC 2 Type II controls, so prompts and completions on Inference.net-hosted models are not stored after processing or used to train models. Externally routed catalog models are excluded from our ZDR policy and follow their upstream provider's data-handling and retention terms. Review our ZDR policy for full details. Requests run over https://api.inference.net/v1, and US-pinned routes are available on supported models via https://us.api.inference.net/v1.
Live Kimi models on Inference.net scale up to a 1M-token context window (1,048,576 tokens) and up to 1M output tokens on Kimi K3.1 Pro. Context limits and caching vary by checkpoint, so check each model row above for exact specs and multimodal capabilities.
Start calling Kimi in minutes
Create a project API key with Zero Data Retention enabled by default on eligible Inference.net-hosted routes and route requests to moonshotai/kimi-k3.1-pro with pay-as-you-go billing.