Turn this customer email into JSON with intent, urgency and order_id.
customer-email.txtCodestral 2508
by MistralReleased 1 August 2025
Codestral 2508 is Mistral's code model for fast, repeated edits inside an editor: you send the code before and after a gap and it fills the middle, corrects errors and writes tests. It reads about 256 pages of text or files and answers in text. Pick it for autocomplete where waiting counts.
What it costs
You pay for what each request uses. No subscription, no minimum.
One message, the ordinary use
Every rate
| Meter | ↑ you send | ↓ comes back |
|---|---|---|
| Text tokens | 99,85 DA | 299,55 DA |
| Cached tokens read | 9,99 DA |
per 1M tokens
- When you pay
- After the answer, from your balance. Nothing is held.
- Why it varies
- A longer question or a longer answer costs more.
- After each one
- The exact charge shows on the request.
Where your request runs
One company runs this model. OpenDunes sends every request to it. DA per 1M tokens: ↑ what you send · ↓ what comes back.
You pay the price of the provider that served your request. Prices read 15:19 · speed over the last 30 minutes · uptime over 3 days.
See it in action
Real requests, real replies. Try any of them yourself — one click, pre-filled.
Two lines to welcome a shop in Oran.
Welcome to our new shop in Oran — fresh bread every morning, and coffee the way the city likes it. Come in, the first cup is on us.
Try in Chat LabTry your own request — same model, pre-selected.
Open Chat LabCall it in code
Swap the base URL and the key. Your OpenAI code runs unchanged.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://opendunes.com/v1",
api_key=os.environ["OPENDUNES_API_KEY"],
)
resp = client.chat.completions.create(
model="mistralai/codestral-2508",
messages=[{"role": "user", "content": "Two lines to welcome a shop in Oran."}],
)
print(resp.choices[0].message.content)Runs this request once on your balance.
Parameters you can send
Standard OpenAI fields, grouped by what they control. Anything not listed is accepted and ignored.
Shaping the reply
How long, how varied, where to stop.
max_tokenstemperaturetop_pstopseedfrequency_penaltypresence_penaltyStructured output
Get JSON you can parse instead of prose.
response_formatstructured_outputsTools
Let the model call your functions.
toolstool_choiceOther
Also accepted by this model.
predictionQuestions about Codestral 2508
How much does Codestral 2508 cost in dinars?
About 0,25 DA per message. ↑ 99,85 DA · ↓ 299,55 DA per 1M tokens.
Is Codestral 2508 free? Can I try it?
No. You pay per use from your balance, with no subscription. Try it in Chat at the same price.
What is Codestral 2508 best for?
Codestral 2508 is Mistral's code model for fast, repeated edits inside an editor: you send the code before and after a gap and it fills the middle, corrects errors and writes tests. It reads about 256 pages of text or files and answers in text. Pick it for autocomplete where waiting counts.
How do I pay for Codestral 2508 without an international card?
Deposit dinars with your Edahabia or CIB card. Every model, Codestral 2508 included, is paid from that balance. No foreign card, no conversion.
Does Codestral 2508 work in Arabic, French or Darja?
Mistral names no languages for Codestral 2508. Arabic, French and Darja: not stated.
Can it read PDFs, images or a whole book?
It reads text and PDFs. Up to 256K tokens in one request, about 250 pages. It writes up to 154 000 words at once.
Is Codestral 2508 open source?
No. Mistral has not published its weights.
Who makes Codestral 2508, and when was it released?
Mistral. Released 1 August 2025. It knows the world up to 31 March 2025.
Other Mistral models, priced in dinars
See all Mistral modelsMistral's flagship speech-to-text model that turns audio into transcripts with word timestamps and speaker labels, with context biasing for domain-specific vocabulary
The Voxtral Mini derivative that only transcribes, taking audio from meetings, voice notes and podcasts and returning the text through a standard transcription request
Mistral's compact speech-to-text model that turns audio into transcripts with word timestamps and speaker labels, and can be steered with context biasing to catch domain terms
Mistral AI's text embedding model from late 2023, whose 1024-dimension vectors capture how passages relate, for semantic search and RAG; Codestral Embed is the version for code