Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
AI glossary
Development

Inference Cost

Also called Token pricing, Cost per token, AI API pricing

What it costs to run an AI model on each request, usually priced per million input and output tokens through an API.

What is inference cost?

Inference cost is the price of using a trained AI model, as opposed to the cost of training it. Each time a model reads a prompt and writes an answer (inference), it uses computing power, and API providers pass that on, usually as a price per million tokens.

How does it work?

A typical bill has a few parts:

  • Input tokens: everything you send, including the system prompt, conversation history, documents and tool results.
  • Output tokens: everything the model writes, usually priced several times higher than input.
  • Reasoning tokens: reasoning models often bill their hidden thinking as output, even though you don't see it.
  • Discounts: many providers charge less for repeated prompt sections (prompt caching) and for batch jobs that can wait.

A simple estimate is: (input tokens × input price) + (output tokens × output price), multiplied by your number of requests.

What is it commonly confused with?

  • A subscription price. A monthly chat plan hides token costs behind usage limits. Inference cost is what you pay when building on the API.
  • Price per word. Prices are per token, and the number of tokens depends on the model's tokenizer.
  • Free local models. Running an open-weight model yourself has no per-token fee, but you pay for the hardware and electricity instead.

Why does it matter?

Costs grow with every user and every message, and long conversations get more expensive as history builds up in the context window. The biggest savings usually come from using a cheaper model where it's good enough (model routing), trimming what you send, caching repeated content and limiting answer length.

Category
Development
Last reviewed
Nov 3, 2026
Also called
Token pricing, Cost per token, AI API pricing

Sources

  • Anthropic: Prompt caching
  • Artificial Analysis: Methodology

Related terms

  • Generative AIInferenceThe phase where a trained AI model processes new data to generate an output or prediction.
  • Generative AITokenThe basic unit of data—often a part of a word—that an AI model processes.
  • Generative AITokenizerThe part of an AI system that splits text into tokens, the small pieces a language model reads and writes, and turns them into numbers.
  • Generative AIContext WindowThe maximum amount of information, measured in tokens, that a model can process within one interaction.
  • DevelopmentModel RoutingAutomatically sending each request to the AI model best suited to it, often a cheap, fast model for easy tasks and a stronger one for hard tasks.
  • ModelsReasoning ModelAn AI model optimized to spend additional computation time generating intermediate steps before answering complex problems.

Read more on Learn

All articles
  • Illustration of developer integrating API code on a computer screenRoundups · Mar 26, 202610 Best AI APIs for Developers in 2026Compare the best AI APIs for developers to integrate language models, image generation, and audio into your applications.
  • Code in glassmorphism style with interfaceRoundups · Jun 4, 20266 Best Local AI Tools You Can Run on Your ComputerRun AI on your own Mac or PC, offline and private. The best local AI tools for chat, documents and images, plus what hardware you need and how to start.
  • People working together on laptops at a shared deskComparisons · Jul 30, 2026Open-Source vs Closed AI ModelsOpen-weight or proprietary AI models? How they differ on licences, cost, privacy, control and capability, and how to choose for each task.