Mistral AI API logo

Mistral AI API

Mistral AI API

Mistral AI API 提供 Mistral Large / Mistral Small / Mistral NeMo / Codestral 等欧洲开源/混合 LLM,是欧洲对标 OpenAI 的选择。

访问站点 ↗文档 ↗健康巡检 9 小时前
适合什么时候用

部分模型完全开源(Mistral 7B、Mixtral 8x7B、Mistral NeMo)

先注意什么

最强模型 Mistral Large 仍不如 GPT-4 / Claude 3.5

第一步先查

console.mistral.ai 注册拿 API key。POST https://api.mistral.ai/v1/chat/completions 带 model: "mistral-large-latest" + messages。

认证
api_key
CORS
?
HTTPS
注册
?
延迟
609 ms
协议
REST
计费
paid

可用率 · 30 天窗口

巡检: 1可用率: 100%平均延迟: 609ms
01

关于这个 API

Mistral AI 是 2023 年法国创办的 LLM 公司(创始团队来自 Meta / DeepMind),三个月就成 unicorn。被誉为「欧洲 OpenAI」——欧盟政府积极支持,作为欧洲 AI 主权策略的核心。产品线:(1) Mistral 7B(2023 开源,曾经是 best small open model);(2) Mixtral 8x7B 和 Mixtral 8x22B(mixture-of-experts 开源模型,性能接近 GPT-3.5);(3) Mistral Large(旗舰闭源模型,质量接近 GPT-4 但不及);(4) Codestral(专 code generation);(5) Mistral NeMo(和 NVIDIA 合作开源 12B 模型)。API 实用且现代,function calling、JSON mode、streaming 都支持。欧洲企业偏好 Mistral 因为数据中心在欧盟(GDPR 顺心)。中国客户用得相对少,主要是欧洲市场。

02

你可以做什么

  • 1欧洲合规要求(数据不出欧盟)
  • 2function calling 代码 generation
  • 3中等大小模型部署到自家 GPU(Mistral 7B/8x7B 完全开源)
03

优劣对比

优点

  • 部分模型完全开源(Mistral 7B、Mixtral 8x7B、Mistral NeMo)
  • 欧洲数据中心(GDPR 友好)
  • 价格中等(Mistral Large $2/$6 per M)

注意事项

  • 最强模型 Mistral Large 仍不如 GPT-4 / Claude 3.5
  • API 生态比 OpenAI 弱
04

示例请求

通用模板 — 实际 endpoint 请查阅文档替换 <endpoint>。
curl https://mistral.ai/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

快速开始

console.mistral.ai 注册拿 API key。POST https://api.mistral.ai/v1/chat/completions 带 model: "mistral-large-latest" + messages。

06

常见问题

开源模型怎么用?+

Mistral 7B 等用 ollama / Hugging Face transformers 本地跑。Mistral Large 是闭源 API 才能用。

中文支持如何?+

中文质量一般(不如 Qwen 等中国自研)。多语言任务建议用 Cohere 或 GPT-4。

07

技术细节

CORS: ?HTTPS: Yes注册: ?开源: No
认证方式
api_key
计费
paid
速率限制
free trial 1 RPM;付费 tier 提升到 100+ RPM
协议
REST
SDK
python, typescript, javascript
响应时间
609 ms
上次巡检
2026/5/12 07:37:53
08

标签