Is it GDPR-compliant to send customer data to OpenAI?
It can be GDPR-compliant to send customer data to OpenAI, but only if specific things are in place: a signed DPA, OpenAI on your sub-processor list, a lawful transfer mechanism for the US, and appropriate technical measures under Article 32. Most teams that shipped an AI feature have not done all four.
- GDPR applies the moment a prompt contains personal data about an EU person. "It is just a prompt" is not a category the regulation recognizes.
- OpenAI is legally a processor (or sub-processor) when it handles your customer data. That requires a written DPA, which OpenAI offers.
- US transfers need a mechanism: the EU-US Data Privacy Framework for certified companies, or Standard Contractual Clauses.
- Article 32 asks for "appropriate technical and organisational measures". Redaction is the strongest one for the prompt path, because data that never leaves needs no safeguards.
- This post is education, not legal advice. For your specific situation, talk to a data protection lawyer.
When does GDPR apply to an LLM prompt?
GDPR applies when you process personal data of people in the EU (or you are established there). Personal data is any information relating to an identifiable person: a name, an email address, an order number tied to an account, a phone number in a support ticket.
There is no prompt exception. If your support bot forwards "Hi, I'm Sarah Chen, sarah@acme.com, my card was charged twice" to the OpenAI API, you just processed personal data and disclosed it to a third party. The same is true for background jobs, evals, and fine-tuning datasets, not just live chat.
If your prompts genuinely contain no personal data (say, you only send product descriptions you wrote yourself), most of this post does not apply to you. The honest first step is knowing which case you are in, and that means actually reading what your app sends.
What is OpenAI, legally, in this relationship?
In GDPR terms, you are the controller (you decide why and how customer data is processed) and OpenAI is a processor: it processes personal data on your behalf, on your instructions, to deliver the API service. If you are yourself a processor for your customers, OpenAI becomes a sub-processor, and your own contracts likely require you to disclose it.
Article 28 says a controller-processor relationship must be governed by a written contract with specific required terms. This is the Data Processing Agreement, or DPA. It is not optional paperwork; without it, the disclosure itself is the compliance gap, regardless of how well OpenAI behaves.
What paperwork do you actually need?
- Sign the DPA. OpenAI offers one for API customers. If you have never seen it, nobody at your company has signed it.
- Update your sub-processor list. If your privacy policy or customer contracts list sub-processors, OpenAI belongs on that list, and many contracts require notifying customers before adding one.
- Update your records of processing (Article 30). The AI feature is a processing activity: what data, what purpose, what recipient, what retention.
- Check your lawful basis. Whatever basis covers the underlying activity (contract, legitimate interests) needs to plausibly extend to the AI processing. A legitimate-interests assessment is worth writing down.
- Consider a DPIA. If the AI feature processes data at scale or touches sensitive categories, a Data Protection Impact Assessment (Article 35) may be required, and is a good exercise either way.
On the training question: per OpenAI's published terms, API and enterprise data is not used to train models by default. That is a real and useful commitment. It is also a separate question from whether the disclosure itself was lawful, so it does not replace the DPA or the transfer analysis.
Does sending data to a US company break the transfer rules?
Chapter V of GDPR (Article 44 onward) restricts transfers of personal data outside the EU unless a valid mechanism covers them. For US companies there are two common ones today.
The first is the EU-US Data Privacy Framework: if the US company is certified under it, transfers to that company are covered by an adequacy decision. The second is Standard Contractual Clauses (SCCs), contract terms approved by the European Commission, usually bundled into the DPA.
Practically: check whether your provider is DPF-certified, and check what transfer mechanism its DPA relies on. Also note where processing actually happens; some providers offer EU data residency options, which simplifies but does not remove the analysis.
What technical measures does GDPR expect?
Article 32 requires "appropriate technical and organisational measures" proportionate to the risk. Article 5(1)(c) adds data minimisation: process only the personal data you actually need for the purpose. Both point at the same practical question. Does the model need the real email address to answer the ticket?
Usually it does not. Redacting or pseudonymising personal data before the prompt leaves your infrastructure is the strongest technical measure available for this path, because data that never reaches the processor needs no safeguards at the processor. GDPR itself recognizes pseudonymisation as a risk-reducing measure (Recital 28 and Article 32 both mention it).
To be precise about what redaction does and does not do: it reduces risk and demonstrates minimisation, but it does not "make you compliant" by itself, and reversible pseudonymised data is still personal data in your own hands. It shrinks what the provider sees; your obligations as controller remain. The mechanics of doing this without breaking your UX are covered in our complete guide to PII redaction for LLM apps.
What have regulators signaled, and where does the EU AI Act fit?
European regulators have made clear that GDPR applies fully to AI systems; there is no AI grace period. Italy's Garante temporarily restricted ChatGPT in 2023 over transparency and lawful-basis concerns, and the EDPB has since run a coordinated look at how data protection law applies to LLM services. The direction of travel is scrutiny, not exemption.
The EU AI Act is a separate law layered on top of GDPR, with its own obligations based on how risky the AI use is. Key obligations apply from August 2, 2026, and the most serious violations carry fines of up to 7% of global annual turnover. For most teams calling an LLM API the practical takeaway is not panic; it is that "we never looked at what our AI feature sends" is aging badly as a posture.
What do you need for each type of data?
| What your prompts contain | Paperwork needed | Technical measures that fit |
|---|---|---|
| No personal data (your own content, synthetic data) | None specific to GDPR | A check that this stays true as the feature evolves |
| Incidental personal data (users sometimes type names/emails) | DPA, sub-processor listing, transfer mechanism | Redaction on the prompt path; minimisation by default |
| Systematic customer data (support tickets, CRM records) | All of the above, records of processing, likely a DPIA | Redaction or pseudonymisation before sending; access controls; audit logging |
| Special-category data (health, biometrics, beliefs) | All of the above, an Article 9 condition, DPIA strongly indicated | Strong preference for data never leaving; get legal advice before shipping |
So, is it compliant or not?
It can be. A team that signed the DPA, listed OpenAI as a sub-processor, confirmed the transfer mechanism, minimised what the prompts contain, and wrote it all down has a defensible position. None of those steps is exotic or expensive.
The uncomfortable truth is simpler: most teams have done none of them, because the AI feature shipped in a sprint and the data-handling review never happened. If that is you, the fix is a checklist, not a crisis. Start by reading one real request your app sends, then work down the table above.
This post is not legal advice. It is an engineer's map of the terrain, written to help you ask your lawyer better questions. For decisions about your specific data and contracts, consult a qualified data protection professional.
Frequently asked questions
- Does OpenAI train on my API data?
- Per OpenAI's published terms, API and enterprise data is not used for training by default. That commitment matters, but it answers a different question from whether your disclosure to OpenAI was lawful in the first place. You still need the DPA and a valid transfer mechanism.
- Is redacted or pseudonymised data still personal data under GDPR?
- In your hands, yes, if you keep the ability to re-identify it (a token vault, for example). But the provider that only ever receives tokens is in a much better position, and GDPR explicitly recognizes pseudonymisation as a risk-reducing technical measure.
- Do I need consent from users before sending their data to OpenAI?
- Not necessarily. Consent is one of six lawful bases; many AI features run on contract necessity or legitimate interests instead. What you always need is a lawful basis you can name, transparency about the processing, and the processor paperwork. Which basis fits is a question for your legal counsel.
- Does using an EU region or zero-retention endpoint solve this?
- It helps with the transfer analysis and reduces retention risk, but the data still left your boundary and was processed by a third party. You still need the DPA, the sub-processor listing, and minimisation. Data residency narrows the problem; it does not close it.
Sether is free and MIT-licensed: npm i @raeven-co/sether · pip install sether. Or paste some text into the live sandbox and watch the redaction happen.
Keep reading
- PII redaction for LLM applications: the complete guide (2026)How to keep names, emails, cards, and secrets out of OpenAI, Anthropic, and other LLM providers: detection methods, reversible tokenization, streaming pitfalls, and tool comparison.
- How to redact PII before sending prompts to OpenAI (TypeScript)A hands-on TypeScript tutorial: detect and redact emails, phones, cards, and API keys before they reach OpenAI, then restore them in the reply. Streaming included.
- How to stop pasting sensitive data into ChatGPT (without banning it)Bans push AI use into the shadows. A browser-side guard that scrubs PII before the prompt is sent works with people instead of against them. How it works and its limits.
- Reversible PII redaction: how redact-then-restore worksWhy one-way masking breaks chat UX, how stable tokens and a local vault make redaction reversible, and when reversibility is the wrong choice.