Own Weights

Using an LLM without an API: what your team calls instead

LLM without API: an internal endpoint you control, with your own key, no vendor rate limits and the same request shape your code already sends.

Updated

Using an LLM without a vendor API means your code sends its request to a model you host, at an address you control, with a key your own team issues. For a developer, the call is close to the vendor call: the same kind of JSON body, the same kind of response, a different base URL and token.

Can you run AI without a third-party API?

Yes, for one well-defined task. Serving an open-weight model in your own cloud account or on-prem removes the vendor key and the vendor’s rate limits from that call. What it does not remove is the work of running the service. Capacity, monitoring, updates and a fallback path become your jobs.

If your team wants to use AI without the OpenAI API, plan the change one call at a time. Moving every AI feature in one step is how projects stall.

What is an internal LLM endpoint, from a developer’s view?

An internal endpoint is an HTTP service that your applications call like any other internal API. Most teams keep the request shape the same, so the application change is small: the base URL, the auth header and the model name.

Behind that address, you own the parts a vendor used to handle:

  • A key you issue and rotate. No vendor key sits in your code.
  • Rate limits you set. Your own capacity is the ceiling, so you size it and can see it.
  • Timeouts, output limits and retry rules that you wrote and can change.
  • Request logs that stay in your systems.

Can you use GPT without the OpenAI API?

No, not by running GPT yourself. GPT models are not sold as downloadable weights, so you cannot host them on your own servers. Your real options are the vendor API, a model you own, or a different model that you can run. Check OpenAI’s current pricing and terms page before you plan around any specific model, since those change.

Which call should you move first?

Pick one task that runs at high volume, has a stable output shape and has a clear right answer. Extraction, classification and routing fit well. Open-ended chat with changing requirements fits poorly.

Then work in this order:

  1. Log the calls for that task: prompt shape, output shape and volume.
  2. Build a test set from your own records and score the current model on it. The test has to come from your data, not from a public demo. See how to test an LLM on your own data.
  3. Train or choose an open-weight model. It must beat the current model on that test before it takes live traffic.
  4. Put it behind the same request shape and the same logging, then switch traffic over in steps.

For a rollout plan, read migrating one task off a frontier API.

What do you give up without a vendor API?

Three things, and they matter.

First, general ability. A model trained for one task is narrow. It may not match a frontier model on work outside that task.

Second, you carry the outage risk. A vendor outage becomes your outage unless you build a fallback. A common design keeps a vendor API as the backup path for the rare case your endpoint fails. See building a fallback on a model you control.

Third, volume matters. At low volume, a vendor API is usually simpler and often the cheaper choice. Self-hosting pays off when one task runs at high volume and the team can run the service well. If neither holds, keep the API.

How do you know the trained model is good enough?

Score the vendor model you call today and the trained model on the same checked records, then send live traffic to the internal endpoint and the vendor API side by side for a while and compare the answers before you switch the call over. The full method is in how to build a test set.

The model assists the people who review its output. It is not legal, medical, tax or financial advice. It runs in your own environment, under your own controls, and whether that meets your obligations is a question for your compliance team.

If you want to see which of your calls could move, run the free AI cost audit in a repository. It lists your AI calls, models, estimated cost and checks, and it runs on your machine. Details are at /free-ai-cost-audit/, or ask us for a call from the homepage.

Questions

Can you run AI without an API?

Yes. You can host an open-weight model in your own cloud account or on-prem and call it over HTTP from your own services. You still run the service yourself, including capacity, monitoring and updates. Vendor keys and vendor rate limits no longer apply to those calls.

Can an LLM run without an API key?

A model you host does not need a vendor key. Your services authenticate to your own endpoint with a token your team issues and can rotate. That token protects your endpoint only, so it is not a vendor credential.

Can you use GPT without the OpenAI API?

Not by running GPT yourself, because GPT models are not sold as downloadable weights. Check OpenAI's current pricing and terms page before you plan around any specific model, since they change.

What is an internal LLM endpoint?

It is an HTTP service inside your network that accepts a prompt and returns text or JSON. It sits behind your normal gateway, logging and access controls, and your applications call it the way they call any internal API.

What does a self-hosted model API look like for developers?

It looks like the vendor API you already use: a base URL, an auth header, a model name, and a JSON request and response. The differences are the address, the key and the limits, which you now set yourself.