A German company wants to add AI to customer support. One option sends selected messages to an external model API. Another runs an open-weight model in a controlled environment. Both can fail the requirements review: the API may retain data the company cannot share; the local installation may expose documents through an unrestricted retrieval index.
The deployment decision needs two separate answers: which data may reach which service, and which system performs the task reliably enough? A local model is not automatically compliant, and a cloud model is not automatically unsuitable for personal data.
Define the deployment model precisely
“Local” can mean a model on an employee laptop, a server in the company's data centre, or a dedicated deployment operated by a hosting provider. These setups have different administrators, network paths, update mechanisms and recovery responsibilities. Write down the actual arrangement instead of treating the label as a guarantee.
For a cloud API, specify the contracted service and configuration. A consumer chat account and an enterprise API from the same supplier can have different terms, retention settings and administrative controls. Verify the version you will actually use.
| Question | Evidence to request for either model |
|---|---|
| What leaves the application? | Sample request, attachments, retrieval context and metadata |
| Who can access it? | Application roles, operators, support access and subprocessors |
| Where is it retained? | Prompt history, application logs, vector index, provider logs and backups |
| Is it used for training? | Applicable contract, product terms and enabled settings |
| How is access revoked? | Identity removal, retrieval permissions and credential rotation |
| Who maintains the service? | Named owner for updates, incidents, capacity and recovery |
A worked example: answering questions about customer contracts
Consider a fictional supplier portal. Staff want an assistant that finds notice periods in uploaded contracts. The result is a draft for a human reviewer; the assistant cannot cancel a contract or send a message to a customer.
Start with an approved test set containing representative documents, ambiguous clauses and documents the test user must not access. Remove unnecessary personal information where the task allows it. Keep the original permission boundaries: retrieval must filter by the requesting user's authorised customer and document scope, not simply search every embedding in a shared index.
Now test both deployment options against the same cases. Record correct answers with their supporting passages, unsupported answers, appropriate refusals, response time and cost. A smaller local model that misses exceptions may be unsuitable even if it fits the hosting requirement. An accurate external model may be unsuitable if its contractual data handling cannot meet the approved requirements.
The useful output is a decision record: tested model and configuration, permitted document classes, unresolved failures, human review step and approved operating boundary. “The demo worked” does not establish that boundary.
GDPR assessment follows the processing, not the model label
Identify the purpose, lawful basis, controller/processor roles, information duties and relevant rights. Where a provider processes data on your behalf, assess the necessary processing agreement. Consider a data protection impact assessment where the processing is likely to create high risk. These questions still exist when inference runs on your own server.
If personal data is made available to another organisation outside the EEA, assess the applicable transfer conditions as well. The EDPB's transfer guide explains this additional layer. An EU hosting region alone does not answer questions about separate recipients, remote support or onward processing. Equally, provider ownership alone is not a complete legal assessment or a guarantee that access is impossible.
Keep the AI Act assessment separate: intended use, organisational role and applicable obligations matter. Hosting a model locally does not settle that classification. For user-facing disclosures, see the Article 50 checklist; it addresses transparency rather than certifying the whole system.
Compare total operating cost
For an API, model a normal month and a peak month using representative input/output lengths, retrieval requests, retries and any retained storage. For a local deployment, include available capacity, hardware or hosting, idle time, patching, monitoring, backup and operator time. Neither token pricing nor a GPU rental quote is the whole cost.
Measure completed, accepted tasks as well as requests. A cheaper model that creates more manual correction can have a higher cost per useful answer. Record quality and cost together before committing to either setup.
Use a hybrid only where the boundary can be enforced
A hybrid might keep confidential contract retrieval in a controlled deployment while using an external service for public product descriptions. Enforce that routing in the application, with explicit permitted inputs and tests. Do not rely on a prompt asking the model to avoid sending confidential information.
Include failure behaviour in the design. If the local model is unavailable, an automatic fallback to a public API would change the approved data flow. A queue or manual workflow may be the appropriate fallback instead.
Before launch, test deletion across application storage and retrieval indexes, permission changes, provider failure and a model update against the evaluation set. Keep the remaining risks and accepted limitations visible to the responsible business and privacy owners.
H-Studio helps implement AI workflows and their access, retrieval and operating controls. The starting point is a bounded use case and verifiable data flow; the model choice follows the evidence.

