Compare

GLM 5 vs Granite 4 H Small

Pricing is only the shared seller matrix below. Best rates and catalog map are separate sections, so no chart is embedded in pricing. Open the calculator for the same workload on each side.

Z Ai

Model

GLM 5

Tool calling

Best $0.600 in · $1.92 out

Context window 203K

Pricing
Ibm

Model

Granite 4 H Small

Tool calling

Best $0.060 in · $0.250 out

Context window 20K

Pricing

Granite 4 H Small is cheaper across the board — 94% cheaper on input and 92% cheaper on output.

Pricing matrix

Shared sellers only. Each row is a host that lists both models. Dollar amounts are per 1M tokens. Lowest in each pair of columns is emphasized.

ProviderGLM 5 inGLM 5 outGranite 4 H Small inGranite 4 H Small out
Baseten$0.950$3.15N/AN/A
Ibm WatsonxN/AN/A$0.060$0.250
Openrouter$0.600$2.08N/AN/A
Z Ai$1.00$3.20N/AN/A

Best listed rates (this pair)

Same "best row in current pricing" logic as model pages: a compact view of the lowest input and output we show for each side. This is not the seller matrix.

Catalog map · Z Ai · Ibm

Each chart uses real catalog rows that include both list input and list output ($/1M). Larger green dots are the models on this comparison page; accent dots are other active models from that provider.

Z Ai · input vs output

Scatter chart: X = input $/M, Y = output $/M. This page's models are labeled on the green dots; hover others for detail.

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Ibm · input vs output

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Specifications

Each column header is the full model name. Tint marks the favorable value where we compute a winner.

Spec
GLM 5
Granite 4 H Small
Context window
202,752 tokens
20,480 tokens
Max output tokens
128,000 tokens
20,480 tokens
Vision
No
No
Function calling
Yes
Yes
Streaming
No
No
Release date
Feb 2026
N/A

Cost calculator

Same requests, input tokens, and output tokens for both columns. Pick the provider row that matches how you buy.

GLM 5
Monthly
$468
Annual
$5.7K
Granite 4 H Small
Monthly
$56
Annual
$675
Save $413/month with Granite 4 H Small

When to pick which

Short takeaways: no cards, just the points. Validate with your own workloads.

  • Long-context tasks

    Use GLM 5. Its 202K context window handles large codebases and documents better than 20K.

  • High-volume text generation

    Use Granite 4 H Small. Output tokens are 92% cheaper, which compounds significantly at scale.

  • Long output (reports, code files)

    Use GLM 5. Its 128K max output limit reduces the need to split requests.

Frequently asked questions

Granite 4 H Small is cheaper on both input and output tokens.

More comparisons

Other popular head-to-head matchups.