HIPAA Model Index HIPAA LLM APIs

HIPAA Gateway Requirements for AI Teams Who Are Business Associates Not Covered Entities

Tariq Osei-Mensah

Published
November 6, 2026
Reading time
8 min read

A HIPAA-compliant AI gateway for teams handling PHI must enforce a complete BAA chain, approved endpoint routing, PHI redaction, audit controls, and provider-specific retention settings. For business associates, these controls are obligations to implement and demonstrate. A gateway makes them enforceable across applications, but no product makes a deployment compliant out of the box.

Why AI teams who are business associates face a different compliance problem than covered entities

Most guides to HIPAA compliance start with health care providers, health plans, and health care clearinghouses. That is the wrong starting point for an AI-native startup asked to “make this HIPAA compliant.” A covered entity owns the patient relationship and the primary compliance obligation. A business associate creates, receives, maintains, or transmits protected health information for that entity. Routing patient data through an LLM for a health care customer can put an AI platform in the latter category even when it never bills a patient or files a claim.

A BA must sign an agreement with the covered entity engaging it and obtain agreements covering the downstream subprocessors handling PHI. Sending PHI to a vendor without a BAA is itself a violation, regardless of whether downstream misuse occurs. The technical lead therefore needs a map of contractual and data-processing relationships.

What the BA-specific obligation stack actually contains

The BA owns its administrative, technical, and contractual controls. The operational stack includes a signed BAA with the AI provider, audit logging for PHI-touching requests, encryption of logs and persisted data at rest and in transit, and access controls. It also includes evidence that these controls operate. Configuration alone is not that evidence, because an auditor tests how the deployed system behaves. HIPAA does not certify products, so the BA still has to put the vendor’s tools to work and oversee how they are used.

The proposed 2026 HIPAA Security Rule update would make encryption of ePHI required rather than addressable, but the rule is not final. OMB targets July 2027 for final action. The implementation specifications described for the AI pipeline are AES-256 at rest and TLS 1.2 or higher in transit. The proposal would also require a written inventory of technology assets, including AI systems, that create, receive, maintain, or transmit ePHI.

The minimum necessary standard under 45 CFR §164.502(b) constrains what enters those systems. When a model task needs three fields, that is no reason to send the whole patient record. Broad FHIR API scopes and persistent conversation memory are particular failure modes because they can expose more information than the task needs. This data-selection obligation applies even to an authorized application, which can still send an unnecessarily broad request.

The BAA chain and why signing one agreement does not close the loop

The customer’s BAA does not automatically cover the vendor stack. The downstream chain includes the model provider, cloud host, inference endpoint, vector database, observability service, and logging service wherever they handle PHI. Each introduces a contractual dependency for the primary BA. An uncovered logging service can therefore leave the chain incomplete even when the model provider is covered. The relevant boundary follows PHI across the team’s vendor stack, including the service it considers its main AI vendor.

As of 2026, OpenAI offers BAAs for its API platform and Enterprise tier, with zero-data-retention or Modified Retention configured at the account or organization level. Anthropic offers a direct API path and access through AWS Bedrock and Google Vertex AI under their respective cloud BAAs. Bedrock uses the existing AWS healthcare BAA for hosted foundation models, including Claude variants, Llama, and Mistral variants. Azure OpenAI falls under Microsoft’s healthcare BAA, while Vertex AI falls under Google Cloud’s healthcare BAA. Product scope remains decisive in each case.

For teams already on AWS or GCP, the cloud-marketplace path can avoid separate model-provider contracting. Standard ChatGPT and consumer Gemini are excluded even when other products from the same companies have BAA coverage. The team must check that the agreement covers the product and see which uses it allows. Training, product improvement, benchmarking, and aggregate analytics using PHI or de-identified derivatives must be explicitly prohibited.

Why PHI must be intercepted at a single gateway chokepoint, not in each application

If each application implements its own PHI controls, the team must maintain and demonstrate the same protections across separate code paths. An inference gateway consolidates that work into one chokepoint. Its BAA-covered endpoint allowlist restricts requests to registered, covered model endpoints, while PHI and PII redaction reduces what reaches the provider. The allowlist controls destination, and redaction controls content.

That distinction prevents redaction from becoming a substitute for contractual coverage. The gateway must also apply supported zero-data-retention headers and strip logging metadata that would otherwise leak PHI into observability tools. Each inference generates an audit record containing model identity and version, prompt and output fingerprints, user identity, timestamp, and the access decision. These records provide a common evidence trail. Individual application teams no longer have to build the same audit mechanism independently.

Access enforcement belongs at the same boundary because developers and applications need different model permissions. Gateway RBAC can set different rules for development and production without relying on each developer to follow them. Corporate identity integration then connects access to the organization’s identity lifecycle. This reduces duplicated control code and gives auditors one enforcement surface to examine.

Audit logging requirements specific to AI usage, and what most implementations get wrong

AI audit records must show how PHI was used as well as which requests succeeded. They need timestamps, user or system identities, the model called, PHI-presence status, and the response record. The records must cover access to PHI, model inference that uses PHI, and model output shown to a user. Request metadata alone leaves a material gap. The records must be immutable and kept under a plan that meets the six-year requirement described under §164.316(b)(2)(i), even if they are also used for debugging.

Logs can also become a second PHI store. A prompt that contains PHI still contains PHI when copied into an observability platform, so that platform needs the right storage protections, access controls, and BAA coverage. Logging is part of the subprocessor chain. A documented PHI flow map must therefore show where information enters, how it is transformed, what reaches the model, what returns, and where the response lands. That map exposes stores that a model-only architecture review would miss.

Zero data retention and what it means operationally

Zero data retention must be set up at every endpoint where it is needed. It is not a universal per-request switch, and a BAA does not remove the need to check provider-specific settings. OpenAI’s zero-data-retention configuration, for example, is a one-time organization- or project-level account setting. Other supported endpoints can receive the appropriate headers from the gateway.

Provider retention is only one part of the problem. PHI can also persist in provider-side prompt caches, embedding vectors in RAG indexes, fine-tuning corpora, conversation memory in agent frameworks, and audit logs. Each surface needs an explicit retention and deletion policy. A provider’s ZDR setting does not govern an application’s conversation memory or its vector database. Even when the provider keeps no data, the team must still keep the required audit evidence.

The practical consequence is a deletion-request path that reaches beyond the primary data store. Embeddings and fine-tuning corpora must be included when PHI was used to build them, rather than left outside the process because they are derived artifacts. Audit records also need deliberate treatment under their retention obligations. Otherwise, a patient deletion request can look complete while PHI is still elsewhere in the AI stack.

How fallbacks and multi-provider routing must be constrained in a BA context

Reliability routing changes the recipient of a PHI-bearing request, making failover a compliance concern. A fallback mechanism may try successive providers after a timeout or retryable errors such as 429, 500, 502, 503, or 504. Every endpoint in that chain must have BAA coverage. A compliant primary endpoint does not protect a request that an outage sends to an uncovered destination.

The gateway must use the allowlist to refuse uncovered endpoints even when a developer includes one in a fallback chain. Covered destinations must also meet the rules for retention and access that apply to normal traffic. Every routing decision needs an audit record that shows which provider handled the request.

Routing changes also affect cost attribution across teams and projects. When requests move between providers, the cost record for each request must still point to the right consumer. Gateway-level spend visibility keeps that attribution attached to usage during failover. This supports operational accountability without treating a provider switch as a new, untracked request path.

Access controls and identity management for teams where multiple developers touch PHI-handling routes

Shared or hardcoded API keys obscure who used a PHI-handling route. As a team adds projects and environments, that ambiguity makes minimum necessary access harder to enforce and harder to demonstrate. Credentials should be scoped per consumer, including team, project, and environment, with spend and usage attribution attached. The audit trail must show which credential was used to make each request. Scoping gives the record a meaningful relationship to the team’s access model.

Developers and internal applications should authenticate through corporate identity providers such as Okta or Microsoft Entra ID using OAuth 2.0 or OIDC. SCIM 2.0 connects employee offboarding to immediate loss of downstream model access. Revocation should not depend on locating shared keys. RBAC then limits which applications and developers can call particular models, including differences between development and production. An auditor can check these controls to see how the team enforces minimum necessary access.

A small team needs this evidence from the outset. SOC 2 Type II, SSO, and audit logs should not depend on an enterprise procurement threshold, because a five-person health-tech startup faces the same OCR audit risk as a large vendor. These capabilities support governance but do not confer HIPAA certification. Their value is in making authorization and activity demonstrable. The access model and the audit trail must describe the same system.

The Security Risk Analysis as a living document, not a launch artifact

The Security Risk Analysis under §164.308(a)(1)(ii)(A) must track changes to the AI architecture. Adding a model provider or an observability subprocessor changes the PHI path. Enabling a RAG index or agent memory adds a place where information can persist. Changes to prompt structure can change which PHI leaves the application, while adding fallback providers changes who might receive it.

Documentation must name the system that actually operates. The proposed 2026 update would formalize a written technology-asset inventory covering AI systems that handle ePHI, reinforcing the need to document architecture as well as controls. HHS OCR’s 2025 enforcement record shows penalties concentrated on risk analysis failures. Sound controls do not excuse stale documentation. A risk analysis that omits a new memory surface or routing destination no longer describes the deployment it is meant to assess.

The practical action is to keep the PHI flow map current as the architecture changes. It must include every BAA-covered endpoint in the routing chain and every memory surface where PHI can accumulate. That gives the team the foundation for refreshing the analysis without reconstructing the system from scattered policies. The risk analysis is the engineer’s architecture diagram expressed in compliance language. It belongs in the ongoing work of operating the AI system.

How to cite

Tariq Osei-Mensah. HIPAA Gateway Requirements for AI Teams Who Are Business Associates Not Covered Entities. HIPAA Model Index. November 6, 2026. hipaamodelindex.com/posts/hipaa-gateway-requirements-for-ai-teams-who-are-business-associates-not-covered

© 2026 HIPAA Model Index

Tariq Osei-Mensah