Mistral

Run Mistral models with image input, memory, structured output, retries, and tool use.

ExampleDescription
Mistral BasicRun a Mistral Small agent with plain and streaming print_response calls.
Mistral Image Bytes Input AgentAnalyze raw image bytes with a Ministral 14B agent.
Mistral Image Compare AgentCompare two image URLs with a Ministral 14B agent.
Mistral Image File Input AgentAnalyze sample.jpeg with Ministral 14B and search for related news.
Mistral Image OCR With Structured OutputExtract receipt data into a structured schema with Ministral 14B.
Image Transcribe Document AgentTranscribe a document image with a Ministral 14B agent.
MemoryUse personalized memories and summaries in an agent.
Mistral SmallQuery Mistral Small with WebSearchTools and stream a news summary.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Mistral Structured OutputProduce a structured MovieScript from Mistral Large in both sync and async runs.
Mistral Structured Output With Tool UseCombine web search with a Person output schema on Mistral Medium in a researcher agent.
Tool UseMistral tool use example with a custom function tool.