Which xAI models does AIgateway support?
AIgateway routes 19 xAI models including Grok 4.5. Full catalog with pricing and context windows is in the sections above.
How do I call a xAI model from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to the xAI slug (e.g. "xai/grok-4.5"). Request and response shapes are identical to OpenAI.
How much do xAI models cost on AIgateway?
Pass-through xAI pricing. No seat fees, no minimum beyond the $5 top-up floor.
Can I bring my own xAI API key (BYOK)?
Yes. Attach your xAI key in the AIgateway dashboard. Calls to xAI models flip to pass-through and AIgateway adds no platform fee on those calls.
Where is xAI based?
xAI is headquartered in Palo Alto, CA.
Is there free credit?
A payment method is required to call the API — adding a card is free and never charges you, and grants $1 in credit across a curated trial catalog led by GLM-5.2. The $1 expires 30 days after you add the card. Paid xAI models require a $5 minimum credit top-up.