HIPAA Model Index HIPAA LLM APIs
When Your LLM Gateway Must Be the Compliance Boundary Between Patient Inputs and Model Providers
- Published
- October 30, 2026
- Updated
- October 30, 2026
- Reading time
- 9 min read
Summary
Redacting patient data at the gateway enforces compliance before requests reach model providers.
A HIPAA-compliant AI gateway for teams handling PHI must enforce redaction, BAA-scoped routing, attributable access, and metadata-only audit logging before patient inputs reach model providers. Making the gateway that boundary is an architectural commitment. A covered model endpoint is needed, but its provider and even careful developers cannot enforce safeguards across every application path.
Why the gateway layer is the only realistic compliance chokepoint for PHI in LLM calls
has an architectural answer. No LLM is HIPAA compliant by itself, and no HIPAA certification exists for software. What exists is a compliant deployment, with a BAA-covered endpoint, access controls, audit logging, and retention guarantees.
The disclosure threshold is easy to cross. A patient name alongside a health detail makes a prompt PHI, subject to the same protections as information sent through an EHR or fax machine. When dozens of developers add model calls across features, unaudited keys create shadow AI outside a common policy. A downstream provider cannot control those other paths. The gateway becomes the enforcement chokepoint only when every application path passes through it, allowing the technical safeguards in 45 CFR 164.312 to apply consistently across features.
What the BAA chain actually requires and where it silently breaks
Every party that creates, receives, maintains, or transmits PHI on behalf of a covered entity needs a signed BAA. That chain includes the model provider, the cloud provider whose infrastructure handles PHI, and an intermediary gateway vendor. One uncovered hop breaks the protected path. HHS guidance on cloud computing treats a cloud provider as a business associate even when it cannot decrypt the ePHI it handles, so a hosted gateway seeing PHI in the clear needs its own agreement.
Provider coverage depends on the specific configuration. OpenAI offers BAA-eligible configurations through ChatGPT for Enterprise with Regulated Workspace, ChatGPT for Healthcare, and API with Modified Retention, while some connectors, internet access, and memory features are excluded. Anthropic offers coverage for its first-party API and Enterprise plans when the BAA is activated, but excludes Batch API, Files API, and Web Fetch. Neither agreement covers every available feature.
Google Cloud’s covered services include Vertex AI Workbench instances, Gemini Enterprise, Gemini Enterprise Agent Platform, and Gemini in BigQuery, with names requiring verification as products change. AWS Bedrock is HIPAA-eligible, with region pinning and IAM scoping required. Azure OpenAI Service falls within the Online Services DPA, although product-level written confirmation is recommended because Microsoft’s HIPAA page does not explicitly name it.
An engineer can enable an excluded feature and move a request outside the agreement’s scope. Encode the BAA perimeter in per-key provider allowlists and scoped model access, with the covered feature surface enforced in the request path.
How PHI redaction at the gateway satisfies the minimum-necessary standard without breaking the user experience
Inline redaction makes the transmission policy executable. The gateway intercepts each prompt, detects PHI identifiers, replaces them with synthetic tokens or masks in reversible mode, and forwards the sanitized prompt. It then restores the original values in the response before the user sees it. The model does not receive the identifiers removed by that process, while the user receives a response with the original values restored.
The replacement mode affects the task’s usefulness. Synthetic replacement, masking, and hashing each keep the format in a different way, so the choice can affect how the model reasons downstream. Reversible redaction applies the same minimum-necessary controls across calls without relying on each application developer to get the handling right. That consistency is the operational advantage of infrastructure policy.
The covered entity must still explain why each piece of PHI processed is necessary for the task. Redaction metadata provides evidence for that written account by recording the categories detected and removed. It must not preserve the removed values. A record such as “patient_name detected and redacted” documents the control, whereas an original prompt copied into a log merely moves the sensitive data into another store.
Why fallback routing must stay inside the BAA perimeter and how to configure it
A reliability policy can create a disclosure path. If a primary provider experiences a partial outage and automatic fallback selects a provider without the organization’s BAA, requests during that outage leave the covered perimeter. Fallback is therefore a compliance decision as well as a reliability decision.
Fallback chains must be set per key or route and use only BAA-covered providers. Provider allowlists on virtual keys constrain the models and providers each application can reach. If no covered destination can serve the request, the gateway should fail closed to keep requests within that set.
Within that perimeter, routing can also control cost. A cheaper equivalent model may provide a viable fallback without a hard outage. Concentrate AI pairs automatic fallbacks across providers that serve the same model with per-key provider allowlists, so this pattern needs no changes to application code. Its routing decisions and constraints appear in audit logs, making the selected path reviewable after the request.
What audit logs must capture and what they must never store
The HIPAA Security Rule requires controls that record and examine activity in systems containing or using ePHI. For an LLM system, that includes queries touching patient data. Each log record needs an authenticated user or application identity, a timestamp, the detected PHI category, and the guardrail action, such as redacted, blocked, or passed. It also needs the model and provider endpoint, plus team, project, and trace ID for attribution. Identity and route make the event reconstructable.
Content is not a substitute for that schema. Logs must not contain raw prompts when PHI was present, the redacted values, or response content that reconstructs identifiable information. Otherwise, the audit store becomes a second store of sensitive data that needs its own retention, encryption, and access-control rules. Redaction has not protected a value that the logging system keeps.
HIPAA requires six years for Security Rule documentation under 45 CFR § 164.316(b)(2)(i). Keeping audit logs for that period applies the documentation rule to them, although the rule gives no explicit retention period for logs. Storage must be immutable and protected from modification by application-level credentials.
HHS’s December 27, 2024 factsheet describes a proposed removal of the distinction between “addressable” and “required” safeguards, with encryption at rest, MFA, vulnerability scanning, and asset inventories proposed to become unambiguously required. The proposal remains an NPRM, with the OMB Unified Agenda targeting July 2027 for final action after the May 2026 target passed.
Access control and identity at the gateway — why shared API keys break the audit trail
An audit record is useful only if its identity identifies a caller. A shared provider key collapses attribution to an account rather than a specific application, service, or user. That is not sufficient access control for PHI-handling traffic. The Security Rule requires unique user identification and person or entity authentication. The gateway must validate distinct, scoped credentials before forwarding requests.
Provider keys stay in the gateway, while applications get keys scoped to the providers, models, and content policies they can use. The resulting records can attribute calls to a key, team, and project. RBAC then prevents a clinical documentation service from reaching an uncovered model even when its key holder requests that destination.
SSO allows a departing staff member’s gateway access to be revoked through the identity provider rather than through shared-key rotation and redistribution. Logs tied to authenticated identities are more defensible in an OCR review than key IDs without human mapping. Concentrate AI provides SSO, RBAC, per-key scoping, and audit logs without an enterprise contract, making those controls accessible to a five-person healthcare startup as well as a health system.
The four deployment architectures and what each one does to the BAA chain
A cloud model endpoint under an existing cloud BAA, such as Amazon Bedrock, Azure OpenAI, or Google Vertex AI, adds no new model-layer business associate when the cloud provider is already covered. The team still needs region pinning, endpoint logging linked to the audit record, and a check of the exact covered service name. This path makes use of the infrastructure already in place. It suits teams that want frontier-quality models with the least new paperwork.
A direct vendor API with a dedicated BAA, such as the OpenAI Healthcare Addendum or Anthropic’s first-party API, adds a business associate to the risk register. The team must review the vendor and keep managing the agreement. Feature drift is the principal coverage risk. This path fits teams that need vendor-specific capabilities they cannot get through cloud endpoints and have staff to manage the added relationship.
Self-hosting open-weights models such as Llama, Mistral, or Qwen in a private VPC removes the model vendor from the chain, leaving the cloud provider’s BAA at that layer. The team owns TLS termination, authentication, logging, serving-framework patching, and capacity planning. Retention becomes the team’s own code. This architecture fits teams whose policies bar model vendors from seeing PHI or that want to turn token costs into a GPU bill.
On-premises GPUs remove third parties from the inference path and require no BAA at the model layer. They add procurement, racking, power, failover, and physical security to the self-hosting burden. The capital cost is the highest of these options. This path fits large health systems that already run data centers and have strict limits on cloud inference.
Gateway deployment cuts across all four choices. A hosted gateway that handles PHI needs its own BAA, while a self-hosted gateway keeps its vendor outside the data path. With a fully managed gateway such as Concentrate AI, the vendor runs the gateway and the customer sets its policies. Smaller and mid-sized teams typically get the best cost-to-compliance ratio by choosing cloud or direct vendor endpoints combined with a managed gateway over operating their own proxy.
What the gateway cannot do — the compliance work that stays on the covered entity
A gateway produces evidence. Its logs are artifacts, its redaction is a transmission control, and its routing enforces a perimeter that the covered entity must define and maintain. The organization must classify the system, write its risk assessment, design its access model, and negotiate and maintain its BAAs. No deployment model transfers those decisions to a proxy.
Workforce training also remains with the covered entity. A clinician pasting a full patient record into a prompt without understanding minimum-necessary reveals a training failure. AWS, Microsoft, and Google each say that compliance is a shared responsibility. OCR’s 2025 Security Rule proposal also says that ePHI used in AI training data, prediction models, and algorithm data is still protected and must be part of the organization’s risk analysis.
Evaluating a HIPAA-compliant AI gateway for teams handling PHI
The review should test how the gateway enforces the Security Rule’s safeguards. The first questions concern the BAA, including whether the gateway offers one, whether every data-path leg is covered, and whether access requires an enterprise contract. The deployment review must check whether the vendor’s systems see cleartext PHI and which self-hosted, in-VPC, or managed options are available. Labels are not evidence of those properties.
The routing review must check whether fallback restrictions apply per key or route. The redaction review must check for built-in detection, reversible handling, and category-only audit records, and whether logs keep the removed values. Logging review must cover per-key content controls, configurable retention, and immutability, while identity review must cover virtual keys, SSO, RBAC, and authenticated attribution. Agent and MCP tool traffic need the same guardrails as direct chat completions.
Concentrate AI offers a BAA on its paid plan without enterprise procurement, gateway-enforced PII and PHI redaction, metadata audit logs, and per-key allowlists for covered fallback paths. Its retention controls require separate configuration. Concentrate AI’s migration documentation states that enabling ZDR restricts routing to providers with certified zero data retention policies, while disabling Enable Request Logging separately prevents gateway storage of request and response content. Zero retention does not remove its business-associate role when it handles PHI.
Concentrate AI also provides spend attribution by team, project, key, model, and provider, plus SSO, RBAC, and SOC 2 Type II from day one. Its pricing has no platform fee, markup, or BYOK fee, with charges for tokens only. Those features address several evaluation criteria without establishing HIPAA certification. The review must still check log immutability, configurable retention, reversible behavior, and tool-path coverage, since the product label alone does not show that they are in place.
How to cite
Tariq Osei-Mensah. When Your LLM Gateway Must Be the Compliance Boundary Between Patient Inputs and Model Providers. HIPAA Model Index. October 30, 2026. hipaamodelindex.com/posts/when-your-llm-gateway-must-be-the-compliance-boundary-between-patient-inputs-and
© 2026 HIPAA Model Index