Limits

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

The Hetzner Inference API sets a limit on how many requests each inference token can send per minute and on the maximum cost each token can cause per month. In addition, the API limits the number of inference tokens per account. This page explains all these limits and what you can do if you reach one.

Overview

Limit Value Applies to How to adjust
Rate limit 100 requests per minute Each model per Inference Token Via a support request
Consumption cap €1 to €20,000 per calendar month, default €10 (excl. VAT) Each Inference Token separately Yourself in Hetzner Console
Number of Inference Tokens 20 Inference Tokens Your account Via a support request
Context window Depends on the model Each request Not possible
Request size 32 MiB Each request Not possible
Request duration 300 seconds Each request Not possible

Rate limit

Each Inference Token can send up to 100 requests per minute (RPM) to each model. Parallel requests also count toward this limit. To see the current rate limit of an Inference Token in Hetzner Console, open the Inference Token and check the RPM column under USAGE BY MODEL.

Please note: If you create embeddings for many texts one by one and get status code 429 with rate limit exceeded, send several texts in one request. A request with 100 texts counts as a single request toward the rate limit. For instructions, see Creating embeddings.

If you need a higher rate limit, request it with the support assistant in Hetzner Console and explain why 100 requests per minute are not enough. For instructions, see Managing Inference Tokens.

Consumption cap

The consumption cap defines the maximum amount an Inference Token can cost per calendar month. The cap applies only to this one Inference Token. Other Inference Tokens have their own consumption cap.

When an Inference Token reaches its consumption cap, the Inference API rejects further requests of this Inference Token. If you send a request while the consumption is still below the cap, the API processes the full request. This also applies if the request exceeds the cap. Requests that are already running when the Inference Token reaches the cap also complete. This means your consumption for the month can be slightly higher than the consumption cap.

Please note: For example, you set a consumption cap of €10 and your Inference Token has already used €9.99. Another request costs €0.10. The API processes this request, and your consumption for the month is then €10.09.

You set the consumption cap when you create the Inference Token. You can change it at any time. For instructions, see Managing Inference Tokens.

Please note: If the consumption cap you want is unusually high compared to your other spending at Hetzner, you need to request the increase via a support request. In this case, Hetzner Console shows a notice with a link to the support request. The support team reviews the higher amount manually.

Number of Inference Tokens

You can create up to 20 Inference Tokens in your account. This limit applies to all projects together.

If you need more Inference Tokens, open a support request. State how many Inference Tokens you need and explain why 20 Inference Tokens are not enough. The support team reviews your request and adjusts the limit.

Context window

The context window defines the maximum number of tokens a request can contain, including the answer.

Model Context window
zai-org/GLM-5.3 1,048,576 tokens
zai-org/GLM-5.3-Flash 1,048,576 tokens
Aleph-Alpha/Kolibri-1 262,144 tokens
BAAI/bge-m3 8,192 tokens

GET /v1/models also returns the current value of each model in the max_model_len field.

The input and the answer must fit into the context window together. For this reason, max_tokens must not be larger than the context window minus the tokens of your input. If max_tokens is larger than the context window, the API returns status code 400.

Request size

A request can be up to 32 MiB in size. The API rejects larger requests with status code 413. This limit is independent of the context window. It mainly affects requests with images: images as base64 are about one third larger than the original file. For this reason, scale down large images before you send them. The limit also applies to embeddings when you send a large number of texts in one request.

Request duration

On the server side, a request has 300 seconds, with or without reasoning. This also applies to requests with streaming ("stream": true). If a request takes longer, the API cancels it. For requests without streaming, the API then returns status code 504 Gateway Timeout. This value can change in the future.

If your requests reach this limit, shorten them. This mainly affects requests with high reasoning levels. For example, set a lower max_tokens value, choose a lower reasoning level, or split the task into several requests.

When you reach a limit

When an Inference Token reaches its rate limit or its consumption cap, the API returns the status code 429 Too Many Requests. The response text shows which limit applies:

Response text Cause Solution
ResourceExhausted - rate limit exceeded The Inference Token reached its rate limit. Wait for the number of seconds in the Retry-After header and send the request again.
ResourceExhausted - token limit exceeded The Inference Token reached its consumption cap. Increase the consumption cap in Hetzner Console or wait until the next calendar month.

Please note: Use the status code to handle errors in your application. The wording of the response texts can change.

With a 429, the API sends the Retry-After header. It contains the number of seconds until the API accepts requests again. Do not retry a request before this time has passed. This prevents further requests from failing because of the rate limit.

The official OpenAI and Anthropic SDKs automatically retry requests after a 429, twice by default, and take the Retry-After header into account. You can change the number with max_retries. This helps with the rate limit. If an Inference Token has reached its consumption cap, the retries also fail. In this case, increase the consumption cap in Hetzner Console.

Next steps

Table of Contents