PromptForge
AI Glossary

Cost & performance

Inference cost

Also known as: api cost, token cost, llm cost

Definition

Inference cost is what you pay to run a model on a request, almost always billed per million input and output tokens. Output tokens typically cost three to five times more than input tokens.

The formula is straightforward: (input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate). What surprises teams is how fast it compounds at volume — a cost per call that looks negligible becomes significant across a million calls.

The largest available savings are usually architectural rather than negotiated. Route simple tasks to small models; most workloads do not need a flagship. Cache repeated context. Trim retrieved chunks to what is actually needed. Cap output length explicitly.

Because output is far more expensive than input, asking for concise responses is often the single highest-leverage cost change available.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.