grok-4 API price comparison
Grok 4 is the general-purpose model from xAI, supporting relatively long context, decent reasoning and code/text generation, suited for summarization, text processing, coding and general assistant tasks.
Cheapest overall
Yunwu
10.80 USD/M tokens combined per 1M tokens
Lowest input
Yunwu
1.80 USD/M tokens input per 1M tokens
Lowest output
Yunwu
9.00 USD/M tokens output per 1M tokens
Last refreshed
Sep 6, 2026
5 listed platforms
Best listed option
grok-4 is currently cheapest overall on Yunwu, with input at 1.80 USD/M tokens and output at 9.00 USD/M tokens per million tokens.
Pricing insight
Across 5 listed routes, grok-4 is cheapest overall on Yunwu at 10.80 USD/M tokens. The median combined price is 18.00 USD/M tokens, so the cheapest route is about 40% below the median listed route.
-
Lowest total cost
Yunwu
Best first check for balanced coding-agent sessions: 10.80 USD/M tokens.
-
Prompt-heavy work
Yunwu
Useful for large repositories and long context reads: 1.80 USD/M tokens input.
-
Response-heavy work
Yunwu
Useful for long answers, edits, and agent loops: 9.00 USD/M tokens output.
Median combined price
18.00 USD/M tokens
Baseline for judging whether the cheapest route is unusually low.
Cache price coverage
60%
3 of 5 routes publish cache read or write prices.
Fresh rows
2/5
Routes crawled in the last 72 hours.
Use case fit
grok-4 from xAI can be compared by input, output, and combined per-million-token cost to select the most economical API route.
Platform price comparison
| Platform | Ratio | Input | Output | Total |
|---|---|---|---|---|
| Yunwu | 0.60x | 1.80 USD/M tokens | 9.00 USD/M tokens | 10.80 USD/M tokens |
| Crazyrouter | 1.00x | 3.00 USD/M tokens | 15.00 USD/M tokens | 18.00 USD/M tokens |
| DMXAPI | 1.00x | 3.00 USD/M tokens | 15.00 USD/M tokens | 18.00 USD/M tokens |
| Qianduoduo | 1.00x | 3.00 USD/M tokens | 15.00 USD/M tokens | 18.00 USD/M tokens |
| AIHubMix | 1.10x | 3.30 USD/M tokens | 16.50 USD/M tokens | 19.80 USD/M tokens |
FAQ
Where is grok-4 cheapest?
Yunwu has the lowest listed combined price at 10.80 USD/M tokens per 1M tokens.
What do input and output prices mean?
Input is charged for prompt tokens you send. Output is charged for tokens generated by the model.
How often are prices refreshed?
Prices are crawler-backed and this page was last refreshed Sep 6, 2026. Always confirm before large purchases.