xAI · text · family comparison
Grok API pricing by model and provider
Compare Grok API pricing by exact model, direct or router channel, context tier, token meter, and source-linked route.
Model-level provider comparison
Grok API price ranking status
Current answer: No current cheapest provider is published. Accepted evidence exists, but it does not yet form a named, like-for-like comparison group.
- Provider routes with evidence
- 2
- Accepted observations
- 5
- Billing meters
- 1M cached input tokens, 1M input tokens, 1M output tokens
- Latest accepted check
- Aug 22, 2026
Why there is no winner
No reviewed comparison scope exists for this model yet. Accepted evidence can still be inspected below, but APIDir will not sort unlike offers or infer a cheapest provider.
Read the publication gateUncollapsed source records
All accepted offer evidence
These rows remain separate until their offered model ID, route, meter, tier, resolution, duration, audio, and region are proven comparable.
| Provider | Model | Configuration | Recorded price | Evidence |
|---|---|---|---|---|
| OpenRouterrouter | Grok API | model: x-ai/grok-4.6 · chat-completions · Grok 4.6 base below 200k prompt tokens · not-applicable · no audio · source unit: base tier below 200,000 prompt tokens | $0.5 / 1M cached input tokensfresh | Provider sourceChecked Aug 22, 2026 |
| OpenRouterrouter | Grok API | model: x-ai/grok-4.6 · chat-completions · Grok 4.6 base below 200k prompt tokens · not-applicable · no audio · source unit: base tier below 200,000 prompt tokens | $2 / 1M input tokensfresh | Provider sourceChecked Aug 22, 2026 |
| OpenRouterrouter | Grok API | model: x-ai/grok-4.6 · chat-completions · Grok 4.6 base below 200k prompt tokens · not-applicable · no audio · source unit: base tier below 200,000 prompt tokens | $6 / 1M output tokensfresh | Provider sourceChecked Aug 22, 2026 |
| xAI APIofficial | Grok API | model: grok-4.6 · responses · standard-under-200k-context · not-applicable · no audio | $2 / 1M input tokensfresh | Provider sourceChecked Aug 22, 2026 |
| xAI APIofficial | Grok API | model: grok-4.6 · responses · standard-under-200k-context · not-applicable · no audio | $6 / 1M output tokensfresh | Provider sourceChecked Aug 22, 2026 |
Checked evidence, not a ranking: fresh rows were checked against the linked first-party source on the shown date. APIDir does not name a cheapest provider unless exact configurations and units match. Recheck before purchasing.
Developer resources
Provider documentation and pricing links
Compare integration documentation beside the exact first-party source used for each accepted observation.
| Provider | Channel | Developer resources | Accepted evidence |
|---|---|---|---|
| OpenRouter | router | DocumentationPricing page | 3 observationsEvidence source 1 |
| xAI API | official | DocumentationPricing page | 2 observationsEvidence source 1 |
Route-specific buying guide
How to budget Grok 4.6 on OpenRouter
Route ID: x-ai/grok-4.6
APIDir's accepted rows cover OpenRouter's Grok 4.6 base tier below 200,000 prompt tokens. They are not xAI direct prices and they exclude the route's higher long-context override.
OpenRouter reported a 500,000-token context window and a pricing override beginning at 200,000 prompt tokens when checked. Crossing that boundary can change token rates before the technical context limit is reached.
Cost formula
Use the displayed base rates only while prompt tokens remain below 200,000. For larger prompts, retrieve the live override first; then add separately metered tools such as web search and the cost of retries or fallback routes.
Costs that move the bill
- Whether prompt tokens stay below or cross the 200,000-token price boundary
- Completion length, cached-input eligibility, agent loops, and retry volume
- Separately metered web search or other tools enabled for the request
- Router fallback, regional availability, account limits, and production support
Checks before purchase
- Log prompt tokens before routing so the long-context tier cannot surprise the budget.
- Keep tool charges separate from input and output token estimates.
- Benchmark the exact x-ai/grok-4.6 route with realistic search and retry settings.
- Compare with xAI direct access only after route identity, threshold rules, and terms are aligned.
Source checked Aug 22, 2026: OpenRouter public model API. Recheck the live route before committing spend.
Estimate this route with the LLM workload calculator →
Compare another model family
Decision guide
How to compare Grok API API providers
Grok API pricing belongs to an exact model and context band. This page currently compares Grok 4.6 through xAI's direct API and an OpenRouter route. The direct documentation has a higher long-context band, so the displayed standard rate is explicitly limited to requests below that threshold.
Price parity does not make the channels operationally identical. Routing behavior, supported endpoints, caching, quotas, region, data terms, support, and fallback controls can differ. Run the same representative workload and inspect the provider's final usage records.
What changes the Grok API API cost
- Exact Grok model, context threshold, prompt size, and output length
- Direct or router service, cached input, priority, and rate limits
- Tool calls, search features, retries, data retention, and operational support
Integration checks before production
- Reject requests that cross an unbudgeted context band
- Pin the provider route and disable unapproved fallback models
- Record token use, context band, route, retries, and provider request ID
Workloads this comparison can inform
Interactive reasoning
Output length and tool loops can dominate a matched input rate.
Large-context analysis
Use the long-context price band rather than extending the short-context estimate.
Router failover
Test model identity, error mapping, quota behavior, and data terms before production use.
How to read the price result
The two reviewed Grok 4.6 channels currently show matching short-context token meters. APIDir requires a third provider before a cheapest ranking and excludes the higher long-context band from this scope.
Related model price comparisons
Use this evidence safely
A recorded price is not a complete production quote. Open the source, reproduce the exact configuration, and include retries, failed work, storage, egress, support, rate limits, and downstream processing in total cost.
Questions developers ask
What makes two Grok offers comparable?
The exact model and endpoint, provider route, input and output meters, cache policy, context-length price band, tools, region, and service tier must match.
Does APIDir name a cheapest provider on this page?
Only when at least three explicitly reviewed provider offers are fresh, publication-permitted, and within the same published comparison scope. Stale or mismatched evidence cannot support that claim.
How should I confirm a budget?
Open the linked provider source, verify the configuration, then calculate your own successful and failed workload volume.
APIDir Delta · controlled rollout
Reserve source-linked price research.
Confirm your address to join the rollout. Editorial delivery starts only after sender, suppression, and evidence checks are active.