Moonshot Kimi documentation
Kimi API: K2.5, K2.6, K2.7 & K3 rates and setup
Use the Kimi API through AngelAPI to run Moonshot Kimi K2.5, K2.6, K2.7, and K3 behind one OpenAI-compatible endpoint in MYR or USD. All four Kimi variants support native vision input and long context windows—ranging from 164K on Kimi K2.5 up to 1M tokens on Kimi K3—backed by a single prepaid balance.
Live Kimi models, context limits, and multipliers
Choose between budget-friendly Kimi K2.5 (×0.9492 in / ×4.8539 out) for fast general chat, Kimi K2.6 and K2.7 for long outputs, or Kimi K3 (1M context window, ×4 in / ×20 out) for heavy multi-file analysis.
| Model ID | Status | Context / Max out | Input mult (MYR / 1M) | Output mult (MYR / 1M) | Est. coding (MYR / 1M) |
|---|---|---|---|---|---|
kimi-k2.5 | online | 164K / 32K | ×0.9492 (RM0.106) | ×4.8539 (RM0.544) | ×0.9208 (RM0.103) |
kimi-k2.6 | online | 256K / 32K | ×3.9237 (RM0.439) | ×16.521 (RM1.850) | ×2.4686 (RM0.276) |
kimi-k2.7 | online | 256K / 256K | ×6.0256 (RM0.675) | ×25.3716 (RM2.842) | ×4.6143 (RM0.517) |
kimi-k3 | online | 1M / 128K | ×4 (RM0.448) | ×20 (RM2.240) | ×2.5091 (RM0.281) |
Code examples: curl, Python, and Node.js
Every Kimi model responds to standard chat completion requests at https://api.angelapi.cc/v1/chat/completions. Never place your real API key inside version-controlled source files; always inject ANGELAPI_KEY from environment variables.
curl https://api.angelapi.cc/v1/chat/completions \
-H "Authorization: Bearer $ANGELAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.5",
"messages": [{"role": "user", "content": "Summarize key architecture tradeoffs of event sourcing."}]
}'from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.angelapi.cc/v1",
api_key=os.environ["ANGELAPI_KEY"],
)
response = client.chat.completions.create(
model="kimi-k2.5",
messages=[{"role": "user", "content": "Summarize key architecture tradeoffs of event sourcing."}],
)
print(response.choices[0].message.content)const res = await fetch("https://api.angelapi.cc/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.ANGELAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "kimi-k2.5",
messages: [{ role: "user", content: "Summarize key architecture tradeoffs of event sourcing." }],
}),
})
const data = await res.json()
console.log(data.choices[0].message.content)Choosing the right Kimi version for coding, vision, or long documents
- Everyday automation & chat (Kimi K2.5): Lowest token cost in the Kimi family at RM0.106/1M input and RM0.544/1M output, plus 164K context and native image input. Ideal for high-frequency customer support classification, changelog drafting, and lightweight IDE edits.
- Balanced multi-file coding (Kimi K2.6): Expands context to 256K while maintaining 99%+ 24-hour gateway uptime in our snapshot, fitting medium codebases that combine backend handlers with SQL schemas.
- Long generated specifications (Kimi K2.7): Supports up to 256K output tokens alongside 256K input context, making single-pass code migrations, long JSON exports, and multi-module documentation feasible without output splitting.
- Million-token context & repositories (Kimi K3): Combines a full 1M context window (128K output) with cache-reduced coding draws (×2.5091 est.). For workflows pairing Kimi K3 with agent CLIs, read our Claude Code alternative comparison or OpenCode setup guide.
Budgeting Kimi API token packs accurately
Every AngelAPI token pack shares the identical RM0.112 per million prepaid unit rate (available from RM1.12 for 10M units up to RM111.77 for 1B units, with automatic USD checkout outside Malaysia). Remember that output multipliers on larger models are significantly higher than input multipliers: trimming verbose system preambles or unnecessary step-by-step essays with clear system instructions directly reduces prepaid token burn. Inspect all pack tiers on Pricing before topping up.
Troubleshooting and vision payload tips
Because all four Kimi routes read uploaded images directly, you can pass UI screenshots, error modals, or tables inside standard multimodal message arrays without routing to a separate OCR service. If a response cuts off before finishing long code output, raise max_tokens explicitly inside your payload while staying within each model’s published cap (32K on K2.5/K2.6, 128K on K3, 256K on K2.7). For 401/402 authentication or balance issues, confirm your Bearer header targets https://api.angelapi.cc/v1/chat/completions, check live gateway health on Status, and review Usage in Account.
Worked token calculation: estimating one sprint in MYR
Suppose a backend engineer spends a week using Kimi K2.5 on a 10M pack (RM1.12) and reviews logs totaling 1,000,000 raw input tokens alongside 120,000 output completion tokens. At ×0.9492 input and ×4.8539 output, the raw input consumes roughly 949,200 prepaid units while completions consume 582,468 prepaid units—around 1.53M prepaid units total (roughly RM0.17 at RM0.112 per million units). Even if you upgrade selective architecture questions to Kimi K3 (×4 in / ×20 out) across large monorepos, a RM11.18 (100M) pack easily absorbs substantial day-to-day refactoring without committing to monthly vendor renewals when workloads drop between sprints. Check AI API pricing or compare prepaid token packs directly before provisioning team keys.
Frequently asked questions
Which Kimi models are live on AngelAPI right now?
Kimi K2.5, Kimi K2.6, Kimi K2.7, and Kimi K3 are available via OpenAI-compatible requests on https://api.angelapi.cc/v1.
Can Kimi models read images directly?
Yes. Kimi K2.5, K2.6, K2.7, and K3 all read attached images natively without requiring an intermediate vision hop.
How do Kimi context limits differ between versions?
Kimi K2.5 provides 164K context (32K max output), K2.6 and K2.7 expand to 256K context (with K2.7 supporting 256K output), and Kimi K3 scales up to a 1M context window (128K output).
Does Kimi work inside Claude Code and OpenCode?
Yes. You can connect OpenCode via https://api.angelapi.cc/v1 or configure compatible coding workflows using your AngelAPI key; see our coding tool guides for full steps.