Skip to content
All releases
Added

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.

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.

This listing is **BYOK-only**. Add a Mistral key or an OpenRouter key under 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. createAnyRouter() reads ANYROUTER_API_KEY:

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:

curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude --model "mistralai/mistral-small-4"
Coding agents via the AnyRouter CLI.

More: AI SDK · OpenAI SDK · coding agents · BYOK setup.

Looking for the full catalog? Browse all models.