Tokens, subscriptions, API calls, self-hosting costs: AI pricing looks simple on the surface and gets confusing fast. Here's how the different pricing models actually work, so you can estimate real costs instead of guessing.
Every AI provider seems to price things a little differently, and the numbers change often enough that it's easy to lose track of what you're actually paying for. Rather than listing specific dollar figures that will be outdated within weeks, this post explains the underlying pricing mechanics so you can read any provider's pricing page and understand exactly what's being charged.
TL;DR: AI pricing is almost always based on tokens (chunks of text), not questions or messages, and input and output tokens are often priced differently. Subscriptions suit predictable, personal use; API pricing suits variable or high-volume use. Open-weight models remove the per-token fee but shift the cost to your own compute. For exact current numbers, always check the provider's official pricing page, since rates change frequently.
Nearly every proprietary model charges based on tokens, the small chunks of text a model reads and generates, roughly a word or part of a word. This is why a short question with a long answer can cost more than a long question with a short answer: you're typically billed separately for input tokens (what you send) and output tokens (what the model generates), and output tokens are usually priced higher. It also explains why attaching a large document or image to your prompt increases cost, since the whole document counts as input tokens even if the model only uses part of it.
There are two very different ways to pay for the same underlying model:
For current rates, check each provider's official pricing page directly: OpenAI pricing, Anthropic pricing, Google AI pricing, and xAI pricing.
Models like Llama, DeepSeek, Qwen, GLM, and Kimi can be downloaded and run without paying a licensing fee per token. But running a model still requires compute, either your own hardware or a cloud GPU rental, and that cost doesn't disappear just because the model itself is free. At low volume, renting API access to a hosted version of an open-weight model (through a provider like Together AI or Fireworks) is often cheaper than running your own infrastructure. At high, sustained volume, self-hosting can become cheaper. For a deeper look at when each approach makes sense, see our guide on open-weight vs. proprietary AI for business use.
Why did my AI bill change even though I didn't change how I use it? Providers periodically adjust their pricing, and if you're on an API plan, a new model version can also have a different rate than the one it replaced. Check the provider's pricing page for the latest rates.
Is a subscription always cheaper than the API? Not necessarily. Subscriptions are predictable but capped; the API scales with usage. Light users often do better on the API, while heavy daily users often do better on a subscription.
Are open-weight models actually cheaper overall? Usually, but not automatically. They remove the per-token licensing cost, but you still pay for compute, either your own or a rented GPU, so the real savings depend on your usage volume and whether you're already running infrastructure that can host the model.
What's the easiest way to cut AI costs without hurting quality? Route routine, high-volume tasks to a smaller or cheaper model and reserve the flagship model for tasks that actually need it. This "portfolio" approach, covered in our main AI models guide, is one of the most effective cost levers available.
Last updated: July 28, 2026. Pricing changes frequently across every provider; always confirm current rates on the official pricing page before making a budgeting decision.