Can you send patient data to a language model API? The answer depends in part on where the provider processes requests, what it stores and whether it uses the data for training. The rules for cloud services in healthcare also apply.
An API is a cloud service
Legally, an LLM API is a cloud service like any other. For care providers, health and long-term care insurers, and their processors in Germany, Section 393 SGB V therefore applies: processing in Germany, the EU, the EEA, or Switzerland, a current C5 attestation, and state-of-the-art technical and organisational measures. The customer criteria named in the audit report have to be implemented by the user. A data processing agreement (DPA) under Art. 28 GDPR is required as well. The details are covered in our article on the cloud in healthcare.
Section 393 SGB V does not require a European provider. What counts is where processing takes place and that the provider has an establishment in Germany. Processing in a third country with an adequacy decision by the European Commission is permitted as well. The provision does not regulate whether or for how long a provider may store data. Nor does it replace the legal basis under Art. 6 and 9 GDPR, which the processing itself requires, as with any other software.
The attestation has to cover the AI service
A C5 attestation applies to the services named in the audit report. AI services are often younger than the provider's attestation, so the scope should be checked. AWS is an example of how fine the line can be: its public list of audited services includes Bedrock, with the exception of Bedrock Marketplace. Not every provider publishes such a list. In that case the scope is stated in the audit report, which customers retrieve or request from the provider.
An EU endpoint and zero data retention do not replace the attestation. No C5 attestation is currently publicly known for OpenAI's own API. Organisations subject to Section 393 SGB V can obtain these models through a platform with an attestation, such as Azure.
There is a transitional rule for new services. If a cloud system is first placed on the market after 30 June 2025, a Type 1 attestation is sufficient for the first 18 months, after which Type 2 is required. We list the attestations providers have made public in our overview of LLM APIs with EU endpoints.
Where processing actually takes place
An endpoint in the EU does not always mean that the request is processed there. The large platforms offer several deployment types, and the cheapest one often distributes requests worldwide. On Azure, deployments of type “Global” may process wherever the model runs. With the “Data Zone” type in a European resource, processing stays within the EU. AWS Bedrock also offers geographic and global profiles. OpenAI offers EU data residency per project, subject to approval by its sales team.
The deployment type is chosen during setup. The European variant costs slightly more, currently around ten percent on Bedrock and OpenAI. The European providers in our overview generally process in European data centres anyway.
What is stored
Zero data retention, meaning the provider stores nothing at all, is not a legal requirement. If a provider stores inputs temporarily, this has to be covered by the DPA. Turning off storage reduces the risk of a later leak or demand for disclosure.
Most European providers in our overview store nothing by default. With the US providers this takes an application or a specific configuration:
- OpenAI retains abuse monitoring logs for up to 30 days by default. Zero data retention requires approval.
- On Azure, Microsoft can store flagged requests for human review, carried out by staff in the EEA for European deployments. Customers can apply to have storage and human review removed.
- AWS Bedrock generally stores nothing. For individual models, however, AWS retains traffic for up to 30 days.
- On Google, zero data retention is available through configuration and a request.
For models that Azure and Bedrock offer and operate themselves, the platforms state that the makers of the models do not receive the data. The platform remains the contractual partner and processor. For third-party models from the platforms' marketplaces this has to be checked separately.
Additional features such as stored conversations, uploaded files, batch jobs, and fine-tuning leave data with any provider until it is deleted. For many applications a stateless call is sufficient, with the history kept in your own application. This storage then does not occur.
Section 393 SGB V leaves open whether a US provider with zero data retention is sufficient or whether it should be a European one. That is a risk assessment each organisation has to make for itself. Access by US authorities remains legally possible with US providers, but without stored data the risk drops considerably.
Training on your data
In its guidance on AI and data protection, the conference of German data protection authorities considers applications preferable that do not use inputs and outputs for training. Almost every API in our overview does this by default. The contract should also rule out training on your data.
Free chat products often come with different terms than the API, and without an approved tool staff fall back on them. The authorities therefore recommend providing organisational accounts.
Professional secrecy and state law
Physicians in Germany are bound by professional secrecy under Section 203 of the Criminal Code. They may involve service providers who contribute to their work, as far as this is necessary. The provider has to be bound to confidentiality for this, in practice through an addendum to the contract. Some providers have a standard document for it, others have to be asked. This should be settled early.
Hospitals should also check the hospital act of their federal state. The former bans on processing patient data off the premises have since been removed, but individual states still set requirements of their own.
Pseudonymisation before the request
Not every request needs the full record. Names, dates of birth, and case numbers can be removed or replaced before the request is sent to the model. The contractual requirements still apply, because free text from clinical letters can often be attributed to a person even without a name and therefore remains health data.
Five questions for the provider
- Does the C5 attestation cover the AI service, and which type is it?
- Where is data processed, and which deployment type ensures that?
- What is stored, for how long, and can it be switched off?
- Is training on our data excluded by contract?
- Is there a DPA and a confidentiality commitment under Section 203 of the Criminal Code?
Most providers publish the answers or give them on request. You’ll also need to document the decision within your organisation, usually with a data protection impact assessment. Check separately whether the application is a medical device or falls under the AI Act.
This article gives an overview and does not replace legal advice in an individual case.
