Skip to content

> xAI API

api.x.ai

xAI (founded by Elon Musk) offers the official API for the Grok series of LLMs. Known for leading benchmarks in coding and reasoning, the Grok-4.6 flagship model is available via an OpenAI-compatible API, featuring low-latency inference and high agentic tool-calling capabilities.

up· 115msbest-effort probe · checked 15h ago
Official free tier API keyFreemiumMedium risk· conf 90%verified
Free credits
$25.00est.
No permanent free tier; ~$25 promo credit on signup (30-day expiry, varies by region/promotion). $150/mo data-sharing credits still listed by 2026 guides despite mid-2025 end reports — rely on what the console shows.
Cheapest input /1M
$1.25
USD per 1M input tokens, best tracked model
Cheapest output /1M
$2.50
USD per 1M output tokens, best tracked model
Models tracked
1
Canonical models with normalized pricing
// source_analysisthird-party review via freeairouter.com

// pros

  • A top-tier legitimate vendor (xAI); api.x.ai is the official endpoint, OpenAI-compatible and easy to integrate, with no stolen-upstream-key risk
  • Grok models are strong overall and in the frontier tier
  • New users get a one-time trial credit for low-cost evaluation, with no long-term commitment during the free phase
  • Official billing and docs are transparent, with good enterprise controllability

// cons

  • No long-term free tier; the trial credit is small, expires in ~30 days and does not carry over
  • The '$150/month data-sharing credit' is reported to have been changed/ended, and required first spending $5 plus consenting to use your requests for model training, non-revocable once enabled at team level
  • The many '$150/$175 free' guides online are mostly outdated and may be defunct — do not trust them blindly
  • Production use is pay-as-you-go and can be costly

Suitable for developers who want a short-term evaluation of Grok using the new-user trial credit; do not treat it as a long-term free source. Always rely on the credits and terms shown in your xAI Console now, and do not trust third-party '$150/$175 permanently free' guides. If you consider the data-sharing program for credits, note it uses your requests to train models and is non-revocable; never enable it for sensitive/regulated data.

community_reputation

xAI is a top-tier vendor with a clear corporate entity, and api.x.ai is its official Grok API endpoint, free of relay-style key theft or exit-scam risk, with solid technical reputation. But the 'free' part is highly unstable: the early $25/month and later $150/month data-sharing credits have changed repeatedly, and the community and multiple guide sites note these free programs were adjusted or ended around mid-2025, with data sharing costing you model-training use of your requests and being non-revocable at team level. The high free-credit figures circulating online are mostly stale — rely on what your Console actually shows.

imported analysis — independent third party, not Uprouter editorial · verify before relying on it

// free_quota
$25.00estimated value

How we estimated this: the free allowance is converted to a dollar value using the provider’s own pay-as-you-go rates for the models a typical developer would reach for. When the allowance is metered in requests, tokens or minutes rather than dollars, we assume median usage of the cheapest capable model. Because assumptions are involved, the figure carries the est. flag — treat it as an order of magnitude, not a quote.

note: No permanent free tier; ~$25 promo credit on signup (30-day expiry, varies by region/promotion). $150/mo data-sharing credits still listed by 2026 guides despite mid-2025 end reports — rely on what the console shows.

// pricinglast verified Sep 6, 2026
PlanTypeMonthlyInput /1MOutput /1MNote
Free tier (source-reported)free———No permanent free tier. New accounts typically get ~$25 in promotional trial credit (varies by promotion/region/verification, expires in ~30 days and does not carry over). A historical 'data sharing program' once gave $150/month but required first spending $5, opting in to use your API requests for model training, and was non-revocable once enabled at team level; that $150 program is reported to have been changed/ended around May 2025 — rely on what your xAI Console actually shows now.
Monthly Free Creditsfree———$25/month in free API credits for testing and development.
Grok-4.6 (PAYG)payg—$2.00$6.00Flagship model rate.
Grok-4.3 (PAYG)payg—$1.25$2.50Mid-tier model rate.
pricing_last_verified: Sep 6, 2026official pricing page

Pricing normalized from public sources — always verify with the provider.

// model prices

ModelInput /1MOutput /1MContext
Grok 4.20$1.25$2.502M
// faq
$ Does xAI API have a free tier?

Yes — xAI API offers a free tier that we value at roughly $25.00 in free credits (estimate — derived from rate-limited usage at pay-as-you-go prices). Always confirm current limits on xAI API's official pricing page — free tiers change without notice.

$ How much does xAI API cost per 1M tokens?

The cheapest model we track at xAI API is $1.25 per 1M input tokens and $2.50 per 1M output tokens. This is normalized from xAI API's published pricing — verify with the provider before purchasing, since prices change frequently.

$ Is xAI API safe to use?

Uprouter rates xAI API as medium risk. Rated medium risk. an official provider with a free tier with only partial transparency: some model coverage or pricing is confirmed, while other figures rest on third-party reports or a login-gated console. Risk ratings are editorial, evidence-based, and never influenced by affiliate relationships.

// community0 reviews

Raw community sentiment, shown unblended. Votes never feed into objective data fields like price, risk, or status — and never into sort order.

No published reviews yet — be the first.

// more_informationprice history · live status · risk & confidence · code snippets

price_history

No recorded changes yet.

live_status

full history →
up · 113msup · 152msup · 105msup · 122msup · 159msup · 107msup · 170msup · 169msup · 129msup · 162msup · 167msup · 151msup · 224msup · 174msup · 173msup · 172msup · 189msup · 180msup · 185msup · 154msup · 169msup · 184msup · 237msup · 175msup · 177msup · 100msup · 186msup · 170msup · 118msup · 115ms
100%
30-probe uptime
7/30-day charts →

best-effort probes · not a guarantee · last 15h ago

CheckedStatusLatency
15h agoup115ms
1d agoup118ms
3d agoup170ms
4d agoup186ms
6d agoup100ms
7d agoup177ms
9d agoup175ms
10d agoup237ms
12d agoup184ms
13d agoup169ms
14d agoup154ms
15d agoup185ms
15d agoup180ms
16d agoup189ms
17d agoup172ms
18d agoup173ms
18d agoup174ms
19d agoup224ms
20d agoup151ms
21d agoup167ms
21d agoup162ms
22d agoup129ms
23d agoup169ms
24d agoup170ms
25d agoup107ms
26d agoup159ms
26d agoup122ms
27d agoup105ms
28d agoup152ms
29d agoup113ms

Uprouter runs its own probes; best-effort, not a guarantee. Probe results depend on our network location and cadence — for production, always use the provider’s own status page.

risk_&_confidence

Medium risk
90%

Rated medium risk. an official provider with a free tier with only partial transparency: some model coverage or pricing is confirmed, while other figures rest on third-party reports or a login-gated console.

Confidence reflects how much verifiable evidence (official docs, probe history, community reports) backs this entry. Risk is our editorial assessment of operator reliability and terms — not financial advice.

code_snippets

# xAI API's own API — get a key from their dashboard
curl https://YOUR-PROVIDER-ENDPOINT/chat/completions \
  -H "Authorization: Bearer THEIR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.20",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'

Direct to the provider — Uprouter receives nothing; verify their current pricing before purchasing.

// similar_providersscored by Official free tier signals

Ranked by neutral similarity signals only — live status, free-tier shape and free-credit proximity. Commercial relationships never influence this list.