Moonshot
Kimi API
Moonshot's Kimi models — a frontier tier and a coding-specialised one.
2
models in the line
At a glance
- From
- $1.11 / 1M tokens
Models in this family
Pricing
| Model | Option | Price |
|---|---|---|
| Kimi K3 | input | $3.15/ 1M tokens |
| Kimi K3 | output | $15.75/ 1M tokens |
| Kimi K3 | cacheRead | $0.315/ 1M tokens |
| Kimi K2.7 Code | input | $1.11/ 1M tokens |
| Kimi K2.7 Code | output | $4.62/ 1M tokens |
| Kimi K2.7 Code | cacheRead | $1.11/ 1M tokens |
| Kimi K2.7 Code | cacheWrite | $1.11/ 1M tokens |
Which one to pick
Kimi K3
Long-context reasoning and agentic tool use — the general frontier tier.
Kimi K2.7 Code
Repository-scale code edits and agentic software work, where a coding-tuned model beats a general one.
Strengths
- A coding-specialised tier that is not just the general model with a different prompt.
- K2.7 Code is the lower-priced tier — under half of K3 on both input and output — so the coding specialist is also the cheaper option.
- Prompt caching on both tiers.
- OpenAI-protocol compatible.
Limitations
- Output costs four to five times input on both tiers, so long generations dominate the bill.
- Only two tiers, and the cheaper one is specialised for code — there is no low-cost general-purpose option.
Frequently asked questions
How much does the Kimi API cost?
API Stock bills per use from one prepaid balance, with no subscription. Current prices: Kimi K3 — $3.15 per 1M input tokens and $15.75 per 1M output tokens; Kimi K2.7 Code — $1.11 per 1M input tokens and $4.62 per 1M output tokens.
Which Kimi model is the cheapest?
Kimi K2.7 Code is the cheapest at $1.11 per 1M input tokens. The most expensive tier, Kimi K3, costs $3.15 per 1M input tokens.
Does the Kimi API support prompt caching?
Yes. Cached input tokens are billed at a lower rate: Kimi K3 — $0.315 instead of $3.15 per 1M tokens; Kimi K2.7 Code — $1.11 instead of $1.11 per 1M tokens.
Can I use the Kimi API with the OpenAI or Anthropic SDK?
Yes. Kimi models accept the OpenAI request format: set the SDK's base URL to https://api.api-stock.com/api/v1 and use your API Stock API key. Switching between models only changes the model id.
How do I get an API key for Kimi?
Create an account and API key on API Stock, then fund your balance. The same key works with Kimi and other catalog models.
The vendor's own description of this line: Moonshot AI — docs
Guides
- LLM API pricing: GPT, Claude, Gemini, DeepSeek comparedCompare LLM API pricing for GPT, Claude, Gemini, DeepSeek, Grok and Kimi per 1M tokens, with worked monthly cost examples and practical ways to cut the bill.9 min read
- Going to productionKey handling, webhooks over polling, idempotency, terminal states, retry policy by error code, balance monitoring, rate limits and media storage.10 min read