Lab API data policyUpdated November 18, 2026

OpenAI API data retention, explained

OpenAI API data retention is up to 30 days by default, in abuse-monitoring logs of all API usage.

1 source page
Prompts kept by default
Up to 30 days

Abuse-monitoring logs

RetentionReadNov. 18, 2026
Training on API prompts
Not unless you opt in
TrainingReadNov. 18, 2026
Keeping nothing takes
Prior approval

Plus additional requirements

Zero retentionReadNov. 18, 2026
Rank
#6of 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

OpenAI APIAbuse monitoring
"By default, abuse monitoring logs are generated for all API feature usage and retained for up to 30 days, unless longer retention is required by law…"

OpenAI can also keep logs longer when it judges that reasonably necessary to prevent harm.

developers.openai.com
OpenAI APIYour data
"As of March 1, 2023, data sent to the OpenAI API is not used to train or improve OpenAI models…"
developers.openai.com
OpenAI APIZero Data Retention
"Currently, these controls are subject to prior approval by OpenAI and acceptance of additional requirements."

"These controls" are Zero Data Retention and Modified Abuse Monitoring.

developers.openai.com
OpenAI API/v1/responses
"Except as noted below, the Responses API has a 30 day Application State retention period by default…"
developers.openai.com
OpenAI APIAssistants objects
"Objects that are not deleted via the API or dashboard are retained indefinitely."
developers.openai.com
OpenAI APIImage and file inputs
"If the classifier detects potential CSAM content, the image will be retained for manual review…"

This holds even under Zero Data Retention.

developers.openai.com

Strengths and shortfalls

Strengths

  • Approved customers can get Zero Data Retention.
  • It has regional endpoints for the US and Europe.

Shortfalls

  • Zero retention needs prior approval and extra requirements.
  • Files, batches, fine-tuning, assistants, threads and vector stores are not eligible for it.

How to keep prompts out of OpenAI's storage

  1. Send store: false on Responses and Chat Completions requests, so OpenAI keeps no application state for 30 days.
  2. Keep sensitive work off stateful endpoints, which keep data until you delete it.
  3. Delete uploaded files, or set an expiry with expires_after.
  4. Ask OpenAI's sales team for Zero Data Retention.
  5. Or use an API that keeps nothing by default. The switching guide shows the two-line change.

Approved customers can also use Private Safety Processing, which writes safety records to their own storage with a 30-day expiry.

Other API policies