AI Compare Ninja AI Compare Ninja

Compare AI tools. Use prompts and skills.

Language
EN

xAI API Prices, limits and access

xAI's developer API for Grok models (text, coding, image/video), billed usage-based per token.

Free accessFree plan
Paid fromxAI APIAPI access to Grok 4.7, Grok 4.6, 4.3, and Grok Build (coding)

Visit site (opens in a new tab)

At a Glance

xAI API is an AI tool for Agent & RAG frameworks (category: Development & Code). Free access: Free plan. Documented: 1 plan with prices and limits.

Category
Agent & RAG frameworks
Paid from
$2 / $6 / Custom (xAI API)
Free Option
Free plan
Plans
1
Sources
6 verified sources

Category: Development & Code · Agent & RAG frameworks

Features

xAI exposes Grok 4 and Grok 3 through an OpenAI-compatible REST API; Grok 4 Mini and Grok 3 Mini are smaller variants at lower prices. The API provides streaming, function calling, image understanding, and image generation via Aurora.

Billing is per token; a public pricing table at x.ai/api lists all current models. $5 credit per month is included in the free tier. Real-time web search and X platform search are directly integrated into model calls.

Prices and plans

US dollar prices only

TierPricePeriodWhat you get
xAI API$2 / $6CustomAPI access to Grok 4.7, Grok 4.6, 4.3, and Grok Build (coding)
Grok 4.7 matches 4.6: $2 / $6 below 200k, $4 / $12 at 200k+; cached $0.50 / $1.00. Fast variant is not on the public API.
Voice API: Grok Voice 3.0 speech-to-speech $0.08/min ($4.80/hr) plus $0.004 per text input; speech-to-text $0.10/hr (REST) or $0.20/hr (streaming); text-to-speech $15.00 per 1M characters.

Prices as stated by the provider, usually plus statutory VAT. The final price depends on your country and is shown by the provider.

Prices last checked: 2026-10-23

What does xAI API cost?

API for developers

Example: 1,000 requests a month with about 1,000 input tokens and 500 output tokens each cost about 5 USD with Grok 4.7.

List price according to docs.x.ai, checked 2026-09-23, before tax. 1,000 tokens are about 750 words.

Calculate it yourself

Open the API calculator as its own page

Limits

How we compare

We compare free access, paid entry, plan limits, features and the listed official sources. Unsourced figures stay marked as not published.

Only confirmed entries appear in the catalog. Prices, plans and limits come from listed official vendor pages. Missing figures stay marked as not published. Search results are ordered by Task match by default; category and task lists are alphabetical. Both can be switched to Free access first; neither is a quality ranking. The vendor page always wins.

Edited and checked by the AI Compare Ninja team

Sources

All details regarding plans, limits, and features are based on official vendor documentation and the primary sources verified below.

  • docs.x.ai/docs/pricing
  • x.ai/api
  • docs.x.ai/developers/pricing
  • docs.x.ai/docs/models
  • x.ai/news/grok-4-7
  • x.ai/news/grok-voice-3

FAQ

Is xAI API available for free?

Yes. A permanently free plan is published, not a time-limited trial.

Where is the vendor of xAI API based?

xAI is based in the USA. Regardless of that location, data processing and privacy terms are governed by the vendor's own contract.

What is “xAI” on my bank or card statement?

According to our catalog data, xAI is the company behind xAI API, so a charge under this name may come from a subscription or purchase at xAI API. The exact wording on a bank or card statement is set by the vendor and its payment provider; it can differ and is not recorded here. The invoices in your xAI API account help to match the charge; for an unknown charge, contact your bank.

What plans does xAI API offer?

The catalog documents one plan with price, billing period, and included features.

Is xAI API currently available?

xAI API is active.

Spotted an outdated figure? Vendor pages change without notice. Report an error

xAI API and related names are trademarks or identifiers of their respective owners (xAI). They are named solely for descriptive purposes in an independent comparison. AI Compare Ninja has no business relationship, partnership or affiliation with xAI.