Kimi (Moonshot AI) Models
Access Kimi K2 and K3 models through AI Gateway — long-context coding and agent models via one OpenAI-compatible API with credit billing.
Moonshot AI's Kimi models are known for long-context handling and agentic coding performance. The full lineup below is available through AI Gateway's OpenAI-compatible endpoint.
Available Models
| Model | Context | Best For |
|---|---|---|
kimi-k3 | 1M | Latest flagship, long-context agents |
kimi-k2.7-code | 256K | Coding & repo-level refactors |
kimi-k2.6 | 256K | General production use |
Kimi-K2.5 | 256K | Stable previous generation |
Live per-model credit pricing is on the Models page.
Quick Start
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://your-domain.com/api/ai/v1"
)
response = client.chat.completions.create(
model="kimi-k3",
messages=[{"role": "user", "content": "Refactor this module for testability."}]
)
print(response.choices[0].message.content)
Replace
your-domain.comwith your AI Gateway site domain. Get your API key from the dashboard after sign-up.
Why through AI Gateway
- Kimi alongside every other provider — one key, one bill
- Agent-ready — function calling supported on chat endpoints
- Per-token credit billing — no subscription
Related Pages
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
| Model | Context | Type |
|---|---|---|
kimi-k2.5 | 262K | chat |
kimi-k2.6 | 262K | chat |
kimi-k2.7-code | 262K | chat |
kimi-k3 | 1M | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
Capabilities
4 shipping models, context windows from 262K to 1M tokens; tiers: balanced ×1, flagship ×1, coding-focused ×1, previous generation ×1.
Pricing & billing
Per-token credit billing; cache hits at steep discounts. Live rates on the Models pricing page — numbers intentionally not fixed here.
FAQ
How large is the context window of Kimi (Moonshot AI)?
1,000,000 Token (1M)
How is it billed?
Per-token credit billing with cache-hit discounts. Live rates on the Models page.
Do I need a provider account?
No. One AI Gateway API key covers this model and every other model on the site.
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
All Models
Each model has its own page with specs, official reference pricing, credit prices and code examples.
Ready to build with Kimi?
One API Key, every model. Transparent pay-as-you-go pricing with credits that never expire.
Create free account