Learn AI Math

Inference Cost

What is Inference Cost?

In one sentence: Inference cost is how much it costs to run a model to get answers.

For APIs, it is usually priced per million tokens. For self-hosting, it includes hardware, electricity and staff time. Bigger models and longer answers cost more.

What does Inference Cost look like?

Processing 1 million input tokens might cost under a dollar for a small model and much more for a top model.

Why does Inference Cost matter?

Inference cost decides whether an AI feature is affordable at scale.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.