xAI Is Now SpaceXAI

EvanZhouDev1 pts0 comments

SpaceXAI

BetaGrok Voice Agent Builder<br>Frontier AI models<br>for everything you buildbuild.<br>Reasoning, code, voice, images, and video. Trained on the world's largest supercluster.

[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:shrink-0 sm:text-md [&>[data-slot=icon]]:sm:size-4.5 gap-x-3 px-5 py-3 [&>[data-slot=icon]]:size-5 bg-[--btn-bg] text-[--btn-text] hover:brightness-90 rounded-full [--btn-bg:theme(colors.primary)] [--btn-border:theme(colors.primary)] [--btn-hover:theme(colors.nimbus)] [--btn-text:theme(colors.background)] group !gap-x-1 [&>[data-slot=icon]]:-mr-1" href="https://console.x.ai">Get API Access<br>[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:shrink-0 sm:text-md [&>[data-slot=icon]]:sm:size-4.5 gap-x-3 px-5 py-3 [&>[data-slot=icon]]:size-5 bg-[--btn-bg] text-[--btn-text] ring-1 ring-[--btn-border] hover:bg-[--btn-hover] rounded-full [--btn-bg:transparent] [--btn-border:theme(colors.primary/15%)] [--btn-hover:theme(colors.primary/5%)] [--btn-text:theme(colors.primary)]" href="https://docs.x.ai">View Documentation

Explain quantum entanglement simply

Two particles become linked — measuring one instantly determines the other, regardless of distance.

Why is the sky blue?

Shorter blue wavelengths scatter more off air molecules than longer red ones.

How do black holes form?

ChatExplore →

projects/main<br>|11.60%|

❯Migrate auth from sessions to JWT.

Thinking...

▸ read_filesrc/middleware/auth.ts68 lines

▸ grep"session" src/4 matches

▸ read_filesrc/lib/jwt.ts42 lines

|Audit auth middlewareexplore<br>[running]

|Design token rotationgeneral<br>[running]

|Find session referencesexplore<br>[done]

◆Thought for 4.1s

◆Editsrc/middleware/auth.ts

42export async function handler(req) {

43 const token = extractBearer(req);

BuildExplore →

ImagineExplore →

VoiceExplore →

For developers<br>One API.<br>Every modality.<br>Text, code, voice, images, and video — all through a single unified API. Start building in seconds.<br>[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:shrink-0 gap-x-3 px-4 py-2 sm:text-sm [&>[data-slot=icon]]:size-5 [&>[data-slot=icon]]:sm:size-4 bg-[--btn-bg] text-[--btn-text] hover:brightness-90 rounded-full [--btn-bg:theme(colors.primary)] [--btn-border:theme(colors.primary)] [--btn-hover:theme(colors.nimbus)] [--btn-text:theme(colors.background)]" href="https://console.x.ai">Get API Key[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:shrink-0 gap-x-3 px-4 py-2 sm:text-sm [&>[data-slot=icon]]:size-5 [&>[data-slot=icon]]:sm:size-4 bg-[--btn-bg] text-[--btn-text] ring-1 ring-[--btn-border] hover:bg-[--btn-hover] rounded-full [--btn-bg:transparent] [--btn-border:theme(colors.primary/15%)] [--btn-hover:theme(colors.primary/5%)] [--btn-text:theme(colors.primary)]" href="https://docs.x.ai">Read Docs<br>1M+<br>API calls per day

Median latency

5+<br>Model families

Copy<br>*]:col-start-1 [&>*]:row-start-1">import os<br>from xai_sdk import Client<br>from xai_sdk.chat import user

client = Client(<br>api_key=os.getenv("XAI_API_KEY")

chat = client.chat.create(model="grok-4.3")<br>chat.append(user("Explain quantum computing"))

response = chat.sample()<br>print(response.content)<br>import OpenAI from "openai";

const client = new OpenAI({<br>apiKey: process.env.XAI_API_KEY,<br>baseURL: "https://api.x.ai/v1",<br>});

const response = await client.chat.completions.create({<br>model: "grok-4.3",<br>messages: [{ role: "user", content: "Explain quantum computing" }],<br>});

console.log(response.choices[0].message.content);<br>curl https://api.x.ai/v1/chat/completions \<br>-H "Authorization: Bearer $XAI_API_KEY" \<br>-H "Content-Type: application/json" \<br>-d '{<br>"model": "grok-4.3",<br>"messages": [<br>{ "role": "user", "content": "Explain quantum computing" }<br>}'

PythonTypeScriptcURL

:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:var(--number-flow-char-height, 1em) !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:calc(var(--number-flow-mask-height, 0.25em) / 2) 0}.symbol{white-space:pre}300300M+<br>queries processed daily

:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:var(--number-flow-char-height, 1em) !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:calc(var(--number-flow-mask-height, 0.25em) / 2) 0}.symbol{white-space:pre}150150K<br>GPUs in

:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:var(--number-flow-char-height, 1em) !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:calc(var(--number-flow-mask-height, 0.25em) / 2) 0}.symbol{white-space:pre}00<br>mission to understand the universe

Latest news<br>All posts

Jul 1, 2026<br>Introducing the Voice Agent Builder

Jun 25, 2026<br>Explore the markets with Interactive Brokers and Grok

Jun 22, 2026<br>Introducing /goal

Jun 18, 2026<br>Grok on Databricks

Choose how to get started<br>Build on your own<br>Launch your AI-powered product with:<br>Access to all Grok models<br>Usage-based...

data slot icon text theme colors

Related Articles