Skip to content
Dashboard

Zero Data Retention on AI Gateway

Link to headingTeam-wide Zero Data Retention

Link to headingRequest-level controls

import type { GatewayProviderOptions } from '@ai-sdk/gateway';
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
prompt: 'Analyze this sensitive business data and provide insights.',
providerOptions: {
gateway: {
zeroDataRetention: true,
} satisfies GatewayProviderOptions,
},
});

Link to headingDisallow Prompt Training

import type { GatewayProviderOptions } from '@ai-sdk/gateway';
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
prompt: 'Analyze this proprietary business strategy.',
providerOptions: {
gateway: {
disallowPromptTraining: true,
} satisfies GatewayProviderOptions,
},
});

{
"gateway": {
"routing": {
"planningReasoning": "ZDR requested: 5 attempts → 2 ZDR attempts. ZDR execution order: anthropic(system) → bedrock(system)"
}
}
}