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