mistralai logo
mistralai

Mistral: Codestral 2508 (batch)

Beschreibung der Quelle (Englisch)

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

Überblick

Modellspezifikationen

Kontext
256.000 tokens
Maximale Ausgabe
204.800 tokens
Architektur
text+file->text
Tokenizer
Mistral
Wissensstand
2025-03-31
Moderiert
Nein
OPENROUTER

Vollständige Preise

Mit OpenRouter synchronisierte Preise; Tokenpreise gelten pro eine Million Token.

Eingabe
$0.15
pro 1 Mio. Token
Ausgabe
$0.45
pro 1 Mio. Token
Cache-Lesen
$0.015
pro 1 Mio. Token
API

Modellkonfiguration

Standardparameter

temperature
0.3
API

Schnellstart

Setzen Sie OPENROUTER_API_KEY lokal. Python benötigt requests; JavaScript läuft in Node.js. Bewahren Sie den Schlüssel auf dem Server auf.

Dies übermittelt einen asynchronen Batch mit der Basismodell-ID. Eine Auftrags-ID bestätigt die Annahme, nicht den Abschluss.

API-Dokumentation

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"
Fähigkeiten und Modalitäten

EingabeAusgabe

Eingabe
textfile
Ausgabe
text
API

Unterstützte API-Parameter

frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Verfügbare Anbieter

1 Anbieter

Geprüft: 10. September 2026

Live-Anbieter bei OpenRouter

Verfügbarkeit, Latenz, Durchsatz und Routing ändern sich laufend. Aktuelle Betriebsdaten stehen auf der Quellseite.

OpenRouter

Mistral

Nicht angegeben
Kontext
256K
Maximale Ausgabe
205K
Eingabe
$0.15
Ausgabe
$0.45
Cache-Lesen
$0.015
Cache-Schreiben
Nicht angegeben
mistralai

4 Modelle

Alle Modelle