Grok 4.7 vs Llama 3 70B API pricing
Updated
Grok 4.7: USD 2 input, USD 6 output per 1M tokens (xAI and 4 others). Llama 3 70B: USD 2.65 input, USD 3.50 output per 1M tokens (Amazon Bedrock). At 3 input tokens per output token, Grok 4.7 costs 4.8% more than Llama 3 70B (USD 3 vs USD 2.862 per 1M).
How do Grok 4.7 and Llama 3 70B differ on price?
- Cheapest input price: Grok 4.7 USD 2 against USD 2.65 per 1M tokens, so Llama 3 70B costs 1.32× as much (32% more).
- Cheapest output price: Llama 3 70B USD 3.50 against USD 6 per 1M tokens, so Grok 4.7 costs 1.71× as much (71% more).
- Among the 201 indexed models, Grok 4.7 ranks 160th cheapest and Llama 3 70B 159th on the 3:1 blend.
- The cheaper model changes at 3.8 input tokens per output token.
- Both list cached-input discounts: Grok 4.7 at 6 standard prices of 6, from USD 0.50 (xAI, 75% below that provider's input price); Llama 3 70B at 1 standard price of 2, from USD 0.70 (Featherless, 80% below that provider's input price).
- Grok 4.7 states up to 524,288 tokens of context, 64× the 8,192 of Llama 3 70B.
- Grok 4.7 has 6 providers with a standard price, 4 more than Llama 3 70B; 1 provider sells both (Amazon Bedrock).
- On one account, Amazon Bedrock charges USD 3.30 for Grok 4.7 (1.1× its cheapest price) and USD 2.862 for Llama 3 70B (its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
- Shopping around matters more for Llama 3 70B: its dearest standard price is 1.64× its cheapest, against 1.1× for Grok 4.7.
- xAI's own API is one of 5 providers tied for the lowest standard price we found for Grok 4.7, USD 3 at 3:1.
- For the one-developer coding agent preset, the gap is USD 38,880 a year in Grok 4.7's favour (Grok 4.7 USD 1,845 a month, Llama 3 70B USD 5,085).
Grok 4.7 and Llama 3 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.
| Price | Grok 4.7 | Llama 3 70B |
|---|---|---|
| Model page | Grok 4.7 xAI · 6 providers | Llama 3 Instruct (70B) Meta · 2 providers |
| Cheapest standard price, blended 3:1 | USD 3 USD 2 in / USD 6 out at xAI and 4 others xAI page checked 2026-11-14 | USD 2.862 lower USD 2.65 in / USD 3.50 out at Amazon Bedrock Amazon Bedrock page checked 2026-11-14 |
| Cheapest input | USD 2 lower xAI source | USD 2.65 Amazon Bedrock source |
| Cheapest cached input | USD 0.50 lower xAI source | USD 0.70 Featherless source |
| Cheapest output | USD 6 xAI source | USD 3.50 lower Amazon Bedrock source |
| Maker's own API | USD 2 / USD 6 xAI source | Meta publishes no paid standard price on its own API that we found. |
| Median standard price | USD 2 / USD 6 input / output, 6 prices | USD 3.075 / USD 5.90 input / output, 2 prices |
| Context window | 524,288 tokens, largest stated; from 500,000 at some providers | 8,192 tokens, largest stated |
| Providers with a standard price | 6 | 2 |
- 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 Grok 4.7 and Llama 3 70B 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 | Grok 4.7 | Llama 3 70B | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 207.00 xAI | USD 301.50 Amazon Bedrock | USD 94.50 Grok 4.7 lower |
| RAG over documents 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 462.00 xAI | USD 688.50 Amazon Bedrock | USD 226.50 Grok 4.7 lower |
| Coding agent (one developer) 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 1,845 xAI | USD 5,085 Amazon Bedrock | USD 3,240 Grok 4.7 lower |
Grok 4.7 is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 2.76× as much as the cheaper one.
Does the cheaper model change with your input:output ratio?
The cheaper model changes with the mix: below 3.8 input tokens per output token, Llama 3 70B is cheaper; above 3.8, Grok 4.7 is cheaper. At the site's 3:1 blend, Llama 3 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.
| Input : output tokens | Grok 4.7 | Llama 3 70B |
|---|---|---|
| 1 : 3 (long answers) | USD 5 xAI | USD 3.287 lower Amazon Bedrock |
| 1 : 1 | USD 4 xAI | USD 3.075 lower Amazon Bedrock |
| 3 : 1 (the site’s blend) | USD 3 xAI | USD 2.862 lower Amazon Bedrock |
| 10 : 1 (retrieval, long prompts) | USD 2.364 lower xAI | USD 2.727 Amazon Bedrock |
| 30 : 1 (agents, big contexts) | USD 2.129 lower xAI | USD 2.677 Amazon Bedrock |
USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.
What do Grok 4.7 and Llama 3 70B cost per character in other languages?
Not measured: the real cost by language dataset covers only tokenizers we could measure from published files, and Grok 4.7 is not among them. Count tokens on your own text with the counters below.
Check it on your own traffic
- Grok 4.7 API pricing: all 6 providers and other tiers.
- Llama 3 Instruct (70B) API pricing: all 2 providers and other tiers.
- Cost calculator with Grok 4.7 and Llama 3 70B preloaded
- Token counter
- Llama 3 token counter
- Prompt caching calculator
More comparisons: Grok 4.7 vs Grok 4.6 · Claude Sonnet 5.5 vs Grok 4.7 · GPT-6 Sol vs Grok 4.7 · Grok 4.7 vs Grok 4.5 · Llama 3.1 70B vs Llama 3 70B · Llama 3 70B vs Llama 3 8B · every Grok 4.7 comparison · every Llama 3 70B comparison · all 662 price comparisons
Questions
Is Grok 4.7 cheaper than Llama 3 70B?
No. On a blend of 3 input tokens to 1 output token, Llama 3 70B costs USD 2.862 per 1M tokens and Grok 4.7 USD 3, at each model's cheapest standard price. For input alone, Grok 4.7 is cheaper (USD 2 against USD 2.65 per 1M); for output alone, Llama 3 70B is (USD 3.50 against USD 6). This compares price only, not quality.
What do Grok 4.7 and Llama 3 70B cost per 1M tokens?
Grok 4.7: from USD 2 input and USD 6 output at xAI and 4 others; xAI's own API charges USD 2 / USD 6; median of 6 standard prices USD 2 / USD 6. Llama 3 70B: from USD 2.65 input and USD 3.50 output at Amazon Bedrock; median of 2 standard prices USD 3.075 / USD 5.90. Each price is read from the provider's own pricing page; the source is linked in the table.
Which providers sell both Grok 4.7 and Llama 3 70B?
1 provider has a standard price for both: Amazon Bedrock (USD 3.30 and USD 2.862 at 3:1). Buying each model from its own cheapest provider costs USD 3 and USD 2.862.
Which is cheaper for a coding agent or a chatbot, Grok 4.7 or Llama 3 70B?
For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 1,845 a month on Grok 4.7 (xAI) against USD 5,085 on Llama 3 70B (Amazon Bedrock), a difference of USD 3,240. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 207.00 a month on Grok 4.7 (xAI) against USD 301.50 on Llama 3 70B (Amazon Bedrock), a difference of USD 94.50. 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 Grok 4.7 and Llama 3 70B change?
The cheaper model changes with the mix: below 3.8 input tokens per output token, Llama 3 70B is cheaper; above 3.8, Grok 4.7 is cheaper. At the site's 3:1 blend, Llama 3 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 Grok 4.7 and Llama 3 70B have cached input pricing?
Grok 4.7 from USD 0.50 per 1M cached input tokens (xAI; 6 of 6 standard prices list a discount). Llama 3 70B from USD 0.70 per 1M cached input tokens (Featherless; 1 of 2 standard prices list a discount). Cached tokens are billed at the input price where no cache price is published.
Which has the larger context window, Grok 4.7 or Llama 3 70B?
Grok 4.7: up to 524,288 tokens, against 8,192 for Llama 3 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.
Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity
Sources
- xAI: own API pricing (checked 2026-11-14)
- GMI Cloud: pricing (checked 2026-11-15)
- Google Vertex AI: pricing (checked 2026-11-14)
- Microsoft Azure: pricing (checked 2026-11-14)
- Perplexity: pricing (checked 2026-11-15)
- Amazon Bedrock: pricing (checked 2026-11-14)
- Featherless: pricing (checked 2026-11-15)
- Amazon Bedrock: pricing (checked 2026-11-14)