{"slug": "hetzner-inference-api-an-eu-endpoint-for-agent-workloads", "title": "Hetzner Inference API: an EU endpoint for agent workloads", "summary": "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.", "body_md": "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.\n\nI 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.\n\nThe API exposes these endpoints, according to the compatibility page:\n\n`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)\nStreaming, 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.\n\nFour models are available at launch. Prices are per million tokens, excluding VAT:\n\n| Model | Input | Cached input | Output | Notes | \n|---|---|---|---|---|\n| GLM 5.3 | 0.63 EUR | 0.158 EUR | 2.52 EUR | chat, code | \n| GLM 5.3 Flash | 0.10 EUR | 0.025 EUR | 0.40 EUR | chat, code, vision | \n| Kolibri 1 (Aleph Alpha) | 0.07 EUR | 0.018 EUR | 0.28 EUR | German and English | \n| BGE M3 | 0.01 EUR | n/a | free | embeddings | \n\nContext 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.\n\nThe 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`.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\nCreate a token with a 1 EUR cap and test with your own agent prompts, not with \"Hello\". Hetzner suggests the same.\n\n```\nexport HETZNER_INFERENCE_TOKEN=\"...\"\n\ncurl https://inference.hetzner.com/v1/chat/completions \\\n  -H \"Authorization: Bearer $HETZNER_INFERENCE_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"zai-org/GLM-5.3-Flash\",\n    \"reasoning_effort\": \"low\",\n    \"max_tokens\": 512,\n    \"messages\": [{\"role\": \"user\", \"content\": \"Reply with the word ok.\"}]\n  }'\n```\n\nThis 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.\n\n*Field Notes is a short series by [MadeByBrain](https://madebybrain.com) 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.*", "url": "https://wpnews.pro/news/hetzner-inference-api-an-eu-endpoint-for-agent-workloads", "canonical_source": "https://dev.to/madebybrain/hetzner-inference-api-an-eu-endpoint-for-agent-workloads-260d", "published_at": "2026-12-01 16:10:27+00:00", "updated_at": "2026-12-01 16:13:51.502574+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-agents", "ai-tools", "developer-tools"], "entities": ["Hetzner", "GLM 5.3", "GLM 5.3 Flash", "Kolibri 1", "Aleph Alpha", "BGE M3", "Z.AI"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/hetzner-inference-api-an-eu-endpoint-for-agent-workloads", "markdown": "https://wpnews.pro/news/hetzner-inference-api-an-eu-endpoint-for-agent-workloads.md", "text": "https://wpnews.pro/news/hetzner-inference-api-an-eu-endpoint-for-agent-workloads.txt", "jsonld": "https://wpnews.pro/news/hetzner-inference-api-an-eu-endpoint-for-agent-workloads.jsonld"}}