# AI pricing model

> Canonical: https://skillalmanac.com/glossary/ai-pricing-model | Last verified: 2026-11-24 | Index status: not offered to search engines

An AI pricing model is the way a provider charges for an AI service. Common forms are a price per token (a small piece of text) on an API, a flat subscription with a usage allowance, and credits.

Also called: AI pricing, pricing for AI, LLM pricing, AI API pricing, per-token pricing.

## In plain language

AI services are sold in a few different ways. Some charge for what you use: the text you send and the text the model writes back are counted in pieces called tokens, and each piece has a price. Others charge a flat monthly fee per person that includes an allowance of use, like a phone plan with a data limit. Some add credits you can buy when the allowance runs out. The same model can therefore cost different amounts depending on how you reach it. The catch is that the bill depends on how much text moves, so long prompts, long answers and agents that loop many times cost more than a single question. Read the provider's own pricing page for current terms, because they change.

## Technical definition

Per-token API pricing meters input tokens and output tokens separately, so a request is billed for the tokens in the prompt and the tokens generated. Anthropic's pricing page lists separate rates for input, output, cache writes and cache reads, and a discount for asynchronous batch processing. OpenAI's API pricing page lists per-token rates for input, cached input and output across processing tiers. OpenAI's business pricing page describes per-seat plans billed per user per month, with credits available for more access. Hugging Face describes pay-as-you-go billing for inference, with included monthly credits on some plans.

## How it shows up when you use agents

Every coding agent has a pricing model behind it. If you reach a model through its API, you are billed per [token](/glossary/token), with input and output counted separately. If you use a subscription plan, you pay a flat amount and draw on an allowance. Both are described on the vendors' pricing pages, which also list cached input, batch processing and tools as separate lines.

An agent makes this matter more than a chat does. It re-sends instructions and file contents on every step and may loop many times, so one task can use far more tokens than one question. Several providers list a separate rate for cached input, which is why [prompt caching](/glossary/prompt-caching) is part of the pricing story.

What breaks when this is misunderstood: comparing two models by their headline per-token rate without counting how many tokens your own work uses, or assuming a flat plan has no ceiling when it has an allowance and a [rate limit](/glossary/rate-limit). The next action is to measure your own token use for a typical task, then apply the price table from the vendor's page. Do not rely on a figure you read elsewhere, because pricing pages change.

## Common confusions

- **Subscription versus API billing.** A plan with an allowance and an API billed per token are separate products, even when the same model sits behind both.
- **Input versus output tokens.** Providers meter them separately, so a long prompt with a short answer and a short prompt with a long answer are not billed alike.
- **Pricing model versus price.** The model is the structure (per token, per seat, credits). The price is a number the vendor can change. This entry covers the structure only.
- **Myth.** A model with a lower per-token rate costs less to run a task. The total depends on how many tokens the task needs and how often it is retried.

## Worked examples in this catalogue

### [llm-cost-estimator](https://skillalmanac.com/skills/skill-almanac/llm-cost-estimator)

```
Give the skill a usage profile (requests per day, input and output tokens) and your own price table.
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A monthly LLM cost range from your usage profile and your own price table, with cache, batch and subscription effects.

Why it exercises the concept: It turns the pricing forms in this entry (per token, cached, batch, subscription) into one estimate. You supply the prices, so it does not tell you what any vendor charges today.

### [Claude Code Pricing: What Drives Cost and Plan Options](https://skillalmanac.com/learn/claude-code-pricing-explained)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains how Claude Code usage is billed: subscription plans that include a usage allowance, API use billed per token, and the settings that control spend.

Why it exercises the concept: It is a worked case of two pricing models side by side for one coding tool, flat plans versus per-token billing.

### [Codex Pricing and Usage Limits: How Metering Works](https://skillalmanac.com/learn/codex-pricing-and-usage-limits)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains how Codex usage is metered: plan allowances first, then token-based credits, with a worked cost example.

Why it exercises the concept: It shows a third form, an included allowance followed by credits, for a different coding agent.

### [agent-session-cost-review](https://skillalmanac.com/skills/skill-almanac/agent-session-cost-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A report of where a saved coding-agent session spent its tokens, produced by a script that reads the session transcript.

Why it exercises the concept: Whatever the pricing model, token use is the driver on metered plans. The skill shows which parts of a session used them.

## Related terms

- [Token](https://skillalmanac.com/glossary/token.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Prompt caching](https://skillalmanac.com/glossary/prompt-caching.md)
- [Rate limit](https://skillalmanac.com/glossary/rate-limit.md)
- [Free tier](https://skillalmanac.com/glossary/free-tier.md)

## Sources

- [Pricing](https://platform.claude.com/docs/en/about-claude/pricing), Anthropic (Claude Docs) (accessed 2026-11-24)
- [Pricing](https://developers.openai.com/api/docs/pricing), OpenAI (API docs) (accessed 2026-11-24)
- [Business pricing](https://openai.com/business/pricing/), OpenAI (accessed 2026-11-24)
- [Pricing and Billing](https://huggingface.co/docs/inference-providers/pricing), Hugging Face (Inference Providers docs) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
