xAI Grok API Pricing & Free Tier (2026)

LLM APIFree tier not confirmed✓ Checked 2026-10-14

Free tier: Prices are on xAI's models docs page; free credits and promos change often, check the official site

Prices checked against the official site on: 2026-10-14. This is not live pricing; confirm on the official site before buying.

Plans & prices

grok-4.7

Pay as you go
grok-4.7 input
$2 per 1M input tokens · < 200k prompt tokens
grok-4.7 cached input
$0.50 per 1M cached input tokens · < 200k prompt tokens
grok-4.7 output
$6 per 1M output tokens · < 200k prompt tokens
grok-4.7 input
$4 per 1M input tokens · >= 200k prompt tokens
grok-4.7 cached input
$1 per 1M cached input tokens · >= 200k prompt tokens
grok-4.7 output
$12 per 1M output tokens · >= 200k prompt tokens

Source: https://docs.x.ai/developers/models · checked 2026-10-14

grok-4.3

Pay as you go
grok-4.3 input
$1.25 per 1M input tokens · < 200k prompt tokens
grok-4.3 cached input
$0.20 per 1M cached input tokens · < 200k prompt tokens
grok-4.3 output
$2.50 per 1M output tokens · < 200k prompt tokens
grok-4.3 input
$2.50 per 1M input tokens · >= 200k prompt tokens
grok-4.3 cached input
$0.40 per 1M cached input tokens · >= 200k prompt tokens
grok-4.3 output
$5 per 1M output tokens · >= 200k prompt tokens

Source: https://docs.x.ai/developers/models · checked 2026-10-14

grok-build-0.1

Pay as you go
grok-build-0.1 input
$1 per 1M input tokens · < 200k prompt tokens
grok-build-0.1 cached input
$0.20 per 1M cached input tokens · < 200k prompt tokens
grok-build-0.1 output
$2 per 1M output tokens · < 200k prompt tokens
grok-build-0.1 input
$2 per 1M input tokens · >= 200k prompt tokens
grok-build-0.1 cached input
$0.40 per 1M cached input tokens · >= 200k prompt tokens
grok-build-0.1 output
$4 per 1M output tokens · >= 200k prompt tokens

Source: https://docs.x.ai/developers/models · checked 2026-10-14

How to buy (payment, access, cheapest route)

Payment methods

Prepaid credits bought in the console by credit card or bank transfer (2-3 business days); monthly invoiced billing on request.

Mainland China access

Not confirmed — Mainland China direct accessibility is not officially specified in documentation; endpoints located in US.

Official endpoints

Official OpenAI-compatible endpoint https://api.x.ai/v1

Cheapest official route

Source: https://docs.x.ai/docs/key-information/billing (checked 2026-10-14) · https://docs.x.ai/docs/overview (checked 2026-10-14)

Compare how to buy every LLM API →

Sources