GitHubBook a demoStart routing
FA

Glm 5p2

Fireworks AIChat1.0M context· released 2026-06-16Floating alias

fireworks_ai/accounts/fireworks/models/glm-5p2

Prices as of 2026-07-14 · rev 179affb· unknown is shown as unknown, never $0.00

Cost / request$0.00361K in · 500 out
Input / M$1.40
Output / M$4.40
Cache read / M$0.26
Context1.0M1,048,576 tokens
Max output131K131,072 tokens

Pricing

Input · fresh prompt tokens$1.40 / M
Output · generated tokens$4.40 / M
Cache read · cached-input hit$0.26 / M
Cache write · cache creationunknown
Reasoning · thinking tokensunknown

Reasoning tokens: no separate rate is published. Providers typically bill thinking tokens at the output rate ($4.40 / M) — which is what the estimator assumes, so an extended-thinking workload isn't silently undercounted.

Model info

Provider
Fireworks AI
Catalog key
fireworks_ai/fireworks_ai/accounts/fireworks/models/glm-5p2
Identifier
Floating alias (may re-point over time)
Type
Chat
Max input
1,048,576 tokens
Max output
131,072 tokens
Released
2026-06-16
Knowledge cutoff
unknown
Weights
Open weights
Price snapshot
2026-07-14 · rev 179affb

Pricing from TokenTriage's resolved price artifact (TokenTriage resolved price artifact (internal/pricing/data/prices.json)); capability + model metadata is third-party (LiteLLM model_prices_and_context_window.json, models.dev). Unknown means unstated, not absent.

Capabilities

3 documented as supported

Input & output

Vision
?PDF input
?Audio input
?Audio output

API behaviour

?Streaming
Structured output
?Prompt caching
Reasoning

Agents & tools

Function calling
?Parallel tool calls
?Web search
?Computer use

supported · not supported ·? not documented · sources disagree. A models.dev tag means the LiteLLM catalog was silent and an independent source supplied the value (lower confidence); ? is never silently turned into a confident ✕.

Estimate a request

disjoint token buckets · input = fresh (uncached) tokens
Preset
Cost / request
Projected / month

How output length drives the bill

at a 1K-token prompt · cost scales linearly with output
$0.15$0.11$0.08$0.04$0033K66K98K131KOutput tokensCost / requestmax outputoutput spend = input spend at ~318 tokensoutput spend overtakes input at ~318

Output tokens overtake input spend at ~318 tokens for this model — past that, generation is your bill, whatever the headline input price says. Computed by the same cost engine as the estimate above.

Route to Glm 5p2

OpenAI-compatible · one base URL
curl https://YOUR-TOKENTRIAGE-HOST/v1/chat/completions \
  -H "Authorization: Bearer $TOKENTRIAGE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fireworks_ai/fireworks_ai/accounts/fireworks/models/glm-5p2",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Point your existing OpenAI client at your TokenTriage host and pass the catalog key as the model. TokenTriage attributes the real cost per request and can route to a cheaper model once it's proven just as good on your traffic.

Data & API

machine-readable · rev 179affb

Pull this model's pricing, capabilities, benchmarks and cross-source provenance programmatically — every field carries the snapshot rev, and unknown is null, never 0. Free to reuse with attribution: benchmarks & Capabilities Index © Epoch AI (CC-BY (Epoch AI)); human-preference Elo © LMArena (CC-BY-4.0); capability & price cross-check via models.dev v2 (MIT) · Portkey (MIT) · TrueFoundry (MIT); open-weights facts via Hugging Face (per-repo license).

A price is a guess until it meets your traffic.

This page tells you what Glm 5p2 charges per token. TokenTriage tells you what it costs on your real requests — and cuts the bill only after proving a cheaper model is just as good.