---
title: "Tokens and billing"
description: "How TIR Token Factory bills input, cached input, and output tokens, and how the prompt cache lowers what a request costs."
content_type: "concept"
product: "token-factory"
platform: "TIR"
url: "/tir/token-factory/concepts/tokens-and-billing/"
---

# Tokens and billing

Token Factory bills by tokens, the pieces of text a model reads and writes. There is no fixed or
hourly charge: your project pays only for the tokens its requests use, and an API key costs nothing
to keep.

## Three kinds of token

Every model has three prices, each per million tokens:

- Input tokens are the prompt you send, which includes the conversation so far.
- Cached input tokens are the part of that prompt served from the prompt cache. They are billed at
  the cached input price and are not billed again as input tokens.
- Output tokens are what the model writes back.

The prices differ from model to model and are in the currency of the account that owns the project.
The current prices are in Token Factory's model list and on each model's page; see [Choose a
model](/tir/token-factory/how-to/choose-a-model/).

## How the prompt cache lowers the cost

When a request starts with the same text as an earlier one, such as the same system message or the
same conversation history, the model can reuse its work on that opening from the prompt cache. The
reused tokens are billed at the cached input price, which is never more than the input price.
Caching is on for every request, with nothing to set up.

To get the most from it, keep the unchanging part of a prompt at the start, in the same order each
time.

## Zero data retention

Every Token Factory model has zero data retention: your prompts and the model's outputs are not
stored. A model page shows this as the **Zero retention** tag. A model keeps its prompt cache for
a short time to answer faster; the cache holds numerical model state, not your text.

## Where the tokens show

Each reply's usage counts its prompt and completion tokens and, on models that report it, how many
prompt tokens came from the cache. **Analytics** shows the same counts across the project, with the
cache hit rate. A model's **Metrics** adds the cost of its tokens at your project's prices. **Resource
Usage** in **Project Settings** and **Account Usage** in **Billing & Usage** show what was billed. See
[Monitor usage and cost](/tir/token-factory/how-to/monitor-usage-and-cost/).

For short answers about billing, see the [TIR Token Factory FAQ](/tir/token-factory/faq/).
