Own Weights

LLM in your VPC: private networking for AI traffic

LLM in VPC setup: keep traffic inside your network with private endpoints and no egress. Verify that prompts never cross the public internet.

Updated

An LLM can run with all of its traffic inside your VPC when the model runs in your own cloud account or on-prem and your applications reach it through a private endpoint with no route to the public internet. Data leaves your network only when some part of the path sends it out, so the job is to close every outbound path and then prove that none is open. This guide covers the networking layer only. Own Weights serves the model in the customer’s cloud account or on-prem, so the endpoint belongs to you.

Does LLM data leave my network?

Usually not through the model. A model is a set of weights loaded into memory, and answering a prompt needs no call to an outside server. Data leaves through the parts around the model: the application that calls it, the gateway in front of it, its logs and metrics, and any tool the model is allowed to call. For the wider privacy picture, read LLM data privacy.

Walk the path from the application to the model server and write down every hop. The common leaks are small and easy to miss. A logging library ships request bodies to a hosted tracing tool. Some SDKs send telemetry by default. A base URL still points at a vendor API from a test setup. A container downloads a tokenizer or model file from a public hub at startup. Each one takes a few lines to fix, and each one can expose a full prompt.

What is a private endpoint for an LLM?

A private endpoint is a network address that exists only inside your VPC. Applications connect to it the way they connect to any internal service, and the traffic stays on private address space. It has no public IP, its DNS name resolves only inside your network, and its security rules accept connections only from the subnets that need the model.

For an LLM, the model service sits in a private subnet. The application subnet can reach it on one port. Other hosts cannot, and the model host cannot reach the internet because nothing routes it there. This is VPC isolated AI inference in practice: the model has no path out, and your applications have a path in. It is a fixed internal path, not a public URL with a key in front of it.

When the model runs in your own cloud account or on-prem, you decide which subnets can call it, which identities can reach it and what gets logged. The account side is covered in running a model in your own cloud account.

How do you keep AI traffic off the public internet?

Start with routing. The subnet that holds the model should have no default route to an internet gateway. Skip the NAT gateway too, unless you have a specific reason to allow outbound traffic. Without a route, packets have nowhere to go, which is a stronger control than a firewall rule that says no.

Then set outbound rules to deny by default. Allow only the internal addresses the service needs, such as the model store, the logging system and the identity provider. Anything else is blocked and shows up in your logs as a denied attempt, which is useful evidence later.

Model files need a path too. Copy the weights into your own storage inside the VPC, reach that storage through a private endpoint, and load the files from there. Do not let the server fetch them from a public hub at startup. Pin the exact file version, so the model on disk is the one you tested.

Control DNS too. Resolve internal names through a private zone, because DNS queries show which services an application is trying to reach.

How do you verify that prompts never cross the public internet?

Do not rely on the architecture diagram. Test it. Four checks cover most of the ground, and you should run all of them after every change to routing, DNS or the container image.

  • Flow logs. Turn on VPC flow logs for the model subnet. Send a test batch, then confirm that no accepted connection goes to a public address. Flow logs can arrive late, so wait for them to land before you read them.
  • Egress attempt. From a host in the model subnet, try to open connections to a public address on a few common ports. Every attempt should fail. If one succeeds, the route or the rule is wrong, and you have found the leak before an auditor did.
  • Offline run. Remove every network path except the internal ones, send the test prompts, and confirm that the service still answers correctly. If it fails, something in the stack is calling out, and the failing log line tells you what.
  • Packet capture. On the application host and the model host, capture one test request and confirm that every address in the capture is internal.

Keep the results with your architecture records and rerun the tests on a schedule. One passing run only shows the setup on that day.

When is private networking the wrong fix?

Private networking closes one risk: traffic crossing the public internet. It does not make a model more accurate, and it adds work. You now run the service. You own the capacity, the patching, the scaling and the on-call rota. If your team cannot run an internal service with confidence, a hosted API with written data retention terms may fit better. Compare the two on paper first. API, self-hosted or managed lays out the trade-offs.

Network placement does not settle how good the model is either. On the public contract exam we ran, our Accuracy model scored 0.717 against 0.635 for Claude Opus. Claude took that exam with one prompt, no examples and no task training, while our models were fine-tuned for it. That is one fine-tuned model on one task. It does not mean a fine-tuned model beats Claude at everything.

Tools need the same scrutiny. If the model can call tools that reach outside services, each of those calls is egress. Allow-list them one by one, and log each call with its destination.

To see which AI calls in your code already leave your network, run the free AI cost audit. It reads code as text on your machine, makes no network calls while it reads, and uploads nothing. For a plan to keep the model inside your VPC, book a call.

Questions

does llm data leave my network?

Only if something in the path sends it out. The model itself does not need to call a server to answer a prompt, so the risk sits in the application, the gateway, the logs and any tool calls. Check each hop, then test it.

private endpoint for llm

A private endpoint is an address that exists only inside your VPC, so applications reach the model without a public IP or an internet route. Security rules limit it to the subnets that need it, and every other host is denied by the same rules.

ai model with no data egress

It is a deployment where every outbound path is closed and tested, not one where a vendor promises not to look. The model runs on servers you control, and the proof is an outbound connection attempt that fails. Keep those test results with your architecture records.

keep ai traffic off the public internet

Remove the default route to the internet from the model subnet, deny outbound traffic by default, and load model files from storage inside your network. Then confirm with flow logs that no accepted connection goes to a public address.

vpc isolated ai inference

It means the model service runs in a subnet with no path to the public internet, reached only by your internal applications. You run the operations, so it suits teams that can support an internal service. If they cannot, a hosted API with written data retention terms may fit better.