HIPAA compliant LLM APIs and providers

Which model API providers sign a business associate agreement for PHI, on which endpoints and retention settings, which features fall outside the BAA, and what the covered entity must still configure.

On this page

Which LLM APIs can a covered entity use with PHI?

A team building on model APIs that will send protected health information needs one answer before any code reaches production: only a provider that executes a BAA covering that specific API, its endpoints and its retention settings can receive PHI. HHS OCR guidance on cloud computing is direct on the role. When a covered entity engages a cloud service provider to create, receive, maintain or transmit ePHI on its behalf, the provider is a business associate and a business associate agreement is required. Using the service without a BAA in place is a violation of the Rules (45 CFR 164.308(b)(1) and 164.502(e)). The conduit exception does not rescue an LLM API. It covers transmission-only services with temporary storage incident to transmission, and a model endpoint that processes prompts and stores logs is a business associate, not a conduit.

A signed BAA is necessary but it does not make the use compliant. The agreement covers the vendor's services as scoped in the contract, so the team must confirm three things in writing: which API products and endpoints are named, which retention or logging mode applies, and which features are excluded. Vendor help pages show how narrow this scope can be. For example, one provider's BAA article lists the Batch API, Files API and Code Execution as not covered, and another's requires a retention setting to be enabled before a model is eligible. Features that run outside the covered endpoints, such as file storage, batch jobs or tool calls, may carry PHI with no BAA behind them. Also confirm that the vendor, not only the cloud host, is the party that signed.

This page does not decide the parts of HIPAA that belong to the covered entity or business associate. The customer still owns its risk analysis, the minimum necessary standard for what prompts contain, access controls, audit logging, encryption, and the subcontractor chain behind the API. HHS guidance also notes that the Rules do not require a provider to allow security audits, so the team should ask for safeguard documentation through the BAA or the service agreement based on its own risk analysis. Ask each vendor to state its subprocessors, where requests are processed, and how long prompts and outputs are kept. The answers belong in the risk analysis, and the BAA scope should match what the application actually sends.

Which providers sign a BAA for API use, and on what terms

A covered entity or business associate that sends PHI to a model API needs a signed BAA with that provider before the first request, and the BAA only covers the products and endpoints it names. The four cards below compare how OpenAI, Anthropic, AWS Bedrock and Azure attach their BAA to API use, and what each one leaves to the customer to verify.

OpenAI API BAA

OpenAI's standard BAA can be accepted in the API Platform without an enterprise agreement, but self-serve enrollment requires an established history of API usage. Once HIPAA support is enabled on an organization, it cannot be disabled, so the decision needs sign-off from privacy and security before enrollment. Eligibility also depends on executing the BAA and provisioning with Modified Retention, and only the listed endpoints are covered. Check each endpoint your application calls against the HIPAA eligible products page before routing PHI to it.

HIPAA eligible products

Anthropic first-party API BAA

For first-party API use with PHI, Anthropic requires a signed BAA and enablement by its Sales team, so self-serve use does not qualify. Covered Models require 30-day data retention and are not available with zero data retention enabled unless Anthropic expressly authorizes it. The Batch API, Files API, Skills API, Code Execution and Web Fetch are not covered, so an application that uses them must keep PHI out of those paths. Confirm the current scope in writing with Anthropic before any PHI flows.

Anthropic BAA article

Amazon Bedrock under the AWS BAA

The AWS HIPAA Eligible Services Reference lists Amazon Bedrock as HIPAA eligible under an AWS BAA, so the contract sits with AWS rather than with each model maker whose model runs on Bedrock. Eligibility is set per service, so confirm that the specific Bedrock features, models and regions your application uses are the ones named in the reference. The AWS BAA does not transfer to third-party model providers on the platform, so review what each model vendor commits to separately. Check the reference's last-updated date before relying on it.

AWS eligible services reference

Azure OpenAI under the Microsoft BAA

Azure does not require a separate contract for in-scope services because the HIPAA BAA is part of the Microsoft Product Terms and Data Protection Addendum. The BAA covers only in-scope Azure services, so the first step is to confirm that the Azure OpenAI deployment and region you plan to use appear in Microsoft's HIPAA offering list. The BAA does not make the customer compliant. Your own risk analysis, access controls and configuration must align with HIPAA, as Microsoft's HIPAA documentation states.

Azure HIPAA offering

Google through Vertex AI

Google's BAA coverage for AI models runs through Google Cloud, and the Gemini API is a separate surface that must be checked on its own terms. Google's HIPAA page describes HIPAA compliance as a shared responsibility, so the BAA does not finish the job. Confirm in writing which Gemini models, endpoints and features fall within the Google Cloud BAA scope, and read the Vertex AI hub for the full scope discussion before sending PHI to any Google model endpoint.

Google Cloud HIPAA page

Mapping HIPAA requirements to API configuration

This table maps each HIPAA requirement from the supplied facts to the provider feature, the configuration it implies, and what your team must verify before sending PHI. Read it row by row against the provider you are evaluating, because the BAA, endpoint coverage and retention rules differ by vendor and by product.

RequirementProvider feature or configurationWhat the customer must verify
BAA signed before any PHI (45 CFR 164.308(b)(1), 164.502(e))Using a cloud service to maintain ePHI without an executed BAA is a violation. OpenAI accepts the standard BAA in the API Platform. Anthropic requires a signed BAA and enablement by its Sales team. AWS BAA covers Amazon Bedrock. Azure relies on the BAA within the Microsoft Product Terms and Data Protection Addendum.Confirm the BAA is executed by the legal entity and account that will send PHI, and that no PHI flows through a project, key or region outside it.
BAA contents: Security Rule safeguardsSample provisions require the business associate to implement Security Rule safeguards for ePHI. The contract text, not the marketing page, sets the obligation.Read the signed BAA for an explicit safeguards clause and request the vendor's documentation of the safeguards it describes.
BAA contents: reporting of misuse and breachesSample provisions require reporting of uses or disclosures the contract does not allow and of breaches of unsecured PHI.Confirm the notification window and contact path in the BAA and add them to your incident response runbook.
BAA contents: return or destruction at terminationSample provisions call for return or destruction of PHI at termination where feasible.Confirm how deletion works for prompts, completions, uploaded files and logs, and whether retention continues after the account closes.
BAA contents: subcontractor flow-downSample provisions require the same restrictions to pass to subcontractors that handle PHI.Request the vendor's subprocessor list and confirm that any model host or infrastructure provider handling PHI is covered by a subcontractor agreement.
OpenAI covered endpointsCovered endpoints include /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/audio/transcriptions, /v1/batches and /v1/realtime.Confirm each endpoint your code calls appears on the list, and block calls to any endpoint not listed for PHI workloads.
OpenAI Modified Retention provisioningAPI eligibility requires an executed BAA and provisioning with Modified Retention. HIPAA support cannot be disabled once enabled.Confirm Modified Retention is provisioned on the organization before PHI is sent, and record the date it was enabled as audit evidence.
Anthropic Covered Models: 30-day retention and zero data retention exceptionCovered Models require 30-day data retention and are not available with zero data retention enabled unless Anthropic expressly authorizes it.Confirm in writing whether your account has zero data retention authorized. Without that authorization, plan for 30-day retention in your risk analysis.
Anthropic excluded featuresBatch API, Files API, Skills API, Code Execution and Web Fetch are not covered by the BAA.Scan application code and prompts for calls to these features and confirm none receives PHI.

Which API features fall outside the BAA

Coverage under a BAA is set feature by feature, not by provider name. A vendor can sign a BAA and still exclude parts of its API. Anthropic's BAA article lists the Batch API, Files API, Skills API, Code Execution and Web Fetch as not covered, while the Covered Models used through the chat path can be. OpenAI takes the opposite approach: its HIPAA eligible products page lists the endpoints that are covered, including /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/audio/transcriptions, /v1/batches and /v1/realtime, so anything not on that list should be treated as outside coverage until the vendor says otherwise. Before go-live, pull the current exclusion and endpoint lists directly from each provider's page, because these documents change, and record the date you checked them in your vendor file.

Once you know the excluded paths, enforce the boundary in the system rather than in a policy memo alone. Use an API gateway, proxy or key-scoped configuration to allow only covered endpoints and features for workloads that carry PHI, and deny the rest by default. Application teams should not be able to switch on a file upload or a code execution tool for a PHI workflow without a review. Also set a rule that PHI stays out of excluded paths entirely, including prompts sent to a batch job or content stored through a files feature, and confirm that logs, error traces and retry queues do not capture PHI from covered calls into an uncovered path.

Cloud-hosted model access works differently. Amazon Bedrock and Azure coverage is per service, so a BAA covering the platform does not automatically cover every model or feature on it. For Bedrock, the AWS HIPAA Eligible Services Reference lists Amazon Bedrock as HIPAA eligible under an AWS BAA, but you must still confirm that each model family, agent or knowledge base feature you use is covered. For Azure, the Microsoft HIPAA offering for Azure covers in-scope services, so check the specific Azure OpenAI deployment or add-on against that list and record the result with the model name.

Configuration sequence before sending PHI through an API

This sequence confirms that a BAA is actually in force, that the account is set up for covered use, and that the customer's own controls match what the vendor contract assumes, so that PHI only reaches endpoints and settings the covered entity has documented and approved.

  1. Confirm the BAA is executed by the account owner

    Before any PHI is sent, the account owner or an authorized signatory confirms that a business associate agreement has been signed with the vendor, not just accepted through a click-through in a console or developer portal. For OpenAI, the standard BAA can be accepted in the API Platform without an enterprise agreement, but self-serve enrollment requires an established history of API usage. For Anthropic, first-party API use with PHI requires a signed BAA and enablement by Anthropic Sales. For Azure OpenAI and Amazon Bedrock, the BAA sits inside the cloud provider's standard terms for in-scope services. Done means a countersigned copy or an account record showing the BAA status is stored in the compliance file.

  2. Confirm enrollment and retention mode

    Next, the team confirms the account is provisioned in the retention mode the BAA requires. OpenAI's HIPAA eligible products page says API eligibility requires an executed BAA and provisioning with Modified Retention, and that HIPAA support cannot be disabled once enabled. Anthropic's BAA article says Covered Models require 30-day data retention and are not available with zero data retention enabled unless Anthropic expressly authorizes it. The compliance owner records the enrolled organization, the retention setting and the date it was checked. Done means a screenshot or vendor confirmation of the setting is attached to the change record.

  3. Restrict keys to covered endpoints

    The platform team limits each API key or service account to the endpoints listed as covered for the vendor and plan. For OpenAI, the eligibility page lists covered endpoints including /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/audio/transcriptions, /v1/batches and /v1/realtime, so any other endpoint should be treated as outside the BAA until the vendor confirms otherwise. Keys that will carry PHI are kept separate from keys used for testing with synthetic data. Done means an inventory lists each PHI-bearing key, its permitted endpoints and its owner, and a sample request to an uncovered endpoint is blocked or rejected.

  4. Disable excluded features in code and gateway

    The team turns off vendor features that the BAA does not cover, both in application code and in any gateway or proxy in front of the model. Anthropic's BAA article lists the Batch API, Files API, Skills API, Code Execution and Web Fetch as not covered, so calls to them must be removed from PHI workflows or routed away from PHI. If a gateway such as OpenRouter sits in the path, the team confirms that its own terms, and not only the model provider's terms, cover the traffic. Done means a code review and a gateway configuration check show that no PHI-bearing route can reach an excluded feature, with the result recorded in the change ticket.

  5. Set logging and retention on the customer side

    The customer decides what it stores. Application logs, prompt and response caches, vector stores, trace tools and error reporters often keep the full payload even when the model vendor retains nothing, so each one must be listed with its retention period and access rules. Logs that do not need PHI are scrubbed before writing. Retention periods are set by the covered entity's policy and not copied from vendor defaults. Done means a data flow diagram lists every place PHI is stored after the call, with the owner and retention setting for each, and the diagram is approved by the privacy officer.

  6. Document the minimum necessary data set

    The privacy and clinical owners define which PHI fields the use case actually needs and write them into a data specification for the API integration. The HHS sample business associate provisions point to the contract's use restrictions, so the customer must also confirm that the vendor's permitted uses match this specification. Fields outside the list are removed or masked before the request is built. Done means a signed data specification names the fields, the purpose, and the staff roles allowed to send requests, and a test with synthetic records confirms that extra fields are stripped.

  7. Record the risk analysis update

    Finally, the security officer updates the organization's HIPAA risk analysis to cover the new vendor, endpoints, retention settings, storage locations and the customer-side logs identified above. HHS guidance says a provider storing ePHI outside the United States is allowed under a BAA but must be accounted for in the Security Rule risk analysis, so the update names any non-US processing. Microsoft and Google both state that signing a BAA does not by itself make a customer compliant, so this record is the customer's own evidence. Done means the updated risk analysis is approved and dated, and a named owner is set to review it when endpoints or vendor terms change.

Evidence a privacy officer or auditor will ask for

A BAA on paper does not show that the API use is covered. Auditors and privacy officers look for a chain of records: the signed agreement, the account it covers, the retention and HIPAA settings in force, the endpoints and keys in use, and the customer's own analysis of the risk. The cards below list what to collect and what to check against it.

Executed BAA with signatory details

Keep the countersigned BAA with its effective date and the name and title of the person who signed for your organization. For OpenAI, the standard BAA is accepted in the API Platform, so the record should show the organization that accepted it. For Anthropic, first-party API use with PHI needs a signed BAA and enablement by Anthropic Sales, so keep the enablement confirmation with the signed copy. A BAA signed by someone without authority to bind the organization is a weak record.

OpenAI BAA article

Account or organization ID in scope

Record the exact API organization, project or account identifier that the BAA covers. Traffic from any other organization, a personal key or a sandbox account is outside the agreement even if it calls the same model. Ask the vendor to confirm in writing which identifiers are covered and whether covering one organization extends to its projects.

Retention and HIPAA mode confirmation

Ask for written confirmation of the retention mode provisioned for the covered account. OpenAI states that API eligibility requires provisioning with Modified Retention, and that HIPAA support cannot be disabled once enabled. Anthropic states that Covered Models require 30-day data retention and are not available with zero data retention enabled unless Anthropic expressly authorizes it. Keep a dated screenshot or vendor letter for each setting.

Permitted endpoints and API key inventory

List every endpoint the application calls and every API key that reaches it. OpenAI's HIPAA eligible products page names covered endpoints, including /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/audio/transcriptions, /v1/batches and /v1/realtime. Anthropic excludes the Batch API, Files API, Skills API, Code Execution and Web Fetch. Compare the inventory against the vendor list and flag any call to an excluded feature.

OpenAI eligible products

Change log for enablement and key changes

Keep a dated log of when HIPAA support was enabled, which keys were created or rotated, who approved each change and which environment received it. Auditors ask whether a workload that touches PHI ever ran on a key or project outside the agreement. A log that starts on the day of enablement and records every later change lets you answer that question from records rather than memory.

Your own risk analysis entry

The HHS cloud computing guidance says a covered entity or business associate must account for the provider's risks in its Security Rule risk analysis, and the BAA does not replace that analysis. Document the LLM API as a system that creates, receives, maintains or transmits ePHI, the data flows, the threats you considered, and the controls you chose. Attach it to the approval record so that the vendor's status and your controls are reviewed together.

HHS cloud guidance

Subcontractor list and flow-down terms

Request the vendor's current list of subcontractors that handle PHI, including hosting providers and sub-processors, and confirm the BAA requires them to accept the same restrictions. The HHS sample provisions call for flowing the same restrictions down to subcontractors. Store the list with its date, and set a reminder to re-check it, because the list changes over time.

HHS sample provisions

How much effort does a HIPAA LLM API setup take, and what drives it?

Is a signed BAA enough to send PHI to an LLM API?

No. A signed BAA is the starting point, not the finish line. HHS OCR guidance says a provider that creates, receives, maintains or transmits ePHI for a covered entity is a business associate and the parties must have a BAA, and sending PHI without one is a violation of the HIPAA Rules. The BAA only covers the services and endpoints it names, so you still have to confirm that each API feature you use is in scope, that the required data retention setting is active, and that your own risk analysis, access controls and logging cover the integration. Microsoft and Google both state that signing their BAA does not by itself make a customer compliant.

What makes a HIPAA LLM API setup take more effort?

Four factors drive most of the work. The first is the number of providers, since each one has its own BAA process, eligible endpoints, retention rules and subprocessor terms. The second is excluded features: for example, Anthropic's BAA article lists the Batch API, Files API, Skills API, Code Execution and Web Fetch as not covered, so a team that relies on them needs a separate design. The third is logging design, because prompts, responses and error logs in your own systems can hold PHI and must be scoped and retained deliberately. The fourth is the risk analysis, which must cover each provider, data flow and region used.

What is one-time work and what recurs in a HIPAA LLM API program?

The one-time work includes executing each BAA, confirming eligibility, enabling the required retention mode, documenting the data flows, and completing the first risk analysis update. The recurring work includes checking that retention settings and eligible endpoints have not changed, reviewing API keys and access for staff who leave or change roles, reviewing logs for PHI leaking into places it should not be, and updating the risk analysis when you add a model, provider, region or feature. Provider terms and product feature lists change, so a periodic review of the vendor documentation is part of the ongoing cost.

What should we ask an LLM API provider in writing before we sign?

Ask for the following in writing, then compare the answers against the provider's published documentation:

  • The exact BAA and whether it is self-serve or requires a sales-enabled agreement.
  • The list of covered endpoints and features, and the list of excluded ones.
  • The retention mode required for PHI and whether zero data retention is available for your account.
  • Whether the BAA can be disabled, and what happens to your coverage if your plan or settings change.
  • Where data is stored and processed, and the subprocessors that touch it.
  • How subcontractors are bound to the same restrictions, and how breaches are reported.
  • What documentation of safeguards or audits the provider will supply, such as a SOC 2 report.
Can our own engineering team set this up without outside help?

Often yes, if you have engineers who understand the provider contracts, the HIPAA Security Rule and your own logging pipeline, and if you have a privacy or compliance lead who owns the risk analysis and BAA inventory. The work is mostly documentation, configuration review and disciplined change control rather than unusual engineering. Teams usually struggle where no one owns the BAA inventory, where prompts are logged by default in tracing or analytics tools, or where new providers get added without a review. Those gaps are easier to close if one person reviews every new API key, endpoint and provider before production use.

What can outside help cover, and what should a quote include?

DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside a client's own infrastructure, runs security testing of AI systems, and prepares systems, controls and evidence for compliance assessments. It does not issue audit reports or certifications, and it does not sign or negotiate vendor BAAs on your behalf. A quote should follow from a written scope that names the providers and endpoints in use, the logging and data flows to review, the risk analysis inputs to prepare, and the deliverables and retest steps. Ask whether ongoing support or periodic review is priced separately from the initial scope.

How DeployOpen helps

DeployOpen does not sign a BAA with a model provider and cannot confirm that a vendor's API endpoints are covered, so the vendor's own paperwork remains the source of truth. Where DeployOpen helps is the work that sits between that paperwork and production. For a team building on model APIs, that means mapping each application call to the endpoint it uses, checking it against the covered endpoint list in the vendor's HIPAA eligibility documentation, and confirming that the retention mode, zero data retention setting and enrollment status match what the BAA requires. A finding such as an uncovered Files API call or a Covered Model used with a zero data retention setting that the vendor has not authorized is the kind of gap a security reviewer needs to see before go-live.

For organizations that want the model calls kept inside their own cloud accounts or data centers, DeployOpen plans and deploys self-hosted AI platforms with SSO, access control, audit logging and data handling controls, so the compliance and security teams can review them directly. This is a different route from a BAA, and it moves the storage, logging and key management questions into the organization's own Security Rule risk analysis. DeployOpen also runs AI system security testing, including prompt injection, credential handling and data exposure through tools, and prepares the evidence a covered entity asks for when it reviews an AI feature.

Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. Ask any partner, DeployOpen included, to name the endpoints, plan, retention mode and enrollment route in the scope document, and to state which items the customer must still configure and evidence. Ongoing testing and upgrades are available as retainers, which matters because vendor endpoint coverage and retention terms can change between reviews.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.