Moonshot API for Kimi models: 256K context, OpenAI-ready.

By The dark side of the moon

What is Kimi API?

Kimi API is Moonshot AI's developer platform for the Kimi model family, built for ultra-long context and long-document work. It offers dialogue model APIs compatible with OpenAI formats, suited to contracts, research reports and other long texts. Current models include Kimi K2.6 and K2.7 Code (256K context) and the flagship Kimi K3. The international platform is platform.moonshot.ai (USD billing); the mainland platform is platform.moonshot.cn (CNY billing). A minimum $1 recharge is required before API use.

Developers building on Kimi's long-context models.

What you can do

  • 256K context — K2.6 and K2.7 Code support a 262,144-token context window
  • OpenAI-compatible — Drop-in replacement for OpenAI-format clients and SDKs
  • Long-document focus — Built for contracts, papers and research reports
  • Dual billing — USD on the international platform, CNY on the mainland platform

Where it fits

Useful for

  • Long-context Kimi API
  • File and search tools
  • Kimi model access

Before you choose

  • No permanent free tier; a minimum $1 recharge is required. Long-context requests cost more per call.

Capabilities

Text chat

A playground lets you chat with models; the product itself is an API, not a chatbot.

File upload & analysis

File inputs are supported by some models and endpoints.

Image understanding & editing

Vision models read images through the API.

Voice & audio

No voice endpoints.

Web search

Web search is available through a dedicated endpoint.

Code generation & execution

Code execution or code models are available through the API.

Reasoning & deep research

Reasoning models are available through the API.

Autonomous agent

Agent frameworks and tool-calling are supported through the API.

API access

Core product: a developer API with usage-based pricing.

Pricing & plans

Prices checked 11/25/2026

Pay as you go

$0.95-$15.00 per 1M tokens (¥6.50-¥100.00/MTok) month
  • No subscription; billed per token by model and cache hit/miss; minimum $1 recharge
Plan details ↗

API pricing

per 1M tokens

Model / serviceInputOutputCache readCache write
kimi-k2.6$0.95 / ¥6.50$4.00 / ¥27.00$0.16—
kimi-k2.7-code$0.95 / ¥6.50$4.00 / ¥27.00$0.19—
kimi-k3$3.00 / ¥20.00$15.00 / ¥100.00$0.30$3.00

Usage-based billing only; no subscription tiers. USD from international platform, CNY from official mainland pricing page. USD rates from Moonshot's international platform coverage (Nov 2026); CNY rates from the official mainland pricing page platform.kimi.com/docs/pricing/chat (2026-11-24). Batch API is 60% of real-time rates.

Official pricing ↗

Questions and answers

How much does the Kimi API cost?

Pay-as-you-go per token. Kimi K2.6: input $0.95 (¥6.50) / output $4.00 (¥27.00) per 1M tokens, cached input $0.16 (¥1.10). Kimi K2.7 Code: same input/output, cached input $0.19 (¥1.30). Kimi K3: output $15.00 (¥100.00) per 1M tokens.

Is there an international version?

Yes. The international platform is platform.moonshot.ai with USD-denominated pricing; the mainland platform is platform.moonshot.cn with CNY pricing.

Is it OpenAI-compatible?

Yes. The API follows OpenAI formats, so existing OpenAI clients and SDKs work with a base-URL change.

Explore similar tools

Scikit Learn

AI Dev Platforms

The most popular open-source machine learning library, complete with classic algorithms and unified APIs, covering everything from classification regression to clustering and dimensionality reduction, with abundant docum…

FreeWindows · macOS · Linux
13

OpenRouter

AI Dev Platforms

A single key calls hundreds of models, real-time price and availability comparison, supports automatic failover and cost-based routing, unified billing, suitable for multi-model access and backup solutions, and some smal…

Free / FreemiumWeb · API
13

Hugging Face

AI Dev Platforms

Open-source model and dataset hub with inference APIs.

Free / FreemiumWeb · iOS · Android
13

TensorFlow

AI Dev Platforms

Google's open-source machine learning framework has a complete ecosystem, offering mature toolchains from model training and industrial deployment to mobile and browser inference, suitable for teams that prioritize imple…

FreeWeb · Windows · macOS
12
Comments Be the First to Comment

Please log in to comment

    No comments yet