it's free*.ai

Mistral AI

Mistral 是现役 Small 和 Medium 产品线背后的法国实验室。Mixtral 8x7B 已于 2025 年 3 月 30 日从 API 退役。控制台仍然只用邮箱就给密钥;Free mode 和 Labs 是不要卡的部分。

Mistral 是现役 Small 和 Medium 产品线背后的法国实验室。Mixtral 8x7B 已于 2025 年 3 月 30 日从 API 退役。控制台仍然只用邮箱就给密钥;Free mode 和 Labs 是不要卡的部分。

上下文最高 256K。Labs id(labs- 前缀)免费;mistral-medium-3-5 收费。限额按组织在控制台里设定,没有公布的“每秒一次”之类。拿 Small 或 Labs 模型来试,别拿来上线。

免费模型
12
最大上下文
256K
免费额度
Free mode 与 Labs
注册要求
只要邮箱,不要卡

端点

接口地址https://api.mistral.ai/v1
环境变量MISTRAL_API_KEY
速率限制Per-org caps in the console; Labs models are free of charge

代码示例

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.mistral.ai/v1',
  apiKey: process.env.MISTRAL_API_KEY
})

const response = await client.chat.completions.create({
  model: 'mistral-small-latest',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

值得注意

你能免费使用的模型12