GLM 4.7 Flash vs Llama 4 Scout API pricing
Updated
GLM 4.7 Flash: USD 0.06 input, USD 0.40 output per 1M tokens (Cloudflare Workers AI). Llama 4 Scout: USD 0.10 input, USD 0.30 output per 1M tokens (DeepInfra). At 3 input tokens per output token, Llama 4 Scout costs 3.4% more than GLM 4.7 Flash (USD 0.15 vs USD 0.145 per 1M).
How do GLM 4.7 Flash and Llama 4 Scout differ on price?
- Cheapest input price: GLM 4.7 Flash USD 0.06 against USD 0.08 per 1M tokens, so Llama 4 Scout costs 1.33× as much (33% more).
- Cheapest output price: Llama 4 Scout USD 0.30 against USD 0.40 per 1M tokens, so GLM 4.7 Flash costs 1.33× as much (33% more).
- Among the 201 indexed models, GLM 4.7 Flash ranks 38th cheapest and Llama 4 Scout 40th on the 3:1 blend.
- The cheaper model changes at 2.5 input tokens per output token.
- Only GLM 4.7 Flash lists a cached-input discount: GLM 4.7 Flash at 2 standard prices of 5, from USD 0.01 (Novita AI, 86% below that provider's input price). Llama 4 Scout's cached tokens bill at the input price.
- Llama 4 Scout states up to 1,048,576 tokens of context, 5.2× the 202,752 of GLM 4.7 Flash.
- Both have 6 providers with a standard price; 4 providers sell both (GMI Cloud, Novita AI, Amazon Bedrock and Cloudflare Workers AI).
- On one account, GMI Cloud charges USD 0.1525 for GLM 4.7 Flash (1.05× its cheapest price) and USD 0.185 for Llama 4 Scout (1.23× its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
- Shopping around matters more for Llama 4 Scout: its dearest standard price is 2.8× its cheapest, against 1.05× for GLM 4.7 Flash.
- GLM 4.7 Flash has no batch price on file; Llama 4 Scout has a batch price at 2 providers, from USD 0.1462 at 3:1 (Amazon Bedrock).
- For the one-developer coding agent preset, the gap is USD 1,426 a year in GLM 4.7 Flash's favour (GLM 4.7 Flash USD 70.20 a month, Llama 4 Scout USD 189.00).
GLM 4.7 Flash and Llama 4 Scout prices side by side
USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.
| Price | GLM 4.7 Flash | Llama 4 Scout |
|---|---|---|
| Model page | GLM 4.7 Flash Z.ai · 6 providers | Llama 4 Scout 17B 16E Instruct Meta · 6 providers |
| Cheapest standard price, blended 3:1 | USD 0.145 lower USD 0.06 in / USD 0.40 out at Cloudflare Workers AI Cloudflare Workers AI page checked 2026-11-14 | USD 0.15 USD 0.10 in / USD 0.30 out at DeepInfra DeepInfra page checked 2026-11-14 |
| Cheapest input | USD 0.06 lower Cloudflare Workers AI source | USD 0.08 GMI Cloud source |
| Cheapest cached input | USD 0.01 Novita AI source | No standard price lists a cache price; cached tokens bill at the input price. |
| Cheapest output | USD 0.40 Cloudflare Workers AI source | USD 0.30 lower DeepInfra source |
| Maker's own API | Z.ai publishes no paid standard price on its own API that we found. | Meta publishes no paid standard price on its own API that we found. |
| Median standard price | USD 0.07 / USD 0.40 input / output, 5 prices | USD 0.175 / USD 0.625 input / output, 6 prices |
| Context window | 202,752 tokens, largest stated; from 200,000 at some providers | 1,048,576 tokens, largest stated; from 131,072 at some providers |
| Providers with a standard price | 6 (1 free, unranked) | 6 |
- Lower marks the lower price on a line; tie, equal prices. Other tiers and free rows are on the model pages.
Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).
What do GLM 4.7 Flash and Llama 4 Scout cost for a real workload?
30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).
| Workload | GLM 4.7 Flash | Llama 4 Scout | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 10.26 Featherless | USD 14.40 DeepInfra | USD 4.14 GLM 4.7 Flash lower |
| RAG over documents 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 17.91 Featherless | USD 26.70 GMI Cloud | USD 8.79 GLM 4.7 Flash lower |
| Coding agent (one developer) 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 70.20 Novita AI | USD 189.00 GMI Cloud | USD 118.80 GLM 4.7 Flash lower |
GLM 4.7 Flash is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 2.69× as much as the cheaper one.
Does the cheaper model change with your input:output ratio?
The cheaper model changes with the mix: below 2.5 input tokens per output token, Llama 4 Scout is cheaper; above 2.5, GLM 4.7 Flash is cheaper. At the site's 3:1 blend, GLM 4.7 Flash is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
| Input : output tokens | GLM 4.7 Flash | Llama 4 Scout |
|---|---|---|
| 1 : 3 (long answers) | USD 0.315 Cloudflare Workers AI | USD 0.25 lower DeepInfra |
| 1 : 1 | USD 0.23 Cloudflare Workers AI | USD 0.20 lower DeepInfra |
| 3 : 1 (the site’s blend) | USD 0.145 lower Cloudflare Workers AI | USD 0.15 DeepInfra |
| 10 : 1 (retrieval, long prompts) | USD 0.09091 lower Cloudflare Workers AI | USD 0.1182 DeepInfra |
| 30 : 1 (agents, big contexts) | USD 0.07097 lower Cloudflare Workers AI | USD 0.09355 GMI Cloud |
USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.
What do GLM 4.7 Flash and Llama 4 Scout cost per character in other languages?
Not measured: the real cost by language dataset covers only tokenizers we could measure from published files, and GLM 4.7 Flash is not among them. Count tokens on your own text with the counters below.
Check it on your own traffic
- GLM 4.7 Flash API pricing: all 6 providers and other tiers.
- Llama 4 Scout 17B 16E Instruct API pricing: all 6 providers and other tiers.
- Cost calculator with GLM 4.7 Flash and Llama 4 Scout preloaded
- GLM token counter
- Llama 4 token counter
- Prompt caching calculator
More comparisons: GLM 5.3 Flash vs GLM 4.7 Flash · GLM 4.7 Flash vs GLM 4.7 · Llama 4 Scout vs Gemma 4 31B · every GLM 4.7 Flash comparison · every Llama 4 Scout comparison · all 662 price comparisons
Questions
Is GLM 4.7 Flash cheaper than Llama 4 Scout?
Yes. On a blend of 3 input tokens to 1 output token, GLM 4.7 Flash costs USD 0.145 per 1M tokens and Llama 4 Scout USD 0.15, at each model's cheapest standard price. For input alone, GLM 4.7 Flash is cheaper (USD 0.06 against USD 0.08 per 1M); for output alone, Llama 4 Scout is (USD 0.30 against USD 0.40). This compares price only, not quality.
What do GLM 4.7 Flash and Llama 4 Scout cost per 1M tokens?
GLM 4.7 Flash: from USD 0.06 input and USD 0.40 output at Cloudflare Workers AI; median of 5 standard prices USD 0.07 / USD 0.40. Llama 4 Scout: from USD 0.10 input and USD 0.30 output at DeepInfra; median of 6 standard prices USD 0.175 / USD 0.625. Each price is read from the provider's own pricing page; the source is linked in the table.
Which providers sell both GLM 4.7 Flash and Llama 4 Scout?
4 providers have a standard price for both: GMI Cloud (USD 0.1525 and USD 0.185 at 3:1), Novita AI (USD 0.1525 and USD 0.2825 at 3:1), Amazon Bedrock (USD 0.1525 and USD 0.2925 at 3:1), Cloudflare Workers AI (USD 0.145 and USD 0.415 at 3:1). The first is the lowest combined price. Buying each model from its own cheapest provider costs USD 0.145 and USD 0.15.
Which is cheaper for a coding agent or a chatbot, GLM 4.7 Flash or Llama 4 Scout?
For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 70.20 a month on GLM 4.7 Flash (Novita AI) against USD 189.00 on Llama 4 Scout (GMI Cloud), a difference of USD 118.80. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 10.26 a month on GLM 4.7 Flash (Featherless) against USD 14.40 on Llama 4 Scout (DeepInfra), a difference of USD 4.14. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.
At what input:output ratio does the cheaper of GLM 4.7 Flash and Llama 4 Scout change?
The cheaper model changes with the mix: below 2.5 input tokens per output token, Llama 4 Scout is cheaper; above 2.5, GLM 4.7 Flash is cheaper. At the site's 3:1 blend, GLM 4.7 Flash is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.
Do GLM 4.7 Flash and Llama 4 Scout have cached input pricing?
GLM 4.7 Flash from USD 0.01 per 1M cached input tokens (Novita AI; 2 of 5 standard prices list a discount). Llama 4 Scout: no standard price lists a cached-input discount. Cached tokens are billed at the input price where no cache price is published.
Which has the larger context window, GLM 4.7 Flash or Llama 4 Scout?
Llama 4 Scout: up to 1,048,576 tokens, against 202,752 for GLM 4.7 Flash, as stated on providers' pricing pages. Some providers offer less than the maximum; check the model pages before you pick the cheapest row for long prompts.