Lab API data policyUpdated November 18, 2026

xAI API data retention, explained

xAI API data retention is 30 days by default for all requests and responses, kept in case of suspected abuse.

2 source pages
Prompts kept by default
30 days

Abuse and misuse audits

RetentionReadNov. 18, 2026
Training on API prompts
Not without permission
TrainingReadNov. 18, 2026
Keeping nothing takes
A console setting

Team-wide, not yet on for every team

Zero retentionReadNov. 18, 2026
Rank
#5of 10

See the ranking

RankingReadNov. 18, 2026

On the timeline

Default retention of API prompts and outputs
Not storedKept by defaultKept longer if flagged
Silk ComputeOpen-weight models
Zero data retention
abliteration.aiOpen-weight models
Never stored by default
FeatherlessOpen-weight models
Not logged
Unfil.AIOpen-weight models
Up to 24 hours
xAI APIGrok models
30 days
OpenAI APIGPT models
Up to 30 days
Claude APIClaude models
Within 30 daysUp to 2 years if flagged2 years if flagged
MorphOpen-weight models
Up to 30 days
Gemini APIGemini models
55 days
Mistral APIMistral models
No period published
Log scale, read November 18, 2026.
PRIVATE AI APICC-BYSources for every bar

What the policy says

xAI APISecurity FAQ
"By default, all API requests and responses are stored on our servers (encrypted at rest) for 30 days for auditing purposes in the event of suspected abuse or misuse."
docs.x.ai
xAI APISecurity FAQ
"SpaceXSI never trains on your API inputs or outputs without your explicit permission."

xAI's API docs now name the company SpaceXSI.

docs.x.ai
xAI APIHow to enable ZDR
"Team admins can enable or disable ZDR from the Console"
docs.x.ai
xAI APIWhat is Zero Data Retention
"For most customers, we do not recommend enabling ZDR."

Turning it on disables stored responses, Files, Collections, Batch and deferred completions.

docs.x.ai
xAI APICreating a new model response
"The responses will be stored for 30 days, after which they will be removed."
docs.x.ai

Strengths and shortfalls

Strengths

  • Zero retention is a console setting, not a sales process.
  • A US-only endpoint keeps retained data in the United States.

Shortfalls

  • Zero retention covers the whole team and turns off stateful features.
  • Stored responses are on by default.

How to keep prompts out of xAI's storage

  1. Send store: false on every request, so xAI keeps no responses for 30 days.
  2. As a team admin, turn on zero data retention in Team Settings, which has no per-key option.
  3. Use the US endpoint if retained data must stay in the United States. It costs 10% more, says the xAI security FAQ.

Other API policies