How much does xAI API cost?
xAI API's paid plans start at $8/mo billed monthly. That's the lowest of the 6 large language models with a published price. 15 plans listed. No price change since Q2 2026, across 3 archived reads.
- Free plan
- No
- Usage price
- $2 per 1M input tokens
- Enterprise
- Custom plan with SSO, audit logging, data residency, invoicing, custom rate limits and dedicated support"The SpaceXSI enterprise API adds SSO, audit logging, invoicing, data residency, and dedicated support on top of the same Grok models you can try in the Console."
- Next pricierHugging Face$9$1 more a monthFree plan, overage billed.
In your favor
- Notice before price changes. Reasonable notice, new price applies at next renewal
How you buy and get started
- Sign up
- Self-serve: sign up at the Console and create an API key "Create an account, generate a key, and ship your first Grok request in about a minute."
- Setup
- About a minute to first request "Create an account, generate a key, and ship your first Grok request in about a minute."
- When sales steps in
- Contact sales for custom rate limits, monthly invoicing, SSO and audit logging, data residency "Custom rate limits and hands-on support for your team."
- Support
- Dedicated onboarding and support path for enterprise teams "Hands-on onboarding and a dedicated support path for your team."
What xAI API does
The SpaceXSI API serves Grok text and reasoning models plus Grok Imagine and Grok Voice models through one API key from the Console, with usage-based billing. Enterprise options add SSO, audit logging, SOC 2, a HIPAA BAA, data residency, invoicing and custom rate limits.
- Good for
- Developers and companies building AI apps, coding agents, media generation and voice agents who want pay-as-you-go access, plus enterprises that need SSO, compliance and invoicing.
- Channels
- REST API, Python SDK, TypeScript AI SDK, OpenAI SDK compatible, Console, Microsoft Azure AI Foundry, Oracle OCI Generative AI, Google Vertex Model Garden
- Main product
- Grok API (grok-4.7 plus Grok Imagine and Grok Voice models)
- Also includes
- Grok text, reasoning and coding models (grok-4.7, grok-4.6, grok-4.5), Grok Imagine image and video generation and editing, Grok Voice API (speech to speech, text to speech, speech to text), Live web and X search, Files and collections, Free Playground with every Console account
1 more
OpenAI and Anthropic SDK compatibility - Connects to
- Azure AI Foundry, OCI Generative AI, Vertex Model Garden, OpenAI SDK, Anthropic SDK, Vercel AI SDK, Splunk, CrowdStrike, Palo Alto, SentinelOne, Datadog
- Public API
- Yes
- Fine-tuning supportNot stated
- Tool and function callingNot stated
- SOC 2 compliance
Audited controls for security, availability, and confidentiality.
Security and your data
| Question | xAI API's answer | Where it says so |
|---|---|---|
| HIPAA (signs a BAA) | available | "A BAA is available for healthcare applications that handle protected health information."home |
| SOC 2 | SOC 2 Type II | "Audited controls for security, availability, and confidentiality."home |
| Single sign-on | SAML SSO on enterprise API | "SAML SSO, role-based access, and audit logging for your team."home |
Not stated on the 7 pages we read (homepage, about, pricing, security, changelog, privacy, terms): Trains AI on your data?, GDPR, CCPA, PCI, ISO 27001, Trust center.
Every plan
| Plan | Price | Billed yearly | Included | Over the allowance | Where it says so |
|---|---|---|---|---|---|
| Grok Free (app subscription)/month | $0per month | – | – | – | "$0/month" |
| Grok Plus (app subscription)/month | $8per month | – | – | – | "$8/month" |
| Grok Premium (app subscription)/month | $30per month | – | – | – | "$30/month" |
| Grok Teams (app subscription)/user/month | $30per month | – | – | – | "$30+/user/month" |
| Grok Super (app subscription)/month | $100per month | – | – | – | "$100/month" |
| Grok Ultra (app subscription)/month | $200per month | – | – | – | "$200/month" |
| API grok-4.7 inputper 1M input tokens | $2per 1M input tokens | – | – | – | "grok-4.7, the latest flagship, costs $2 per million input tokens and $6 per million output…" |
| API grok-4.7 outputper 1M output tokens | $6per 1M output tokens | – | – | – | "grok-4.7, the latest flagship, costs $2 per million input tokens and $6 per million output…" |
| Voice speech to speechper minute | $0.08per minute | – | – | – | "Speech to Speech$0.08 / min" |
| Voice text to speechper 1M characters | $15per 1M characters | – | – | – | "Text to Speech$15.00 / 1M characters" |
| Voice speech to text (REST)per hour | $0.10per hour | – | – | – | "Speech to Text$0.10 / hr (REST), $0.20 / hr (Streaming)" |
| Voice speech to text (Streaming)per hour | $0.20per hour | – | – | – | "Speech to Text$0.10 / hr (REST), $0.20 / hr (Streaming)" |
| grok-imagine-image-2.0per image | $0.04per image | – | – | – | "from $0.04 / img" |
| grok-imagine-video-1.5per second | $0.08per second | – | – | – | "from $0.08 / sec" |
| Enterprise | Quote | – | – | – | "Talk to our sales team about custom rate limits, dedicated infrastructure, SSO, compliance…" |
xAI API price history
No price changes on xAI API's pricing page since 2026Q2, across 3 archived reads.
From archived copies of the pricing page in the Internet Archive, one per quarter, in USD.
Fine print
- Refunds
- Payments already made are non-refundable, except where required by law "You can cancel your paid subscription at any time; however, payments already made are non-refundable, except where required by law."
- Auto renew
- Paid subscriptions renew automatically until cancelled "For paid subscriptions, we will automatically charge your payment method on each periodic renewal until you cancel."
- Price change notice
- Reasonable notice, new price applies at next renewal "Subject to applicable law, if prices increase, we will provide you with reasonable notice, and the new price will apply at your next renewal, allowing you to cancel your…"
Not stated on the 7 pages we read (homepage, about, pricing, security, changelog, privacy, terms): Billing increment, Billed beyond usage, Contract.
About the company
- Legal name
- SpaceX Super Intelligence LLC
- Address
- 800 W Cesar Chavez St., Austin, TX 78701, USA
- Domain registered
- Dec 16, 2017
- Ships updates
- 38 in the last 12 months Last on Oct 27, 2026, from their changelog
xAI API alternatives
Tools that do the same job (LLM API), wherever they're listed. All 29 xAI API alternatives.
Hugging Face$9 /moFree plan · checked Oct 29, 2026
Mistral AI$14.99 /moFree plan · checked Oct 29, 2026
Azure OpenAI Service$221 /moFree plan · checked Nov 8, 2026
AI/ML API$20 /minimum top upchecked Oct 29, 2026
AI21 Labs$0.20 /1M input tokenschecked Oct 29, 2026
Alibaba QwenFree Free plan · checked Nov 8, 2026Reviews elsewhere
Questions
Is xAI API free?
No free API tier. The Playground comes with every Console account to test models before adding billing, and API usage is billed per token. The Grok app has a Free plan with limited usage. Paid plans start at $8/month.
How much does xAI API cost?
Paid plans start at $8 per month.
Is xAI API HIPAA compliant?
xAI API says a HIPAA BAA is available.
