Mistral AI SDK
Official Python SDK for the Mistral AI API to call Mistral language models.
Model SDKs PyPI Apache-2.0
How Mistral AI SDK is used
Mistral AI SDK is a dependency in 4 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 144 projects, and what it is used with below comes from all of them. The most used alternative in our scan is OpenAI Python Library (245 projects). Projects that use it most often also use OpenAI Python Library (89.6%), python-dotenv (82.6%), Pydantic (82.6%).
Mistral AI SDK popularity over time
Gid Score 47: downloads 75, use in agent projects 56, GitHub stars 7, downloads trend 34 (each 0-100). How it is calculated.
Often used with Mistral AI SDK
| OpenAI Python Library | 89.6% of Mistral AI SDK projects · 22.7× more than average |
|---|---|
| python-dotenv | 82.6% of Mistral AI SDK projects · 9.0× more than average |
| Pydantic | 82.6% of Mistral AI SDK projects · 9.6× more than average |
| Requests | 75.7% of Mistral AI SDK projects · 11.1× more than average |
| NumPy | 70.8% of Mistral AI SDK projects · 12.1× more than average |
| Anthropic Python SDK | 70.8% of Mistral AI SDK projects · 38.9× more than average |
| Hugging Face Hub | 70.1% of Mistral AI SDK projects · 76.4× more than average |
| PyYAML | 68.1% of Mistral AI SDK projects · 11.4× more than average |
From all 144 projects in our scan that use Mistral AI SDK, including the dependency samples.
Install
| Package | pip install mistralai |
|---|---|
| Main stacks | Python (140), Next.js (4) |
| Example projects | camel-ai/owl, Paper2Poster/Paper2Poster, zstar1003/ragflow-plus, prakharsr/audiobook-creator, YuhangChen1/Paper2All |
Alternatives to Mistral AI SDK
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Mistral AI SDK are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
86 | 245 (15.1%) | 82.1M | 31.9K | Apache-2.0 |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
73 | 113 (7.0%) | 42.7M | 3,980 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
72 | 102 (6.3%) | 36.6M | 4,034 | Apache-2.0 |
| Claude Agent SDK pypi Python SDK for Claude AI with agent capabilities and tool support. |
63 | 22 (1.4%) | 7.8M | 8,304 | MIT |
| Groq Python SDK pypi Official Python client library for the Groq API, enabling fast LLM inference with Groq's language processing units. |
53 | 19 (1.2%) | 3.9M | 621 | Apache-2.0 |
| Cohere pypi Official SDK for accessing Cohere's language models and APIs. |
49 | 2 (0.1%) | 2.6M | 406 | MIT |
More in Model SDKs: OpenAI AI SDK Anthropic SDK Google Generative AI Hugging Face Hub LiteLLM Ollama Ollama JavaScript Library