# Mistral AI (/docs/providers/mistral)


Overview [#overview]

[Mistral AI](https://mistral.ai) is a French AI company known for their commitment to open-source AI, releasing powerful models under permissive licenses (Apache 2.0).

**Official Website:** [https://mistral.ai](https://mistral.ai)
&#x2A;*API Documentation:** [https://docs.mistral.ai](https://docs.mistral.ai)

Key Features [#key-features]

* **Open-Source** — Models released under Apache 2.0 license
* **Code Generation** — Specialized coding models
* **Multilingual** — Strong European language support
* **Efficient Inference** — Fast and cost-effective
* **Function Calling** — Tool use support

Usage Example [#usage-example]

```python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.yuhuanstudio.com/v1"
)

response = client.chat.completions.create(
    model="model-id",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)
```

Available Models [#available-models]

Use the [Models API](/docs/models-api) to query available models:

```bash
curl https://api.yuhuanstudio.com/v1/models?provider=mistral \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Callout type="info">
  Models and pricing are synced automatically from Mistral AI. Check the dashboard for current availability and rates.
</Callout>

Official Resources [#official-resources]

* [Mistral AI Website](https://mistral.ai)
* [Documentation](https://docs.mistral.ai)
* [Pricing](https://mistral.ai/pricing)
