Hetzner has launched a pay-per-token Inference API. It serves open-weight models from its own infrastructure in the EU, and the docs state that prompts and responses are not stored. For anyone who runs agents and has to answer the question "where does the prompt go?", this is a new option that is cheaper to try than renting a GPU server.

I have not run production traffic through it yet. This note is based on the product page and the documentation, plus one unauthenticated request to check that the endpoint exists.

What changed

The API exposes these endpoints, according to the compatibility page:

  • GET /v1/models
  • POST /v1/chat/completions
  • POST /v1/responses
  • POST /v1/embeddings
  • POST /v1/messages and POST /v1/messages/count_tokens (Anthropic Messages API)

Streaming, tool calling, structured output (json_object and json_schema) and a seed parameter are listed as supported. Image input works only with GLM 5.3 Flash.

Four models are available at launch. Prices are per million tokens, excluding VAT:

Model Input Cached input Output Notes
GLM 5.3 0.63 EUR 0.158 EUR 2.52 EUR chat, code
GLM 5.3 Flash 0.10 EUR 0.025 EUR 0.40 EUR chat, code, vision
Kolibri 1 (Aleph Alpha) 0.07 EUR 0.018 EUR 0.28 EUR German and English
BGE M3 0.01 EUR n/a free embeddings

Context windows are 1,048,576 tokens for both GLM models and 262,144 for Kolibri 1. The docs list the models as quantized (NVFP4 for the chat models). The GLM models come from Z.AI, but Hetzner states that it operates them itself and that requests are not sent to the developer.

The Anthropic-compatible endpoint has two quirks. The base URL has no /v1, and authentication uses Authorization: Bearer, not x-api-key. In the Python SDK you pass the token as auth_token.

Why it matters in production

Data location and retention. The data protection page says requests are processed exclusively on Hetzner servers in the EU, with zero retention of prompts and outputs and no training on them. Prompt caching keeps prefixes briefly in RAM. Billing and security logs are stored. A data processing agreement can be requested by mail. Note the wording: "in the EU", not "in Germany". If your contract says Germany, ask.

A second EU backend. Many agent setups have one model provider and no plan B. An OpenAI-compatible endpoint is easy to put behind a gateway or a fallback list. The same endpoint also speaks the Anthropic format, so tools that only know that format can use it too.

Cost control per token. Each inference token has a monthly cap between 1 and 20,000 EUR, default 10 EUR. When the cap is reached, requests fail with HTTP 429. The docs recommend a separate token per application and environment, which is good practice anyway. As a rough calculation from the price table: a job with 1M input tokens and 200k output tokens on GLM 5.3 costs about 1.13 EUR, before caching.

Prompt caching rewards stable prompts. Caching is always on and cannot be switched off. Only full token blocks are cached, and the prefix must match token by token. The docs warn that even a changed order of JSON fields in tool definitions breaks the match. Put system prompt and tool definitions first, and keep their serialization stable.

Reasoning is on by default. GLM 5.3 and GLM 5.3 Flash default to max reasoning effort. Reasoning tokens are output tokens and count toward max_tokens. With a low limit the model can spend everything on thinking and return no text. On /v1/messages use output_config.effort. The docs say thinking: disabled does not fully turn reasoning off for GLM 5.3 Flash.

What to do now

Create a token with a 1 EUR cap and test with your own agent prompts, not with "Hello". Hetzner suggests the same.

export HETZNER_INFERENCE_TOKEN="..." curl https://inference.hetzner.com/v1/chat/completions \ -H "Authorization: Bearer $HETZNER_INFERENCE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "model": "zai-org/GLM-5.3-Flash", "reasoning_effort": "low", "max_tokens": 512, "messages": [{"role": "user", "content": "Reply with the word ok."}] }' 

This command is adapted from the documentation examples and I have not executed it. For an agent, the checks that matter are tool calling over several turns, long contexts, and how the model behaves when a tool returns an error.

Caveats

  • Rate limit is 100 requests per minute per model and token. Parallel requests count. Raising it goes through a support request.
  • A request is cut off after 300 seconds, with or without streaming. Non-streaming calls then return 504. Long reasoning runs need streaming and lower effort.
  • Unknown or retired model names return 401, not 404. Hetzner says it announces shutdowns usually two months ahead and does not redirect automatically. Pin model names in config and watch for announcements.
  • Open-weight models are not Claude. Tool-calling reliability in long agent loops is the thing to measure before you move anything. The Hacker News thread is mostly positive about the EU angle, but it is opinion, not a benchmark.
  • The catalog is small. Several commenters ask for more models.
  • The 429 status code is used for both the rate limit and the spending cap. Only the first is worth retrying.

Sources

Field Notes is a short series by MadeByBrain about what changes in the AI agent tooling we run in production every day. Researched and drafted with AI assistance (Hermes Agent), fact-checked against the linked sources and reviewed by Steffen Hartmann.