API Error: 400 data retention mode 'default' is not available for this model
Claude Fable 5 and other Covered Models need 30-day retention; your Bedrock account or project is in default mode. Opt in to the mode the model allows, or pin another model.
Summary
- Anthropic requires 30-day data retention for Claude Fable 5.1, Mythos 5.1, Fable 5 and Mythos 5, wherever they are offered.
- On Bedrock, reports say Fable 5 accepts only the provider_data_share mode, resolved from project, then account, then the model default.
- Changing the whole account's mode broke other models for one user, so prefer a project-level setting and check the region.
- Pinning Opus 4.8 or Sonnet 4.6 avoids the requirement entirely.
On this page
The model needs retention your account has not turned on
API Error: 400 data retention mode 'default' is not available for this model
Anthropic calls Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5 and Claude Mythos 5 Covered Models. Its data retention page says they require 30-day data retention wherever they are offered, are not available under zero data retention unless Anthropic expressly authorizes it, and that on Amazon Bedrock and Google Cloud's Agent Platform the enablement steps are in each platform's own documentation. This message is Bedrock's: the request reached a Covered Model while the account or project was in Bedrock's default retention mode.
What the Bedrock reports say
claude-code issue #66594 shows the error on Claude Code 2.1.170 with CLAUDE_CODE_USE_BEDROCK=1 and global.anthropic.claude-fable-5, failing on any prompt, even hi. Commenters, quoting AWS's documentation, add:
- Each model has a list of allowed retention modes. Fable 5 and Mythos 5 allow only
provider_data_share; Opus 4.8 allows bothdefaultandprovider_data_share. - The effective mode is the first explicit value found on the project, then the account, then the model's default.
- At launch there was no console setting for it; the mode was set through Bedrock's data retention API.
- AWS can approve zero data retention for Fable per account, which adds
noneto the allowed modes.
Turn on the mode in the scope you need, following Bedrock's data retention documentation. Two cautions from the thread: one user who switched the whole account to provider_data_share then saw other models on bedrock-runtime return 500 errors, and another commenter suspected a region mismatch or a delay in the change taking effect. Set it per project where you can, in the same region Claude Code calls, and retry one request before rolling it out. If your organization uses Bedrock to keep data under a zero-retention or compliance arrangement, settle that with whoever owns it before opting in, since the mode exists to retain data.
Or use a model without the requirement
If you do not need Fable, pin models that work under the default mode. The thread suggests:
export ANTHROPIC_DEFAULT_OPUS_MODEL='us.anthropic.claude-opus-4-8'
export ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'
Then pick the model with /model. Check the IDs against the models your Bedrock account lists before you rely on them.
The same requirement on the Claude API
Direct API calls to Claude Fable 5 from an organization without the required retention fail with a different message:
In order to access this model, your organization or workspace must have data retention enabled.
Organizations with zero data retention can enable it for one workspace: in the Claude Console open platform.claude.com/settings/privacy, pick a workspace other than the Default Workspace (which follows the organization setting), choose Standard data retention, save and accept the terms. Requests from that workspace then reach Covered Models; the rest keep zero retention.
Claude models served through Google Cloud have their own setup, covered in Claude models on Google Cloud. Another Bedrock-specific 400 is invalid beta flag, and the rest are on our Claude Code API Error 400 page.