A cloud API call hands your prompt to another party. For personal or regulated data, that brings in contract, retention and transfer rules. Five afternoon-sized checks settle what may go to a cloud model, what stays on a local one, and what each route costs per task.
One route per data level, in config
# routes.yaml: one route per data level
unlabelled: high
levels:
low: {route: cloud}
moderate: {route: cloud, requires: [signed_terms, pinned_region]}
high: {route: local}
on_cloud_down: local # never fail over to cloud
provider_terms:
max_retention_days: RETENTION_DAYS # set from your signed terms
training_use: falseThe checks
Everything starts ticked. Untick what you will not do; the choice is saved on this device only, and Print keeps only what you kept.
What happened. Health-data guidance says a cloud provider that maintains protected health information for a covered entity is a business associate under HIPAA, even when it holds only encrypted data and lacks the key. FIPS 199 rates information LOW, MODERATE or HIGH. Each level gets a route.
The check.
- List every data class your AI reads (tickets, contracts, health records, code) and give each a level.
- Enforce one route per level in the gateway; unlabelled data gets the strictest.
low: cloud moderate: cloud, signed terms high: local only # and any unlabelled data
Source: Guidance on HIPAA and cloud computing, content last reviewed 23 Dec 2022; FIPS 199, Standards for Security Categorization, Feb 2004
What happened. A regulator's guide to processor contracts lists: act only on documented instructions, delete or return the data at the end, authorise any sub-processor. One API provider's guide says abuse logs are kept up to 30 days by default and zero retention needs prior approval.
The check.
- Request each provider's terms, tick those three items, record retention days and training use.
- A class whose terms fall short moves to the local route.
Source: A Practical Guide to Controller-Processor Contracts, June 2019; Data controls guide, a model API provider's documentation, read 27 Nov 2026
What happened. A transfer has three cumulative criteria in the EU data-protection board's guidelines, one being an importer in a third country; remote access from there counts, even only displaying data on a screen, and so does storage in a cloud outside the EEA.
The check.
- Record where each route processes prompts and where logs and stored objects rest.
- For routes leaving your region, have your privacy lead confirm the transfer basis.
Source: Guidelines 05/2021 on Article 3 and international transfers, v2.0, 14 Feb 2023
What happened. Reliability guidance says a component should keep its core function when a dependency is unavailable, even degraded. A local model is a different model: in one study of 1B to 405B parameter models, smaller ones could suffer severe accuracy drops at 4-bit quantization.
The check.
- Run a sample of real prompts through both models and write down the gap.
- Fail over cloud to local only; drill it by blocking the cloud endpoint in staging.
if level == "high" or not cloud_up:
return local # never fail over to cloud
return cloudSource: REL05-BP01, Implement graceful degradation, reliability pillar guide, read 27 Nov 2026; Quantization methods, task difficulty and model size, from edge to giant, arXiv v6, 4 Jun 2025
What happened. One 2025 cost analysis finds on-premise viable mainly at 50M tokens a month or more, or under strict residency rules. Break-even typically runs from a few months for small models to 5 years for larger ones, counting hardware and electricity only.
The check.
- Log input and output tokens per task for a week; price each at its own per-million-token rate.
- Divide local hardware, power and staff time by monthly tasks; move a class only if local wins.
Source: API pricing page, a model API provider, read 27 Nov 2026; A Cost-Benefit Analysis of On-Premise LLM Deployment, arXiv v3, 11 Nov 2025
Effort is a planning estimate: about an afternoon per check. Break-even figures come from one paper's model; accuracy drops are what can happen to smaller models, not every model. Laws and provider terms change; read yours.
Take this list with youThe PDF is the handout: this list on one or two pages. The Markdown is for your own docs, your wiki, or an assistant you want to hand the list to. Print gives you this list only, without the navigation.
Something in your production AI broke in a way that is not on this list? Tell me what broke.