How companies make money running AI models they did not build

Picked by

· written by AI, fact-checked ·

Companies such as Fireworks and Together AI sell access to AI models that other labs built. Many of those models are open-weight. That means anyone can download the weights: the numbers a model learns during training. So customers could run these models themselves. Yet many pay a provider to do it for them.

The YouTube video The Strange Economics of LLM Inference-as-a-Service explains why. LLM is short for large language model, the kind of AI that reads and writes text. The video looks at what these providers sell, what it costs them, and how they try to earn more than they spend.

The short version

  • Customers pay a provider because big models need costly chips and a lot of engineering to run well.
  • In the video’s simple example, a server writing 900 output tokens a second earns about $22.55 an hour. Its GPUs cost $48 an hour to rent. It would need about 2,000 tokens a second just to cover that.
  • Providers cut costs by reusing earlier work, serving many customers at once, and writing software tuned to their chips.
  • Groq and Cerebras go further and build their own kinds of chips.
  • The video’s 545% figure for DeepSeek compared a theoretical profit with cost. It was not a profit margin on real sales.

Why pay someone else to run it?

Running a large model needs expensive hardware. Getting useful work out of that hardware also takes a lot of engineering.

A provider has to answer requests quickly. It also has to keep enough customers using its servers to cover the cost. So the business depends on two things: how efficiently the provider runs the model, and how steadily customers use it.

What does an inference provider sell?

Inference means using a model after it has been trained. Someone sends a prompt: the question or instruction they type. The model reads it and writes an answer in tokens. Tokens are the small pieces of text a model works with, often a word or part of a word.

An inference provider does this work for its customers. They send requests through an API, a software link that lets one program ask another to do a job. That way they do not have to buy or rent GPUs and run the model themselves. GPUs are the chips AI models usually run on. They can do many calculations at the same time.

The video sorts providers into four groups:

  • Big cloud companies, such as Amazon, Microsoft and Google. They offer inference next to their other cloud services (computing power and storage rented over the internet).
  • Cloud companies built around GPUs, such as CoreWeave and Nebius. They mainly rent out computing power, both for training models and for running them.
  • Companies that focus on serving models, such as Fireworks and Together AI. They improve the software that runs the models and charge customers for what they use.
  • Groq and Cerebras, which go further. They design different kinds of processors (the chips that do the calculations) to run models faster.

Several providers can serve the same open-weight model. They compete with each other. They also compete with the lab itself, which sells access through its own API. So each provider needs an edge, such as lower prices, faster answers or more reliable service.

Why charging for tokens may not cover the bill

The presenter uses a simple example based on DeepSeek V4 Pro to show how hard the sums can be.

Picture one server with eight Nvidia B200 GPUs. Each GPU is rented for $6 an hour. So the GPUs alone cost $48 an hour. That is before paying for other computing costs, networking or staff.

The example uses the prices quoted in the video. Input tokens (the text customers send in) cost $1.74 per million. Output tokens (the text the model writes back) cost $3.48 per million. These are the video’s figures, not a guarantee of current prices. The example also assumes customers send two input tokens for every output token.

On those numbers, each million output tokens brings in $6.96. That is $3.48 for the output itself. The other $3.48 pays for the two million input tokens that come with it.

Say the server writes 900 output tokens a second, across all its customers. That adds up to 3.24 million in an hour. They earn about $22.55, which is less than half the $48 GPU bill. To cover that bill, the server would need to write about 2,000 output tokens every second, nonstop.

This is a worked example. It is not taken from any real provider’s accounts. Rental prices, real speeds and the mix of input and output tokens can all be different. Still, it shows why a provider needs both steady use and efficient systems. It pays for the server even when customers are not keeping it busy.

Reading a prompt and writing an answer are different jobs

The video splits inference into two stages, called prefill and decode.

In prefill, the model reads the prompt. Much of this work can be done side by side, all at once. That suits GPUs, which are built to do many calculations at the same time.

In decode, the model writes the answer one token at a time. Each new token depends on the text written before it. For every token, the system reads the model’s data again. It also reads stored information about the conversation so far.

This makes memory speed very important in decode. The chip may be able to do more sums than it gets to use, because it is waiting for data to arrive. This also helps explain why providers often charge more for output tokens than for input tokens.

Providers have several ways to cut the cost of both stages.

Reusing work and serving customers together

When a model reads a prompt, it builds a KV cache (short for key-value cache). This is stored information that the model’s attention mechanism uses to write the answer. The attention mechanism is the part of the model that works out which earlier text matters most for the next token.

A later request may start with exactly the same text. If so, the server may be able to reuse that stored information. It can then skip reading the shared part again.

Coding agents are a good example. These are AI tools that write code. They send the same instructions, tool descriptions, code and chat history again and again. Much of that text stays the same from one request to the next. So caching can save a lot of repeated work.

Reusing a cache still takes some work. The server has to find it, move it to the right machine and read any new text. But it is usually cheaper than working everything out again.

Batching saves money in a different way. The server writes the next token for many customers at once, instead of one customer at a time. The GPU can then reuse the model’s data across all those requests.

With continuous batching, finished requests leave the group and new ones join it. Customers do not have to start and finish together.

This gives a busy provider an advantage: more requests can make each one cheaper to serve. But there are limits. Waiting to gather a bigger batch can slow down answers. More requests running at once also need more memory for their caches.

Large providers can also give prefill and decode to separate groups of GPUs. One group reads the prompts. It then sends the cache it built to a second group, which writes the answers. This lets the provider give each stage the hardware it needs. It also stops a long new prompt from slowing down answers that are already being written.

Changing how the GPU does the work

The presenter also explains custom kernels. A kernel is a small program that tells a GPU how to carry out a particular step.

General software has to work with many models and many hardware set-ups. A specialised kernel can be built for the exact model, data format and GPU in use.

Some savings come from moving data less often. For example, separate steps might each read data from memory, do a sum and write the result back. A fused kernel joins several steps into one. The results in between can then stay in faster memory.

Another method, tiling, splits big calculations into smaller blocks. The GPU can reuse the data in each block before it fetches more.

FlashAttention uses this method for attention calculations. It works through small blocks, one at a time. That way it never has to store the full grid of attention scores in the GPU’s main memory, and that grid can be huge. (Attention scores are the numbers that show how much each piece of text relates to the others.)

These tricks take specialist engineering. They do not work equally well everywhere. Software tuned for one GPU or one kind of work may run badly on another.

The presenter argues that the labs that build models can have a head start. They can get their serving software ready before they release the weights. They can also tune it for the requests their own customers send. An outside provider then has to fit the new model into its system and tune that system itself.

What DeepSeek’s figures actually showed

The video cites a report DeepSeek published in February 2025 on how it serves its V3 and R1 models. The report gives speeds for one server, or node, with eight H800 GPUs. In prefill, it handled about 73,700 input tokens a second. In decode, it wrote about 14,800 output tokens a second.

Those figures come from DeepSeek’s real production work, meaning the requests it was actually serving. More than half of the input tokens were cache hits. In other words, the system reused calculations it had already done. So the input figure does not mean it could read brand new prompts that fast.

The video’s description of a 545% margin also needs correcting. DeepSeek worked out what its sales would be if every token were billed at R1 prices. It then compared that theoretical figure with its estimated cost of renting the GPUs. The 545% is the profit measured against that cost estimate. Put another way, the theoretical sales were 6.45 times the estimated cost.

A profit margin usually means the share of sales that is left as profit after costs. The 545% was not an actual profit margin on sales.

DeepSeek itself said its real sales were much lower. Its V3 prices were cheaper than R1’s. Its website and app were free to use. It also gave discounts at night.

Building chips for inference

Groq and Cerebras try to speed things up by changing the hardware itself.

Groq’s chip is called the Language Processing Unit. It uses a compiler: software that turns a program into exact instructions for a chip. The compiler plans the calculations and the data movements before the work starts. The design relies on fast memory built into the chip, and on carefully timed movement of data.

Cerebras builds a processor that covers almost a whole silicon wafer. A wafer is the thin disc of silicon that normal chips are cut from, many at a time. So the Cerebras chip holds a lot of computing power and fast memory in one piece. That cuts some of the need to move data between separate processors.

The video talks about how fast their chips can write answers for a single user. That is different from a server’s total output across many customers. A fast answer for one user does not, on its own, show how much work the whole system can do. Nor does it show what each token costs to serve.

These providers also have to adapt their systems to each new model. A model that runs on normal GPUs may not work on special hardware straight away.

Why a model lab might use another company’s servers

The presenter’s closing argument is that building models and running a worldwide inference service may more and more become separate businesses.

A lab needs computing power to train its next model. Serving more and more customers uses up that same power. With limited money, or limited access to advanced chips, doing both gets harder. Chinese labs can face extra limits from export restrictions: government rules on what can be sold to other countries.

So a lab may release a strong model without enough servers and equipment to answer requests quickly around the world. A separate provider can supply them.

The presenter expects better open-weight models to increase demand for these services. That is the presenter’s forecast. As the video describes it, the opportunity is to keep a model always available and answer quickly. A provider also has to serve enough requests, efficiently enough, to cover the cost of running the model.

Sources