🎁 Sign up, get $1. Join Discord, get $5!
Models
Experience Center
Activity
Docs
Resource
Console
M

Kimi K2.7 Code

Moonshot AIModel IDkimi-k2.7-code
M

Kimi K2.7 Code

Moonshot AIModel IDkimi-k2.7-code

Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text and image input, and it always operates in a thinking mode, preserving full reasoning content across multi-turn conversations. With a 256K-token context window, it targets long-horizon coding, agentic task decomposition, and multi-turn dialogue. The model activates 32B parameters out of roughly 1T total.

ModeText → Text
Input price$0.95 / 1M tokens
Output price$4 / 1M tokens
Context length262144 tokens

Capabilities & limits

Use cases
Not available
Model capabilities
Not available
Model Brand
Moonshot AI
Input modality
Text
Output modality
Text
Max output
262144 tokens

Pricing

ProviderBilling typePrice summary
M
Moonshot-Balanced
Per token
Input price$0.95per 1M tokens
Completion price$4per 1M tokens
Cache read price$0.19per 1M tokens
Cache write price—
M
Moonshot-Custom
Per token
Input price$0.95per 1M tokens
Completion price$4per 1M tokens
Cache read price$0.19per 1M tokens
Cache write price—

Integration

Code Example

curl http://127.0.0.1:4179/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST
openai

Supported Parameters

ParameterTypeDefaultDescription

Rate Limits

RPM

No rate limits configured

RPM = requests per minute.