Own Weights

Open-source LLM API providers vs owning the weights

Open source LLM API providers bill per token and run the servers for you. Compare them with frontier APIs and with owning trained weights, on cost and control.

Updated

An open source LLM API provider runs open-weight models for you and bills per token, so you never run a server. You send a request to an endpoint and pay for the tokens going in and coming out. Hosted providers can cost less per token than a frontier API and offer a choice of models, but you rent the model and do not own the weights.

What is an open source LLM API provider?

An open source LLM API provider hosts open-weight models behind an HTTP endpoint. Some accept requests in the same shape as frontier APIs, which can make a switch a small code change. The provider runs the hardware, the scaling and the updates.

What you do not get is control over the model’s life. The provider decides when a version changes, when it is retired and what it charges next quarter. The weights stay on their side, so you cannot take the model somewhere else if the terms change.

How does pay per token open source model pricing work?

You pay for every token in and every token out. Input covers the prompt, the instructions, retrieved text and chat history. Output is the answer. Output tokens usually cost more than input tokens, and a long prompt costs money even when the answer is one word. Rates differ by model and provider, so read the current pricing page before you plan a budget.

For reference, the Claude list prices are $4 per million input tokens and $20 per million output tokens for Opus, and $0.10 input and $0.50 output for Haiku, for prompts up to 100K tokens. Anthropic’s Batch API is half price. For OpenAI and Google, check their current pricing pages.

Hypothetical: a feature sends 100 million input tokens and 10 million output tokens a month to a frontier model priced at the Opus list rate. That is $400 for input and $200 for output, or $600 in total. Round numbers, for illustration only.

Inference provider vs self hosting: which costs less?

A hosted provider has no fixed cost. You pay for what you send, and the bill falls to near zero when traffic stops.

Self-hosting turns the bill into capacity. You pay for servers whether they are busy or idle, and your team owns uptime, upgrades and capacity planning. Utilization decides the result. Low or spiky traffic leaves owned capacity idle, which makes per-token billing the better deal. Steady, high traffic keeps owned capacity busy, which can flip the comparison. For the full break-even math, see API vs self-hosted LLM cost, and for shared versus dedicated capacity see serverless vs dedicated inference.

Is an open model API cheaper than OpenAI?

It depends on the model and the provider, and token price alone misleads. Models count the same text differently, and some need more tokens or retries to get an answer right. Check OpenAI’s current pricing page, then compare cost per correct answer on your own task.

Send the same checked examples to each provider, divide what the run cost by the number of exactly right answers, and rerun the same set whenever a provider changes the model version behind its endpoint. The full method is in how to build a test set.

Managed inference for open-weight models: what you give up

Managed inference trades control for convenience. The costs are specific:

  • The provider picks the hardware, the region and the serving setup. Your throughput depends on their capacity and their rate limits, and rate limits can throttle you at the worst moment.
  • Model versions change on their schedule. A model you tested last quarter may be retired this one.
  • Your prompts and outputs pass through a third party. Read the retention and training terms before you send customer data.
  • You cannot take the weights with you. Switching later means testing again on a new model.

Should you own the weights instead?

Own the weights when one high-volume task runs every day, when you can measure quality on your own data, and when you need the same model version for a long time. Own Weights fine-tunes an open-weight model for one high-volume task a company now sends to a frontier API, tests it against the current model on the company’s own data, and serves it in the customer’s cloud account or on-prem. The customer owns the weights.

The process has four steps. Audit is free and maps AI spend by task from code and invoices. Evaluate builds a test from the customer’s real data and scores the current model first. Train produces a model that must beat the current model on that test before it is deployed. Serve runs it in the customer’s cloud or building, tuned for throughput.

Owning is the wrong move when volume is small, when your tasks change every month, or when you cannot measure whether an answer is right. A hosted API is cheaper to run in those cases and easier to leave. For the ownership question see why owning your model weights matters, and for the per-answer math see cost per correct answer.

If you already pay a frontier or hosted API for one repeated task, start with the free AI cost audit. It reads your code on your machine, uploads nothing, and saves a PDF listing your AI calls, models, estimated cost and common checks. Or book a call with Own Weights and we will go through your numbers.

Questions

Can I pay per token for an open source model?

Yes. Hosted providers serve open-weight models behind an API and bill per input and output token, so you run no servers. Rates differ by model and provider and change over time, so check each current pricing page before you build a budget on one.

Is an inference provider cheaper than self hosting?

It depends on steady traffic. A provider has no standing cost, while owned capacity is paid for whether or not it is working. Put your real request pattern into both models before you decide.

How do open model API prices compare with OpenAI?

Look up OpenAI's current pricing page, since its rates change by model. Token prices alone can mislead, so compare what one correct answer costs on your own test set.

What is managed inference for open-weight models?

It is a service that runs an open-weight model on infrastructure the provider controls and bills you for usage. You skip the servers, but the provider sets the model versions and retirement dates. If you need one fixed version, own the weights or get a written commitment.

Which open source LLM API provider should I pick?

Pick on your own test, not on a leaderboard. Send the same set of real examples to each candidate, count how many come back exactly right, and compare cost per correct answer. Read each provider's data retention terms before any customer data goes in.