# Mistral Small 4

> Mistral's Apache 2.0 hybrid model, which folds its instruct, reasoning and coding lines into one. 256k context, image input, $0.15 / $0.60 per 1M. BYOK.

- Date: 2026-10-04
- HTML: https://anyrouter.dev/blog/releases/2026-10-04

## Models

- `mistralai/mistral-small-4` (Mistral Small 4) — 262,144-token context, text and image input, $0.15 / $0.60 per 1M. BYOK via Mistral or OpenRouter.

## Notes

[`mistralai/mistral-small-4`](https://anyrouter.dev/model/mistralai/mistral-small-4) is Mistral's current Small generation, shipped as version 26.03 under Apache 2.0. Mistral describes it as a hybrid instruct-and-reasoning mixture-of-experts model that collapses what were separate instruct, reasoning and coding lines into one. It takes text and images, returns text, and runs a 262,144-token context with a 209,715-token maximum output. Tool calling, `response_format` / structured outputs and `reasoning_effort` are all available.

Mistral lists it at $0.15 per million input tokens and $0.60 per million output tokens.

- App code: [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk) or [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk).
- Coding agent: `anyr claude` / `anyr opencode` / `anyr codex` ([playbook](https://anyrouter.dev/use-cases/coding-agents)).
- No code: [playground](https://anyrouter.dev/playground?model=mistralai/mistral-small-4).

This listing is **BYOK-only**. Add a Mistral key or an OpenRouter key under [Dashboard → BYOK](https://anyrouter.dev/dashboard/byok) and the request goes out with your key, billed by that provider at the rates above. AnyRouter charges nothing for a BYOK route, and we have no platform-billed route for this model.

Try it with the [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk). `createAnyRouter()` reads `ANYROUTER_API_KEY`:

```ts
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()

const { text } = await generateText({
  model: anyrouter("mistralai/mistral-small-4"),
  prompt: "Refactor this module and explain the trade-offs.",
})
console.log(text)
```

_generateText against Mistral Small 4._

Or launch a coding agent through the `anyr` CLI:

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr claude --model "mistralai/mistral-small-4"
```

_Coding agents via the AnyRouter CLI._

More: [AI SDK](https://anyrouter.dev/use-cases/ai-sdk) · [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk) · [coding agents](https://anyrouter.dev/use-cases/coding-agents) · [BYOK setup](https://anyrouter.dev/use-cases/byok).
