# Voxtral Small 24B 2507

> A 24B open-weights model from Mistral that accepts text, audio and files and is priced well below the registry median. It has no benchmark results in the registry.

Use it with Pydantic AI as `gateway/bedrock:mistral.voxtral-small-24b-2507`.

## Spec sheet

- **Family:** Mistral
- **Released:** 15 Jul 2025
- **Weights:** open
- **Context window:** 32,000 tokens
- **Largest response:** 26,214 tokens
- **Accepts:** text, audio, file
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** not enough benchmark results yet
- **Price:** $0.1 input, $0.3 output, $0.15 blended per 1M tokens
- **Index points per $:** – (rank –)
- **Speed:** 100.5 tokens/sec (rank 41)
- **Popularity:** rank 185 of 194 by usage
- **Pydantic AI Gateway:** built in

## Benchmarks

No results yet on the benchmarks we track.

## Providers and prices

US dollars per million tokens.

| Provider | Gateway | Pydantic AI string | Input | Cached input | Output |
| --- | --- | --- | --- | --- | --- |
| Mistral | BYOK | `mistral:voxtral-small-24b-2507` | $0.1 | $0.01 | $0.4 |
| AWS Bedrock | built in | `gateway/bedrock:mistral.voxtral-small-24b-2507` | $0.1 | – | $0.3 |
| OpenRouter | BYOK | `openrouter:mistralai/voxtral-small-24b-2507` | $0.1 | $0.01 | $0.3 |

## Example code

### hello.py

Ask Voxtral Small 24B 2507 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/bedrock:mistral.voxtral-small-24b-2507', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)
```

### structured_output.py

Get validated, typed output from Voxtral Small 24B 2507 by giving the agent a Pydantic model. Run it with uv run structured_output.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic import BaseModel
from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'


class CityLocation(BaseModel):
    city: str
    country: str


agent = Agent('gateway/bedrock:mistral.voxtral-small-24b-2507', output_type=CityLocation)

result = agent.run_sync('Where were the olympics held in 2012?')
print(result.output)
#> city='London' country='United Kingdom'
```

### tools.py

Give Voxtral Small 24B 2507 two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os
import random

from pydantic_ai import Agent, RunContext

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent(
    'gateway/bedrock:mistral.voxtral-small-24b-2507',
    deps_type=str,
    instructions="You're a dice game, roll the die and see if it matches the user's guess.",
)


@agent.tool_plain
def roll_dice() -> str:
    """Roll a six-sided die and return the result."""
    return str(random.randint(1, 6))


@agent.tool
def get_player_name(ctx: RunContext[str]) -> str:
    """Get the player's name."""
    return ctx.deps


result = agent.run_sync('My guess is 4', deps='Anne')
print(result.output)
```

### streaming.py

Stream Voxtral Small 24B 2507's reply to the terminal as it is generated. Run it with uv run streaming.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import asyncio
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/bedrock:mistral.voxtral-small-24b-2507')


async def main():
    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:
        async for text in response.stream_text(delta=True):
            print(text, end='', flush=True)


asyncio.run(main())
```

### pax.sh

Chat with Voxtral Small 24B 2507 in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.

```sh
export PYDANTIC_AI_GATEWAY_API_KEY='...'

uvx pax --model 'gateway/bedrock:mistral.voxtral-small-24b-2507'
```

### ai_sdk.ts

Call Voxtral Small 24B 2507 from TypeScript with the Vercel AI SDK, through Pydantic AI Gateway.

```ts
// npm install ai @ai-sdk/amazon-bedrock
import { createAmazonBedrock } from '@ai-sdk/amazon-bedrock'
import { generateText } from 'ai'

process.env.PYDANTIC_AI_GATEWAY_API_KEY = '...'

const bedrock = createAmazonBedrock({
  baseURL: 'https://gateway.pydantic.dev/proxy/bedrock',
  apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY,
})

const { text } = await generateText({
  model: bedrock('mistral.voxtral-small-24b-2507'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About Voxtral Small 24B 2507

Voxtral Small 24B 2507 is an open-weights model from Mistral, released in July 2025. Its main appeal is price. At $0.10 per million input tokens and $0.30 per million output tokens, it ranks 15th of 194 models on price. It accepts text, audio and files, so it can take spoken input, which may suit voice-driven workflows.

The model supports tool calling and structured output, so it suits agents that call functions or return typed data. Its 32k-token context window is small compared with many current models, which limits how much material fits in one request. The registry holds no benchmark results for it, so its quality cannot be compared with other models.

It is available from Mistral, AWS Bedrock and OpenRouter, and is built into the Pydantic AI Gateway.

**Strengths**

- Input costs $0.10 per million tokens, 15th cheapest of 194 models
- Output costs $0.30 per million tokens, well below the $1.01 blended median
- Accepts audio input alongside text and files
- Supports tool calling and structured output

**Weaknesses**

- No benchmark results, so capability cannot be compared with other models
- Context window of 32k tokens is small for agent workloads
- Ranks 185th of 194 on popularity

**Best for:** Low-cost agents handling voice or audio input with short context and function calling, where benchmark evidence is not required.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0); the index and its sources are described at https://models.pydantic.dev/methodology.md. Data built 2026-11-25. Compare with other models: https://models.pydantic.dev/models.md
