xAI models Call them through one OpenAI-compatible API, billed at base per-token rates.
Last updated June 5, 2026
Per 1M tokens, billed from your credit balance — no markup on usage. Prices load live from our catalogue.
| Model | Provider | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Grok 4.20 | xAI | 2M | $1.25 | $2.50 |
| Grok 4.3 | xAI | 1M | $1.25 | $2.50 |
Keep the OpenAI SDK; set base_url to Zylo and pick a xAI model id.
from openai import OpenAI
client = OpenAI(api_key="ZYLO_KEY", base_url="https://api.zyloai.net/v1")
response = client.chat.completions.create(
model="grok-4.20",
messages=[{"role": "user", "content": "Hello from Zylo!"}],
)
print(response.choices[0].message.content)
Zylo currently offers 2 xAI text models, including Grok 4.20, Grok 4.3. See the table above for live per-1M-token pricing.
Each xAI model is billed at its base per-token rate, deducted from prepaid credits — no markup on usage. Zylo's 25% platform fee applies only when you add credits.
Yes. Point any OpenAI SDK at https://api.zyloai.net/v1, use your Zylo key, and set the model id (e.g. grok-4.20).
Free API key, OpenAI-compatible, local payments.
Get free API key