SpaceXAI

SpaceXAI

US
5 models available

Models served by SpaceXAI

ModelContextInput /MOutput /MCache read /MLatencyThroughput
2M$1.31/M$2.63/M$0.21/M0.6s68 tps
2M$1.31/M$2.63/M$0.21/M14.8s342 tps
1M$1.31/M$2.63/M$0.21/M0.6s103 tps
500k$2.10/M$6.30/M$0.31/M0.7s51 tps
500k$2.10/M$6.30/M$0.53/M0.9s56 tps

Prices are per million tokens and include the 5% provider-selection markup. Availability and pricing refresh continuously; each model page shows the live provider comparison.

Using SpaceXAI via the API

Append :xai to the model ID, set "provider": "xai" in the request body, or send an X-Provider: xai header. Explicit provider selection adds a 5% markup over that provider's base price; the prices in the table above already include it.

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.20:xai",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

See the API documentation for provider preferences, price-aware routing, and error behavior.