# Devstral 2 2512

> Devstral 2 2512 is a dense Mistral AI model for agentic coding. It explores codebases, edits multiple files and calls tools, with a 256K-token context window.

**ID**: `mistralai/devstral-2512`  
**Creator**: Mistral AI  
**Category**: text  
**Context**: 262K tokens  
**Pricing**: $0.40 / $2.00 per 1M · billed by your provider (BYOK)  
**Released**: 2025-12-09  
**Web page**: https://anyrouter.dev/model/mistralai/devstral-2512

**Input modalities**: text  
**Output modalities**: text  

**Capabilities**: chat, streaming, function-calling, structured-output

**Supported parameters**: frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_p

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "mistralai/devstral-2512",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openrouter-byok | $0.40/M (list) | $2.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.
