Hetzner Inference API
EU-hosted, pay-per-use inference API for open-weight models with OpenAI- and Anthropic-compatible endpoints and zero data retention.
At a Glance
About Hetzner Inference API
Hetzner Inference API is an inference service from Hetzner Online GmbH that serves open-weight AI models from its own European data centers. Developers create an API token in the Hetzner Console, pick a model, and call OpenAI-compatible or Anthropic-compatible endpoints. Hetzner states that prompts and responses are not stored or used for training.
What It Is
The service is a hosted model API for chat, code, vision and embedding tasks. Existing applications built on the OpenAI format can be moved by changing the base URL and token. Endpoints include /v1/chat/completions, /v1/responses, /v1/embeddings and the Anthropic-style /v1/messages. Some endpoints, such as /v1/completions and /v1/batches, are not available.
Models Offered
The listed models are GLM 5.3 Flash (chat, code, vision; the only model that processes images), GLM 5.3 (complex coding and agent tasks), Kolibri 1 from Aleph Alpha (German and English chat and RAG), and BGE M3 from BAAI (text embeddings). Context windows range from 8,192 tokens for BGE M3 to 1,048,576 tokens for the GLM models. Billing is per million input and output tokens, with a lower rate for cached input.
Controls and Data Handling
Each token has its own spending cap, and requests are rejected with HTTP 429 once it is reached. Each token is limited to 100 requests per minute per model by default, and higher limits can be set in the Console. Hetzner says models run in its own GDPR-compliant, ISO 27001-certified data centers. Prompt caching briefly keeps parts of prompts in RAM, and log and billing data contain no request content.
Setup Path
Hetzner provides tutorials for getting started and for using the API with OpenCode, n8n and Open WebUI. A price calculator on the page estimates monthly cost for agent, chat, data analysis and embedding workloads.
Collections
Popular collections
- Code Knowledge Graphs
Collection by @evtuff
- Obsidian Agentic & AI plugins
Collection by @samofcode
- Codebase Context Generators
Collection by @joemseifi
- Frameworks
Collection by @joemseifi
Add Hetzner Inference API to one of your collections.
Community Discussions
Be the first to start a conversation about Hetzner Inference API
Share your experience with Hetzner Inference API, ask questions, or help others learn from your insights.
Pricing
Pay-as-you-go
Billed per million tokens, from €0.01 per million, with no subscription fees. Cached input is billed at a lower rate. Prices exclude VAT.
- GLM 5.3 Flash: €0.10 input, €0.025 cached input, €0.40 output per 1M tokens
- GLM 5.3: €0.63 input, €0.158 cached input, €2.52 output per 1M tokens
- Kolibri 1: €0.07 input, €0.018 cached input, €0.28 output per 1M tokens
- BGE M3 embeddings: €0.01 input per 1M tokens, output free
- Spending cap per API token (default €10)
- 100 requests per minute per model per token by default
- No free trial
Capabilities
Key Features
- OpenAI-compatible endpoints (/v1/chat/completions, /v1/responses, /v1/embeddings)
- Anthropic-compatible /v1/messages endpoint
- Open-weight models for chat, code, vision and embeddings
- Zero data retention for prompts and responses
- Per-token spending caps and rate limits
- Prompt caching with lower cached input rate
- Hosted in European data centers
- Price calculator for usage estimates
