All models

Mistralai/operational

Mistral: 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](https://mistral.ai/news/codestral-25-08)

Input / output per 1M

$0.30/$0.90

Get an API key
codefunction-callingopen weights

256K

Context window

tokens

205K

Max output

tokens per reply

38ms

Time to first token

p50, EU region

$0.90

Output price

per 1M tokens

Fit

Where this model earns its place

code

Code generation and refactoring across large repositories, including multi-file changes.

function calling

Tool use and structured output — dependable JSON for agent loops, RAG pipelines, and workflow automation.

Data handling

Requests are processed in the EU. Prompts are not used for training, and logs follow the retention period in your contract — zero-retention is available on request.

Specifications

Model

Model ID
mistralai/codestral-2508
Provider
Mistralai
Context length
256K
Max output
205K
Modality
text
Licence
Open Weight

Commercial

Input
$0.30
Output
$0.90
Cached input
$0.03
Deployment
serverless
Availability
operational
Last updated
2026-10-26

Cost

What a month actually costs

WorkloadInput tokensOutput tokensMonthly cost
Prototype1.0M250K$0.53
Production50.0M12.0M$25.80
At scale500.0M120.0M$258.00

Illustrative volumes at list price, excluding cached-input discounts and any committed-use agreement. Your invoice shows the same rates, itemised per key.

Cheaper by caching

Repeated prompts — system instructions, retrieved context, few-shot examples — are billed at the cached-input rate where the model supports it. On long system prompts this is typically the largest single line-item saving.

API

Same SDK, different base URL

cURL

curl https://api.itciphtech.com/v1/chat/completions \
  -H "Authorization: Bearer $CIPHER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/codestral-2508",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

TypeScript

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.itciphtech.com/v1",
  apiKey: process.env.CIPHER_API_KEY,
});

const res = await client.chat.completions.create({
  model: "mistralai/codestral-2508",
  messages: [{ role: "user", content: "Hello!" }],
});

Need this model on dedicated hardware?

Run it single-tenant, inside your own network boundary, with the operations handled by us.

Private hosting