cd /news/ai-infrastructure/hetzner-inference-api-an-eu-endpoint… · home › topics › ai-infrastructure › article
[ARTICLE · art-179519] src=dev.to ↗ pub= topic=ai-infrastructure verified=true sentiment=↑ positive

Hetzner Inference API: an EU endpoint for agent workloads

Hetzner launched a pay-per-token Inference API that serves open-weight models from its own EU infrastructure, with documentation stating prompts and responses are not stored and are not used for training. The OpenAI- and Anthropic-compatible endpoints offer four models at launch, including GLM 5.3, GLM 5.3 Flash, Aleph Alpha's Kolibri 1 and BGE M3 embeddings, with per-token monthly spending caps and always-on prompt caching. A developer who reviewed the product page and docs, and made one unauthenticated request to confirm the endpoint, noted the API as a cheaper-to-try EU option for agent workloads but had not yet run production traffic through it.

key takeaway

Hetzner's Inference API is OpenAI- and Anthropic-compatible with per-token caps (default 10 EUR/month, HTTP 429 when hit) and always-on prefix caching that breaks if tool-definition JSON field order changes.

by read4 min views8 publishedDec 1, 2026

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.

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.

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.

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.

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.

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @hetzner 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hetzner-inference-ap…] indexed:0 read:4min 2026-12-01 · —