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 は有料。制限は「1秒に1リクエスト」のような公開値ではなく、コンソールで組織ごとに設定されます。試すなら Small か Labs モデルで。出荷には使わないでください。

無料モデル
12
最大コンテキスト
256K
無料プラン
Free modeとLabs
条件
メール登録のみ、カード不要

エンドポイント

ベースURLhttps://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