HomeAI Models › Grok 4

Grok 4 API Pricing

Flagship · 256K context · $3 per 1M input tokens, $15 per 1M output tokens.

Grok 4 pricing

ProviderInput /1MOutput /1MIn+Out
xAI$3$15$18

Prices per 1M tokens, USD. Snapshot 2026-07 — verify with the provider before relying on them.

Grok 4 cost calculator

Frequently asked

How much does Grok 4 cost per 1M tokens?

Grok 4 costs $3 per 1M input tokens and $15 per 1M output tokens from xAI.

What is Grok 4's context window?

Grok 4 supports a context window of about 256K tokens. Remember every token in the context is billed on each call.

Is Grok 4 available on other providers?

Grok 4 is offered by xAI. For open-weight alternatives you can host on multiple providers, see the full model comparison.

Related models

Compare all 387 models →