# Inference Cost

- **Canonical URL:** https://getaimath.com/dictionary/inference-cost/
- **Topics:** [Local AI & Open-Weight Models](https://getaimath.com/dictionary/category/local-ai-and-open-weight-models/)
- **Last updated:** 2026-11-25

## 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.

![Local AI vs. Cloud AI: Cooking at Home vs. Ordering Out — Simple two-column cartoon comparing Local AI (running an open-weight model inside your own laptop with total privacy and $0 per question) against Cloud AI (sending questions over the internet to a giant rented kitchen).](https://getaimath.com/diagrams/local-ai-and-open-weight-models.png)
*Napkin Diagram (Local AI & Open-Weight Models): Local AI runs privately on your own computer for free; Cloud AI rents a giant supercomputer over the internet.*

## What is an example of Inference Cost?

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.

## Related Concepts

- [Data Privacy](https://getaimath.com/dictionary/data-privacy/): Data privacy is protecting personal information so it is collected, used and shared only in fair and allowed ways.
- [Cost Per Token](https://getaimath.com/dictionary/cost-per-token/): Cost per token is the price of processing or generating one token, usually quoted per million tokens.
- [Data Sovereignty](https://getaimath.com/dictionary/data-sovereignty/): Data sovereignty is the idea that data is subject to the laws of the country where it is stored or processed.
- [Cost Per Request](https://getaimath.com/dictionary/cost-per-request/): Cost per request is how much one call to an AI model costs, based on the tokens it uses and any extra fees.
- [Local Deployment](https://getaimath.com/dictionary/local-deployment/): Local deployment is installing and running an AI model on your own devices or company servers for real use.
- [Total Cost of Ownership (TCO)](https://getaimath.com/dictionary/total-cost-of-ownership-tco/): Total cost of ownership is the full cost of an AI system over time, including hardware, software, electricity, staff, maintenance and API fees.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/inference-cost/)
