# Codestral 2508

> 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

**ID**: `mistralai/codestral-2508`  
**Creator**: Mistral AI  
**Category**: text  
**Context**: 256K tokens  
**Pricing**: $0.33 / $1.00 per 1M · billed by your provider (BYOK)  
**Released**: 2025-08-01  
**Web page**: https://anyrouter.dev/model/mistralai/codestral-2508

**Input modalities**: text, file  
**Output modalities**: text  

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

## 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/codestral-2508",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| fluence-byok | $0.33/M (list) | $1.00/M (list) |
| cortecs-byok | $0.33/M (list) | $1.00/M (list) |
| mistral-byok | $0.33/M (list) | $1.00/M (list) |
| nano-gpt-byok | $0.33/M (list) | $1.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.

## Source

- Upstream docs: https://openrouter.ai/mistralai/codestral-2508
