Skip to content
llmmodels

Codestral 25.08 vs GPT-4.1 mini

Codestral 25.08 is about 1.6× cheaper on a blended (3:1 input:output) token price. GPT-4.1 mini has the larger context window (1M vs 250K).

SpecCodestral 25.08GPT-4.1 mini
ProviderMistral AIOpenAI
ReleasedJul 30, 2025 (better)Apr 14, 2025
TypeChat LLMChat LLM
Parameters——
Context window250K1M (better)
Max output8K32K (better)
Input price / 1M$0.3 (better)$0.4
Output price / 1M$0.9 (better)$1.60
Input modalitiestext, pdf, filetext, image, pdf, file (better)
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeNoNo
Tool callingYesYes
API providers1130 (better)
Epoch Capabilities Index—134.2
GPQA Diamond—65.8%
Aider Polyglot—32.4%
OTIS Mock AIME—44.7%
MATH Level 5—87.3%
FrontierMath—6.7%
ARC-AGI-2—0.0%
SimpleQA Verified—12.7%

Cost example

For a workload of 10M input + 2M output tokens per month: Codestral 25.08 costs $4.80 and GPT-4.1 mini costs $7.20 at list price (Mistral AI / openai pricing).

About Codestral 25.08

Codestral 25.08 is a proprietary chat llm from Mistral AI, released Jul 30, 2025. It has a 250K-token context window and accepts text, pdf, file input. API pricing starts at $0.3 per million input tokens and $0.9 per million output tokens. It is available from 11 API providers. Full Codestral 25.08 specs →

About GPT-4.1 mini

GPT-4.1 mini is a proprietary chat llm from OpenAI, released Apr 14, 2025. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $0.4 per million input tokens and $1.60 per million output tokens. It is available from 30 API providers. It scores 134.2 on the Epoch Capabilities Index. Full GPT-4.1 mini specs →

Compare other models

FAQ

Which is better, Codestral 25.08 or GPT-4.1 mini?

Codestral 25.08 is about 1.6× cheaper on a blended (3:1 input:output) token price. GPT-4.1 mini has the larger context window (1M vs 250K).

Is Codestral 25.08 cheaper than GPT-4.1 mini?

Codestral 25.08 costs $0.3 input / $0.9 output per 1M tokens; GPT-4.1 mini costs $0.4 / $1.60. Codestral 25.08 is cheaper overall.

Which has a bigger context window?

Codestral 25.08: 256,000 tokens. GPT-4.1 mini: 1,047,576 tokens.

Are Codestral 25.08 and GPT-4.1 mini open source?

Codestral 25.08 is proprietary; GPT-4.1 mini is proprietary.