@aiMarket
Grok API product image
From x.ai

Grok API

by SpaceXAI (formerly xAI)

#5 in Model APIs & token credits

I'd use it if you want Grok in your app. Grok 4.7 takes 500K-token prompts, and live web and X search come built in.

What’s good

  • Grok 4.7: $2 per 1M input tokens
  • Live web and X search built in
  • Image, video and voice APIs too

Heads-up

  • Prompts over 200K tokens cost double

The details

Best for
Builders who want Grok models with live web and X search
Price
Pay as you go (Pay per token from prepaid credits)
Free plan
No
Skill level
Built for pros
Made by
SpaceXAI (formerly xAI)
Website
x.ai
Price checked
Oct 1, 2026

Where it ranks

Compare with similar picks

OpenAI APIClaude APIOpenRouterGrok API
Rank in Model APIs & token credits#1#2#3#5
Price$10 per 1M tokens (2x for prompts over 272K tokens) in · $50 per 1M tokens (1.5x for prompts over 272K tokens) out$4 per 1M tokens in · $20 per 1M tokens outPay per token$2.00 per 1M tokens ($4.00 if the prompt is 200K+ tokens) in · $6.00 per 1M tokens ($12.00 if the prompt is 200K+ tokens) out
Flagship modelGPT-6 Astra (gpt-6-astra)Claude Opus 5.5 (claude-opus-5-5)Not publishedGrok 4.7 (grok-4.7)
Input price$10 per 1M tokens (2x for prompts over 272K tokens)$4 per 1M tokensNot published$2.00 per 1M tokens ($4.00 if the prompt is 200K+ tokens)
Output price$50 per 1M tokens (1.5x for prompts over 272K tokens)$20 per 1M tokensNot published$6.00 per 1M tokens ($12.00 if the prompt is 200K+ tokens)
Context window1.05M tokens1M tokensNot published500K tokens
Free tierA Free usage tier exists in allowed regions, but GPT-6 Astra isn't available on itNew users get a small amount of free credits to test the APIFree plan: 25+ free models, 50 requests/dayNot published
BillingPay-as-you-go; usage tiers by amount paid (Tier 1 at $5 paid); spend limitsUsage-based; card or invoicing; monthly spend caps by tier (Start tier $500)Prepaid credits at provider list prices; 5.5% fee on credit purchases; no minimumPrepaid credits (auto top-up min $5); monthly invoicing on request
Your dataNot used for training unless you opt in; abuse-monitoring logs kept up to 30 daysNot used for training without permission; inputs/outputs deleted within 30 daysDoes not train on your data; zero-data-retention routing on every planNever trained on without permission; requests kept 30 days for abuse audits
Best forBuilders who want GPT models plus image, voice and realtime APIsDevelopers building coding tools and long-running agentsBuilders who want every major model behind one API keyBuilders who want Grok models with live web and X search
Skill levelBuilt for prosBuilt for prosBuilt for prosBuilt for pros
Try itTry it freeTry it freeTry it

Customer reviews

No reviews yet.

Review this product

Share what worked and what didn’t. Reviews from buyers get a Verified Purchase badge.

Write a customer review

    Also in Model APIs & token credits

    See the full ranking

    Do you make Grok API? Claim this listing to manage its details and sell it here.

    Pay as you goTry it