# xAI API pricing 

Our data has 7 current xAI models. The lowest input price is [Grok 4.3](https://apicostcheck.com/models/grok-4.3/) at $1.25 per 1M tokens and the lowest output price is [Grok 4.3](https://apicostcheck.com/models/grok-4.3/) at $2.50; the newest model is [Grok 4.7](https://apicostcheck.com/models/grok-4.7/) (2026-09-21). All 7 models have cached-input and batch prices. Tick models to compare them, or put your traffic into the [calculator](https://apicostcheck.com/calculator/). 

[Compare the 4 newest xAI models side by side →](https://apicostcheck.com/compare/?m=grok-4.7,grok-4.6,grok-4.5,grok-4.3)

Billing rules for caching, Batch and long prompts: [xAI API cost guide](https://apicostcheck.com/grok-api-cost-calculator/). 

Default order: premium models (output $6.00+/1M) first, newest release first; legal and healthcare versions last in each group. Tick models to compare them side by side. Use ▾ in a column header to sort or filter.

| Compare | Model | Released | Input /1M | Output /1M | Cached /1M | Batch in /1M | Max input | Image input | Reasoning | Tool calling | Structured output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | [Grok 4.7](https://apicostcheck.com/models/grok-4.7/) ✓ | 2026-09-21 | $2.00 | $6.00 | $0.50 | $1.60 | 500,000 |
| | [Grok 4.6](https://apicostcheck.com/models/grok-4.6/) ✓ | 2026-08-12 | $2.00 | $6.00 | $0.50 | $1.60 | 500,000 |
| | [Grok 4.5](https://apicostcheck.com/models/grok-4.5/) ✓ | 2026-07-08 | $2.00 | $6.00 | $0.30 | $1.60 | 500,000 |
| | [Grok 4.3](https://apicostcheck.com/models/grok-4.3/) ✓ | 2026-04-17 | $1.25 | $2.50 | $0.20 | $1.00 | 1,000,000 |
| | [Grok 4.20 Multi Agent](https://apicostcheck.com/models/grok-4.20-multi-agent/) ✓ | 2026-03-09 | $1.25 | $2.50 | $0.20 | $1.00 | 1,000,000 |
| | [Grok 4.20 Non Reasoning](https://apicostcheck.com/models/grok-4.20-non-reasoning/) ✓ | 2026-03-09 | $1.25 | $2.50 | $0.20 | $1.00 | 1,000,000 |
| | [Grok 4.20 Reasoning](https://apicostcheck.com/models/grok-4.20-reasoning/) ✓ | 2026-03-09 | $1.25 | $2.50 | $0.20 | $1.00 | 1,000,000 |

### What the marks mean

✓ matches the official page ! sources disagree ○ not yet checked image input reasoning 

## Recent price changes

No price changes recorded since tracking began on 2026-10-08.

## Retired and retiring models

- [Grok Build 0.1](https://apicostcheck.com/models/grok-build-0.1/) (shutdown 2026-11-19) · replacement: — · automatic routing: no (stated in notice)

Shutdown dates, replacements and automatic routing as stated in each provider notice. — = no replacement model in the notice table.

## Models routed (or scheduled to be routed) to another model

- [Grok Code Fast 1](https://apicostcheck.com/models/grok-code-fast-1/) (shutdown 2026-05-15) · replacement: [Grok Build 0.1](https://apicostcheck.com/models/grok-build-0.1/) · automatic routing: yes

Shutdown dates, replacements and automatic routing as stated in each provider notice.

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC.

## FAQ

### Where do these prices come from?

From the open-source LiteLLM price list, refreshed every 4 hours and, for providers with an automatic check, compared field by field with the provider's official pricing page (OpenAI, Anthropic and Google pages are usually read once a day, the others every 4 hours). Each model page shows what was verified. A few models LiteLLM does not list are added by hand from the provider's official pricing page, and their pages name that page as the source.

### Why is a model missing?

We list first-party chat and reasoning models with published per-token prices. Audio, image, realtime, fine-tuned and third-party-hosted models are out of scope; deprecated models move to the retired list. Missing or wrong entries can be reported on the feedback board.

---
Source: https://apicostcheck.com/providers/xai/ · prices in USD per 1M tokens, synced 2026-12-05 13:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
