CreateWithAIHub

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.

Visit website ↗
Save

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
Python SDK
pip install mistralai
TypeScript SDK
npm add @mistralai/mistralai

Commands 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.

Paid

OpenAI's developer API for GPT, image, audio and embedding models, with official SDKs in several languages.

Paid

Cohere's API for Command chat models, Embed and Rerank, with official Python, TypeScript, Java and Go SDKs and free trial keys.

Free plan + paid

xAI's (now SpaceXSI) OpenAI-compatible API for Grok text, image, video and voice models, with Python and TypeScript SDKs.

Paid

See all 5 Mistral API alternatives →

MCP servers for this

Redis's official MCP server that lets agents store, read and search data in Redis, including JSON documents and vectors.

FreeOpen source

Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.

Free plan + paid

Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.

FreeOpen source

Skills for this

Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.

FreeOpen source

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Boundary's open-source language for type-safe LLM functions and structured outputs, callable from Python, TypeScript, Go and more.

FreeOpen source

Cerebras' cloud API for very fast inference on open-weight models, with an OpenAI-compatible endpoint and per-token pricing.

Paid

Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.

Paid

Anthropic's collection of starter projects for building apps and agents on the Claude API.

FreeOpen source

Type to search. Use ↑ ↓ and Enter.