GLM 5.4 API

Flagship coding and agentic model with a 1M token context, 128K output, image, video, and file input, always-on reasoning at low, high, or max effort, native web search, and tool calling.

Z.ai テキスト生成 1M コンテキスト リリース 2026年12月2日 Singapore 独自エンドポイント 新着

GLM 5.4 について

Flagship coding and agentic model with a 1M token context, 128K output, image, video, and file input, always-on reasoning at low, high, or max effort, native web search, and tool calling.

Notes: - Context window: 1M tokens - Maximum output: 128K tokens - Accepts text, image, video, and file input - Always reasons; thinking cannot be disabled - Reasoning effort: low, high, or max (max recommended for complex coding) - A request for a different effort, or to turn thinking off, is served at the nearest supported level - Built-in web search adds $0.033 per request when used - Supports function calling (tool choice auto or none), structured output (JSON mode), and streaming

別名 Z.ai GLM 5.4

reasoning vision video understanding document understanding function calling web search

GLM 5.4 の仕様

モデルID
glm-5-4
開発元
Z.ai
カテゴリ
テキスト生成
リリース
2026年12月2日
コンテキスト長
1M トークン
最大出力
131,072 トークン
入力
テキスト画像動画ファイル
出力
テキスト
構造化出力
JSON モード
リージョン
Singapore
エンドポイント
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/glm-5-4:generateContent
代替モデルID
glm-5.4zai/glm-5.4zhipu/glm-5.4

GLM 5.4 API の料金

EmpirioLabs カタログのライブ従量課金料金です。週ごとの利用枠付きプランも選べます。

タイプ
仕様
料金
入力
per 1M prompt tokens
$1.40
出力
per 1M generated tokens
$4.40
Web search
per request
$0.033
料金ページ全体で比較

GLM 5.4 API の呼び出し方

GLM 5.4 は OpenAI 互換の Chat Completions API を提供します。任意の OpenAI SDK を EmpirioLabs API キーで https://api.empiriolabs.ai/v1 に向け、モデル ID glm-5-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": "glm-5-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="glm-5-4",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
GLM 5.4 API の完全リファレンス

GLM 5.4 API のパラメーター

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

パラメータタイプデフォルト範囲 / 値説明
max_tokensinteger655361 から 131072Maximum number of output tokens to generate.
temperaturenumber10 から 1Controls randomness. Lower values make responses more deterministic.
top_pnumber0.950.01 から 1Nucleus sampling cutoff.
reasoning_effortenummaxlow, high, maxThis model always reasons and cannot be turned off. low is lightweight, high is enhanced, and max is deep reasoning. max is recommended for complex coding.
preserve_thinkingbooleanfalse-Include the reasoning of earlier assistant turns in the model's input on /v1/chat/completions. Return each turn's reasoning unchanged in that assistant message's...
do_samplebooleantrue-Enable sampling. Turn off for greedy deterministic output (temperature and top_p are ignored).
tool_web_searchbooleanfalse-Enable built-in web search. Adds $0.033 per request when used.
search_recency_filterenumnoLimitoneDay, oneWeek, oneMonth, oneYear, noLimitLimit web search results to a recency window.
countinteger101 から 50Number of web search results to retrieve when web search is enabled.
search_domain_filterstring--Restrict web search to a specific domain.
search_promptstring--Optional prompt used to summarize retrieved web search results.
search_resultbooleantrue-Return web search result metadata in the response when web search is enabled.
tool_streambooleanfalse-Stream function-call arguments incrementally when streaming.
toolsarray[]-OpenAI-compatible function calling tool definitions. A web_search tool sent here keeps its own search options as written, with count from 1 to 50.
ドキュメントにあと3個のパラメーター

GLM 5.4 に関するブログ記事

このモデルを扱ったお知らせ、プロンプトテスト、比較記事です。

GLM 5.4 API: よくある質問

GLM 5.4 API の料金はいくらですか?

EmpirioLabs では GLM 5.4 は従量課金です: 入力 $1.40 per 1M prompt tokens; 出力 $4.40 per 1M generated tokens; Web search $0.033 per request。週ごとの利用枠付きプランも選べます。このページのライブ料金表は常に API の請求額と一致します。

GLM 5.4 はどの入力と出力に対応していますか?

GLM 5.4 は テキスト, 画像, 動画, ファイル を入力として受け取り、テキスト を返します。

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

GLM 5.4 は 1M トークンのコンテキストウィンドウに対応しています(1回の応答あたり最大 131,072 出力トークン)。

GLM 5.4 API は OpenAI 互換ですか?

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

GLM 5.4 のモデル ID は何ですか?

リクエストの model に glm-5-4 を指定してください。代替 ID の glm-5.4, zai/glm-5.4, zhipu/glm-5.4 も使えます。

GLM 5.4 はいつリリースされましたか?

Z.ai は 2026年12月2日 に GLM 5.4 をリリースしました。

GLM 5.4 はどこから提供されていますか?

EmpirioLabs の GLM 5.4 は Singapore から提供されています。

統合する前にブラウザで GLM 5.4 を試せますか?

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

GLM 5.4 の API キーはどうやって取得しますか?

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

GLM 5.4 を他のモデルと比較

すべてのモデル比較

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

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