"I want to use AI, but HIPAA." This is a solved problem. Clinics and health-tech teams run AI in production every day using one of the three standard setups below.
[ architecture setups :: hipaa ]
[ hipaa requirements vs. zdr & dpa ]
HIPAA Requirement
How ZDR / DPA Fulfills It (and Where a BAA Is Still Needed)
No unauthorized use or model training on data
Commercial API terms (OpenAI, Anthropic) and OpenRouter ZDR-only routing (§2.4(b)) restrict routing to providers representing "no retention and no training" on API payloads.
Data minimization & no persistent storage
ZDR deletes prompts and outputs promptly after generation (OpenRouter DPA §1.19, §2.4(a); OpenAI/Anthropic ZDR removes the standard 30-day abuse-monitoring log window).
Technical safeguards (encryption, access control)
Covered by DPA security schedules: TLS 1.2+ in transit, AES-256 at rest, MFA, least-privilege access, immutable audit logs, and SOC 2 Type II controls (e.g., OpenRouter DPA Schedule 2).
Breach notification & incident response
DPAs commit to incident investigation and prompt breach notification—for example, within 72 hours under OpenRouter DPA §7 and Schedule 2.
Subprocessor governance
DPAs require written data-protection flow-downs with subprocessors and restrict them to strictly necessary service delivery (OpenRouter DPA §5, Schedule 3).
Signed Business Associate Agreement (BAA)
Not fulfilled by ZDR or a standard DPA alone. OpenRouter's standard DPA (§1.15, §2.6, Schedule 1B) excludes Sensitive Data (including health info) by default. Actual PHI requires a signed BAA (OpenAI API/Healthcare, Anthropic Enterprise/1P API, AWS Bedrock, Google Vertex AI, Azure OpenAI) or local on-prem inference.
[ what is hipaa? ]
HIPAA (the Health Insurance Portability and Accountability Act) regulates how healthcare providers, health plans, and clearinghouses handle Protected Health Information (PHI). Whenever a third-party software vendor receives, processes, or transmits PHI on a clinic's behalf, HIPAA requires a signed Business Associate Agreement (BAA) allocating legal responsibility and security safeguards.
[ why people think "all ai trains on your data" ]
Most confusion comes from mixing up consumer chat apps (ChatGPT Free/Plus, Claude Free/Pro) with commercial APIs. Consumer tiers are not built for regulated data and do not come with BAAs or ZDR. On commercial APIs, there are four distinct concepts:
No training: The provider does not train models on your API inputs or outputs (default on OpenAI API, Anthropic API, and ZDR-routed OpenRouter endpoints).
Zero Data Retention (ZDR): Prompts and outputs are not written to disk or kept in 30-day abuse-monitoring logs after the response finishes. Note: signing a BAA does not automatically turn on ZDR—many BAA endpoints still log for 30 days unless ZDR is also enabled.
BAA: The legal contract required to send actual PHI to an external vendor (45 CFR § 164.502(e)). ZDR does not replace a BAA.
HIPAA de-identification (45 CFR § 164.514): Path C above only counts as non-PHI if you meet HIPAA's legal bar—either Safe Harbor (removing all 18 identifiers, including names, dates other than year, MRNs, and sub-3-digit ZIPs) or Expert Determination. Also, ZDR/BAA only covers the AI inference vendor: your clinic still owns its internal HIPAA obligations (risk analysis, workforce training, EHR access controls, and BAAs with your own hosting/logging tools).
[ openai, anthropic, and openrouter ]
OpenAI & Anthropic: Both offer ZDR on eligible API endpoints (via enterprise/sales approval) and signed BAAs on eligible healthcare/enterprise API tiers (with certain features like web search excluded).
OpenRouter (DPA PDF): Provides a standard DPA with ZDR (§1.19, §2.4(a): inputs/outputs deleted promptly if logging is off) and ZDR-only routing (§2.4(b): routes only to providers representing "no retention and no training"). However, OpenRouter's standard DPA (§2.6, Schedule 1B) excludes Sensitive Data (including health info) unless amended and is not a HIPAA BAA—so use it for de-identified or non-PHI workflows, and use a BAA-covered provider or local model for PHI.
[ fastest same-day route :: aws bedrock ]
Self-serve BAA (~2 minutes): Open AWS Artifact in your AWS console and accept the AWS BAA immediately—no waiting days for baa@openai.com or enterprise sales review.
No training + logging control: Bedrock does not train on your prompts/outputs, and you control invocation logging (keep it off, or route only to your own BAA-covered S3/CloudWatch).
Multi-model under one BAA/DPA: Gives you Claude, Llama, Mistral, Nova, etc. behind one endpoint covered by the AWS BAA (paired with your downstream BAA with the clinic).
Google Cloud Vertex AI also offers a self-serve console BAA, and Azure includes a BAA via Microsoft's Product Terms—whereas direct OpenAI/Anthropic BAAs take a few business days, and OpenRouter/OpenCode don't offer BAAs.
Note: This page is an informational overview, not legal advice. Confirm BAA status, eligible endpoints, and de-identification rules with your compliance officer or legal counsel before sending regulated data to any model.