Mistral Small 4 API

ハイブリッドモデルは、指示を統一します。, 理容 (Magistral), と Devstral 家族: 40% 低い完了時間と 3x のスループット対小 3.

Mistral AIテキスト生成256K コンテキストリリース 2026年3月16日独自エンドポイント

Mistral Small 4 について

ハイブリッドモデルは、指示を統一します。, 理容 (Magistral), と Devstral 家族: 40% 低い完了時間と 3x のスループット対小 3.

別名 Mistral AI Mistral Small 4, Mistral-Small-4

visionweb searchfunction calling

Mistral Small 4 の仕様

モデルID
mistral-small-4
プロバイダー
Mistral AI
カテゴリ
テキスト生成
リリース
2026年3月16日
コンテキスト長
256K トークン
最大出力
65,536 トークン
入力
テキスト画像
出力
テキスト
構造化出力
JSON モード
Batch API
利用可能、定価より35%オフ
エンドポイント
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/mistral-small-4:generateContent
代替モデルID
mistralai/mistral-small-4

Mistral Small 4 API の料金

EmpirioLabs カタログのライブ従量課金料金です。使った分だけの支払いで、月額最低料金はありません。

タイプ
仕様
料金
パスワード
1M プロンプトトークンあたり
$0.15
ソリューション
1M生成トークンあたり
$0.60
標準Web検索
呼び出しごと
$0.084
プレミアムWeb検索
呼び出しごと
$0.140
コード通訳者
呼び出しごと
$0.084
画像生成
イメージ
$0.280
料金ページ全体で比較

Mistral Small 4 API の呼び出し方

Mistral Small 4 は OpenAI 互換の Chat Completions API を提供します。任意の OpenAI SDK を EmpirioLabs API キーで https://api.empiriolabs.ai/v1 に向け、モデル ID mistral-small-4 を使ってください。 EmpirioLabs ダッシュボードで API キーを取得してください。

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-small-4",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="mistral-small-4",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Mistral Small 4 API の完全リファレンス

Mistral Small 4 API のパラメーター

EmpirioLabs 上の Mistral Small 4 API が対応するリクエストパラメーターです。フィールドを省略した場合はデフォルト値が適用されます。

パラメータタイプデフォルト範囲 / 値説明
reasoning_enabledbooleantrue-拡張推論を有効にする(推論への写像:high|none)
tool_web_searchbooleantrue-ツールを有効にするweb_search
web_search_tierenumstandardstandard, premium標準またはプレミアムのウェブ検索層。プレミアムはより高品質なソースを使用します。
tool_code_interpreterbooleantrue-モデルがサンドボックスでPythonコードを実行し、データを計算・分析できるようにします。
tool_image_generationbooleantrue-プラットフォームの画像生成ツールを使ってモデルがインラインで画像を生成できるようにします。
temperaturenumber0.70 から 1.5サンプリング温度。0 = 決定論的、2 = 最大ランダム性。
max_tokensnumber40961 から 32768レスポンスには最大トークンを使います。
response_formatenum--出力を有効なJSONオブジェクト(JSONモード)として返します。プロンプトで使いたいフィールドを説明してください。
disable_formattingbooleanfalse-web_searchツール使用時のEmpirioLabsマークダウンフォーマット(引用[[N]](URL)書き換え+参照ブロック)は省略してください。単純な[N]引用付きの生の上流回答が返されます。

知っておくと便利

ツール(ウェブ検索、コードインタープリター、画像生成)は、実際に呼び出した場合にのみ請求されます。自分の関数ツールを含むリクエストは標準的な関数呼び出しを用い、組み込みツールはそのリクエストでは利用できません。リクエストは両方を同時に組み合わせることはできません。

Per-tool billing (usage.tool_usage)

When this model invokes built-in tools (web search, code interpreter, etc.) inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. The example below shows the shape — exact field names, units, and which tools appear can vary slightly per provider:

"usage": {
  "prompt_tokens": 123,
  "completion_tokens": 456,
  "cost_usd": 0.0042,
  "tool_usage": {"web_search": 3, "code_interpreter": 1}
}

The tool counts are already factored into cost_usd — they are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.

Mistral Small 4 API: よくある質問

Mistral Small 4 API の料金はいくらですか?

EmpirioLabs では Mistral Small 4 は従量課金です: パスワード $0.15 1M プロンプトトークンあたり; ソリューション $0.60 1M生成トークンあたり; 標準Web検索 $0.084 呼び出しごと。このページのライブ料金表は常に API の請求額と一致します。

Mistral Small 4 のコンテキストウィンドウはどれくらいですか?

Mistral Small 4 は 256K トークンのコンテキストウィンドウに対応しています(1回の応答あたり最大 65,536 出力トークン)。

Mistral Small 4 API は OpenAI 互換ですか?

はい。Mistral Small 4 は OpenAI 互換の Chat Completions API を提供しているため、既存の OpenAI SDK は base_urlhttps://api.empiriolabs.ai/v1 に向けてモデル ID を mistral-small-4 に設定するだけで動作します。

統合する前にブラウザで Mistral Small 4 を試せますか?

はい。EmpirioLabs プレイグラウンドでは API と同じパラメーターで Mistral Small 4 をブラウザ上で実行できるので、コードを書く前にプロンプトを試せます。

Mistral Small 4 の API キーはどうやって取得しますか?

EmpirioLabs アカウントを作成し、ダッシュボードの API Keysでキーを生成してください。課金は従量制クレジットなので、実行したリクエストの分だけ支払います。

より良いエンドポイントを使う準備はできていますか?

ご自身のモデルを当社のスタックに展開したい方は、ぜひご価格をご覧ください。