Grok API
Access Grok, xAI's conversational AI with real-time X (Twitter) knowledge integration for up-to-date responses.
Verified
2026-02-03
At a glance
Essential information
About
Grok API provides access to xAI's conversational AI model with real-time knowledge integration from X (Twitter). Built by Elon Musk's xAI company, Grok offers unique capabilities for understanding current events and social media context.
What you can build
- Real-time news and trend analysis applications
- Social media monitoring and analysis tools
- Conversational AI with current events awareness
- Content generation with up-to-date context
- Twitter/X integration tools
- Research assistants with real-time data access
Pricing
View Pricing| Free tier | No |
| Starting from | $5.00/M tokens (input) |
| Notes | Currently in beta; pricing subject to change. Access via X Premium+ subscription. |
Last updated: 2026-02-03. Please refer to the official pricing page as pricing may have changed.
Alternatives
Similar APIs you might consider
Authentication & Limits
View Docs- Auth type
- api_key
- Rate limits
- Based on tier; see documentation.
Steps to get API key
- 1Subscribe to X Premium+ at x.com
- 2Visit xAI developer portal at docs.x.ai
- 3Navigate to API Keys section
- 4Generate a new API key
- 5Copy and secure the key
- 6Use in Authorization header as Bearer token
FAQ
Grok has real-time access to X (Twitter) data, enabling it to provide current information and context about trending topics and recent events.