Lab API data policyUpdated November 18, 2026

Claude API data retention, explained

Claude API data retention is 30 days by default, and up to 2 years for chats that Anthropic's systems flag.

6 source pages
Prompts kept by default
Within 30 days

Up to 2 years if flagged

RetentionReadNov. 18, 2026
Training on API prompts
Not by default

Feedback you send is an exception

TrainingReadNov. 18, 2026
Keeping nothing takes
A sales request

Covered Models keep 30 days

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

Claude APIStandard retention timeframe
"For Anthropic API users, we automatically delete inputs and outputs on our backend within 30 days of receipt or generation…"

Exceptions cover features you control, zero retention, policy enforcement and the law.

privacy.claude.com
Claude APIUsage Policy violations
"We retain inputs and outputs for up to 2 years…"

Classification scores stay up to 7 years.

privacy.claude.com
Claude APIModel training
"By default, we will not use your inputs or outputs from our commercial products…"
privacy.claude.com
Claude APICommercial Terms, B
"Anthropic may not train models on Customer Content from Services."
anthropic.com
Claude APIZero data retention
"To request ZDR for your organization, contact the Anthropic sales team."
platform.claude.com
Claude APICovered Models
"Prompts submitted to, and outputs generated by, covered models are retained for 30 days to support our safety work, on every platform where these models are offered."

Covered Models are Claude Mythos and Claude Fable 5, 5.1 and 5.2.

privacy.claude.com
Claude APICovered Models, Claude API
"30-day minimum retention by default."

Zero retention excludes them unless Anthropic expressly authorizes it.

support.claude.com

Strengths and shortfalls

Strengths

  • Under zero retention, it stores nothing at rest after responding.
  • Prompt caching is eligible for zero retention.

Shortfalls

  • Zero retention needs a sales request and excludes Covered Models.
  • Batch keeps data 29 days and Files until deleted, even under zero retention.

How to keep prompts out of Anthropic's storage

  1. Ask Anthropic's sales team for zero data retention. Each new organization needs it enabled separately, say the Claude API docs.
  2. Check that the model is not a Covered Model.
  3. Keep sensitive inputs out of Batch and Files.
  4. Skip the Console playground, which is outside zero retention.
  5. Don't rate sensitive outputs, since feedback you submit is an exception to the no-training rule.

Other API policies