Official Provider HubSan Francisco, CA, USA
xAI API Pricing & Token Economics
xAI develops the Grok model family (Grok 2 and Grok 2 mini). Built for extreme mathematical reasoning, real-time web awareness, and coding workflows, xAI APIs feature 131k token context windows, standard 50% batch discounts, 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(2 models verified)
All 30 Models →Calculate your monthly xAI bill
Simulate prompt caching hit rates, batch discounts, and output token costs with zero server logging.