Blog

AI inference cost: what you pay per token, image, second and clip

Prices checked Nov 26, 2026 · 4 min read

AI inference cost shown as a meter reading for one model run

AI inference cost is what you pay every time a trained model produces an output. Through an API it is a price per unit: per 1M tokens for chat (Claude Haiku 5.5 is $0.06 in and $0.30 out), per image (Nano Banana 2.1 at 1K is $0.02), per second or clip for video (Veo 3.1 Fast at 1080p is $0.325 a clip) and per 1,000 characters for speech (ElevenLabs Turbo 2.5 is $0.0375). The model maker pays for training. What you pay is inference, so that is the number to budget.

How LLM inference cost works

Chat models meter inference in tokens, split into two parts. Input tokens (your prompt, context and history) are read once. Output tokens (the answer) are generated one at a time, so they cost more. In our catalog, output costs 5 times input for eight of the nine models and 3 times for Grok 4.7.

So the LLM model cost formula is:

cost = (input tokens / 1,000,000 x input price) + (output tokens / 1,000,000 x output price)

Take a request to Claude Haiku 5.5 with 2,000 tokens in and 500 out. Input is 2,000 / 1,000,000 x $0.06 = $0.00012, output is 500 / 1,000,000 x $0.30 = $0.00015, and the total is $0.00027. A thousand of them cost $0.27. On Claude Opus 5.5 ($1.60 in, $8.00 out) the same request is $0.0032 + $0.0040 = $0.0072, about 27 times more.

The LLM price comparison has the full nine-model table, and LLM API pricing explained covers how billing works.

Inference cost for image, video and speech

Media models don't meter tokens. They charge for what comes out:

TypeModelUnitPrice
ImageNano Banana 2.1, 1Kper image$0.02
ImageGPT Image 2, 1Kper image$0.03
VideoVeo 3.1 Fast, 1080pper clip$0.325
VideoWan 3.0, 1080pper second$0.16
VideoKling 4.0, 1080pper second$0.2125
SpeechElevenLabs Turbo 2.5per 1,000 characters$0.0375

Resolution moves the price most. Nano Banana 2.1 costs $0.02 at 1K and $0.045 at 4K, 2.25 times as much. Veo 3.1 Fast costs $0.30 at 720p and $0.90 at 4K, 3 times as much. If you only ever view the output on a phone, paying for 4K buys pixels nobody sees.

A full pipeline, worked out

A short product ad uses four models once each:

  1. The script is a Claude Haiku 5.5 call, 2,000 tokens in and 500 out: $0.00027
  2. The key frame is one Nano Banana 2.1 image at 1K: $0.02
  3. The clip is one Veo 3.1 Fast video at 1080p: $0.325
  4. The voiceover is 500 characters on ElevenLabs Turbo 2.5: 0.5 x $0.0375 = $0.01875

Total: $0.00027 + $0.02 + $0.325 + $0.01875 = $0.36402, about 36 cents. The clip alone is 89% of that ($0.325 of $0.364). The chat step, which people worry about most, is under 0.1%. Your unit cost comes down to which video model you pick. The other three steps add up to $0.03902, so trimming tokens from the script won't change anything you'd notice. Cut the biggest line first.

Self-hosting versus an API: the break-even formula

Running your own model swaps a per-unit price for a fixed monthly cost covering hardware, power and people. It only comes out cheaper once your volume is high enough.

break-even tokens per month = monthly server cost / price per token

Here is a worked example rather than a quote. Say your own server costs $1,500 a month all in. At an API price of $1.20 per 1M tokens (a 3-to-1 input-to-output blend on Gemini 4 Hydrogen or GPT-6.2 Sol), break-even is $1,500 / $1.20 = 1,250 million tokens a month, or 1.25B. Below that volume the API costs less, and you pay nothing while it sits idle. At Claude Haiku 5.5's blended $0.12 per 1M tokens, break-even is ten times higher: 12.5B tokens. Before you act on this, plug in your own server cost and token mix.

Self-hosting also costs engineering time, uptime work and model updates. These are real but hard to fit in a table, so count them separately.

How to estimate inference cost for your product

  1. List every model call that one user action triggers.
  2. For chat steps, send 10 real requests and average the token counts in the usage field.
  3. For media steps, count the images, seconds, clips or characters.
  4. Multiply each count by its unit price and add the results. That gives you the cost per action.
  5. Multiply by actions per month, then add a buffer for retries.

The LLM cost calculator does step 2 and the media cost calculator does step 3. All four categories are on one page at model pricing across chat, image, video and audio, and Veo's live rates are on the Veo pricing page.

Frequently asked questions

What is AI inference cost?

Inference cost is what you pay each time a trained model runs on your input. With an API it is a per-unit price: per 1M tokens for chat, per image, per second or clip for video, per 1,000 characters for speech. Training cost is a separate, one-off expense that the model maker bears.

What drives LLM inference cost?

Four things: the model size, the number of input tokens, the number of output tokens, and the price multiplier on output. Output tokens usually cost 3 to 5 times more than input. In our catalog the range per 1M output tokens is $0.30 for Haiku 5.5 to $20.00 for Fable 5.

Is it cheaper to self-host a model than to use an API?

Only at sustained high volume. A server costs money whether it is busy or idle, while an API charges per unit used. Divide your monthly server cost by the API price per token to find the break-even volume, then compare it with your actual traffic.

How do I estimate inference cost before building?

Run 10 real requests, read the token counts from the usage field, and multiply the averages by the per-unit rates. For media, multiply the unit price by how many images, seconds or clips you expect. Add a buffer for retries and longer conversations.

Sources