Architecture at a Glance
API-Based AI
Data leaves your boundarySelf-Hosted AI
Data stays on your hardwareThreat Model Comparison
Every prompt and response traverses the public internet. While TLS encrypts the connection, the provider's endpoint decrypts and sees the full plaintext. Your ISP, any intermediate network hops, and the provider's infrastructure all touch the encrypted stream. A compromised certificate authority or man-in-the-middle attack at any hop exposes your prompts.
Prompts never leave your internal network. Traffic stays within your VPC, private subnet, or even localhost. No third party sees the plaintext, no ISP routing, no certificate authority dependency for the model connection itself.
Interactive Decision Matrix
Answer four questions about your organization and get a personalized recommendation on which deployment model fits your security and operational profile.
How large is your engineering team, and do you have ML ops experience?
What types of data will your AI systems process?
Which compliance frameworks apply to your organization?
What's your budget and deployment timeline?
Security Gaps in Each Approach
Neither approach is perfect. Here are the most common security gaps in each model — and how Shield addresses them regardless of which path you choose.
The Provider Sees Everything
Every prompt you send to an API provider is visible to their infrastructure in plaintext. Their SOC 2 report certifies their controls — but it doesn't mean your data is invisible to their employees, their logging systems, or a future breach of their platform. This is the fundamental asymmetry of API-based AI: you trust their security for YOUR data.
Operational Blind Spots
Self-hosted AI keeps data local — but it also localizes your security blind spots. You're responsible for GPU node hardening, model runtime patching, access control, and intrusion detection. Without centralized monitoring, a compromised model or exfiltration attempt can go undetected for months. The data is local — but so is the responsibility to protect it.
Multi-Provider Sprawl
Most teams don't use one AI provider — they use three or four. Different models for different tasks, each with its own API, its own data retention policy, its own security posture. The attack surface multiplies with each provider you add. Your security is only as strong as the weakest provider in your stack.
Model Supply Chain Trust
When you download model weights from a hub or registry, you're trusting the provenance of those files. A poisoned model could exfiltrate data through seemingly benign outputs, encode information in token probabilities, or include backdoors that activate on specific inputs. The model runs locally — but you didn't write it, and you can't audit every weight.