AI proxies don’t need to be cheaper — they need trusted privacy gateways

Today I happened to talk about privacy in AI relay services, and the more we talked, the more it felt like this isn’t just a small feature, but a huge product gap: the next layer of infrastructure for AI APIs may not be “cheaper relays,” but a “trusted privacy clearing gateway.”

When most people say “relay services aren’t secure,” they tend to frame it as plaintext over the network, but that’s not really the issue. From the user to the relay, and from the relay to OpenAI, it’s usually all HTTPS. The real problem is: TLS only encrypts up to the current endpoint. When you point base_url to a relay service, that relay becomes the TLS endpoint, and by nature it can see the prompt, response, tool calls, and code context.

This creates a very interesting contradiction:

  • Users want relay services: cheaper pricing, unified APIs, model routing, account pools, quota management, and availability in China.
  • Users also don’t want to trust relay services: code, business documents, private conversations, and customer data may all flow through them.
  • Relay services want to provide lots of features: logging, billing, protocol conversion, retries, model substitution, and risk control.
  • But those features are exactly what require them to see the plaintext.

So in ordinary software architecture, there’s a hard boundary: “a relay service must be able to send the correct plaintext to OpenAI, while also technically being completely unable to see the plaintext” is a contradiction. Unless OpenAI officially supports end-to-end encrypted request bodies, or the relay puts decryption and forwarding inside a remotely attestable TEE.

This is where several product directions actually emerge.

The first layer is a contract-based large relay. Instead of a bunch of small sites each promising “we don’t look,” a sufficiently large AI Gateway handles unified clearing: signing DPAs, getting SOC 2/ISO certified, clearly stating that prompts/responses are not stored, only metadata is retained, providing compensation for leaks, transparency around subprocessors, and incident notification SLAs. What it solves is not “technically unable to see,” but “accountability if something goes wrong.”

The second layer is a ZDR routing gateway. The gateway may not necessarily be unable to see the content, but by default it does not write content logs, and only sends requests to upstream providers that support Zero Data Retention or enterprise no-training policies; if a model/vendor doesn’t meet the data policy, it won’t route to it. That’s much better than the black boxes of many cheap relay services today.

The third layer is a self-hosted or managed private gateway. A company or team runs its own LiteLLM/Portkey/custom proxy, turns off content logging, puts keys into KMS, redacts error logs, and ensures APM doesn’t collect request bodies. This way, plaintext only appears between themselves and the official providers.The fourth layer is the form that comes closer to the ideal from a technical standpoint: a TEE trusted execution gateway. The user’s client first performs remote attestation to confirm that it is connected to the specified code running inside trusted hardware, and only then sends in the key/plaintext. Ordinary relay servers, operations staff, and logging systems cannot see the content; only the code inside the enclave can. It’s not magic, but it narrows the trust scope from “the entire relay station” to “verifiable hardware and code.”

The fifth layer is a local data-masking SDK. Sensitive fields are replaced with placeholders on the local machine; the model processes the structure and logic, and after the response comes back, the local machine restores them. It’s not perfect, but it’s very practical for scenarios like contracts, customer service, code, and spreadsheets.

I think a truly valuable product might look like this:

A Cloudflare/Visa-style gateway for AI APIs: unified access to upstream models, ZDR routing, metadata-only billing, signed usage credentials, content-free log auditing, indemnity clauses, enterprise private gateways, optional TEE high-privacy channels, plus a local data-masking SDK.

Many relays in the market today are still competing on price and number of models, but in the future, what’s truly expensive may not be tokens, but the trust boundary: Who can see my prompts? Who can prove they didn’t store them? Who can take responsibility in the event of a leak? Who can turn “I trust you” into “I can verify you”?

This is a lot like payment clearing/network security infrastructure in the AI era. Model providers sit upstream, relays and gateways sit in the middle, and users and applications sit downstream. Right now everyone is competing for model capabilities, but the privacy, auditing, indemnity, keys, logs, and compliance of the model invocation chain itself may also grow into a large market.