API Documentation

Frequently Asked Questions

A collection of questions that most customers find helpful.


xAI doesn't sell tokens or crypto. We are aware of several scam websites using our name and logo.


If you prefer using a defined amount of prepaid credits. You will be charged when you purchase prepaid credits, and those credits will be made available to the team you have selected during your purchase.

If you change your invoiced spending limit to be greater than $0, you will be charged at the end of the month for any extra consumption after your prepaid credit on the team has run out.

Your API consumption will be calculated when making the requests, and the corresponding amount will be deducted from your remaining credits or added to your monthly invoice.

Check out Teams and Billing for more information on the topic.


All of our API requests and responses are encrypted using AES256 in flight and at rest.

The request data will be stored on our server for 30 days for abuse detection purposes. Such data will be automatically deleted after 30 days.

We do not use customer data for model training without notice.


At the moment, the xAI API service is not SOC2 or HIPAA compliant.


Unfortunately, we are not able to offer refunds on any prepaid credit purchase.