mistralai logo
mistralai

Mistral: Codestral 2508 (batch)

Descrizione della fonte (inglese)

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

Panoramica

Specifiche del modello

Contesto
256.000 tokens
Output massimo
204.800 tokens
Architettura
text+file->text
Tokenizer
Mistral
Limite di conoscenza
2025-03-31
Moderato
No
OPENROUTER

Prezzi completi

Tariffe sincronizzate da OpenRouter, per milione di token.

Input
$0.15
per milione di token
Output
$0.45
per milione di token
Lettura cache
$0.015
per milione di token
API

Configurazione del modello

Parametri predefiniti

temperature
0.3
API

Avvio rapido

Imposta OPENROUTER_API_KEY localmente. Python richiede requests; JavaScript viene eseguito in Node.js. Conserva la chiave sul server.

Questa richiesta invia un batch asincrono con l’ID del modello base. L’ID dell’attività conferma l’invio, non il completamento.

Documentazione API

curl --fail-with-body https://openrouter.ai/api/beta/batches \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/v1/chat/completions","model":"mistralai/codestral-2508","requests":[{"custom_id":"request-1","body":{"messages":[{"role":"user","content":"Hello!"}]}}]}'

# Replace JOB_ID with the returned id to check progress.
curl --fail-with-body "https://openrouter.ai/api/beta/batches/JOB_ID" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY"
Capacità e modalità

InputOutput

Input
textfile
Output
text
API

Parametri API supportati

frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Provider disponibili

1 Provider

Verificato: 10 settembre 2026

Provider live su OpenRouter

Disponibilità, latenza, throughput e routing cambiano continuamente. Consulta la fonte per i dati correnti.

OpenRouter

Mistral

Non indicato
Contesto
256K
Output massimo
205K
Input
$0.15
Output
$0.45
Lettura cache
$0.015
Scrittura cache
Non indicato
mistralai

4 modelli

Tutti i modelli