# Kimi K2.7 Code vs Kimi K3

As of October 21, 2026, Kimi K3 costs 216% more per input token than Kimi K2.7 Code ($3.00 vs $0.95 per 1M) and has a 1M-token context window versus 256K.

- Page: https://models.litellm.ai/compare/kimi-k2.7-code-vs-kimi-k3
- Kimi K2.7 Code: https://models.litellm.ai/models/kimi-k2.7-code
- Kimi K3: https://models.litellm.ai/models/kimi-k3

## Side by side

| | Kimi K2.7 Code | Kimi K3 |
|---|---|---|
| Input, per 1M tokens | $0.95 | $3.00 |
| Output, per 1M tokens | $4.00 | $15.00 |
| Cache read, per 1M tokens | $0.19 | $0.30 |
| Cache write, per 1M tokens | – | – |
| Context window | 262,144 tokens | 1,048,576 tokens |
| Max output | 262,144 tokens | 1,048,576 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 16 | 15 |
| Price shown is from | Moonshot AI | Moonshot AI |
| Added to LiteLLM | June 2026 | August 16, 2026 |

Headline prices in USD per 1M tokens, from LiteLLM's model price file.

## Cheapest provider for each

- Kimi K2.7 Code: DeepInfra at $0.68 input per 1M tokens (`deepinfra/moonshotai/Kimi-K2.7-Code`)
- Kimi K3: Sail at $2.50 input per 1M tokens (`sail/moonshotai/Kimi-K3`)

## Benchmark scores

| Benchmark | Kimi K2.7 Code | Kimi K3 |
|---|---|---|
| Epoch Capabilities Index (Overall) | 150.1 | 157.9 |
| FrontierCode (Coding and agents) | 30.1% | 44.2% |
| APEX-Agents (Coding and agents) | 37.6% | 47.8% |
| GPQA Diamond (Reasoning and knowledge) | 87.9% | 93.1% (max) |
| SimpleQA Verified (Reasoning and knowledge) | 36.5% | 50.6% (max) |
| FrontierMath (tiers 1-3) (Math) | 54.0% | 72.2% (max) |
| FrontierMath (tier 4) (Math) | 12.2% | 39.0% (max) |
| OTIS Mock AIME 2024-2025 (Math) | 95.6% | 97.2% (max) |

From the Epoch AI Benchmarking Hub (https://epoch.ai/benchmarks), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), data as of August 27, 2026: Epoch's own runs and results it collects from each benchmark's leaderboard. Higher is better.

## When to pick which

- Kimi K2.7 Code: Costs 68% less per input token: $0.95 vs $3.00 per 1M.
- Kimi K3: Larger context window: 1,048,576 vs 262,144 tokens.
- Kimi K3: Returns up to 1,048,576 tokens per response, vs 262,144.

## FAQ

### Which is cheaper, Kimi K2.7 Code or Kimi K3?

Kimi K2.7 Code is cheaper at 3 input tokens per output token: $1.712 per 1M tokens blended ($0.95 input, $4.00 output), versus $6.00 ($3.00 and $15.00) for Kimi K3, as of October 21, 2026.

### Which has the larger context window, Kimi K2.7 Code or Kimi K3?

Kimi K3 has the larger context window: 1,048,576 tokens, versus 262,144 for Kimi K2.7 Code.

### Can I switch from Kimi K2.7 Code to Kimi K3 without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "moonshot/kimi-k2.7-code" to "moonshot/kimi-k3", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.
