Official Provider HubSan Francisco, CA, USA
xAI API Pricing & Token Economics
xAI develops the Grok model family (Grok 4.6 flagship, Grok 2, and Grok 2 mini). Built for extreme mathematical reasoning, real-time web awareness, and coding workflows, xAI APIs feature 131k to 500k token context windows, a 50% asynchronous batch discount on Grok 4.6, and compatibility with OpenAI SDK specifications.
Prompt Caching Policy
Batch / Asynchronous Rules
Standard API execution rules. Refer to individual endpoint rate limits for asynchronous processing.
Special Billing Conditions
Zero write fees on standard prefix evaluation; automatic cache invalidation.
Active xAI Models(4 models verified)
All 39 Models →Calculate your monthly xAI bill
Simulate prompt caching hit rates, batch discounts, and output token costs with zero server logging.