- Models and inference
Inference quickstarts
Inference quickstarts
These quickstarts walk you through the main inference tasks with the Mistral API, one task per page. Each takes 5 to 15 minutes and needs a Mistral API key. To create one, see Create your first API key.
Choose a quickstart

Quickstart: send your first API request
Install the Mistral SDK and get your first answer from a Mistral model in Python, TypeScript, or curl, in about 5 minutes.
5 min to complete

Quickstart: call your own functions
Let a model call a Python function of yours and answer with its result, in about 10 minutes.
10 min to complete

Quickstart: get structured output
Extract a validated Python object from free text with a Pydantic schema, in about 5 minutes.
5 min to complete

Quickstart: analyze an image
Send an image with a question to a Mistral model and get a description, in about 5 minutes.
5 min to complete

Quickstart: find the closest text with embeddings
Turn sentences into embeddings and find the one closest in meaning to a question, in about 5 minutes.
5 min to complete

Quickstart: run a batch job
Send a file of requests as one batch job, wait for it, and read the answers, in about 15 minutes.
15 min to complete
Next step
Each quickstart ends with links to the full guide for its feature. For an overview of everything in this area, see Models and inference.