kimi-k2.7-code vs kimi-k3.1-pro: API Pricing & Capabilities
Unit prices, a monthly cost example and capabilities of kimi-k2.7-code and kimi-k3.1-pro, side by side, from the build-time price snapshot. Both models work with the same OpenLux API key and base URL — switch by changing the model parameter.
kimi-k2.7-code: Kimi K2.7 Code is Kimi's most capable coding model to date. It follows instructions more reliably in long contexts and completes programming tasks at a higher success rate. Supports text, image, and video input; thinking mode only; suitable for conversation and Agent tasks.
kimi-k3.1-pro: Kimi K3.1 Pro is the first model of the new K3.1 series and is currently the most powerful model with 30 trillion parameters, supporting 1 million contexts. The improvements of K3.1 Pro in coding, 3D creation, financial research, and other long-range agent capabilities are particularly significant.
Price overview
For each model, the lowest-priced group available to visitors; input, output and monthly cost all use that group.
| Item | kimi-k2.7-code | kimi-k3.1-pro |
|---|---|---|
| Provider | Moonshot | Moonshot |
| Group | Self-Deployed-1 | Self-Deployed-1 |
| Input (USD / 1M tokens) | $0.285 | $0.60 |
| Output (USD / 1M tokens) | $1.20 | $3.00 |
| Cache read (USD / 1M tokens) | $0.057 | $0.06 |
| Monthly cost example | $52.50 | $120.00 |
Monthly cost example: 100M input tokens + 20M output tokens per month, using the input and output prices of the same group, excluding cache.
Prices by group
USD per 1M tokens. Price = base price × group ratio.
kimi-k2.7-code by group
| Group | Input | Output | Cache read | Monthly example |
|---|---|---|---|---|
| Self-Deployed-1 | $0.285 | $1.20 | $0.057 | $52.50 |
| Self-Deployed-2 | $0.475 | $2.00 | $0.095 | $87.50 |
| Self-Deployed-3 | $0.7125 | $3.00 | $0.1425 | $131.25 |
| Kimi-2 | $1.045 | $4.40 | $0.209 | $192.50 |
kimi-k3.1-pro by group
| Group | Input | Output | Cache read | Monthly example |
|---|---|---|---|---|
| Self-Deployed-1 | $0.60 | $3.00 | $0.06 | $120.00 |
| Self-Deployed-2 | $1.00 | $5.00 | $0.10 | $200.00 |
| Kimi-1 | $1.50 | $7.50 | $0.15 | $300.00 |
| Self-Deployed-3 | $1.50 | $7.50 | $0.15 | $300.00 |
| Kimi-2 | $2.20 | $11.00 | $0.22 | $440.00 |
Same-group comparison
Groups available to both models, with the monthly cost example in the same group:
| Group | kimi-k2.7-code | kimi-k3.1-pro |
|---|---|---|
| Self-Deployed-1 | $52.50 | $120.00 |
| Self-Deployed-2 | $87.50 | $200.00 |
| Self-Deployed-3 | $131.25 | $300.00 |
| Kimi-2 | $192.50 | $440.00 |
Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table on each model page and your console.
Capabilities
| Item | kimi-k2.7-code | kimi-k3.1-pro |
|---|---|---|
| Provider | Moonshot | Moonshot |
| Context | — | — |
| Features | Conversation · Tools | Conversation · Thinking · Tools · Image Recognition |
| API formats | OpenAI Chat Completions | OpenAI Chat Completions |
| Long-context tiers | No | No |
Which one to choose
- Lower cost: kimi-k2.7-code is cheaper — about $52.50 vs $120.00 for kimi-k3.1-pro in the monthly example above.
- Need Thinking, Image Recognition: kimi-k3.1-pro supports it.
- Not sure? Send a small share of real traffic to each and compare quality and cost — switching only changes the model parameter.
Quick start
Base URL: https://api.openlux.ai/v1. The example uses kimi-k2.7-code; change model to kimi-k3.1-pro to call the other model.
curl https://api.openlux.ai/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"}]
}'Full parameters in the API docs
FAQ
Which is cheaper, kimi-k2.7-code or kimi-k3.1-pro?
At build time, the lowest public prices were: kimi-k2.7-code (Self-Deployed-1 group) input $0.285, output $1.20 per 1M tokens; kimi-k3.1-pro (Self-Deployed-1 group) input $0.60, output $3.00 per 1M tokens. For 100M input + 20M output tokens a month, kimi-k2.7-code costs about $52.50 and kimi-k3.1-pro about $120.00.
Can I use one API key for both kimi-k2.7-code and kimi-k3.1-pro?
Yes. Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and set model to kimi-k2.7-code or kimi-k3.1-pro. Usage of both models is billed from the same balance.
Which API formats do kimi-k2.7-code and kimi-k3.1-pro support?
kimi-k2.7-code: OpenAI Chat Completions. kimi-k3.1-pro: OpenAI Chat Completions.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.