Textby Mistral AI

Codestral 2508

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

  • By price it is in the cheaper half of the 345 text models GenMagic runs (119th cheapest).
  • It has scores on 6 public benchmarks, listed below with their sources.
  • It was listed on Aug 1, 2025.

Data last changed Nov 13, 2026 · tracked since Oct 29, 2026 · Every model change

Try Codestral 2508

Generate with Codestral 2508 right here. Verify your email to start with free credits.

<$0.01
Try

Specifications

Context window

256K tokens

Max output

205K tokens

Knowledge cutoff

2025-03-31

Input price

$0.45 / 1M tokens

Output price

$1.35 / 1M tokens

Cached input

$0.045 / 1M tokens

Benchmarks

How Codestral 2508 scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

Compare against every model in the full benchmark matrix.

Capabilities

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Codestral 2508 through the API

The model id is mistralai/codestral-2508. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="mistralai/codestral-2508",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "mistralai/codestral-2508" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Codestral 2508 in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Mistral: Codestral 2508, or enter mistralai/codestral-2508 as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Mistral: Codestral 2508 (this model)Mistral AI$0.45 in / $1.35 out per 1M tokens256K
Z.ai: GLM 4.6VZ.AI$0.45 in / $1.35 out per 1M tokens131K
DeepSeek: DeepSeek V3.1DeepSeek$0.38 in / $1.43 out per 1M tokens164K
Qwen: Qwen3 Next 80B A3B InstructQwen$0.14 in / $1.65 out per 1M tokens262K
MiniMax: MiniMax M2.5MiniMax$0.41 in / $1.43 out per 1M tokens198K
Thinking Machines: Inkling 2 SmallThinkingmachines$0.45 in / $1.50 out per 1M tokens1M

More from Mistral AI

All 20 Mistral AI models

Price and listing history

Every change GenMagic has recorded for Codestral 2508 since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 1, 2026Price up 36%$0.33 in / $0.99 out per 1M tokens$0.45 in / $1.35 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Mistral AI publishes them, checked daily.
  • Benchmarks: 6 scores from Design Arena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 13, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Codestral 2508 today

One GenMagic plan unlocks Codestral 2508 and every other model across text, image, audio, and video.