Mistral AI API
Mistral AI 接口
Access Mistral Large, Small, and Codestral models with efficient architecture.
调用 Mistral Large、Small 和 Codestral 模型,架构高效。
Website
Documentation
Pricing
pay-as-you-go (per token)
Authentication
- API Key
Rate Limit
500 req/min
Typical Latency
<500ms
Max Context
128K
Popularity
68/100
Endpoints
https://api.mistral.ai/v1/chat/completions
https://api.mistral.ai/v1/embeddings
SDKs
PythonTypeScriptGocurl
Key Features
- ◆Mistral Large, Small, Codestral models
- ◆Efficient architecture for fast inference
- ◆Open-source model weights available
- ◆Function calling support
- ◆Multilingual performance
Code Examples
Chat Completionbash
curl https://api.mistral.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-d '{
"model": "mistral-large-latest",
"messages": [{"role": "user", "content": "Hello!"}]
}'Tags
llmchatcode
Last updated: 2026-07-27