# Kimi K2.7 Code vs Mistral Large 4

As of November 23, 2026, Kimi K2.7 Code costs 36% more per input token than Mistral Large 4 ($0.95 vs $0.70 per 1M) and has a 256K-token context window versus 1M.

- Page: https://models.litellm.ai/compare/kimi-k2.7-code-vs-mistral-large-4
- Kimi K2.7 Code: https://models.litellm.ai/models/kimi-k2.7-code
- Mistral Large 4: https://models.litellm.ai/models/mistral-large-4

## Side by side

| | Kimi K2.7 Code | Mistral Large 4 |
|---|---|---|
| Input, per 1M tokens | $0.95 | $0.70 |
| Output, per 1M tokens | $4.00 | $2.10 |
| Cache read, per 1M tokens | $0.19 | $0.07 |
| 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 | 23 | 2 |
| Price shown is from | Moonshot AI | Mistral AI |
| Added to LiteLLM | June 2026 | October 7, 2026 |

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

## Cheapest provider for each

- Kimi K2.7 Code: CLF AI Gateway at $0.38 input per 1M tokens (`clf_ai_gateway/kimi-k2.7-code`)
- Mistral Large 4: Mistral AI at $0.70 input per 1M tokens (`mistral/mistral-large-4`)

## Benchmark scores

| Benchmark | Kimi K2.7 Code | Mistral Large 4 |
|---|---|---|
| Epoch Capabilities Index (Overall) | 151.2 | 154.6 |
| FrontierCode (Coding and agents) | 30.1% | 39.4% (high) |
| APEX-Agents (Coding and agents) | 37.6% | 51.6% (high) |
| GPQA Diamond (Reasoning and knowledge) | 87.9% | 88.1% (high) |
| SimpleQA Verified (Reasoning and knowledge) | 36.5% | 20.0% (high) |
| FrontierMath (tiers 1-3) (Math) | 54.0% | 58.6% (high) |
| FrontierMath (tier 4) (Math) | 12.2% | 26.8% (high) |
| OTIS Mock AIME 2024-2025 (Math) | 95.6% | 98.3% (high) |

From the Epoch AI Benchmarking Hub (https://epoch.ai/benchmarks), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), data as of October 29, 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: Available from 23 providers through LiteLLM, vs 2.
- Mistral Large 4: Costs 26% less per input token: $0.70 vs $0.95 per 1M.
- Mistral Large 4: Larger context window: 1,048,576 vs 262,144 tokens.

## FAQ

### Which is cheaper, Kimi K2.7 Code or Mistral Large 4?

Mistral Large 4 is cheaper at 3 input tokens per output token: $1.05 per 1M tokens blended ($0.70 input, $2.10 output), versus $1.712 ($0.95 and $4.00) for Kimi K2.7 Code, as of November 23, 2026.

### Which has the larger context window, Kimi K2.7 Code or Mistral Large 4?

Mistral Large 4 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 Mistral Large 4 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 "mistral/mistral-large-4", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.
