Grok-4 API pricing

6 providers serve Grok-4. Grok-4 is a proprietary API model, up to 256K context. Prices below are per 1M tokens, cheapest input first.

Refreshed 2026-08-23 · list prices from provider APIs
Input floor $3.00/1M at Azure AI Foundry, Oracle OCI, OpenRouter and 2 more Output floor $15.00/1M at Azure AI Foundry, Oracle OCI, OpenRouter and 2 more Find your workload winner →
Provider Input $/1M Output $/1M Cache read $/1M Context
Azure AI Foundry $3.00 $15.00output floor - 131K Use
Oracle OCI $3.00 $15.00 - 128K Use
OpenRouter $3.00 $15.00 - 256K Use
Vercel AI Gateway $3.00 $15.00 - 256K Use
xAI $3.00 $15.00 - 256K Use
Replicate $7.20 $36.00 - - Use

The cheapest way to run Grok-4

On an illustrative 70M-input / 30M-output monthly workload, today's lowest listed cost is roughly $660/month — the same at Azure AI Foundry, Oracle OCI, OpenRouter and 2 more. Input-heavy, output-heavy and cache-heavy workloads can produce different winners. Use the live mix calculator below rather than combining floors from two different providers. It is API-only, so the table above is your full set of options. Run your own numbers in the breakeven calculator, or read the breakeven math.

Your actual monthly cost

Uses today's list prices

Cache read uses the listed cache rate where available; otherwise it falls back to normal input price. Batch, write-cache, volume and negotiated discounts are excluded.

Related models

ModelCheapest in $/1MCheapest out $/1MProviders
Grok-3 $3.00 $15.00 4
Grok-3-Mini $0.250 $0.500 4
Grok 4.3 $1.25 $2.50 4
Grok-4-1-Fast-Non-Reasoning $0.200 $0.500 3
Grok-4-1-Fast-Reasoning $0.200 $0.500 3
Grok-Code-Fast-1 $0.200 $1.50 3

FAQ

What is the cheapest API for Grok-4?

As of 2026-08-23, the lowest input price for Grok-4, $3.00 per 1M tokens, is the same list price at Azure AI Foundry, Oracle OCI, OpenRouter and 2 more. The lowest output price, $15.00 per 1M tokens, is likewise shared by the same providers. The cheapest provider for a real workload depends on its input/output mix. The next-lowest input price is Replicate at $7.20, a 140% difference.

← All models · GPU rental prices · Breakeven calculator · Get this data as JSON