BroadRouter

Grok 4.7 vs GPT-5 API pricing

Updated

Grok 4.7: USD 2 input, USD 6 output per 1M tokens (xAI and 4 others). GPT-5: USD 1.25 input, USD 10 output per 1M tokens (OpenAI and 2 others). At 3 input tokens per output token, GPT-5 costs 15% more than Grok 4.7 (USD 3.438 vs USD 3 per 1M).

Picked by the same-tier rule: both are in the fourth quarter of the indexed models by price (above 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). Grok 4.7 is the 2nd-closest-priced model from another maker to GPT-5 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 Grok 4.7 and GPT-5 differ on price?

Grok 4.7 and GPT-5 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.

Grok 4.7 and GPT-5 API prices compared
PriceGrok 4.7GPT-5
Model pageGrok 4.7
xAI · 6 providers
GPT-5 (2025-08-07)
OpenAI · 3 providers
Cheapest standard price, blended 3:1USD 3 lower
USD 2 in / USD 6 out at xAI and 4 others
xAI page checked 2026-11-14
USD 3.438
USD 1.25 in / USD 10 out at OpenAI and 2 others
OpenAI page checked 2026-11-14
Cheapest inputUSD 2
xAI source
USD 1.25 lower
OpenAI source
Cheapest cached inputUSD 0.50
xAI source
USD 0.125 lower
OpenAI source
Cheapest outputUSD 6 lower
xAI source
USD 10
OpenAI source
Maker's own APIUSD 2 / USD 6
xAI source
USD 1.25 / USD 10
OpenAI source
Median standard priceUSD 2 / USD 6
input / output, 6 prices
USD 1.25 / USD 10
input / output, 3 prices
Context window524,288 tokens, largest stated; from 500,000 at some providersNo provider states one on its pricing page.
Providers with a standard price63

Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).

What do Grok 4.7 and GPT-5 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 Grok 4.7 and GPT-5
WorkloadGrok 4.7GPT-5Difference
Support chatbot
2,000 requests a day, 1,500 input tokens (60% cached), 300 output
USD 207.00
xAI
USD 231.75
OpenAI
USD 24.75
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 369.00
OpenAI
USD 93.00
GPT-5 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 1,429
OpenAI
USD 416.25
GPT-5 lower

The cheaper model depends on the workload: Grok 4.7 for Support chatbot, GPT-5 for RAG over documents, GPT-5 for Coding agent (one developer). Cache-heavy work rewards a low cached-input price. The widest gap is on Coding agent (one developer): the dearer model costs 29% more than the cheaper one.

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

The cheaper model changes with the mix: below 5.3 input tokens per output token, Grok 4.7 is cheaper; above 5.3, GPT-5 is cheaper. At the site's 3:1 blend, Grok 4.7 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 Grok 4.7 and GPT-5 at different input:output mixes
Input : output tokensGrok 4.7GPT-5
1 : 3 (long answers)USD 5 lower
xAI
USD 7.813
OpenAI
1 : 1USD 4 lower
xAI
USD 5.625
OpenAI
3 : 1 (the site’s blend)USD 3 lower
xAI
USD 3.438
OpenAI
10 : 1 (retrieval, long prompts)USD 2.364
xAI
USD 2.045 lower
OpenAI
30 : 1 (agents, big contexts)USD 2.129
xAI
USD 1.532 lower
OpenAI

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 GPT-5 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

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 · GPT-5 vs GPT-4.1 · GPT-5.2 vs GPT-5 · GPT-5 Pro vs GPT-5 · GPT-5 Nano vs GPT-5 · every Grok 4.7 comparison · every GPT-5 comparison · all 662 price comparisons

Questions

Is Grok 4.7 cheaper than GPT-5?

Yes. On a blend of 3 input tokens to 1 output token, Grok 4.7 costs USD 3 per 1M tokens and GPT-5 USD 3.438, at each model's cheapest standard price. For input alone, GPT-5 is cheaper (USD 1.25 against USD 2 per 1M); for output alone, Grok 4.7 is (USD 6 against USD 10). This compares price only, not quality.

What do Grok 4.7 and GPT-5 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. GPT-5: from USD 1.25 input and USD 10 output at OpenAI and 2 others; OpenAI's own API charges USD 1.25 / USD 10; median of 3 standard prices USD 1.25 / USD 10. 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 GPT-5?

1 provider has a standard price for both: Microsoft Azure (USD 3 and USD 3.438 at 3:1). Buying each model from its own cheapest provider costs USD 3 and USD 3.438.

Which is cheaper for a coding agent or a chatbot, Grok 4.7 or GPT-5?

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 1,429 on GPT-5 (OpenAI), a difference of USD 416.25. 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 231.75 on GPT-5 (OpenAI), a difference of USD 24.75. 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 GPT-5 change?

The cheaper model changes with the mix: below 5.3 input tokens per output token, Grok 4.7 is cheaper; above 5.3, GPT-5 is cheaper. At the site's 3:1 blend, Grok 4.7 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 GPT-5 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). GPT-5 from USD 0.125 per 1M cached input tokens (OpenAI; 3 of 3 standard prices list a discount). Cached tokens are billed at the input price where no cache price is published.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity