LiteLLMLiteLLM/ MODELS

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.

Prices from LiteLLM's price fileChecked

Kimi K2.7 Code vs Mistral Large 4 side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 23, 2026.
Kimi K2.7 CodeMistral 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 window262,144 tokens1,048,576 tokens
Max output262,144 tokens1,048,576 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM232
Price shown is fromMoonshot AIMistral AI
Added to LiteLLMJune 2026October 7, 2026

Cheapest provider for each

Benchmark scores

From the Epoch AI Benchmarking Hub (CC BY 4.0), data as of October 29, 2026. Some results were run by Epoch and others collected by Epoch from each benchmark's own leaderboard, linked in the first column. Each model's best reported reasoning setting is shown in brackets. Higher is better. Only benchmarks with a score for both models are shown.
BenchmarkKimi K2.7 CodeMistral Large 4
Overall
Epoch Capabilities Index151.2154.6
Coding and agents
FrontierCode30.1%39.4% (high)
APEX-Agents37.6%51.6% (high)
Reasoning and knowledge
GPQA Diamond87.9%88.1% (high)
SimpleQA Verified36.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-202595.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.

Python SDK
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.