xAI API (Grok)
LLM Platforms & APIs
active
usage-based · $2.00 / $6.00 per 1M input/output tokens (grok-4.7)
Verified Dec 2026
The developer API for the Grok model family, with text, image understanding, image and video generation, and voice endpoints. The current flagship, grok-4.7, has a 500K-token context window.
Try xAI API (Grok) →
Use Cases
- Building apps on Grok models
- Long-context work with up to 500K tokens
- Image, video and voice generation from one provider
Pros
- Long 500K context window
- Text, image, video and voice APIs in one place
- Pricing competitive with other frontier models
Cons
- Prompts over 200K tokens are billed at double rates for the whole request
- Smaller ecosystem than OpenAI or Anthropic APIs
- Only serves first-party Grok models
Pricing
| Plan | Price |
|---|
| grok-4.7 input (<200K prompt) | $2.0/per million tokens |
| grok-4.7 output (<200K prompt) | $6.0/per million tokens |
Tags
api-availablellmmulti-modal
Try xAI API (Grok) →
Not sure which tools to use?
Take our 30-second quiz and get a personalized AI stack recommendation.
Find Your Stack →
Stay in the loop — new tools, workflows, and features
Thanks! Check your inbox to confirm.