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.
Kimi K2.7 Code vs 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 |
Cheapest provider for each
- Kimi K2.7 Code: CLF AI Gateway at $0.38 input and $1.60 output per 1M tokens (
clf_ai_gateway/kimi-k2.7-code) - Mistral Large 4: Mistral AI at $0.70 input and $2.10 output per 1M tokens (
mistral/mistral-large-4)
Benchmark scores
| Benchmark | Kimi K2.7 Code | Mistral Large 4 |
|---|---|---|
| Overall | ||
| Epoch Capabilities Index | 151.2 | 154.6 |
| Coding and agents | ||
| FrontierCode | 30.1% | 39.4% (high) |
| APEX-Agents | 37.6% | 51.6% (high) |
| Reasoning and knowledge | ||
| GPQA Diamond | 87.9% | 88.1% (high) |
| SimpleQA Verified | 36.5% | 20.0% (high) |
| Math | ||
| FrontierMath (tiers 1-3) | 54.0% | 58.6% (high) |
| FrontierMath (tier 4) | 12.2% | 26.8% (high) |
| OTIS Mock AIME 2024-2025 | 95.6% | 98.3% (high) |
When to pick which
Pick Kimi K2.7 Code for
- Available from 23 providers through LiteLLM, vs 2.
Pick Mistral Large 4 for
- Costs 26% less per input token: $0.70 vs $0.95 per 1M.
- Larger context window: 1,048,576 vs 262,144 tokens.
From differences in the data above only; where the data is equal, no reason is given.
Call Kimi K2.7 Code or Mistral Large 4 with LiteLLM
Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# Kimi K2.7 Code
response = completion(model="moonshot/kimi-k2.7-code", messages=messages)
# Mistral Large 4
response = completion(model="mistral/mistral-large-4", messages=messages)
# Kimi K2.7 Code, falling back to Mistral Large 4 if the call fails
response = completion(model="moonshot/kimi-k2.7-code", messages=messages, fallbacks=["mistral/mistral-large-4"])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.