Grok 4.7 vs GPT-4.1 API pricing
Updated
Grok 4.7: USD 2 input, USD 6 output per 1M tokens (xAI and 4 others). GPT-4.1: USD 2 input, USD 8 output per 1M tokens (OpenAI and 2 others). At 3 input tokens per output token, GPT-4.1 costs 17% more than Grok 4.7 (USD 3.50 vs USD 3 per 1M).
How do Grok 4.7 and GPT-4.1 differ on price?
- Cheapest input price: both USD 2 per 1M tokens.
- Cheapest output price: Grok 4.7 USD 6 against USD 8 per 1M tokens, so GPT-4.1 costs 1.33× as much (33% more).
- Among the 201 indexed models, Grok 4.7 ranks 160th cheapest and GPT-4.1 168th on the 3:1 blend.
- No input:output mix changes the answer: Grok 4.7 is cheaper at every mix before cache discounts.
- 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); GPT-4.1 at 3 standard prices of 3, from USD 0.50 (OpenAI, 75% below that provider's input price).
- Only Grok 4.7 has a stated context window (524,288 tokens); no provider of GPT-4.1 states one on its pricing page.
- Grok 4.7 has 6 providers with a standard price, 3 more than GPT-4.1; 1 provider sells both (Microsoft Azure).
- On one account, Microsoft Azure charges USD 3 for Grok 4.7 (its cheapest price) and USD 3.50 for GPT-4.1 (its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
- Shopping around matters more for Grok 4.7: its dearest standard price is 1.1× its cheapest, against 1× for GPT-4.1.
- 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.
- OpenAI's own API is one of 3 providers tied for the lowest standard price we found for GPT-4.1, USD 3.50 at 3:1.
- Grok 4.7 has no batch price on file; GPT-4.1 has a batch price at 2 providers, from USD 1.75 at 3:1 (OpenAI).
- For the one-developer coding agent preset, the gap is USD 2,160 a year in Grok 4.7's favour (Grok 4.7 USD 1,845 a month, GPT-4.1 USD 2,025).
Grok 4.7 and GPT-4.1 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 | GPT-4.1 |
|---|---|---|
| Model page | Grok 4.7 xAI · 6 providers | GPT-4.1 (2025-04-14) OpenAI · 3 providers |
| Cheapest standard price, blended 3:1 | USD 3 lower USD 2 in / USD 6 out at xAI and 4 others xAI page checked 2026-11-14 | USD 3.50 USD 2 in / USD 8 out at OpenAI and 2 others OpenAI page checked 2026-11-14 |
| Cheapest input | USD 2 tie xAI source | USD 2 tie OpenAI source |
| Cheapest cached input | USD 0.50 tie xAI source | USD 0.50 tie OpenAI source |
| Cheapest output | USD 6 lower xAI source | USD 8 OpenAI source |
| Maker's own API | USD 2 / USD 6 xAI source | USD 2 / USD 8 OpenAI source |
| Median standard price | USD 2 / USD 6 input / output, 6 prices | USD 2 / USD 8 input / output, 3 prices |
| Context window | 524,288 tokens, largest stated; from 500,000 at some providers | No provider states one on its pricing page. |
| Providers with a standard price | 6 | 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 (email to info@broadnet.ai, with this page's link filled in).
What do Grok 4.7 and GPT-4.1 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 | GPT-4.1 | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 207.00 xAI | USD 243.00 OpenAI | USD 36.00 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 492.00 OpenAI | USD 30.00 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 2,025 OpenAI | USD 180.00 Grok 4.7 lower |
Grok 4.7 is cheaper on all three workloads. The widest gap is on Support chatbot: the dearer model costs 17% more than the cheaper one.
Does the cheaper model change with your input:output ratio?
Grok 4.7 is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below GPT-4.1's, so the input:output ratio never changes the answer. On input price alone they tie.
| Input : output tokens | Grok 4.7 | GPT-4.1 |
|---|---|---|
| 1 : 3 (long answers) | USD 5 lower xAI | USD 6.50 OpenAI |
| 1 : 1 | USD 4 lower xAI | USD 5 OpenAI |
| 3 : 1 (the site’s blend) | USD 3 lower xAI | USD 3.50 OpenAI |
| 10 : 1 (retrieval, long prompts) | USD 2.364 lower xAI | USD 2.545 OpenAI |
| 30 : 1 (agents, big contexts) | USD 2.129 lower xAI | USD 2.194 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-4.1 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.
- GPT-4.1 (2025-04-14) API pricing: all 3 providers and other tiers.
- Cost calculator with Grok 4.7 and GPT-4.1 preloaded
- Token counter
- GPT 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 · GPT-5 vs GPT-4.1 · GPT-4.1 Mini vs GPT-4.1 · every Grok 4.7 comparison · every GPT-4.1 comparison · all 662 price comparisons
Questions
Is Grok 4.7 cheaper than GPT-4.1?
Yes. On a blend of 3 input tokens to 1 output token, Grok 4.7 costs USD 3 per 1M tokens and GPT-4.1 USD 3.50, at each model's cheapest standard price. For input alone, both start at USD 2 per 1M; for output alone, Grok 4.7 is (USD 6 against USD 8). This compares price only, not quality.
What do Grok 4.7 and GPT-4.1 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-4.1: from USD 2 input and USD 8 output at OpenAI and 2 others; OpenAI's own API charges USD 2 / USD 8; median of 3 standard prices USD 2 / USD 8. 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-4.1?
1 provider has a standard price for both: Microsoft Azure (USD 3 and USD 3.50 at 3:1). Buying each model from its own cheapest provider costs USD 3 and USD 3.50.
Which is cheaper for a coding agent or a chatbot, Grok 4.7 or GPT-4.1?
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 2,025 on GPT-4.1 (OpenAI), a difference of USD 180.00. 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 243.00 on GPT-4.1 (OpenAI), a difference of USD 36.00. 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-4.1 change?
Grok 4.7 is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below GPT-4.1's, so the input:output ratio never changes the answer. On input price alone they tie.
Do Grok 4.7 and GPT-4.1 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-4.1 from USD 0.50 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
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)
- OpenAI: own API pricing (checked 2026-11-14)
- DigitalOcean: pricing (checked 2026-11-14)
- Microsoft Azure: pricing (checked 2026-11-14)