Cutting GPT-4o Cost Under a HIPAA BAA: Which OpenAI, Azure and Bedrock Endpoints Stay Covered
Coverage follows the endpoint and the account setup, not the model. That makes a model swap the safe big saving, Batch a paperwork question, and GPT-4o's January 14 shutdown the deadline.
A healthtech summarising 5 million patient notes a month on GPT-4o can cut its OpenAI bill from about $40,000 to under $2,000 at list prices without leaving its BAA, by moving, after a clinician-scored test, to gpt-6-luna on the same Chat Completions or Responses endpoint it already uses under Modified Retention. OpenAI's own HIPAA-eligible endpoints list, posted July 9, 2026, includes the Batch API too, "even if data is retained", so Batch's further 50% discount is inside the BAA as long as your organisation is provisioned with Modified Retention; it is not eligible for Zero Data Retention. The move is not optional for long: OpenAI shuts GPT-4o down on January 14, 2027, 58 days after November 17.
Coverage follows the endpoint, not the model
The question most teams ask first, "is model X HIPAA compliant?", is the wrong one. OpenAI's BAA is written around endpoints and account configuration. Its HIPAA Guide, dated July 9, 2026, says use of the API under the BAA "currently requires Customer's account being provisioned for a Modified Retention feature," and that Modified Retention must show as active "for the associated Org ID and Project in the Account Console." If your BAA does not expressly list the API services as Eligible Services, the guide says you may not process PHI with them at all.
The endpoints list then does the rest. "Once your org ID is provisioned with Modified Retention, the endpoints listed below can be used for processing PHI, even if data is retained," it reads. The list includes /v1/chat/completions, /v1/responses, /v1/files and /v1/batches. Nothing in either document names a model. A request to gpt-6-luna on /v1/chat/completions, from a project with Modified Retention active, sits where your gpt-4o traffic sits today.
One caution on that list: the PDF says the July 9 version "is no longer maintained" and points to a help-centre article for the current list. Treat it as strong evidence of OpenAI's position, and ask OpenAI to confirm the current list in writing for your org ID.
Zero Data Retention versus Modified Retention
This is where third-party guides contradict each other, and OpenAI's own definitions settle it. "Modified Retention" is an umbrella. The HIPAA Guide defines it as "Modified Abuse Monitoring, Zero Data Retention, Safety Retention, or Eyes Off," and says OpenAI may choose which of these applies to you.
The two that matter here differ on one point. Under Modified Abuse Monitoring, your content "will not be logged for abuse monitoring and human review," but you "may still save or retain Customer Content in the Services for application state." Under Zero Data Retention, content is additionally not "saved to disk or retained by OpenAI" on the endpoints that support ZDR. The guide adds that if you use an endpoint that is not ZDR-eligible, "OpenAI will not log data, but data may be retained for application state."
So the BAA does not require ZDR. It requires some form of Modified Retention, and then covers the listed endpoints whether or not they store data. OpenAI's data-controls table shows what each endpoint stores: Chat Completions and Responses are ZDR-eligible; /v1/batches and /v1/files are not, and keep application state "until deleted." That is a retention fact you have to manage, not a coverage gap.
The coverage matrix
Each lever, what the vendor's own documents say about BAA scope, what is stored, and the monthly cost at the workload used throughout this piece: 5 million notes, 2,000 input and 300 output tokens each, at list price.
| Lever | BAA position in the vendor's documents | What is stored, and where | Monthly cost |
|---|---|---|---|
OpenAI, same endpoint, gpt-6-luna |
Chat Completions and Responses on OpenAI's list (July 9, 2026) | ZDR-eligible; cache tensors in GPU-local storage up to 24 hours | $1,750 ($1,300 with a cached prefix) |
| OpenAI Batch API | /v1/batches and /v1/files on the same list |
Not ZDR-eligible; files kept until deleted, outputs expire after 30 days by default | $875 on Luna; $20,000 on gpt-4o |
| OpenAI Flex | Uses the listed endpoints with service_tier: "flex"; neither the list nor the Flex guide names the tier |
Same as the endpoint it runs on | $875 on Luna |
| Azure OpenAI, Global or Data Zone Batch | Microsoft BAA via its Data Protection Addendum; scope set per service | Files at rest in your geography; Global processing in any geography | $20,000 (gpt-4o Global Batch) |
| Azure provisioned throughput | Same Microsoft BAA; deployment types not named in the BAA pages | Global, Data Zone or Regional processing | $39,000 (gpt-4o, 150 PTUs, reserved) |
| Bedrock batch or a model in your own AWS account | Bedrock, EC2 and SageMaker on AWS's HIPAA-eligible list, no Bedrock exclusions (Nov. 16, 2026) | Batch inputs and outputs in your S3 bucket; providers have no access | $280 to $1,485 (Nova Micro batch to fine-tuned gpt-oss-20b) |
Two things in that table need a sentence each. Flex is priced "at Batch API rates" and runs on the ordinary endpoints, but no OpenAI document names it in a HIPAA context, so ask before you route PHI through it. And Azure's BAA is set at the service level: Microsoft says its HIPAA BAA is available "by default" through the Data Protection Addendum, and lists in-scope services in a compliance-offerings appendix, but none of its pages says whether Global Batch or provisioned throughput are named deployment types within that scope.
What the levers are worth
Model choice moves the bill more than twentyfold; tiers move it by half. GPT-4o at OpenAI's Standard price ($2.50 per million input tokens, $10 output) costs $40,000 a month on this workload. Batch halves that to $20,000. Caching a 1,000-token fixed instruction block at GPT-4o's $1.25 cached rate brings Standard down to $33,750.
gpt-6-luna, which OpenAI's deprecations page names as GPT-4o's replacement, lists at $0.10 input and $0.50 output: $1,750 a month. Batch or Flex halves it to $875. With the same 1,000-token cached prefix at $0.01, Standard drops to about $1,300 before cache-write charges.
Two caveats change those numbers. Luna is a reasoning model whose default effort is medium, and OpenAI's reasoning guide says reasoning tokens "are billed as output tokens." Every 100 reasoning tokens per note adds 500 million output tokens, or $250 a month at Standard. Set the effort explicitly; none is a supported value. And several cheap models in older cost comparisons are on their way out: gpt-4o-mini and gpt-4.1-mini shut down with GPT-4o on January 14, and gpt-5-mini and gpt-5-nano on December 11.
The formula to rerun on your own counts is: notes × (input tokens × input price + output tokens × output price) ÷ 1,000,000.
Why provisioned throughput doesn't pay here
Azure provisioned throughput reserves capacity "whether or not requests are being made." Microsoft's sizing formula, applied to this workload spread perfectly evenly across a 30-day month, needs 148 PTUs of GPT-4o, rounded to 150. At the one-month reservation rate of $260 per PTU in Azure's price list, that is $39,000, about what pay-as-you-go GPT-4o costs, and real traffic has peaks that need more. On Luna the arithmetic is worse: the workload needs fewer than seven PTUs, but the minimum deployment is 15, so $3,900 a month against $1,750 pay-as-you-go. Microsoft's own sizing page reaches a similar conclusion for GPT-6 Sol: PTU and pay-as-you-go are "approximately equal at full utilization." Provisioned throughput buys latency guarantees, not savings, at this volume.
Azure's two catches: geography and abuse monitoring
Azure runs OpenAI models in Microsoft's environment; Microsoft's privacy page says prompts and completions "are NOT available to OpenAI." That makes it the route for teams who prefer Microsoft as their business associate. Two details change the choice of deployment.
First, geography. Microsoft says Global deployments may process prompts "in any geography where the relevant model sold by Azure is deployed," and that batch "is a Global deployment type." Data at rest stays in your chosen geography, and Microsoft says its compliance commitments still apply, but if your contracts promise US-only processing, use Data Zone deployments, which keep processing "anywhere within the United States." Data Zone GPT-4o costs $2.75 and $11 per million tokens in Azure's East US 2 price list, so $44,000 standard or $22,000 batch on this workload.
Second, abuse monitoring. Microsoft says Modified Abuse Monitoring will keep applying to models made available before November 1, 2026 for customers already approved, but for newer models it "will no longer be available, beginning on a future date to be announced." gpt-6-luna's Azure version is dated September 22, 2026, which suggests it falls under the existing rule, but the page keys the cutoff to when a model was made available, not its version date, so get that in writing. Note that Azure's batch documentation does not list Luna among its batch models.
A specialised model inside your own cloud account
The option none of the usual guides cover is to stop sending PHI to a model vendor at all. AWS's HIPAA-eligible services reference, updated November 16, 2026, lists Amazon Bedrock, EC2, EKS and SageMaker AI, and says "generally available features" of listed services are eligible unless excluded. If you already have an AWS BAA, a model running in your own account adds no new business associate.
Bedrock is the managed version. Its docs say model providers "don't have access to Amazon Bedrock logs or to customer prompts and completions," and its retention setting none means no request or response data "is written to durable storage by AWS." The data-retention page says the setting applies to the Messages, Chat Completions and Responses APIs; ask AWS to confirm in writing how it applies to batch jobs, whose inputs and outputs live in your own S3 bucket. On AWS's price list, Amazon Nova Micro costs $280 a month on this workload in batch, gpt-oss-20b $575 and gpt-oss-120b $1,200. A gpt-oss-20b model fine-tuned on your own notes through Bedrock's reinforcement fine-tuning is billed at $80 per training hour and then $0.09 input and $0.39 output: $1,485 a month, plus $1.95 a month to store it.
Self-hosting is the version with the most control. gpt-oss-20b is Apache 2.0 licensed and, according to its model card, can "run within 16GB of memory," so it fits on a single-GPU g6e.xlarge (48 GB of GPU memory) at $1.861 an hour on-demand, or about $1,359 per instance-month. How many instances this workload needs has not been measured. Here you own the weights, checkpoints and logs outright, because they never leave your account, which is the cleanest audit trail available.
Parsec, a small language model lab, sells a managed version of the specialise-and-serve loop: it traces production requests, builds datasets and evaluations the customer approves, retrains, and serves, and its inference page says "Weights: Yours. Download them." For this reader the gaps matter. Its comparison page says models run "alongside other teams' on an optimized cluster," its pages do not mention VPC or on-premises hosting or a BAA for this service, and it publishes no price, so it would be a new processor to contract with rather than a way to avoid one.
Prove the cheaper model before you switch
None of the savings matter if the summaries get worse. A like-for-like comparison of these models on clinical note summaries has not been published, so you have to run your own, and with GPT-4o gone on January 14, the baseline has to be captured now.
- Draw a sample of a few thousand de-identified notes that covers your specialties and note types, and record GPT-4o's summaries for each.
- Generate candidate summaries with the cheaper model at a fixed reasoning effort.
- Have clinicians score both blind on four failure types: dropped or reversed negations, wrong doses or units, missed allergies, and findings that aren't in the note.
- Set the pass mark before scoring: no more dose, unit or allergy errors than GPT-4o on the sample, and no increase in invented findings.
- Keep the scored sheets, the model version string and the sign-off.
The order of moves, and what to file
Ranked by savings against compliance risk, the sequence is short.
- Move to
gpt-6-luna(or another tested successor) on your current endpoint and project. This saves about 95% and changes nothing in the BAA. File the eval results and the model version. - Restructure prompts so fixed instructions come first and get cached. OpenAI says "all prompt caching features are compatible with Zero Data Retention." File the prompt template version.
- Move non-urgent notes to Batch or Flex. File OpenAI's written confirmation that
/v1/batchesand Flex are covered for your org ID, and setoutput_expires_afterand file deletion so PHI doesn't sit in storage for 30 days. - Consider Azure Data Zone or a model in your own AWS account only if residency or vendor concentration requires it. File the Microsoft or AWS confirmation and your retention configuration.
The questions to send are specific. To OpenAI: is /v1/batches on the current HIPAA-eligible list; does service_tier: "flex" stay within the BAA; which Modified Retention feature is applied to each of our org IDs and projects? To Microsoft: are Global Batch, Data Zone Batch and provisioned deployments within the BAA's scope for Azure OpenAI; does our Modified Abuse Monitoring approval cover gpt-6-luna? To AWS: are batch inference and reinforcement fine-tuning generally available features covered by our BAA, and does retention mode none apply to batch jobs?
Bottom line
If you want to stay on OpenAI, move to gpt-6-luna on the endpoint you already use, after a clinician-scored test; that alone takes the bill from about $40,000 to $1,750 a month inside the same BAA. Add Batch or Flex for another halving once OpenAI confirms them in writing for your org. If your contracts require US-only processing, Azure Data Zone deployments or a US Bedrock region fit better: the only data-residency option OpenAI's Luna page documents is the EU. If you want no new processor at all, run a fine-tuned open-weight model in the AWS account your BAA already covers. Skip provisioned throughput at this volume.
Sources
- OpenAI, Deprecations: https://developers.openai.com/api/docs/deprecations
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, GPT-6 Luna model page: https://developers.openai.com/api/docs/models/gpt-6-luna
- OpenAI, Reasoning models guide: https://developers.openai.com/api/docs/guides/reasoning
- OpenAI, HIPAA-Eligible Endpoints (July 9, 2026): https://cdn.openai.com/osa/hipaa-endpoints.pdf
- OpenAI, HIPAA Guide (July 9, 2026): https://cdn.openai.com/osa/hipaa-guide.pdf
- OpenAI, Data controls in the OpenAI platform: https://developers.openai.com/docs/guides/your-data
- OpenAI, Batch API guide: https://developers.openai.com/api/docs/guides/batch
- OpenAI, Flex processing: https://developers.openai.com/api/docs/guides/flex-processing
- OpenAI, Prompt caching: https://developers.openai.com/api/docs/guides/prompt-caching
- Microsoft, HIPAA and HITECH offering: https://learn.microsoft.com/en-us/compliance/regulatory/offering-hipaa-hitech
- Microsoft, Azure HIPAA compliance offering: https://learn.microsoft.com/en-us/azure/compliance/offerings/offering-hipaa-us
- Microsoft, Cloud services in audit scope: https://learn.microsoft.com/en-us/azure/compliance/offerings/cloud-services-in-audit-scope
- Microsoft, Data, privacy and security for Foundry Models sold by Azure: https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy
- Microsoft, Global batch processing with Azure OpenAI: https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/batch
- Microsoft, Provisioned throughput: https://learn.microsoft.com/azure/foundry/openai/concepts/provisioned-throughput
- Microsoft, Determine PTU sizing: https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/provisioned-throughput-sizing
- Microsoft, Azure Retail Prices API: https://prices.azure.com/api/retail/prices
- AWS, HIPAA Eligible Services Reference: https://aws.amazon.com/compliance/hipaa-eligible-services-reference/
- AWS, Amazon Bedrock pricing: https://aws.amazon.com/bedrock/pricing/
- AWS, Bedrock batch inference at 50% of on-demand price: https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-bedrock-fms-batch-inference-50-price/
- AWS, Bedrock batch inference: https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html
- AWS, Bedrock data protection: https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html
- AWS, Bedrock data retention: https://docs.aws.amazon.com/bedrock/latest/userguide/data-retention.html
- AWS, EC2 On-Demand pricing: https://aws.amazon.com/ec2/pricing/on-demand/
- AWS, EC2 G6e instances: https://aws.amazon.com/ec2/instance-types/g6e/
- Hugging Face, openai/gpt-oss-20b: https://huggingface.co/openai/gpt-oss-20b
- Parsec, Inference: https://parseclab.ai/inference/
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/