Short answer: the Hetzner Inference API is a pay per use service, launched on December 1, 2026, that lets you call open weight AI models hosted in Hetzner's own European data centers with the same code you'd write for OpenAI or Anthropic. You change only the base URL and the token. On Hetzner's pricing page, checked on December 1, 2026, the small model GLM 5.3 Flash lists at €0.10 per million input tokens and €0.40 per million output tokens, excluding VAT, next to $0.10 and $0.50 for Claude Haiku 5.5 on Anthropic's pricing page and for gpt-6-luna on OpenAI's. The catch is the menu: four models, no trial, no batch or image endpoints, and your requests stay in Europe, which helps some projects and rules out others. 4Geeks Academy teaches developers to build on APIs like this one in AI Engineering (24 Weeks) and in AI Flex (from $129 a month).
Last updated December 1, 2026: we read Hetzner's pricing page and docs, Anthropic's pricing page and OpenAI's API pricing page on the day Hetzner launched. Prices change, so open the linked pages before you plan a budget.
A price per million tokens isn't a bill, and the short answer skips three things. Euros and dollars sit side by side in the numbers above, so they don't prove one service is cheaper. The models are different, so the same price doesn't mean the same quality. And Hetzner's rules decide what you can actually run: a rate limit, a monthly spending cap on every token and a list of endpoints it doesn't offer. This guide walks through each one, so you can tell in ten minutes whether it fits your project.
What is the Hetzner Inference API?
Hetzner is the German host many developers know for cheap servers. Its Inference API adds a different product: you send text to an AI model over the internet, and Hetzner sends back the answer. That step, where a trained model answers your prompt, is called inference.
The models are open weight. That means the files that make up the trained model are published, so any company can run them. Hetzner runs them on its own hardware, and it says they run in its own data centers in Europe, without exception (Hetzner).
You pay for what you use, counted in tokens. A token is a small chunk of text, a bit shorter than a typical word. Everything you send, including chat history and attachments, counts as input tokens. The answer counts as output tokens. There's no subscription fee (Hetzner).
Hetzner ran an earlier version as a no cost experiment starting in August. The company's launch post says it turned that experiment into this product (Hetzner blog, December 1, 2026). The old experiment page says the experiment ends on December 8, 2026 (Hetzner Docs), so don't build on that version.
Which models can you use?
Four, at launch. Prices below are per million tokens in euros, excluding VAT, as listed on Hetzner's pricing page on December 1, 2026 (Hetzner).
| Model | Good for | Context window | Input | Cached input | Output |
|---|---|---|---|---|---|
| GLM 5.3 Flash | Chat, code and image input | 1,048,576 tokens | €0.10 | €0.025 | €0.40 |
| GLM 5.3 | Chat and code, the bigger model | 1,048,576 tokens | €0.63 | €0.158 | €2.52 |
| Kolibri 1 | Chat and code in German and English, from Aleph Alpha | 262,144 tokens | €0.07 | €0.018 | €0.28 |
| BGE M3 | Embeddings, which turn text into numbers for search | 8,192 tokens | €0.01 | Not listed | No output charge |
The context window is how much text the model can read in one request. Cached input is a lower price Hetzner charges when your prompt starts with the same text as an earlier one, like a long set of instructions you send every time.
Hetzner's own advice is to start with Flash and move to GLM 5.3 if a task gets too hard. Flash is also the only one of the four that reads images (Hetzner blog).
How does the price compare with OpenAI and Anthropic?
Here are the nearest price points on each company's own pricing page, all read on December 1, 2026. Hetzner bills in euros and the other two in dollars, so we kept each number as published and didn't convert it.
| Model | Price page | Input | Cached input | Output |
|---|---|---|---|---|
| GLM 5.3 Flash | Hetzner | €0.10 | €0.025 | €0.40 |
| Claude Haiku 5.5 (prompts up to 100,000 tokens) | Anthropic | $0.10 | $0.01 | $0.50 |
| gpt-6-luna | OpenAI | $0.10 | $0.01 | $0.50 |
| GLM 5.3 | Hetzner | €0.63 | €0.158 | €2.52 |
| Claude Sonnet 5.5 | Anthropic | $2 | $0.10 | $10 |
| gpt-6.2-sol | OpenAI | $2.00 | $0.10 | $10.00 |
Prices per million tokens. Hetzner excludes VAT. OpenAI figures are its standard, short context rates.
What the table tells you: at the small end, the headline numbers sit in the same range, so price alone won't make you switch. At the larger end, GLM 5.3 lists at €0.63 in and €2.52 out, against $2 in and $10 out for Claude Sonnet 5.5 and gpt-6.2-sol. Those are different currencies and different models, so run your own task on each before you decide.
A quick way to turn a price list into a bill: a job that sends one million input tokens and gets 200,000 tokens back costs about €0.18 on GLM 5.3 Flash (€0.10 plus 0.2 times €0.40) and about €1.13 on GLM 5.3, before VAT, with no cached tokens.
One more detail. Anthropic prices Haiku 5.5 higher for prompts over 100,000 tokens, while Hetzner lists one price for GLM 5.3 Flash and a context window of 1,048,576 tokens. If you send long prompts, compare that row of each page.
Want to practice before you spend a cent on tokens? Try Prompt Engineering Course for Beginners, an interactive exercise on writing prompts that work on any model, including the ones in this guide.
How do you call it?
If you've used the OpenAI Python library, you already know most of it. Create an Inference Token in the Hetzner Console, point your client at Hetzner's base URL and pick a model. This is Hetzner's own example, with the token read from an environment variable (Hetzner Docs):
import os
from openai import OpenAI
client = OpenAI(
base_url="https://inference.hetzner.com/v1",
api_key=os.environ["HETZNER_INFERENCE_TOKEN"],
)
response = client.chat.completions.create(
model="zai-org/GLM-5.3-Flash",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Three details trip people up, all from Hetzner's compatibility page (Hetzner Docs):
- Model names are exact. Names are case sensitive, and Hetzner doesn't translate a name like gpt-4o into one of its own models. A wrong name returns an error.
- Chat and embedding models don't mix. Embedding models only work with the embeddings endpoint. A mismatch returns a 404 with the text "route not found".
- The Anthropic SDK uses a different base URL. It's
https://inference.hetzner.comwithout/v1, because that SDK adds the path itself.
The API supports the chat completions, responses, embeddings and Anthropic messages endpoints. It also covers streaming, tool calling and structured output.
What does zero data retention mean?
Hetzner says it doesn't store your prompts or the model's answers, and it doesn't use them to train or improve models. The company says this applies to every customer without any setup (Hetzner).
There's one exception, and Hetzner names it. For prompt caching, it briefly keeps parts of your prompts in memory so a repeated prompt costs less. You can't retrieve those parts, and the servers discard them automatically. Log files and billing data don't contain request content, according to Hetzner.
On location, Hetzner says the models run only in its European data centers and that it processes data in line with GDPR. It also says it holds an ISO 27001 certification. That's why the service appeals to teams with European customers or sensitive data. It also means you can't pick a US or Asian region.
What are the limits?
This is the part a price table hides. Hetzner's limits page lists these on December 1, 2026 (Hetzner Docs):
- Rate limit: 100 requests per minute, for each model and each token. Requests running at the same time count. A higher limit needs a support request.
- Spending cap: every token has its own monthly cap, from €1 to €20,000, excluding VAT. The default is €10. Once a token hits its cap, the API rejects new requests with a 429 error.
- Tokens per account: 20.
- Request size and time: 32 MiB and 300 seconds per request.
And these are the things it doesn't offer, from the compatibility page: batch jobs, file uploads, image generation, audio, fine tuning and the older text completions endpoint. Images you send must be base64 data, not links. The Responses endpoint doesn't store conversations, so you send the full history each time.
There's also no trial. Hetzner says early tests usually cost a few cents and suggests a token with a €1 cap for your first experiments.
Should you use it?
A simple way to decide:
- Try it if your users or clients are in Europe, you want open weight models, or you run lots of small jobs, like sorting emails, extracting fields from invoices or answering from your own documents. Start with GLM 5.3 Flash.
- Try it for search features if you need embeddings. BGE M3 turns text into numbers so you can find similar passages, and it lists at €0.01 per million input tokens.
- Stay where you are if you need batch processing, image or audio generation, fine tuning or a specific closed model. Hetzner doesn't offer those, and it doesn't offer other regions either.
- Test before you move anything. Run the same real task on two models, check the answers and look at the cost. It takes ten minutes.
Go deeper
- AI tools for developers: the 2026 tools, sorted by what they do.
- Best AI coding agents: the main coding tools of 2026, compared.
- Claude Haiku vs Sonnet: when the small model is the right call.
- What is GLM 5.4: Z.ai's newer GLM, which Hetzner doesn't list yet.
- EmbeddingGemma 2: another open embeddings model, for running search on your own device.
Calling a model API is the first skill of AI engineering
Swapping a base URL takes a minute. Knowing which model fits a job, what it costs at scale and how to keep a project inside a spending cap is the part that lasts, because models and prices keep changing. If you want to build that skill with a mentor, see how AI Engineering works. If you'd rather learn course by course at your own pace, take a look at AI Flex.

