Mistral AI
ModelAPI for Mistral's open-weight and commercial language models
- Price
- Free tier, then paid
- Access
- API key
About
Mistral AI's API serves its Medium, Large and Small models plus Codestral, embeddings, OCR and speech. It is for developers who want a European model provider with EU or US inference endpoints. Many of its models are also released as open weights.
What you can do with it
- Add chat, reasoning and text summarization to your app with Mistral models
- Complete and generate code with Codestral and Mistral Medium 3.5
- Create text and code embeddings for search and RAG
Get started
- Create a Mistral AI account
- Generate an API key in the console
- Set MISTRAL_API_KEY in your environment
Example
curl https://api.mistral.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-d '{
"model": "mistral-medium-3-5",
"messages": [
{"role": "user", "content": "What is Mistral AI?"}
]
}'Details
- Hosting
- Hosted service, Self-hosted
- Available in
- Worldwide
- Official SDKs
- Python, JavaScript/TypeScript
- MCP server
- Remote