Kimi for Coding
subscription
Getting credentials
plan-key
api_key via header (header Authorization: Bearer)
Create keys in the Kimi Code Console (shown once). For Claude Code: ANTHROPIC_BASE_URL=https://api.kimi.com/coding/ and ANTHROPIC_API_KEY=<coding key>.
Endpoints
| ID | URL | Protocol | Auth |
|---|---|---|---|
| coding-openai | https://api.kimi.com/coding/v1/chat/completions | openai-chat | any |
| coding-anthropic | https://api.kimi.com/coding | anthropic-messages | any |
API surfaces
textstreaming
Plan
- Price
- $19 / monthly
- Quota
- Kimi Code has its own rolling 5-hour + weekly limits plus shared agent credits (60/150/360/720 by tier); concurrency-limited
- Notes
- Included with Kimi membership — tiers Moderato $19, Allegretto $39, Allegro $99, Vivace $199 (annual discounts); K3 access from Moderato up. Coding keys are distinct from Open Platform keys and never interchangeable (top 401 cause).
- Docs
- https://www.kimi.ai/help/membership/membership-pricing
Quirks
- Model ids on the coding endpoints: kimi-for-coding, kimi-for-coding-highspeed, k3 (1M ctx, ~2x quota), k3-256k. The [1m] suffix (kimi-k3[1m]) is a Claude Code env convention only — raw API uses k3/kimi-k3. Claude Code /effort maps to k3 low/high/max. (docs)
- kimi-for-coding is the K2.7-code-class model; highspeed variant doubles speed and quota consumption. (docs)
Models offered
| Model | Wire ID | Endpoint | Status | Reasoning |
|---|---|---|---|---|
| moonshot/kimi-k2-7-code | kimi-for-coding-highspeed | coding-openai | ga | toggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k2-7-code | kimi-for-coding | coding-openai | ga | toggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k3 | k3-256k | coding-anthropic | ga | always_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k3 | k3 | coding-openai | ga | effort · default on · mandatory · returns reasoning_content · round-trips reasoning_content |