AI Gateway

/

Mistral Medium 3.1

Mistral Medium 3.1 by Mistral

Mistral Medium 3 delivers frontier performance while being an order of magnitude less expensive. For instance, the model performs at or above 90% of Claude Sonnet 3.7 on benchmarks across the board at a significantly lower cost.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'mistral/mistral-medium',
prompt: 'Why is the sky blue?'
})