Connect your SpaceXAI API key to Phersa

Phersa runs Grok Imagine Image 2.0 and Grok Imagine Video 1.5 on your own SpaceXAI API key. SpaceXAI, formerly xAI, bills in US dollars, and Phersa adds no markup.

Get your SpaceXAI API key

console.x.ai/team/default/api-keys Open
Prices

SpaceXAI models in Phersa and what they cost

SpaceXAI models in Phersa with the price for each setting
Model Setting Price
Grok Imagine Image 2.0 Up to 3 reference images+$0.01 per reference image 1K · Low $0.04
2K · Low $0.06
1K · Medium $0.06
2K · Medium $0.08
Grok Imagine Video 1.5 1–15 s clipsUp to 3 reference images+$0.01 per reference image 720p · 8 s clip $1.12 ($0.14/s × 8s)
1080p · 8 s clip $2.00 ($0.25/s × 8s)
  • Per-second video prices are shown for an 8-second clip.
Compare

SpaceXAI vs other providers, model by model

Each model's price on SpaceXAI next to the cheapest other providers Phersa supports. Video is priced for an 8-second clip without reference images.

Grok Imagine Image 2.0 on SpaceXAI vs other providers

Grok Imagine Image 2.0 on SpaceXAI and the cheapest other providers, price per image
Provider 1K · Low2K · Low1K · Medium2K · Medium1K
SpaceXAI $0.04Lowest $0.06 $0.06 $0.08 Not offered
Kie Not offered Not offered Not offered Not offered 4 credits $0.02
fal and Atlas Cloud $0.04Lowest $0.06 $0.06 $0.08 Not offered
WaveSpeedAI $0.05 $0.05Lowest $0.05Lowest $0.05Lowest Not offered

SpaceXAI is tied for lowest at 1K · Low. WaveSpeedAI is cheapest at 2K · Low, 1K · Medium and 2K · Medium: $0.05 each, vs $0.06–$0.08 on SpaceXAI. The lowest price overall is 1K on Kie, at $0.02.

Also on Krea, at the same or higher prices.

SpaceXAI, fal, Atlas Cloud and WaveSpeedAI add $0.01 per reference image.

Grok Imagine Video 1.5 on SpaceXAI vs other providers

Grok Imagine Video 1.5 on SpaceXAI and the cheapest other providers, price for an 8-second clip
Provider 720p · 8 s1080p · 8 s
SpaceXAI $1.12 $0.14/s × 8s $2.00 $0.25/s × 8s
Kie 36 creditsLowest 4.5/s × 8s · $0.18 64 creditsLowest 8/s × 8s · $0.32
Atlas Cloud $0.64 $0.08/s × 8s $0.64 $0.08/s × 8s

Kie is cheapest at 720p and 1080p for an 8-second clip: $0.18 and $0.32, vs $1.12 and $2.00 on SpaceXAI.

Also on fal, WaveSpeedAI and Krea, at the same or higher prices.

SpaceXAI adds $0.01 per reference image. Kie lists no 1080p rate for Grok Imagine Video 1.5; the Kie 1080p price shown is its rate for the sibling Grok Imagine model.

Setup

How to connect a SpaceXAI API key to Phersa

phersa.com/spacexai
  1. Step 1: Get a SpaceXAI API key

    Sign in to the SpaceXAI console, open API keys and create a key. It starts with xai-. SpaceXAI bills generations to your team's credits, so add credits in the console too.

    console.x.ai/team/default/api-keys →
  2. Step 2: Add the key in Phersa

    In Phersa, open Settings, go to API keys and choose SpaceXAI. Paste the key and click Save & verify.

  3. Step 3: Let Phersa check it

    Phersa first checks that the key starts with xai-, then tests it with SpaceXAI. A key SpaceXAI rejects is not stored, and saved keys are encrypted.

  4. Step 4: Generate

    In the app, pick a Grok model that runs on SpaceXAI. You see the cost in dollars before you generate, such as $0.04 for a 1K · Low Grok Imagine Image 2.0 image.

MCP server details

  • Provider keys are added in Phersa Settings only. The Phersa MCP server cannot read, add or change them.
  • settings-keys-status shows which providers, including SpaceXAI, are connected.
  • jobs-create defaults to dry_run=true and returns a plan without spending. dry_run=false starts a real generation that spends the user's SpaceXAI credits.
  • Full MCP guide: phersa.com/mcp
On SpaceXAI

What is different about SpaceXAI in Phersa

  • SpaceXAI is the new name for xAI, the maker of Grok. In Phersa it runs only the Grok models: Grok Imagine Image 2.0 and Grok Imagine Video 1.5. For Nano Banana 2, Gemini Omni 1.1 Flash or GPT Image 2.5 Sunburst, connect another provider.
  • SpaceXAI keys start with xai-. Reading the credit balance needs a separate SpaceXAI management key, so Phersa does not show your balance; check it in the SpaceXAI console.
  • Grok Imagine Image 2.0 on SpaceXAI costs $0.04 to $0.08 at 1K or 2K, in Low or Medium quality, plus $0.01 per reference image (up to 3).
  • Grok Imagine Video 1.5 on SpaceXAI costs $0.14 and $0.25 per second at 720p and 1080p, for 1 to 15 second clips, plus $0.01 per reference image (up to 3). With 2 or more reference images it runs at 720p.

SpaceXAI questions

What is SpaceXAI?

SpaceXAI, formerly xAI, is the AI company that makes Grok and the Grok Imagine image and video models. SpaceX acquired xAI in February 2026, and it was renamed SpaceXAI in July 2026. Its API bills in US dollars from prepaid credits.

Visit x.ai ↗

How much does Grok Imagine Image 2.0 cost on SpaceXAI?

On SpaceXAI, Grok Imagine Image 2.0 costs $0.04 at 1K · Low, $0.06 at 2K · Low, $0.06 at 1K · Medium and $0.08 at 2K · Medium, plus $0.01 per reference image.

Is SpaceXAI the same as xAI?

Yes. SpaceXAI is the new name for xAI, the maker of Grok. API keys from the console at console.x.ai still start with xai-, and Phersa connects them under SpaceXAI.

Does Phersa charge extra on top of SpaceXAI?

No. Generations bill to your own SpaceXAI credits at SpaceXAI's published price, and Phersa adds no markup. The Phersa plan is a separate $99 per month.

See Phersa pricing →

Does SpaceXAI have a free tier or free credits?

No official free API credits were listed as of September 2026. SpaceXAI's docs describe prepaid credits and, by arrangement, monthly invoicing; older xAI free-credit offers appear only on third-party sites. Terms can change.

Check SpaceXAI billing docs ↗

Can I use Nano Banana 2 or GPT Image 2.5 Sunburst with a SpaceXAI key?

No. A SpaceXAI key runs Grok Imagine Image 2.0 and Grok Imagine Video 1.5 only. Nano Banana 2 runs on Agent Platform, Google AI Studio, Kie, fal, Atlas Cloud, WaveSpeedAI and Krea; GPT Image 2.5 Sunburst runs on Kie, fal, Atlas Cloud, WaveSpeedAI and Krea.

See Kie, which runs both →

How do I connect my SpaceXAI API key to Phersa?

Create a key at console.x.ai/team/default/api-keys. In Phersa, open Settings, go to API keys, choose SpaceXAI and paste it. Phersa checks the key with SpaceXAI before saving it.

See the setup steps →

Is SpaceXAI cheaper than Kie for Grok Imagine Video 1.5?

No. Kie is cheaper at every setting (Kie vs SpaceXAI): $0.18 vs $1.12 at 720p and $0.32 vs $2.00 at 1080p. Prices are for an 8-second clip.

See Kie prices →

Why doesn't Phersa show my SpaceXAI balance?

SpaceXAI only shares the credit balance with a separate management key, not with the API key you add to Phersa. Check your balance in the SpaceXAI console.

What happens when my SpaceXAI credits run out?

SpaceXAI refuses the job, and Phersa usually shows SpaceXAI's own error message under Generation failed. Add credits in the SpaceXAI console, then generate again.

Is my SpaceXAI API key safe in Phersa?

Phersa tests the key with SpaceXAI before saving it, stores it encrypted and uses it only for generation. AI agents connected over MCP cannot read or change it. Removing the key in Settings deletes it permanently.