---
title: "GLM 4.7 vs Llama 3.1 70B API pricing compared | BroadRouter"
description: "GLM 4.7 vs Llama 3.1 70B API price per 1M tokens: USD 0.40 / USD 1.75 vs USD 0.72 / USD 0.72 input/output, from providers' own pricing pages."
url: https://broadrouter.com/llm-api-pricing/compare/glm-4.7-vs-llama-3.1-70b-instruct/
lang: en
updated: 2026-11-15
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# GLM 4.7 vs Llama 3.1 70B API pricing

Updated 2026-11-15

GLM 4.7: USD 0.40 input, USD 1.75 output per 1M tokens (DeepInfra). Llama 3.1 70B: USD 0.72 input, USD 0.72 output per 1M tokens (Amazon Bedrock). At 3 input tokens per output token, GLM 4.7 costs 2.4% more than Llama 3.1 70B (USD 0.7375 vs USD 0.72 per 1M).

Picked by the same-tier rule: both are in the third quarter of the indexed models by price (USD 0.4512 to USD 1.40 per 1M tokens at 3:1) and in the same size class, mid-size (no tier word, 40B to 200B parameters or no size in the name). Llama 3.1 70B is the 2nd-closest-priced model from another maker to GLM 4.7 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 and Llama 3.1 70B differ on price?

-   Cheapest input price: Llama 3.1 70B USD 0.293 against USD 0.40 per 1M tokens, so GLM 4.7 costs 1.37× as much (37% more).
-   Cheapest output price: Llama 3.1 70B USD 0.72 against USD 1.75 per 1M tokens, so GLM 4.7 costs 2.4× as much.
-   Among the 201 indexed models, GLM 4.7 ranks 115th cheapest and Llama 3.1 70B 113th on the 3:1 blend.
-   The cheaper model changes at 3.2 input tokens per output token and 4.7 input tokens per output token.
-   Only GLM 4.7 lists a cached-input discount: GLM 4.7 at 7 standard prices of 8, from USD 0.06 (Google Vertex AI, 90% below that provider's input price). Llama 3.1 70B's cached tokens bill at the input price.
-   GLM 4.7 states up to 204,800 tokens of context, 6.3× the 32,768 of Llama 3.1 70B.
-   GLM 4.7 has 8 providers with a standard price, 5 more than Llama 3.1 70B; 2 providers sell both (Amazon Bedrock and Featherless).
-   On one account, Amazon Bedrock charges USD 1 for GLM 4.7 (1.36× its cheapest price) and USD 0.72 for Llama 3.1 70B (its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
-   Shopping around matters more for Llama 3.1 70B: its dearest standard price is 4× its cheapest, against 1.46× for GLM 4.7.
-   Z.ai's own API charges USD 1 for GLM 4.7 at 3:1, 36% above the cheapest provider (DeepInfra).
-   GLM 4.7 has no batch price on file; Llama 3.1 70B has a batch price at 1 provider, from USD 0.36 at 3:1 (Amazon Bedrock).
-   For the one-developer coding agent preset, the gap is USD 4,107 a year in GLM 4.7's favour (GLM 4.7 USD 387.90 a month, Llama 3.1 70B USD 730.17).

## GLM 4.7 and Llama 3.1 70B 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 and Llama 3.1 70B API prices compared
| Price | GLM 4.7 | Llama 3.1 70B |
| --- | --- | --- |
| Model page | [GLM 4.7](https://broadrouter.com/llm-api-pricing/glm-4.7/) · Z.ai · 8 providers | [Llama 3.1 Instruct (70B)](https://broadrouter.com/llm-api-pricing/llama-3.1-70b-instruct/) · Meta · 3 providers |
| Cheapest standard price, blended 3:1 | USD 0.7375 · USD 0.40 in / USD 1.75 out at DeepInfra · [DeepInfra page](https://deepinfra.com/zai-org/GLM-4.7) checked 2026-11-14 | USD 0.72 lower · USD 0.72 in / USD 0.72 out at Amazon Bedrock · [Amazon Bedrock page](https://aws.amazon.com/bedrock/pricing/) checked 2026-11-14 |
| Cheapest input | USD 0.40 · DeepInfra [source](https://deepinfra.com/zai-org/GLM-4.7) | USD 0.293 lower · Cloudflare Workers AI [source](https://developers.cloudflare.com/workers-ai/platform/pricing/) |
| Cheapest cached input | USD 0.06 · Google Vertex AI [source](https://cloud.google.com/model-garden/partner-models/pricing) | No standard price lists a cache price; cached tokens bill at the input price. |
| Cheapest output | USD 1.75 · DeepInfra [source](https://deepinfra.com/zai-org/GLM-4.7) | USD 0.72 lower · Amazon Bedrock [source](https://aws.amazon.com/bedrock/pricing/) |
| Maker's own API | USD 0.60 / USD 2.20 · Z.ai [source](https://docs.z.ai/guides/overview/pricing) | Meta publishes no paid standard price on its own API that we found. |
| Median standard price | USD 0.60 / USD 2.20 · input / output, 8 prices | USD 0.72 / USD 2.253 · input / output, 3 prices |
| Context window | 204,800 tokens, largest stated; from 198,000 at some providers | 32,768 tokens, largest stated |
| Providers with a standard price | 8 | 3 |

-   **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](mailto:info@broadnet.ai?subject=Wrong%20price%20or%20number%20on%20GLM%204.7%20vs%20Llama%203.1%2070B%20API%20pricing&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Fllm-api-pricing%2Fcompare%2Fglm-4.7-vs-llama-3.1-70b-instruct%2F%0A%0AWhat%20looks%20wrong%20(model%2C%20figure%20shown%2C%20correct%20figure%20and%20a%20source%20link%20if%20you%20have%20one)%3A%0A) (email to info@broadnet.ai, with this page's link filled in).

## What do GLM 4.7 and Llama 3.1 70B cost for a real workload?

30 days at each model's cheapest standard price for the workload (presets of the [cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/?model=glm-4.7,llama-3.1-70b-instruct); cached input at the cached price where listed).

Monthly cost of three workloads on GLM 4.7 and Llama 3.1 70B
| Workload | GLM 4.7 | Llama 3.1 70B | Difference |
| --- | --- | --- | --- |
| **Support chatbot** · 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 50.22 · DeepInfra | USD 66.92 · Cloudflare Workers AI | USD 16.70 · GLM 4.7 lower |
| **RAG over documents** · 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 99.21 · DeepInfra | USD 104.11 · Cloudflare Workers AI | USD 4.91 · GLM 4.7 lower |
| **Coding agent (one developer)** · 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 387.90 · DeepInfra | USD 730.17 · Cloudflare Workers AI | USD 342.27 · GLM 4.7 lower |

GLM 4.7 is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 88% more than the cheaper one.

## Does the cheaper model change with your input:output ratio?

The cheaper model changes with the mix: below 3.2 input tokens per output token, Llama 3.1 70B is cheaper; from 3.2 to 4.7, GLM 4.7 is cheaper; above 4.7, Llama 3.1 70B is cheaper. At the site's 3:1 blend, Llama 3.1 70B 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 and Llama 3.1 70B at different input:output mixes
| Input : output tokens | GLM 4.7 | Llama 3.1 70B |
| --- | --- | --- |
| **1 : 3** (long answers) | USD 1.413 · DeepInfra | USD 0.72 lower · Amazon Bedrock |
| **1 : 1** | USD 1.075 · DeepInfra | USD 0.72 lower · Amazon Bedrock |
| **3 : 1** (the site’s blend) | USD 0.7375 · DeepInfra | USD 0.72 lower · Amazon Bedrock |
| **10 : 1** (retrieval, long prompts) | USD 0.5227 · DeepInfra | USD 0.4712 lower · Cloudflare Workers AI |
| **30 : 1** (agents, big contexts) | USD 0.4435 · DeepInfra | USD 0.3562 lower · Cloudflare Workers AI |

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 and Llama 3.1 70B cost per character in other languages?

Not measured: the [real cost by language dataset](https://broadrouter.com/data/real-cost-by-language/) covers only tokenizers we could measure from published files, and GLM 4.7 is not among them. Count tokens on your own text with the counters below.

## Check it on your own traffic

-   [GLM 4.7 API pricing](https://broadrouter.com/llm-api-pricing/glm-4.7/): all 8 providers and other tiers.
-   [Llama 3.1 Instruct (70B) API pricing](https://broadrouter.com/llm-api-pricing/llama-3.1-70b-instruct/): all 3 providers and other tiers.
-   [Cost calculator with GLM 4.7 and Llama 3.1 70B preloaded](https://broadrouter.com/tools/llm-api-cost-calculator/?model=glm-4.7,llama-3.1-70b-instruct)
-   [GLM token counter](https://broadrouter.com/tools/glm-token-counter/)
-   [Llama 3 token counter](https://broadrouter.com/tools/llama-token-counter/)
-   [Prompt caching calculator](https://broadrouter.com/tools/prompt-caching-calculator/)

More comparisons: [GLM 4.7 vs GLM 4.6](https://broadrouter.com/llm-api-pricing/compare/glm-4.7-vs-glm-4.6/) · [GLM 5 vs GLM 4.7](https://broadrouter.com/llm-api-pricing/compare/glm-5-vs-glm-4.7/) · [GLM 4.7 Flash vs GLM 4.7](https://broadrouter.com/llm-api-pricing/compare/glm-4.7-flash-vs-glm-4.7/) · [Llama 3.1 70B vs Llama 3 70B](https://broadrouter.com/llm-api-pricing/compare/llama-3.1-70b-instruct-vs-llama-3-70b-instruct/) · [Llama 3.3 70B vs Llama 3.1 70B](https://broadrouter.com/llm-api-pricing/compare/llama-3.3-70b-instruct-vs-llama-3.1-70b-instruct/) · [Llama 3.1 70B vs Llama 3.1 8B Instruct](https://broadrouter.com/llm-api-pricing/compare/llama-3.1-70b-instruct-vs-llama-3.1-8b-instruct/) · [every GLM 4.7 comparison](https://broadrouter.com/llm-api-pricing/compare/#m-glm-4.7) · [every Llama 3.1 70B comparison](https://broadrouter.com/llm-api-pricing/compare/#m-llama-3.1-70b-instruct) · [all 662 price comparisons](https://broadrouter.com/llm-api-pricing/compare/)

## Questions

### Is GLM 4.7 cheaper than Llama 3.1 70B?

No. On a blend of 3 input tokens to 1 output token, Llama 3.1 70B costs USD 0.72 per 1M tokens and GLM 4.7 USD 0.7375, at each model's cheapest standard price. For input alone, Llama 3.1 70B is cheaper (USD 0.293 against USD 0.40 per 1M); for output alone, Llama 3.1 70B is (USD 0.72 against USD 1.75). This compares price only, not quality.

### What do GLM 4.7 and Llama 3.1 70B cost per 1M tokens?

GLM 4.7: from USD 0.40 input and USD 1.75 output at DeepInfra; Z.ai's own API charges USD 0.60 / USD 2.20; median of 8 standard prices USD 0.60 / USD 2.20. Llama 3.1 70B: from USD 0.72 input and USD 0.72 output at Amazon Bedrock; median of 3 standard prices USD 0.72 / USD 2.253. 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 and Llama 3.1 70B?

2 providers have a standard price for both: Amazon Bedrock (USD 1 and USD 0.72 at 3:1), Featherless (USD 0.9625 and USD 2.88 at 3:1). The first is the lowest combined price. Buying each model from its own cheapest provider costs USD 0.7375 and USD 0.72.

### Which is cheaper for a coding agent or a chatbot, GLM 4.7 or Llama 3.1 70B?

For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 387.90 a month on GLM 4.7 (DeepInfra) against USD 730.17 on Llama 3.1 70B (Cloudflare Workers AI), a difference of USD 342.27. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 50.22 a month on GLM 4.7 (DeepInfra) against USD 66.92 on Llama 3.1 70B (Cloudflare Workers AI), a difference of USD 16.70. Each uses the cheapest standard price for that workload, cached input included. [Try your own numbers](https://broadrouter.com/tools/llm-api-cost-calculator/?model=glm-4.7,llama-3.1-70b-instruct).

### At what input:output ratio does the cheaper of GLM 4.7 and Llama 3.1 70B change?

The cheaper model changes with the mix: below 3.2 input tokens per output token, Llama 3.1 70B is cheaper; from 3.2 to 4.7, GLM 4.7 is cheaper; above 4.7, Llama 3.1 70B is cheaper. At the site's 3:1 blend, Llama 3.1 70B 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 and Llama 3.1 70B have cached input pricing?

GLM 4.7 from USD 0.06 per 1M cached input tokens (Google Vertex AI; 7 of 8 standard prices list a discount). Llama 3.1 70B: 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 or Llama 3.1 70B?

GLM 4.7: up to 204,800 tokens, against 32,768 for Llama 3.1 70B, 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.

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=llm-api-pricing-compare-glm-4.7-vs-llama-3.1-70b-instruct&utm_content=page-cta) ·

**Sources**

-   [DeepInfra: pricing (checked 2026-11-14)](https://deepinfra.com/zai-org/GLM-4.7)
-   [Google Vertex AI: pricing (checked 2026-11-14)](https://cloud.google.com/model-garden/partner-models/pricing)
-   [Z.ai: own API pricing (checked 2026-11-14)](https://docs.z.ai/guides/overview/pricing)
-   [Amazon Bedrock: pricing (checked 2026-11-14)](https://aws.amazon.com/bedrock/pricing/)
-   [Cloudflare Workers AI: pricing (checked 2026-11-14)](https://developers.cloudflare.com/workers-ai/platform/pricing/)
-   [Featherless: pricing (checked 2026-11-15)](https://featherless.ai/models/zai-org/GLM-4.7)
-   [Featherless: pricing (checked 2026-11-15)](https://featherless.ai/models/meta-llama/Llama-3.1-70B-Instruct)
