Codestral 2508

codestral-2508 by Mistral AI Released agosto 2, 2025
Llamada a funciones · Salida estructurada · Caché de prompts · Entrada de archivo · Alojamiento en la UE
Input from
$0.3 / 1M
Output from
$0.9 / 1M
Cached input from
$0.03 / 1M
Context window
256K
Endpoints
2
from 1 providers
Regions
Global, Europa

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.

Endpoint
Region
Context
Input / 1M
Output / 1M
Cached / 1M
Supports
Mistral AImistral/codestral-2508
Global
256K
$0.3
$0.9
$0.03
Oficial · Herramientas · JSON · Caché
Mistral AI (Europa)mistral/codestral-2508@eu
Europa
256K
$0.33
$0.99
$0.033
Oficial · Herramientas · JSON · Caché

Performance

Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.

Fastest first token
0.56 s
Mistral AI (Europa)
Lowest latency
0.42 s
Mistral AI
Highest throughput
26.37 tok/s
Mistral AI
Best availability
100%
Mistral AI (Europa)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Mistral AI
0.56 s
0.42 s
1.56 s
26.37 tok/s
100%
94.28%
0%
0%
Mistral AI (Europa)
0.56 s
0.44 s
0.88 s
18.78 tok/s
100%
94.35%
0%
0%

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())

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.

¿Puedo usar Codestral 2508 en la UE? Sí. Al menos un endpoint está alojado en Europa; fíjalo con su ID de endpoint de la tabla de proveedores para mantener tus solicitudes en la UE. ‖ ¿Qué velocidad tiene Codestral 2508? En los últimos 30 días, el primer token más rápido llegó en 0,56 s (Mistral AI (Europa)) y el mayor rendimiento fue de 26,37 tokens por segundo (Mistral AI).