Billing for Hetzner Inference API

Last change on 2026-11-11 • Created on 2026-11-11 • ID: AI-24217

You pay only for what you use with the Hetzner Inference API. This page explains how we calculate costs, how we round numbers, and where you can see your usage.

Billing model

Inference Tokens are of the Usage-Based type. There is no base fee for this type. We charge only for the tokens that the models actually process for your requests.

We charge per 1 million tokens, and prices vary by model. Each model has its own price for:

  • Input tokens
  • Cached input tokens
  • Output tokens

Prices

You can find the current prices for all models on the Hetzner Inference API website.

We bill in euros or US dollars, depending on your account’s currency.

⚠️ Please note that we always show consumption excluding VAT. You can read how we calculate VAT in VAT.

Calculated tokens

  • Input tokens: Everything you send to the model. This includes the system prompt, the tool definitions and the entire conversation history that you send with each request.
  • Cached input tokens: Input tokens that the model reuses from the prompt cache. You pay a lower price for these than for normal input tokens. Prompt caching is always active; you do not need to configure anything.
  • Output tokens: Everything the model generates. This also includes reasoning tokens when the model pauses to think before responding.

The number of tokens consumed by a request appears in the usage field of every API response.

Note: Reasoning tokens can make up a large part of the output tokens. You can use the reasoning_effort parameter to control how much the model thinks. For details, see Models and Licences.

Rounding to €0.01

Note: For technical reasons, we always round each invoice line item up to the nearest full cent, i.e. to €0.01 or $0.01.

An invoice line item is the amount for a calendar month relating to a specific token type for a model and an Inference Token. For a model that you use with an Inference Token, this means there can be up to three invoice line items: input tokens, cached input tokens and output tokens.

Example: In November, you use an Inference Token exclusively with GLM 5.3 Flash. The amounts are arbitrary.

Invoice line item Exact amount Calculated amount
Input tokens €0.0312 €0.04
Cached input tokens €0.0041 €0.01
Output tokens €0.0187 €0.02
Total €0.0540 €0.07

We charge at least €0.01 for each line item where you used the model. Rounding up affects small amounts more than large ones.

Viewing your consumption

You can see the consumption of your Inference Tokens in the current calendar month in Hetzner Console:

  • In the Inference Token overview, the Consumption (excl. VAT) column shows the consumption of each Inference Token.
  • In the details of an Inference Token, the USAGE BY MODEL section shows the columns CACHED TOKENS, INPUT TOKENS, OUTPUT TOKENS, and CONSUMPTION (EXCL. VAT) for each model.

For instructions, see Managing Inference Tokens.

Invoice

We bill the consumption of a calendar month afterwards with your monthly Hetzner invoice. The same rules apply as for other products, for example the minimum amount for an invoice. For details, see Billing system at Hetzner.

Limiting costs

For each Inference Token, you set a consumption cap that defines the maximum amount the Inference Token can cost per calendar month. When an Inference Token reaches its cap, the API rejects further requests of this Inference Token. The API still completes requests that you sent before. For this reason, your consumption can slightly exceed the cap. For details and an example, see Limits of Hetzner Inference API.

Next steps

Table of Contents