Codestral 25.08

MistralMCP Tool Call
mistral/codestral-2508Closed API

Mistral code model for low-latency completion, fill-in-the-middle, and code generation

Benchmark Pricing$0.30 / 1M in$0.90 / 1M out$0.03 cache read
Context: 128,000 tokens•Max Output: 8,192 tokens•Released: 2025-07-30

TECHNICAL SPECIFICATIONS

Context Window128,000128K tokens
Max Output8,1928.2K tokens
LicenseProprietaryCloud API only
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Codestral 25.08 natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 128,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling Codestral 25.08 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.MISTRAL_API_KEY,
});

const response = await client.chat.completions.create({
  model: "mistral/codestral-2508",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

10 providers
Mistralcodestral-2508
$0.30 / $0.90$0.03 cache
Cortecscodestral-2508
$0.37 / $1.10$0.04 cache
NanoGPTmistralai/codestral-2508
$0.30 / $0.90$0.15 cache
LLM Gatewaymistral/codestral-2508
$0.30 / $0.90
AI/ML APImistralai/codestral-2508
$0.41 / $1.24$0.04 cache
Eden AImistral/codestral-2508
$0.30 / $0.90$0.03 cache
LowRouterauto/mistralai/codestral-2508
$0.31 / $0.94$0.03 cache
Kilo Gatewaymistralai/codestral-2508
$0.30 / $0.90$0.03 cache
DevPass (LLM Gateway)codestral-2508
$0.30 / $0.90
OpenRoutermistralai/codestral-2508
$0.30 / $0.90$0.03 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.03 / 1M tokens, saving up to 90% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES