Overview
Grok
Grok from xAI
Inspired by the Hitchhiker's Guide to the Galaxy, Grok is a maximally truth-seeking AI that provides insightful, unfiltered truths about the universe. xAI offers an API for developers to programmatically interact with our Grok models . The same models power our consumer facing services such as Grok.com , the iOS and Android apps, as well as Grok in X experience .
Designed with developers and enterprises in mind, this robust toolkit makes it incredibly easy to integrate Grok, xAI's flagship AI model, into your projects, delivering truthful, insightful answers that can transform how you handle complex queries and tasks. Whether you're building innovative applications, automating workflows, or enhancing customer experiences, the API empowers you to harness Grok's advanced intelligence in a seamless, scalable way.
Highlights
- X Search: The X Search tool enables Grok to perform keyword search, semantic search, user search, and thread fetch on X (formerly Twitter). This powerful tool allows the model to access real-time social media content, analyze posts, and gather insights from X's vast data.
- Multi-Agent: Real-time multi-agent research enables Grok to orchestrate multiple AI agents that work together in real time to perform deep, multi-step research tasks. Each agent specializes in a particular aspect of the research (searching the web, analyzing data, synthesizing findings) and they collaborate to deliver comprehensive, well-sourced answers.
- Quickstart: Our API is compatible with OpenAI and Anthropic's SDKs. Migrating is as easy as generating an API key and changing a URL.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Description | Cost/unit |
|---|---|---|
api_input | Input / 1M tokens | $1.25 |
api_code_execute | Code Execution / 1k calls | $5.00 |
api_files | File Attachments / 1k calls | $10.00 |
api_collections | Collections Search / 1k calls | $2.50 |
api_output | Output / 1M tokens | $2.50 |
api_cached | Cached tokens / 1M | $0.20 |
api_web_search | Web Search / 1k calls | $5.00 |
api_x_search | X Search / 1k calls | $5.00 |
Vendor refund policy
All fees are non-refundable and non-cancellable except as required by law.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Software as a Service (SaaS)
SaaS delivers cloud-based software applications directly to customers over the internet. You can access these applications through a subscription model. You will pay recurring monthly usage fees through your AWS bill, while AWS handles deployment and infrastructure management, ensuring scalability, reliability, and seamless integration with other AWS services.
Resources
Vendor resources
Support
Vendor support
Please contact xAI sales at sales@x.ai for information about custom agreements and specialized pricing. Technical support requests should be directed towards support@x.ai
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.