Stories

Hetzner Inference API: EU-hosted, OpenAI-compatible AI on Open-Weight Models

Published 1 December, 20267 min read

European developers who have been hesitant to send prompts to US-based AI providers got a new option. Hetzner, the German hosting company best known for aggressively priced dedicated servers, has officially launched its Inference API after running it as a free experiment over the summer. The product keeps the traits that made the experiment popular: OpenAI-compatible endpoints, open-weight models, and processing that never leaves Hetzner's own European data centers.

The move matters beyond one company. Running open-source models on European infrastructure has traditionally meant renting a GPU server and operating the model yourself, which only pays off under constant load and requires real operational expertise. A per-token API lowers that barrier considerably, and Hetzner's entry gives the growing field of EU inference providers another credible option.

What Hetzner offers

The Inference API serves a deliberately small, efficiency-focused lineup of open-weight models:

Model Task Parameters Context window Input / million tokens Output / million tokens
GLM 5.3 Flash Chat, code, vision 320B 1,048,576 EUR 0.10 (EUR 0.025 cached) EUR 0.40
GLM 5.3 Chat, code 753B 1,048,576 EUR 0.63 (EUR 0.158 cached) EUR 2.52
Kolibri 1 Chat, code 78B 262,144 EUR 0.07 (EUR 0.018 cached) EUR 0.28
BGE M3 Embedding 0.57B 8,192 EUR 0.01 free

All prices exclude VAT. The GLM models come from zai-org, Kolibri 1 is built by the German AI company Aleph Alpha, and BGE M3 is an embedding model rather than a chat model.

Three of the four are mixture-of-experts (MoE) models. Instead of running every parameter for every token, MoE models activate only a subset of experts, which cuts compute per request substantially. GLM 5.3, for example, has 753 billion total parameters but uses only a fraction of them per forward pass, making it far cheaper to serve than a dense model of the same size. That efficiency is what lets Hetzner pass savings on through its pricing.

How the models differ

Picking a model comes down to the task:

Since billing is usage-based, testing several models against your own use case costs little.

Privacy and data handling

The privacy story is the core of the pitch. Hetzner follows a zero data retention policy: prompts and outputs are not stored, not used for training, and not shared with third parties. The policy applies to all customers with no configuration required.

The one exception is prompt caching. To avoid recomputing recurring prompt prefixes, Hetzner briefly keeps intermediate model computation results in memory. These are internal computational values rather than copies of your text, they expire automatically after a short period, and they cannot be retrieved. Log and billing data contain no request content.

All processing runs exclusively in Hetzner's own European data centers, which are GDPR-compliant and ISO/IEC 27001-certified. Because Hetzner is a German company, US law such as the CLOUD Act does not apply to it, which is a distinction that matters for teams whose threat model includes US jurisdiction, not just US servers.

Migration is a two-line change

The API is compatible with both the OpenAI and Anthropic interfaces, exposing /v1/chat/completions, /v1/responses, /v1/embeddings, and the Anthropic-style /v1/messages. If your code already speaks either format, migrating means swapping the base URL and the API key:

from openai import OpenAI

client = OpenAI(
    base_url="https://inference.hetzner.com/v1",
    api_key="<YOUR_INFERENCE_TOKEN>",
)

r = client.chat.completions.create(
    model="zai-org/GLM-5.3-Flash",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(r.choices[0].message.content)

The OpenAI SDK, OpenCode, Open WebUI, n8n, and other OpenAI-compatible tools keep working unchanged. Some endpoints are not available, such as /v1/completions and /v1/batches, so check the docs if you rely on those. Hetzner publishes tutorials for wiring the API into OpenCode for AI-powered programming, n8n for workflow automation, and Open WebUI as a chat interface.

Pricing model and cost control

There is no subscription and no free tier. Initial tests typically cost a few cents, and the pricing structure gives you several levers:

Because output generation is more expensive than input processing, output tokens always cost more, which is standard across the industry but worth noting when comparing providers.

Context and trade-offs

The launch follows a revealing experiment phase. Hetzner opened a free experimental endpoint in July, and demand exceeded its own expectations within hours of wider promotion, pushing tail latency for time-to-first-token toward ten minutes at peak. The company paused the largest models, kept serving smaller ones, and used the period to gather operational experience before committing to a product. That history sets expectations realistically: Hetzner is serving frontier-scale open models on its own hardware, and capacity behavior under load is the thing to watch as the product matures.

The model lineup is also a trade-off. Four models cannot match the breadth of larger API aggregators, and the open-weight leaders that Hetzner serves will keep changing, so the catalogue will likely evolve. But the positioning is coherent: efficient open-weight models, transparent EUR-denominated per-token pricing, no vendor lock-in, and data that stays with a German operator inside EU jurisdiction.

For teams that have delayed adding AI features because no provider could answer the data-location question convincingly, that combination is the actual news. Prototypes can be pointed at the endpoint in minutes, spending is capped by construction, and if the models do not meet the quality bar, the OpenAI-compatible interface makes switching back or moving on just as easy.