mistralM

Docs

sideBar

Conversations

Generate answers with Chat Completions or the Responses API, and add vision, reasoning, function calling, structured outputs, and citations.

These pages cover how to hold a conversation with a Mistral model: send messages, get answers, and extend a request with images, reasoning, tools, and structured formats.

Choose an API

You can send conversations through two APIs.

Chat completions
illustrationChatText

Chat completions

Send a list of chat messages and get a new assistant message, in the native Mistral format or through an OpenAI-compatible endpoint (public preview).

Responses API
illustrationLetter

Responses API

Use the OpenAI Responses format, with text, image, and file inputs, streaming, and function calling.

The Responses API is stateless: your application keeps the conversation history and sends it with each request.

In this section

Chat completions
illustrationChatText

Chat completions

Send chat messages, stream answers, and run multi-turn conversations.

Responses API
illustrationLetter

Responses API

Generate text from text, image, and file inputs, stream responses, and count input tokens.

Vision
illustrationImage

Vision

Send images to a vision-capable model and get answers about their content.

Reasoning
illustrationCrystalBall

Reasoning

Let a model think through a problem before it answers, and handle its thinking chunks.

Function calling
illustrationHammer

Function calling

Connect a model to your own functions and APIs.

Structured outputs
illustrationPuzzle

Structured outputs

Get answers in JSON, with your own schema or in JSON mode.

Citations & References
illustrationBook

Citations & References

Ground answers in documents and return their sources.

To get a first answer in a few minutes, see Quickstart: send your first API request.