BroadRouter

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).

Picked by the same-tier rule: both are in the first quarter of the indexed models by price (below USD 0.1556 per 1M tokens at 3:1) and in the same size class, small (a tier word such as Flash, Mini or Haiku, or 40B parameters or fewer). Llama 4 Scout is the 4th-closest-priced model from another maker to GLM 4.7 Flash in that bucket. Price only: every number is computed from prices read from each provider's own pricing page (linked per cell, newest check 2026-11-15), with no claim about quality, speed or accuracy.

How do GLM 4.7 Flash and Llama 4 Scout differ on price?

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.

GLM 4.7 Flash and Llama 4 Scout API prices compared
PriceGLM 4.7 FlashLlama 4 Scout
Model pageGLM 4.7 Flash
Z.ai · 6 providers
Llama 4 Scout 17B 16E Instruct
Meta · 6 providers
Cheapest standard price, blended 3:1USD 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 inputUSD 0.06 lower
Cloudflare Workers AI source
USD 0.08
GMI Cloud source
Cheapest cached inputUSD 0.01
Novita AI source
No standard price lists a cache price; cached tokens bill at the input price.
Cheapest outputUSD 0.40
Cloudflare Workers AI source
USD 0.30 lower
DeepInfra source
Maker's own APIZ.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 priceUSD 0.07 / USD 0.40
input / output, 5 prices
USD 0.175 / USD 0.625
input / output, 6 prices
Context window202,752 tokens, largest stated; from 200,000 at some providers1,048,576 tokens, largest stated; from 131,072 at some providers
Providers with a standard price6 (1 free, unranked)6

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).

Monthly cost of three workloads on GLM 4.7 Flash and Llama 4 Scout
WorkloadGLM 4.7 FlashLlama 4 ScoutDifference
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.

Price per 1M tokens of GLM 4.7 Flash and Llama 4 Scout at different input:output mixes
Input : output tokensGLM 4.7 FlashLlama 4 Scout
1 : 3 (long answers)USD 0.315
Cloudflare Workers AI
USD 0.25 lower
DeepInfra
1 : 1USD 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

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.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity