Models›Mistral›Codestral 2508

Codestral 2508

by Mistral · released Aug 1, 2025 · 2 providers
Model IDmistralai/codestral-2508
Tool callingStructured outputs

Mistral's cutting-edge language model for coding released end of July 2025.

MODEL PRICING

Standard pricing

Run this model at its standard rate. Cheap mode currently has no separate discount.

Input tokens$0.315per 1 million tokens
Output tokens$0.945per 1 million tokens

API routing ceilings, including your 5% Free-plan fee. Included usage applies first, then prepaid credits. Cached tokens and tools can have separate charges.

Looking for lower rates? Browse models with verified discounts →
Context
256k
tokens
Max output
205k
tokens per reply
Input
$0.3
provider baseline / 1M; fee applies
Output
$0.9
provider baseline / 1M; fee applies

Choose how to use Codestral 2508

Playground

Try prompts in your browser, create an agent, and see the cost of each reply. Your selected model carries into setup.

Model capabilities below describe the underlying model. Available playground features depend on its provider.

API

Connect your app with a Gizmo API key. Choose fastest or cheapest, stream text responses, and inspect timing, tokens, and charges in request logs.

A current API route is listed for this exact model. Gateway configuration is required for live calls.

Provider price + a transparent platform fee

RateProvider baselineFree plan · 5% feePaid plan · 4% fee
Input / 1M tokens$0.3$0.315$0.312
Output / 1M tokens$0.9$0.945$0.936
API input / 1M tokens$0.3$0.315$0.312
API output / 1M tokens$0.9$0.945$0.936

Legacy chat image rates use the catalog baseline. The dedicated image playground shows separate estimates and settles the provider’s metered usage. API rates are current routing ceilings; final API charges use provider-reported cost plus your fee. Cheapest routing compares eligible OpenRouter and Cheaper Inference rates for the same model; savings are not guaranteed. Cached input or other provider charges may differ. Compare all model rates and verified discounts →

How your plan pays for usage

API and playground share one included allowance. Usage including the fee draws from that allowance first, then your prepaid credits. Plans bill monthly; included usage resets weekly: Free $1, Starter $5, Growth $25, Scale $50.

A $1 provider charge becomes $1.05 on Free or $1.04 on a paid plan before included usage is applied. Plan eligibility still applies in the playground.

Free models and limits

Zero-cost models stay $0, including the fee, and do not consume your dollar allowance. Free accounts can make 1,000 free-model API requests per calendar month, resetting in UTC. Admitted requests count even if the provider fails.

Free includes 20 API requests/minute and 6 playground messages/minute. Paid plans raise these limits. See plan limits.

Before a text API request, Gizmo temporarily reserves included usage and, if necessary, prepaid credit for the model’s full context plus your maximum output. Image jobs reserve twice their displayed estimate. Unused funds return after metering. This hold can exceed the final charge; unconfirmed usage remains marked pending.

Overview

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.

[Blog Post](https://mistral.ai/news/codestral-25-08)

Benchmarks

Design Arena head-to-head, human-voted

CategoryEloWin rateRank
3D scenes104945.4%#95
UI components103646.7%#98
Data viz103441.1%#100
Code102338.5%#109
Game dev99236.3%#110
Websites102637.8%#111

Capabilities

Input
✍️ Text📄 Files
Output
✍️ Text
✓ Tool calling✓ Structured outputs✓ JSON mode✓ Seeded sampling✓ Stop sequences

Sampling controls: temperature, top_p, max_tokens, frequency_penalty, presence_penalty. Defaults: temperature 0.3.

Pricing on Gizmo

These are provider baseline rates before Gizmo’s 5% Free-plan or 4% paid-plan fee. Your included usage covers charges first; overage uses prepaid credits. See the fee-inclusive comparison above.

Provider baseline rates

Input
$0.3 / 1M
Cached input
$0.03 / 1M
Output
$0.9 / 1M

Examples before the platform fee

Typical chat turn
$0.001 2k in · 500 out
$1 of input
≈ 3.33M tokens
$1 of output
≈ 1.11M tokens
Full context, once
$0.0768
Paid plans. This model is above the free tier’s price ceiling. Starter ($20/mo) covers $5 of usage weekly, Growth $25, Scale $50; every paid plan includes $25 in bonus credits.

Providers and pricing

One way to run Codestral 2508 on Gizmo.

ProviderRouteInput / 1MOutput / 1MContextUptime 24h
MistralLowest priceOpenRouter$0.30$0.90256k100%

Rates are each provider’s, per million tokens, before Gizmo’s 5% (Free) or 4% (paid) fee. “Cheapest” routing starts at the top of this list; “Fastest” starts with the model’s maker.

Run Codestral 2508 in under a minute

1

Create your account

Sign up with just an email. Start on the free tier with no card, or pick a paid plan for a bigger weekly allowance and $25 in bonus credits.

2

Your agent is ready

Codestral 2508 is preselected as the brain of your first agent. Give it a name and a system prompt, or keep the defaults.

3

Chat, research, create

Live web research and image generation are built in. Every reply shows what it cost, and you can switch models anytime.

Sources. OpenRouter · Design Arena · Mistral documentation. Verified Sep 9, 2026. Baseline prices are the provider’s list prices at sync time. Gizmo adds a 5% fee on Free or 4% on paid plans; included usage is applied before overage credits.