Show off your agentic readiness — the badge auto-updates when your score changes.
llms.txt Content
===/overview===
# Welcome to xAI Documentation
## Get started
## Quick start with the API
===/console/billing===
#### Key Information
# Manage Billing
**Ensure you are in the desired team before changing billing information. Changes made to a team will affect all users in that team.**
There are two billing options:
* **Prepaid credits:** Pre-purchase credits for your team. API consumption will be deducted from this credit balance.
* **Monthly invoiced billing:** Receive an invoice for your API consumption at the end of the month. If you don't have sufficient prepaid credits, your default payment method will be charged.
**Monthly invoiced billing is disabled by default.** To request this, contact sales@x.ai, or use the contact link on the [Billing](https://console.x.ai/team/default/billing) page:
## Prepaid credits
This is the most common way to use the API, and allows you to control spending by purchasing credits in advance. Your usage can then be monitored on the [Usage explorer](https://console.x.ai/team/default/usage) page.
Purchase credits via [Billing -> API spend management](https://console.x.ai/team/default/billing).
From here you can also view your credit balance, and use a promo code if you have one.
Note: When you make the purchase via bank transfer instead of credit card, the payment will take 2-3 business days to process. You will be granted credits after the process has completed.
Currently you can only purchase prepaid credits via Guest Checkout due to regulatory requirements.
### Auto top-up
Auto top-ups automatically purchase more API credits when your balance drops below a set threshold.
We recommend enabling this to avoid service interruptions. This can be disabled at any time.
You can configure:
* The **credit balance** your team needs to drop to in order to trigger a top-up.
* The **top-up amount** of credits that will be purchased (minimum $25).
* The **maximum total value** of top-ups that are allowed per **month**.
There
OpenAPI Spec (preview)
{"openapi":"3.1.0","info":{"title":"xAI's REST API","description":"REST API for xAI compatible with other providers.","license":{"name":""},"version":"1.0.0"},"paths":{"/v1/api-key":{"get":{"tags":["v1"],"summary":"Get information about an API key, including name, status, permissions and users who created or modified this key.","operationId":"handle_get_api_key_info_request","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}