Back to Models

Devstral 2

mistralmistral/devstral-2

Mistral's specialized coding model (123B parameters). Optimized for code generation, analysis, and software engineering tasks.

Context Length
128K
Max Output
16K
Input Price
$0.660/ 1M tokens
Output Price
$3.12/ 1M tokens

Modalities

texttext

Pricing Breakdown

TypeRate
Input$0.660 / 1M tokens
Output$3.12 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

API Usage Examples

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "mistral/devstral-2",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'