Compliance Guide

Zero Data Retention vs. Business Associate Agreement for LLM APIs

Zero data retention (ZDR) and a Business Associate Agreement (BAA) are complementary controls, not substitutes. ZDR is a technical and contractual data-handling commitment that limits what a vendor keeps. A BAA is a legal instrument that allocates HIPAA obligations between you and the vendor. ZDR does not replace a BAA when prompts or outputs may contain protected health information (PHI), and neither control removes your need to govern what reaches the endpoint.

What each control does and does not do

ZDR is a data-handling mechanism, while a BAA is a legal accountability mechanism. The table below summarizes how the two differ.

ZDR compared with a BAA
AspectZero data retention (ZDR)Business Associate Agreement (BAA)
Type of controlData-handling mechanismLegal accountability mechanism
What it describesWhat a vendor will and will not keep after processing a request.How a vendor may use PHI, which safeguards it must apply, how it must report incidents, and what happens to the data when the relationship ends.
Where its value liesReduces the amount of regulated data that exists outside your environment, which narrows exposure if the vendor is breached or compelled to disclose records.Assigns HIPAA obligations to the vendor in writing.

When a BAA is needed regardless of retention settings

Treating ZDR as a stand-in for a BAA confuses a retention setting with a statement of legal responsibility. A vendor can retain nothing and still have processed PHI on your behalf. A vendor can also sign a BAA and still retain data for defined purposes.

Each control answers a different question, so a compliance program needs both answers.

Gaps ZDR can leave open in LLM API data flows

A retention commitment covers only part of the path a request takes. The table below follows a request through each stage and shows where each control applies, and where scope should be confirmed in writing.

LLM API request lifecycle: where each control applies
StageWhat to know
IngressPrompt and payload content leaves your environment. Runtime inspection and endpoint allow-listing apply here.
ProcessingThe vendor handles data in transit and in memory. A BAA addresses this handling even if nothing is retained.
LoggingAbuse-monitoring and operational logs may fall outside a ZDR commitment. Confirm scope in writing.
StorageCaches, fine-tuning data, and stored outputs need separate confirmation of coverage.
Downstream tool callsTools and agent integrations can send data to third parties that no vendor commitment covers.

Runtime controls that work independently of vendor commitments

Vendor commitments describe what the vendor does after data arrives. They do not control what your applications and agents send. Enforcement at the gateway or runtime layer addresses that side of the boundary and produces evidence that your policy was followed.

Useful controls include:

  • Inspection of prompts and payloads for PHI before they leave your environment.
  • Allow-listing of approved endpoints, so regulated data cannot reach an unapproved model or an endpoint outside the agreed scope.
  • Restrictions on which tools an agent may call.
  • Audit logging of requests, policy decisions, and blocked attempts.

Logs should record the decision and metadata without creating a new unmanaged store of PHI.

Checklist before sending regulated data to an LLM API

  • Contract: obtain a signed BAA that names the specific services and endpoints you will use, and confirm any exclusions.
  • Retention: obtain written ZDR terms and confirm eligibility conditions, endpoint scope, and feature exclusions.
  • Data flows: confirm treatment of abuse-monitoring logs, caching, fine-tuning data, and stored outputs.
  • Configuration: verify that ZDR and related settings are active on the account and endpoint in production, and re-check after vendor changes.
  • Runtime enforcement: inspect payloads for PHI, allow-list approved endpoints, and restrict agent tool calls.
  • Evidence: retain audit logs of requests, policy decisions, and vendor documentation versions for review.

Evidence your PHI controls at runtime

See how runtime policy enforcement and audit logging can support the controls in this guide, alongside your vendor agreements.

Request a Demo