
Codestral 2508
About Codestral 2508
El modelo lingüístico de vanguardia de Mistral para la programación se lanzó a finales de julio de 2025. Codestral se especializa en tareas de baja latencia y alta frecuencia, como el «fill-in-the-middle» (FIM), la corrección de código y la generación de pruebas.
Codestral 2508 es un modelo de chat de Mistral AI, disponible en Eden AI a través de 2 endpoints en 1 proveedor, desde 0,3 $ por millón de tokens de entrada y 0,9 $ por millón de tokens de salida, con una ventana de contexto de hasta 256K tokens.
Providers and prices
2 endpoints from 1 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you.


Performance
Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.
Estimate your monthly cost
Enter your expected volume to compare every endpoint at once.
Call Codestral 2508 with Eden AI
Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.
import requests
response = requests.post(
"https://api.edenai.run/v3/chat/completions",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "codestral-2508",
"messages": [{"role": "user", "content": "Hello!"}],
},
)
print(response.json())
curl https://api.edenai.run/v3/chat/completions \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "codestral-2508", "messages": [{"role": "user", "content": "Hello!"}]}'
const response = await fetch("https://api.edenai.run/v3/chat/completions", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "codestral-2508",
messages: [{ role: "user", content: "Hello!" }],
}),
});
console.log(await response.json());
Questions about Codestral 2508
On Eden AI, prices for this model start at $0.3 per million input tokens and $0.9 per million output tokens. Prices differ by endpoint; the providers table lists each one.
Up to 256K tokens, depending on the endpoint.
2 endpoints from 1 providers, available in: Global, Europa. All of them are called with the same Eden AI API key.
More from Mistral AI
Other Mistral AI models you can call with the same key.



.png)