Mistral AI
Open-source models with strong multilingual and code generation capabilities.
Overview
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 API Documentation: https://docs.mistral.ai
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
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
Use the Models API to query available models:
curl https://api.yuhuanstudio.com/v1/models?provider=mistral \
-H "Authorization: Bearer YOUR_API_KEY"Models and pricing are synced automatically from Mistral AI. Check the dashboard for current availability and rates.
Official Resources
How is this guide?