
API / SDK Mistral AI
Mistral API
Mistral AI's pay-as-you-go API for chat, code completion, OCR, embeddings, audio and agents, with Python and TypeScript SDKs.
What it is
The Mistral API at api.mistral.ai serves Mistral's models through chat completions, Responses, fill-in-the-middle code completion, embeddings, classifiers, OCR, audio transcription and speech, batch and realtime endpoints, with Agents, Conversations and Libraries in beta. Keys and usage are managed in Mistral Studio, Mistral's platform for building and deploying AI apps and agents (older pages called it La Plateforme). Official SDKs are available for Python and TypeScript, and billing is pay-as-you-go per token, page or minute; for example, Mistral Large 4 costs $0.70 per 1M input tokens and $2.10 per 1M output tokens.
What it's useful for
Extracting text and tables from scanned PDFs with the OCR endpoint, or adding a European-hosted chat model to an app.
Key features
- Chat completions and Responses endpoints
- Fill-in-the-middle (FIM) endpoint for code completion with Codestral
- OCR endpoint priced per 1,000 pages
- Embeddings, classifiers, audio transcription and speech
- Batch API at 50% off standard prices
- Official Python (mistralai) and TypeScript SDKs, Apache-2.0
How to use it
Before you start
- Mistral Studio account with billing activated
- API key
pip install mistralainpm add @mistralai/mistralaiCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- No free API access: the free mode covers trying Vibe and Studio only, and API keys require billing activation
- Agents, Conversations and Libraries endpoints are still in beta
- Rate limits are shown only in the admin panel, not in public docs
Website tech stack
- Hosting & CDN
- Cloudflare, Netlify
- Framework
- Astro
- Analytics
- Google Tag Manager
Detected on mistral.ai on 25 Nov 2026. This describes the public website only; the product itself may use different technology.
Alternatives
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
OpenAI's developer API for GPT, image, audio and embedding models, with official SDKs in several languages.
Cohere's API for Command chat models, Embed and Rerank, with official Python, TypeScript, Java and Go SDKs and free trial keys.
xAI's (now SpaceXSI) OpenAI-compatible API for Grok text, image, video and voice models, with Python and TypeScript SDKs.
MCP servers for this
Redis's official MCP server that lets agents store, read and search data in Redis, including JSON documents and vectors.
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Boundary's open-source language for type-safe LLM functions and structured outputs, callable from Python, TypeScript, Go and more.
Cerebras' cloud API for very fast inference on open-weight models, with an OpenAI-compatible endpoint and per-token pricing.
Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.
Anthropic's collection of starter projects for building apps and agents on the Claude API.