Mistral Small 4
近日公開Mistral's small, low-cost model.
コンテキストウィンドウ—
入力$0.225320 IQD100万トークンあたり
出力$0.901,250 IQD100万トークンあたり
入力の種類テキスト, 画像→ テキスト
プロバイダー1
概要
| モデルID | mistralai/mistral-small-4 |
|---|---|
| シリーズ | Mistral AI |
| コンテキストウィンドウ | — |
| 最大出力 | — |
| 入力の種類 | テキスト, 画像 |
| 出力の種類 | テキスト |
| プロバイダー | 1 |
OPTESでの価格
プロバイダーごとの当社価格(米ドルとイラク・ディナール、1 USD = 1,380 IQD、10 IQD単位で切り上げ)。
| プロバイダー | 入力 | 出力 | 備考 |
|---|---|---|---|
| Mistral AI | $0.225 · 320 IQD | $0.90 · 1,250 IQD |
プロバイダー
プロバイダーごとの当社価格(米ドルとイラク・ディナール、1 USD = 1,380 IQD、10 IQD単位で切り上げ)。
| プロバイダー | 入力 | 出力 | 備考 |
|---|---|---|---|
| Mistral AI | $0.225 · 320 IQD | $0.90 · 1,250 IQD |
OPTES APIで呼び出す
このモデルはまもなくOPTESに登場します。呼び出しはこの形になり、OPTESのキーがそのまま使えます。
curl https://api.optes3.com/v1/chat/completions \ -H "Authorization: Bearer $OPTES_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mistralai/mistral-small-4", "messages": [{"role": "user", "content": "バグダッドのカフェの名前を3つ提案して。"}] }'import osfrom openai import OpenAIclient = OpenAI(base_url="https://api.optes3.com/v1", api_key=os.environ["OPTES_API_KEY"])resp = client.chat.completions.create( model="mistralai/mistral-small-4", messages=[{"role": "user", "content": "バグダッドのカフェの名前を3つ提案して。"}],)print(resp.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.optes3.com/v1", apiKey: process.env.OPTES_API_KEY });const resp = await client.chat.completions.create({ model: "mistralai/mistral-small-4", messages: [{ role: "user", content: "バグダッドのカフェの名前を3つ提案して。" }],});console.log(resp.choices[0].message.content);まもなくOPTESに登場 近日公開
今すぐOPTESのAPIキーを取得しましょう。公開後は同じキーでこのモデルを呼び出せます。