新規 無料登録で、呼び出し 10 回分(最大 $1)をお試しいただけます。カード登録は不要です。

GLM-5

2026-02-12 リリース

chatコード推論ツール呼び出しプロンプトキャッシュ

GLM-5 は Z.AI の新世代の基盤モデルで、エージェント的エンジニアリングのために構築され、複雑なシステムエンジニアリングと長期のエージェントタスクを対象とします。

入力
テキスト $1/M
出力
テキスト $3.2/M
キャッシュ読み取り
$0.2/M
コンテキスト
200K
GPT-4o 比
約 80% 割安

ベンチマーク

平均超え上回るモデルなし15 / 522 / 52
GLM-5 測定された他モデル 他モデルの平均 ★ これを上回るモデルなし
SWE-Bench Pro
55.1%
Cybergym
43.2%
SkillsBench Avg@5
これを上回るモデルなし 47.2%
GPQA Diamond
86%
BrowseComp
62%

ベンダー公表値: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai

価格の位置づけ

同種の 68 モデルの中での価格の位置

入力$1/M
$0.1 · Dola Seed 2.0 Mini GPT-5.4 Pro · $30
出力$3.2/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
キャッシュ読み取り$0.2/M
$0.01 · Claude Haiku 5.5 GPT-5.4 Pro · $15

このバーは、Synthorai の同種モデルの中で、このモデルの価格がどのあたりにあるかを示しています。両端には、最も安いモデルと最も高いモデルの名前を表示しています。表示しているのは基本料金で、バッチ、リージョン、キャッシュ書き込みに関する割引は料金ページに記載しています。

仕様と制限

トークン

コンテキストウィンドウ(ベンダー仕様) 200,000
最大出力(ベンダー仕様) 131,072

プロンプトキャッシュ

キャッシュ方式 自動

思考

ベンダー側パラメータ thinking.type
指定可能な値 enabled · disabled
デフォルト enabled。GLM-5 では思考するかどうかをモデルが自動で判断します リクエストで未指定の場合に適用
無効化の可否 対応
思考の挙動 トレースは reasoning_content で返ります。過去のターンのトレースはデフォルトで消去され(clear_thinking true)、インターリーブされた思考ブロックは保持してツールの結果と一緒に返すべきです。
パラメータ reasoning_effort
値 minimal · low · medium · high ゲートウェイ側のパラメータ。上のベンダー別の対応が適用されます

モデル

モダリティ テキスト → テキスト
パラメータ数 合計 744B · アクティブ 40B MoE
ライセンス MIT
  • エージェント的エンジニアリング向けのフラッグシップ:744B パラメータの MoE(アクティブ 40B)で、DeepSeek Sparse Attention を用い 28.5T トークンで事前学習。
  • 200K コンテキスト / 128K 最大出力。

出典:Z.ai 公式ドキュメント ↗

1 つのプロンプトを実行(ゲートウェイ経由で測定)

プロンプト Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. チェック ちょうど 3 文

GLM-5 合格 · 3 sentences

Enabling reasoning forces the model to perform multiple hidden steps to "think" through a problem, drastically increasing the volume of data processed per query compared to a standard response. Because our billing is directly tied to this processing volume, the additional computational work required for higher accuracy has proportionally doubled our consumption. Essentially, the spike reflects a trade-off where we are paying a higher variable cost to secure significantly better analytical outcomes.

出力 1393 tok (+1308 思考) レイテンシ 36.0 s

指示への忠実さ(ちょうど 3 文という、数えて確かめられる条件)、読み手に合わせた書き分け(CFO 向けの語り口)、そして下のトークンメーターに表れる、表示されない思考への課金の差。

プロンプト This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. チェック 修正がテストを通る

GLM-5 合格 · 8/8 cases

Here is the fixed code: ```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 best = max(best, cur) else: cur = 1 return best ``` **Explanation:** The bug stems from initializing `best` and `cur` to zero, which causes the function to count the number of *transitions* between adjacent elements rather than the total number of items in the run, resulting in a return value that is always one less than the actual length (reporting 0 for a single element and 1 for a pair). By initializing the counters to 1 and resetting `cur` to 1 when a streak breaks, the logic correctly counts the items themselves; adding an explicit check for an empty list ensures the function handles the zero-element edge case correctly.

出力 2907 tok (+2694 思考) レイテンシ 73.7 s

修正が本当に正しいか(実行して確かめられる)、説明の密度、範囲の限られたタスクでのトークン効率。

プロンプト Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. チェック 有効な JSON、スキーマに完全一致

GLM-5 合格 · 5/5 fields, guidance "withheld pending the Q4 close"

```json { "company": "Meridian Robotics", "quarter": "September quarter", "revenue_usd_m": 412, "growth_pct": 11, "guidance": "withheld pending the Q4 close" } ```

出力 3620 tok (+3561 思考) レイテンシ 91.8 s

スキーマの遵守(存在しないフィールドを作らない)、ハルシネーションを誘う条件への耐性(guidance は明示的に伏せてある)、構造化出力の実現方法の違い。

プロンプト Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. チェック 120 語、禁止語 0

GLM-5 合格 · 119 words, 0 banned, 1 question

We are thrilled to introduce Global Prompt Caching, a powerful new capability within our API gateway designed to optimize your AI operations. By intelligently storing prompt responses across every supported provider, this feature drastically reduces latency and cuts operational costs. Instead of processing identical requests repeatedly, our system serves cached results instantly, ensuring consistent performance even during high-traffic periods. Why pay full price for repeated inference on the same inputs? This update gives developers fine-grained control over cache lifetimes and hit rates, allowing for predictable budgeting and faster application response times. You can activate this functionality directly in your dashboard settings today. Start maximizing your efficiency now and deliver a snappier experience to your end-users without unnecessary API expenditure.

出力 715 tok (+571 思考) レイテンシ 18.9 s

制約の遵守(語数の上限、禁止語リスト、疑問文はひとつだけ)、文体の癖、長さの制御。

30 秒で GLM-5 を使い始める

OpenAI 互換。base_url を差し替えるだけで、SDK はそのまま。POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

GLM-5 について

  • 前身と比べて、Z.AI はパラメータを 355B(アクティブ 32B)から 744B(アクティブ 40B)へ、事前学習データを 23T から 28.5T トークンへスケールし、スパースアテンションと Slime 非同期強化学習フレームワークを追加しました。
  • 200K コンテキストウィンドウ、最大 128K 出力トークン、思考モード、関数呼び出し、コンテキストキャッシュ、オープンウェイトを提供し、Z.AI はオープンソースで最先端のコーディングとエージェント性能を持つと説明しています。
  • コード以外にも、モデルページは自社チームが狙うドキュメント中心の作業を挙げています。
  • 契約書や財務文書からの構造化データ抽出、専門的な翻訳、カスタマーサービスの品質検査、そしてキャラクターを保ち続ける必要のあるロールプレイや絵コンテの執筆です。
  • 思考は thinking オブジェクトで設定し、この世代における既定の enabled は、強制的に推論させるのではなく、回答前に推論するかどうかをモデル自身が判断することを意味します。
  • トレースは別の reasoning_content フィールドで返り、回答に先行してストリーミングされ、過去のターンのトレースは既定で削除されます。
  • ツール呼び出しは最大 128 個の関数を受け付け、ツール引数の逐次ストリーミングに対応し、外部の MCP ツールを直接組み込め、JSON オブジェクト出力に対応し、繰り返されるプレフィックスのキャッシュは自動です。
  • ウェイトは MIT License の下で公開されています。
  • Synthorai は GLM-5 を OpenAI 互換エンドポイント経由で提供するため、既存の SDK は変更なしで動作します。

よくある質問

GLM-5 API は無料で試せますか?

はい。新規アカウントには 10 回のお試し呼び出しと最大 $1 の無料クレジットが付き、カード登録は不要です。入力 $1/M で計算すると、このクレジットだけで、約 8K トークンのリクエストを GLM-5 に約 125 回送れます。

GLM-5 は何が得意ですか?

744B パラメータ、アクティブ 40B にスケール、スパースアテンションと非同期強化学習、200K コンテキストのオープンウェイト。詳しくは、ベンダー公式のリリースノートをもとにまとめた、このページのモデル紹介セクションをご覧ください。

GLM-5 の料金はいくらですか?

Synthorai での GLM-5 の料金は、入力 100 万トークンあたり $1、出力 100 万トークンあたり $3.2 です。プロバイダーの定価のままで、プラットフォーム手数料はかかりません。キャッシュ済み入力トークンは $0.2/M で課金されます。

GLM-5 のコンテキスト長はどれくらいですか?

GLM-5 のコンテキストウィンドウは 200K トークンです。1 回の応答で出力できるのは最大 131,072 トークンです。

GLM-5 はプロンプトキャッシュに対応していますか?

はい、自動で有効です。Z.ai 経由のプロンプトはコード変更なしでキャッシュされます。キャッシュ済み入力トークンは $0.2/M(未キャッシュは $1/M)で課金されます。 プロンプトキャッシュガイド →

GLM-5 を利用するには?

お使いの OpenAI SDK の base_url を "https://synthorai.io/v1" に向け、model="glm-5" を設定すれば完了です。API キー 1 本でゲートウェイ上のすべてのモデルを利用できます。

GLM-5 はオープンソースですか?

はい。ウェイトは MIT ライセンスで公開されています。GPU を用意したくない場合は、Synthorai がホストする版を従量課金で利用でき、インフラの運用は不要です。 オープンウェイトモデルの実行について →

関連モデル

比較

このページの値は、すべてベンダー自身のドキュメント(上部にリンクがあります)から転記したもので、確認した日付を添えています。価格はカタログ全体で比較しています。一方、ベンダーによって定義が異なる仕様値は、違いを明記するにとどめ、グラフでの比較はしていません。当社が測定した数値はなく、スコアも付けていません。

API キーを取得 コストを比較する →