UPROUTERONLINE

> xAI API

edit
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· 116msbest-effort probe · checked 13h agoupvotes · community
Official free tierFreemiumMedium risk· conf 90%verifiedconnect: Pooled
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 4d ago
PlanTypeMonthlyInput /1MOutput /1MNote
Free tier (source-reported)freeNo 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: 4d agoofficial pricing page

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

// model prices

ModelInput /1MOutput /1MContext
Grok 4.20$1.25$2.502M
// embed_badgebadge · uprouter.online/badge/api-x-ai
<a href="https://uprouter.online/s/api-x-ai" target="_blank" rel="noopener"><img src="https://uprouter.online/badge/api-x-ai.svg" alt="xAI API live status on UPROUTER.ONLINE" height="40"></a>

Paste this into your README, docs or status page. The badge shows the same best-effort probe data as the directory, refreshes automatically, and links back to the full xAI API entry — no tracking, no scripts.

xAI API live status badge preview
// follows site theme
// 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.

$ Can I use xAI API through Uprouter Connect?

Yes — xAI API is Connect-compatible. Add your xAI API API key in Uprouter Connect (encrypted at rest) and route requests to it through one OpenAI- and Claude-compatible API, optionally behind failover aliases. Uprouter meters the traffic in compute at the provider's listed rate.

// 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 →
down · ?msup · 168msup · 178msup · 106msup · 123msup · 178msup · 116ms
85.7%
7-probe uptime
7/30-day charts →

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

CheckedStatusLatency
13h agoup116ms
14h agoup178ms
1d agoup123ms
2d agoup106ms
3d agoup178ms
4d agoup168ms
12d agodown

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

curl https://uprouter.online/api/connect/v1/chat/completions \  -H "Authorization: Bearer upr_live_YOUR_KEY" \  -H "Content-Type: application/json" \  -d '{
    "model": "x-ai/grok-4.20",
    "messages": [{ "role": "user", "content": "Hello via xAI API" }]
  }'

Metered in Uprouter compute — the usage log shows which upstream served each request and its exact cost.

// similar_providersscored by Official free tier signals

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

Uprouter command palette

Jump to a page, provider, model or action

Keyboard shortcuts

Every keyboard shortcut available on Uprouter