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
| 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 out | Pay 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 model | GPT-6 Astra (gpt-6-astra) | Claude Opus 5.5 (claude-opus-5-5) | Not published | Grok 4.7 (grok-4.7) |
| Input price | $10 per 1M tokens (2x for prompts over 272K tokens) | $4 per 1M tokens | Not 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 tokens | Not published | $6.00 per 1M tokens ($12.00 if the prompt is 200K+ tokens) |
| Context window | 1.05M tokens | 1M tokens | Not published | 500K tokens |
| Free tier | A Free usage tier exists in allowed regions, but GPT-6 Astra isn't available on it | New users get a small amount of free credits to test the API | Free plan: 25+ free models, 50 requests/day | Not published |
| Billing | Pay-as-you-go; usage tiers by amount paid (Tier 1 at $5 paid); spend limits | Usage-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 minimum | Prepaid credits (auto top-up min $5); monthly invoicing on request |
| Your data | Not used for training unless you opt in; abuse-monitoring logs kept up to 30 days | Not used for training without permission; inputs/outputs deleted within 30 days | Does not train on your data; zero-data-retention routing on every plan | Never trained on without permission; requests kept 30 days for abuse audits |
| Best for | Builders who want GPT models plus image, voice and realtime APIs | Developers building coding tools and long-running agents | Builders who want every major model behind one API key | Builders who want Grok models with live web and X search |
| Skill level | Built for pros | Built for pros | Built for pros | Built for pros |
| Try it | Try it free | Try it free | Try 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 reviewAlso in Model APIs & token credits
@ai’s ChoiceOpenAI APIOpenAIPay as you go
Best for codingClaude APIAnthropicPay as you goFree plan
Most modelsOpenRouterOpenRouterPay as you goFree plan
Gemini APIGooglePay as you goFree plan
DeepSeek APIDeepSeekPay as you go
Mistral APIMistral AIPay as you goFree plan
Together AITogether AIPay as you go
Fireworks AIFireworks AIPay as you goFree plan
Hugging Face Inference ProvidersHugging FacePay as you goFree plan
Do you make Grok API? Claim this listing to manage its details and sell it here.
Pay as you goTry it