xAI Grok API Pricing & Free Tier (2026)
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
- 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
- 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
- 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
- AlipayNot confirmed
- WeChat PayNot confirmed
- CNY✗ No
- Foreign card required✓ Yes
- CryptoNot confirmed
- Prepaid✓ Yes
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
- China endpoint: Not confirmed
- International endpoint:
https://api.x.ai/v1
Official OpenAI-compatible endpoint https://api.x.ai/v1
Cheapest official route
- Not confirmed
- Min cost / top-up: Not confirmed
- Region: Global (US hosted)
Source: https://docs.x.ai/docs/key-information/billing (checked 2026-10-14) · https://docs.x.ai/docs/overview (checked 2026-10-14)
Sources
Related services
DeepSeek API
Very low prices with cache-hit discounts; supports Chinese payment methods
CheckedMistral API
La Plateforme offers a rate-limited free experiment tier
CheckedGroq API
Prices are on Groq's models docs page. Free tier rate-limited by RPM/TPD; Llama 3.x moved to Enterprise
CheckedTogether AI
Open-model inference and fine-tuning; check the official site for signup credits
CheckedBuying and budgeting guides
LLM APIHow to estimate LLM API costs: tokens, retries and caching
Build a monthly API budget from a real workload, and compare cost per successful task instead of a headline token price.
LLM APIHow to buy LLM APIs from China and find the cheapest official route
Compare official payment methods, mainland-China availability, endpoints and the lowest-cost official purchase route for each LLM API, with the source page and check date for every claim.