mistralM

Docs

API Reference

Browse every endpoint of the Mistral API, with its parameters, request body, response, and code samples in TypeScript, Python, and curl.
background-square-illustration

Generate

Chat, responses, fill-in-the-middle, and embeddings.
Chat
illustrationChatText

Chat

Generate a chat completion from a list of messages.

Responses
illustrationLetter

Responses

Create a stateless response and count the input tokens of a request.

Fim
illustrationChatCode

Fim

Complete code between a prefix and a suffix with fill-in-the-middle.

Embeddings
illustrationCubes

Embeddings

Turn text into vectors for search, clustering, and classification.

Agents
illustrationRobot

Agents

Run a completion with an agent.

Documents and moderation

OCR and classification of text and conversations.
Ocr
illustrationFileAi

Ocr

Extract text and structure from documents and images.

Classifiers
illustrationShield

Classifiers

Moderate and classify raw text or chat conversations.

Audio

Speech, transcription, voices, and live voice agents.
Audio Speech
illustrationSound

Audio Speech

Generate speech from text.

Audio Transcriptions
illustrationHeadphones

Audio Transcriptions

Transcribe an audio file, or stream the transcription as server-sent events.

Audio Voices
illustrationSpeech

Audio Voices

Create, list, update, and delete voices, and get a voice sample.

Audio Agents
illustrationRobot

Audio Agents

Create, list, update, and delete audio agents and their versions.

Audio Sessions
illustrationClock

Audio Sessions

Create, update, check, and stop live audio agent sessions.

Realtime Sessions
illustrationBolt

Realtime Sessions

Create a client session for a realtime connection.

Batch, files, and models

Run jobs at scale, store files, and manage models.
Batch
illustrationBatch

Batch

Create, list, get, cancel, and delete batch jobs.

Files
illustrationFolder

Files

Upload, list, retrieve, download, and delete files, and get a signed URL.

Models
illustrationModel

Models

List and retrieve models, and update, archive, or delete fine-tuned models.

Workflows

Register, run, schedule, and monitor workflows.
Workflows
illustrationWorkflow

Workflows

List, get, update, execute, archive, and unarchive workflows and their registrations.

Workflows Executions
illustrationTimer

Workflows Executions

Get, signal, query, cancel, terminate, and reset workflow executions.

Workflows Runs
illustrationCalendar

Workflows Runs

List runs and get a run with its history.

Workflows Schedules
illustrationClock

Workflows Schedules

Schedule, update, pause, resume, trigger, and remove workflow schedules.

Workflows Deployments
illustrationServer

Workflows Deployments

Create, update, start, stop, restart, and delete workflow deployments.

Workflows Events
illustrationRadar

Workflows Events

Get stream events and workflow events.

Workflows Metrics
illustrationMicroscope

Workflows Metrics

Get the metrics of a workflow.

Events
illustrationSatellite

Events

Get stream events and workflow events.