
Kimi API
Kimi models from Moonshot AI, through one OpenAI-compatible API.
Moonshot AI builds Kimi: long-context and agentic coding models. Call Kimi through UltraGPT with any OpenAI-compatible client, or through the Anthropic API in tools like Claude Code.
Models
1
From / 1M input
$0.6712
Kimi K2.7 Code
Largest context
262K
Kimi K2.7 Code
Moonshot AI models and prices
Chat and embedding prices are USD per 1M tokens: input / output.
| Model | Type | Context | Price |
|---|---|---|---|
Kimi K2.7 Codekimi-k2.7-code | Chat | 262K | $0.6712 / $3.35 |
Call Kimi K2.7 Code in a few lines
Swap the model id for any model in the table above; nothing else changes.
curl https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Comparisons
FAQ
How do I get a Kimi API key?
Sign in to UltraGPT Developers, top up your balance and create an API key. The same key works for every Moonshot AI model and every other model on UltraGPT - no separate Moonshot AI account needed.
How much does the Kimi API cost on UltraGPT?
Chat models of Moonshot AI start at $0.6712 per 1M input tokens (Kimi K2.7 Code). You pay per token from a prepaid balance, with no subscription; each model's page lists its exact input, cached-input and output prices.
Does it work with the official SDK?
UltraGPT is OpenAI-compatible: use the official OpenAI SDK (Python, Node.js) or any OpenAI-compatible tool with the base URL https://api.ultragpt.pro/v1 and the model id from the table.
Which Moonshot AI model has the largest context window?
Kimi K2.7 Code (kimi-k2.7-code), with 262,144 tokens.