# xAI (Grok API)

xAI&#039;s Grok API permits commercial use; API prompts are not used for training by default; Grok Heavy / Premium consumer tiers on X differ in data handling.

xAI provides the Grok model family via API (grok-2, grok-3 etc.). API inputs are not used to train xAI models by default. The consumer Grok experience on X (Twitter) has separate data handling governed by X&#039;s privacy policy.

## Analysis &amp; practical guidance

### The API and Grok-on-X are governed separately

xAI exposes the Grok model family through a developer API. As with OpenAI, the important split is **API versus consumer surface**: on the developer API, inputs and outputs are not used to train xAI models by default. The Grok experience embedded in X (formerly Twitter) is a different context, governed by X&#039;s own privacy policy — do not assume the API&#039;s data posture applies to consumer Grok on X.

### Practical implications

- For application development, the **API tier is the one to use** — clean no-training default, output ownership with the customer.
- xAI is a younger platform than OpenAI or Anthropic; ecosystem tooling, SDK maturity, and region coverage may lag — verify what your stack needs.
- If you also use Grok inside X, treat that as a separate data relationship and review X&#039;s policy independently.

### When to choose it

Choose the xAI API if Grok&#039;s capabilities or its tight integration with real-time X data fit your use case. For the broadest ecosystem and tooling maturity, OpenAI and Anthropic remain the safer defaults.

- slug: `xai`
- type: API / developer platform
- status: active
- official site: https://x.ai
- official docs: https://docs.x.ai

## Rights

| Key | Value | Condition | Source | Checked |
|---|---|---|---|---|
| commercial_use_allowed | yes |  | https://x.ai/legal/terms-of-service | 2026-04-18 |
| output_ownership | yes |  | https://x.ai/legal/terms-of-service | 2026-04-18 |
| training_use_of_input | no | API tier only. Consumer Grok on X is governed separately. | https://x.ai/legal/terms-of-service | 2026-04-18 |

## Constraints

| Key | Value | Condition | Source | Checked |
|---|---|---|---|---|
| api_available | yes |  | https://docs.x.ai | 2026-04-18 |

## Primary sources

- [xAI API Documentation](https://docs.x.ai) — official_docs (primary), Checked: 2026-04-18
- [xAI Terms of Service](https://x.ai/legal/terms-of-service) — official_terms (primary), Checked: 2026-04-18

---
Canonical HTML: https://atlas.lb-product.com/en/entities/xai
