Fan-out: waitlists, Azure, leftover free tiers.
Apply in order#
- Open the xAI console and create a team / org.
- Attach payment; usage is per million tokens.
- Create an API key once, store it in a vault.
- Export XAI_API_KEY locally; never commit it.
How the compatibility layer points#
Official guidance covers OpenAI and Anthropic SDKs. Migration is usually a key, a Base URL, and grok-4.6 or grok-4.3. Streaming and tools still work. Azure Foundry is a different bill—do not mix keys.
Limits and refusals#
New accounts start slow and rise with spend. Back off on 429; a sibling key in the same org will not help. Console refusals are usually billing or region policy, not “another email.”
Takeaways#
- Console key; API ≠ Premium.
- Base URL stays api.x.ai/v1.
- Cloud-marketplace deploys use their own console.