Skip to content
llmmodels

Codestral 25.08 vs GPT-4.1 nano

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

SpecCodestral 25.08GPT-4.1 nano
ProviderMistral AIOpenAI
ReleasedJul 30, 2025 (better)Apr 14, 2025
TypeChat LLMChat LLM
Parameters——
Context window250K1M (better)
Max output8K32K (better)
Input price / 1M$0.3$0.1 (better)
Output price / 1M$0.9$0.4 (better)
Input modalitiestext, pdf, filetext, image, file
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeNoNo
Tool callingYesYes
API providers1122 (better)
Epoch Capabilities Index—126.8
GPQA Diamond—48.9%
Aider Polyglot—8.9%
OTIS Mock AIME—28.9%
MATH Level 5—70.0%
ARC-AGI-2—0.0%
SimpleQA Verified—6.0%

Cost example

For a workload of 10M input + 2M output tokens per month: Codestral 25.08 costs $4.80 and GPT-4.1 nano costs $1.80 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 nano

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

Compare other models

FAQ

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

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

Is Codestral 25.08 cheaper than GPT-4.1 nano?

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

Which has a bigger context window?

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

Are Codestral 25.08 and GPT-4.1 nano open source?

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