Provider

xAI.
7 models.

7 models on Utopixel

Call any xAI model with one Utopixel key, through the OpenAI or Anthropic SDK. Same base_url as every other provider.

base_urlhttps://utopixel.online/api/v1
Models7
From / 1M input$1.00
Max context2M
Latest releaseSep 21, 2026
Start here

xAI. Three ways in.

Picked from the 7 xAI models on Utopixel by release date, price and context length.

Guides: Grok 4.7 API

Quick start

One request. Then any xAI model.

OpenAI-compatible. Swap the model id to switch between xAI models, or to any other lab.

curlREST
curl https://utopixel.online/api/v1/chat/completions \
-H "Authorization: Bearer $UTOPIXEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "x-ai/grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'
FAQ

xAI. Quick answers.

Q1How do I call the xAI API?
Create a Utopixel API key, set the base URL to https://utopixel.online/api/v1 and set model to a xAI id such as x-ai/grok-4.7. Utopixel speaks the OpenAI Chat Completions format and the Anthropic Messages format, so the official SDKs work without code changes.
Q2How much do xAI models cost on Utopixel?
You pay per million tokens from a prepaid balance, with no subscription. Adding credits carries a 5.5% fee (minimum $0.80), shown before you pay. Grok Build 0.1 starts at $1.00 input and $2.00 output per 1M tokens. Every xAI model and its price is listed on this page.
Q3Which xAI model should I use?
Grok 4.7 is the newest. Grok Build 0.1 is the cheapest. Grok 4.20 has the longest context at 2M tokens.
Q4How many xAI models can I use?
7 models, released between Mar 31, 2026 and Sep 21, 2026. All of them use the same key and the same endpoint; switch by changing the model id.

Start building in minutes.

One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.