Verified 2026-11-18 · rates follow the live catalog

Kimi K2.7 Code API

Kimi K2.7 Code is available through the Openference catalog on the same endpoint as every other model.

Specifications and pricing

Kimi K2.7 Code — published rates in USD
ProviderMoonshot AI (月之暗面)
Context window256K
Input / 1M tokens$0.95
Output / 1M tokens$4
Cached input / 1M tokens—
Serving precisionFP8

What a request costs

A call with 50,000 input tokens and 10,000 output tokens bills at $0.087: 50,000 ÷ 1,000,000 × $0.95 for input, plus 10,000 ÷ 1,000,000 × $4 for output.

Calling it

Endpoint

Both API formats are served from one host and one key, so a tool that speaks either works without a translation layer:

Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL to that host and keep the client library you already use.

Send Kimi K2.7 Code in the model field. These aliases resolve to the same model: kimi k2.7 code, kimi-k2.7-code.

Capabilities: image input, tool and function calling.

Other Kimi models

Every Kimi model is compared on the Kimi API pricing page.

The rest of the catalog, with rates side by side, is on all models.

Model catalog · Pricing · Comparisons · Cost guides · Integration guides · FAQ
Guides: GLM coding plan alternative · Free AI API · LLM gateway · LLM proxy · Cheap AI API · OpenAI-compatible API
Model APIs: GLM API · DeepSeek API · Kimi API · Qwen API · MiniMax API