---
title: "Kimi API: K3.1 Pro, K3 & K2.6 Pricing | Inference.net"
description: "Run Kimi K3.1 Pro, K3, K3 Fast, and K2.6 on one serverless API. Live pricing, up to 1M context, caching, hosted ZDR, and OpenAI or Anthropic SDKs."
url: "https://inference.net/models/kimi/"
---

KIMI API

# 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

[Get Kimi API key](https://inference.net/register/?model=kimi-k3-1-pro) [Estimate monthly cost](https://inference.net/tools/llm-pricing-calculator/) [Full model catalog](https://inference.net/models/)

LIVE CATALOG & PRICING

## 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](https://inference.net/models/kimi-k3-1-pro/) `moonshotai/kimi-k3.1-pro` | 1M | 1M | $1.80 | $0.198 | $9.00 | Vision, Tools, Reasoning | [Use API](https://inference.net/register/?model=kimi-k3-1-pro) |
| [Kimi K3](https://inference.net/models/kimi-k3/) `moonshotai/kimi-k3` | 1M | 1M | $0.245 | $0.224 | $15.00 | Vision, Tools, Reasoning | [Use API](https://inference.net/register/?model=kimi-k3) |
| [Kimi K3 Fast](https://inference.net/models/kimi-k3-fast/) `kimi-k3-fast` | 1M | 1M | $4.50 | $0.45 | $22.50 | Vision, Tools, Reasoning | [Use API](https://inference.net/register/?model=kimi-k3-fast) |
| [Kimi K2.6](https://inference.net/models/kimi-k2-6/) `kimi-k2.6` | 262K | 262K | $1.25 | $0.21 | $5.30 | Vision, Tools | [Use API](https://inference.net/register/?model=kimi-k2-6) |
| [Kimi K2.5](https://inference.net/models/kimi-k2-5/) `kimi-k2.5` | 262K | 262K | $0.80 | $0.13 | $3.95 | Vision | [Use API](https://inference.net/register/?model=kimi-k2-5) |

QUICKSTART

## 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`.

QUICKSTART [Get API key](https://inference.net/register/?model=kimi-k3-1-pro)

```typescript
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' }],
})
```

```python
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
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" }
    ]
  }'
```

CLAUDE CODE & ANTHROPIC /V1/MESSAGES

Point Claude Code or any Anthropic SDK client at Inference.net with zero proxy setup and full prompt-cache support.

```bash
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]'
claude
```

[Claude Code setup guide](https://inference.net/docs/integrations/claude-code/) [Anthropic SDK docs](https://inference.net/docs/api/anthropic-sdk/)

COMPARISONS, GUIDES & TOOLS

## Benchmark, compare, and model Kimi costs

Verify unit economics across prompt-cache hit rates, compare providers, and explore engineering guides for Kimi.

[COMPARISON Kimi K3.1 Pro vs Claude Opus 5 Open-weight Kimi K3.1 Pro pricing and 1M context compared with proprietary Claude Opus 5. Read comparison](https://inference.net/compare/kimi-k3-1-pro-vs-claude-opus-5/) [COMPARISON Kimi K3 vs GLM-5.3 Compare Moonshot AI Kimi K3 and Z.ai GLM-5.3 on live token pricing, context, and capabilities. Read comparison](https://inference.net/compare/kimi-k3-vs-glm-5-3/) [COMPARISON Kimi K3 vs DeepSeek V4.1 Flash Side-by-side trade-offs between Kimi K3 and DeepSeek V4.1 Flash for agent workloads. Read comparison](https://inference.net/compare/kimi-k3-vs-deepseek-v4-1-flash/) [GUIDE Claude Code Alternatives Guide Run Claude Code and open-source coding harnesses on Kimi and other open-weight models. Read guide](https://inference.net/guides/claude-code-alternatives/) [GUIDE Best Open-Source LLMs Guide Workload-by-workload guide to selecting open-weight models for coding, agents, and RAG. Read guide](https://inference.net/guides/best-open-source-llms/) [GUIDE OpenRouter Alternatives Guide Compare direct serverless inference providers on latency, ZDR defaults, and transparent billing. Read guide](https://inference.net/guides/openrouter-alternatives/) [CALCULATOR LLM Pricing Calculator Estimate monthly token spend across live Kimi models and sibling open-weight tiers. Open calculator](https://inference.net/tools/llm-pricing-calculator/) [CALCULATOR Prompt Cache Calculator Model 50%, 75%, and 90% cache hit-rate savings for multi-turn coding agents and RAG workflows. Calculate savings](https://inference.net/tools/prompt-cache-calculator/) [INTEGRATION Claude Code Integration Connect Claude Code directly to Kimi models on Inference.net using native /v1/messages. Read docs](https://inference.net/docs/integrations/claude-code/)

MODEL FAMILIES

## Explore other open-weight model families

Switch across DeepSeek, Kimi, GLM, and the full catalog with one API key and one OpenAI-compatible client.

[DEEPSEEK API DeepSeek API DeepSeek V4.1 Flash, V4 Pro, and V3.2 with up to 1M context and automatic prompt caching on supported V4.1 and V4 Pro routes, plus default ZDR on hosted routes. Explore DeepSeek models](https://inference.net/models/deepseek/) [GLM API GLM API GLM-5.3, GLM-5.3 Flash, and GLM-5.2 for low-cost coding agents, tool calling, and up to 1M context. Explore GLM models](https://inference.net/models/glm/) [QWEN API Qwen API Qwen 3.7 Plus, Qwen 3 30B A3B, and Qwen 3 14B with up to 1M context, multimodal input, and implicit caching on Qwen 3.7 Plus. Explore Qwen models](https://inference.net/models/qwen/) [SCHEMATRON API Schematron API Schematron V2 Turbo and V2 Small for high-throughput HTML-to-JSON structured extraction with 128K context, US residency, and default ZDR. Explore Schematron models](https://inference.net/models/schematron/) [GROK API Grok API Grok 4.6 and Grok 4.5 with 500K context, vision, configurable reasoning, and x-grok-conv-id prompt caching over one API key. Explore Grok models](https://inference.net/models/grok/) [FULL CATALOG All Models & Pricing Search, sort, and compare every live open-weight and frontier model on Inference.net. Browse all models](https://inference.net/models/)

FAQ

## Frequently asked questions.

Quick answers to help you get started

### How much does the Kimi API cost on Inference.net?

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.

### Does Inference.net support prompt caching for Kimi models?

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.

### Can I call Kimi models with the OpenAI SDK, Anthropic SDK, or Claude Code?

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.

### Does Inference.net offer Zero Data Retention for the Kimi API?

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](https://inference.net/zero-data-retention/) 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.

### What context windows and capabilities do Kimi models support?

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.

GET STARTED

## 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.

[Create free API key](https://inference.net/register/?model=kimi-k3-1-pro) [API quickstart docs](https://inference.net/docs/api/quickstart/)
