mistralM

Docs

sideBar

Inference quickstarts

Pick a short quickstart to send a request, call functions, get structured output, analyze an image, create embeddings, or run a batch job.

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

Start with the first request, then pick the task that matches what you build.
Quickstart: send your first API request
Quickstart: send your first API request

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.

clock

5 min to complete

chevronRight
Quickstart: call your own functions
Quickstart: call your own functions

Quickstart: call your own functions

Let a model call a Python function of yours and answer with its result, in about 10 minutes.

clock

10 min to complete

chevronRight
Quickstart: get structured output
Quickstart: get structured output

Quickstart: get structured output

Extract a validated Python object from free text with a Pydantic schema, in about 5 minutes.

clock

5 min to complete

chevronRight
Quickstart: analyze an image
Quickstart: analyze an image

Quickstart: analyze an image

Send an image with a question to a Mistral model and get a description, in about 5 minutes.

clock

5 min to complete

chevronRight
Quickstart: find the closest text with embeddings
Quickstart: find the closest text with embeddings

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.

clock

5 min to complete

chevronRight
Quickstart: run a batch job
Quickstart: run a batch job

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.

clock

15 min to complete

chevronRight

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.