Integrations & Tools
~7 min readUpdated: December 2026

Hetzner Inference API: Sovereign EU Open-Weight Routing for AI Agents

Hetzner Inference API Sovereign EU Open-Weight Agent Routing Architecture

Hetzner Inference API is a European, GDPR-compliant and ISO 27001-certified open-weight inference platform offering zero data retention, dual OpenAI and Anthropic Messages API compatibility, 75% cached-input discounts, and 1M-token context models such as GLM 5.3 Flash (€0.10/1M input) and Kolibri 1 (€0.07/1M input).

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Hetzner Inference API: Sovereign EU Open-Weight Routing for AI Agents: Hetzner Inference API is a European, GDPR-compliant and ISO 27001-certified open-weight inference platform offering zero data retention, dual OpenAI and Anthropic Messages API compatibility, 75% cached-input discounts, and 1M-token context models such as GLM 5.3 Flash (€0.10/1M input) and Kolibri 1 (€0.07/1M input). Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplehetzner-eu-agent-router.ts
hetzner-eu-agent-router.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const euSovereignAgent = createAgent({
agentId: 'hetzner-gdpr-coding-agent',
provider: 'openai-compatible',
model: 'glm-5.3-flash',
baseUrl: 'https://inference.hetzner.com/v1',
apiKey: process.env.HETZNER_INFERENCE_TOKEN,
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
});
async function runCompliantRefactor() {
const result = await euSovereignAgent.run(
'Audit src/auth/ for GDPR PII logging violations, patch redaction middleware, and run npm test.'
);
console.log('EU Sovereign Agent Result:', result.summary);
}
runCompliantRefactor().catch(console.error);
Video Guides

Watch: Related Video Guides

FREE AI on Hetzner Is Live!

Hetzner Inference API is available now

What Is Hetzner Inference API? Sovereign EU Hosting & Protocol Design

Hetzner Inference API is a European open-weight model serving platform hosted inside Hetzner's own GDPR-compliant, ISO 27001-certified data centers using 100% renewable electricity and waterless cooling. It provides zero chat-history retention, zero model training on customer payloads, hard usage limits, and native compatibility with both OpenAI and Anthropic API clients.

For autonomous engineering loops, protocol parity removes migration friction: teams running existing OpenAI SDKs, Anthropic Messages clients, or Smoke Monkey Harness agents can redirect baseUrl and supply an API token generated from the Hetzner Console or managed via the hcloud CLI without refactoring tool schemas.

Production Model Catalog, Context Windows & Cached Input Economics

Because autonomous coding agents resend long system prompts, MCP tool definitions, and repository context on every turn, prompt caching dominates unit economics. Hetzner bills per million tokens (excl. VAT) and discounts recurring cached input prefixes by ~75% across its chat and coding catalog.

ModelDeveloper & ScaleContext WindowInput / 1M TokensCached Input / 1MOutput / 1M Tokens
GLM 5.3 Flashzai-org · 320B (Text + Image)1,048,576€0.1000€0.0250€0.4000
GLM 5.3zai-org · 753B (Text)1,048,576€0.6300€0.1580€2.5200
Kolibri 1Aleph-Alpha · 78B (Text)262,144€0.0700€0.0180€0.2800
BGE M3BAAI · 0.57B (Embeddings)8,192€0.0100—Free

Tiered agent routing cuts spend substantially: use Kolibri 1 (€0.0180 cached input) for fast file classification and lint triage, GLM 5.3 Flash (€0.0250 cached input, 1M context, multimodal vision) for iterative tool execution, and escalate only hard architectural synthesis to GLM 5.3 (753B).

Structure Agent Prompts for 75% Cache Hit Rates

Place immutable system instructions, MCP tool JSON schemas, and static codebase summaries at the very front of the message array so recurring agent turns hit Hetzner's cached-input tier (€0.018–€0.158 per 1M tokens).

Token Provisioning, OpenAI/Anthropic Endpoints & Verification Commands

Generate a scoped inference token in the Hetzner Console (with an explicit monthly EUR spending cap) or manage keys via the hcloud CLI, then verify model discovery and chat completions directly from the shell.

bash
# Verify OpenAI-compatible model catalog on Hetzner Inference API
curl -sS https://inference.hetzner.com/v1/models \
  -H "Authorization: Bearer $HETZNER_INFERENCE_TOKEN" | jq '.data[].id'

# Test chat completion with deterministic coding parameters
curl -sS https://inference.hetzner.com/v1/chat/completions \
  -H "Authorization: Bearer $HETZNER_INFERENCE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash",
    "temperature": 0.1,
    "messages": [
      {"role": "system", "content": "Return strict unified diff patches only."},
      {"role": "user", "content": "Explain prompt prefix ordering for KV cache hits."}
    ]
  }'

# Generate BGE M3 embeddings for local RAG indexing
curl -sS https://inference.hetzner.com/v1/embeddings \
  -H "Authorization: Bearer $HETZNER_INFERENCE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model": "bge-m3", "input": "ISO 27001 EU agent deployment spec"}'

Orchestrating Sovereign Multi-Agent Teams in Smoke Monkey Canvas

In regulated European engineering teams, Smoke Monkey Canvas pairs local tool execution (read_file, write_file, run_command) with Hetzner's zero-retention EU endpoints. Sensitive source code stays within local sandboxes and GDPR-compliant European inference nodes, while BGE M3 (€0.0100/1M tokens) populates local vector indices for sub-second repository search.

Google Search Questions & Answers

Frequently Asked Questions

Q:Does Hetzner Inference API store prompts or train models on agent payloads?

No. Hetzner states zero data retention: chat histories and generated outputs are neither stored nor shared, and no payload data is used for model training.

Q:Which API protocols does Hetzner Inference API support?

It supports both OpenAI-compatible endpoints (/v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models) and Anthropic Messages API compatibility, allowing drop-in migration.

Q:How much does prompt caching save on Hetzner Inference API?

Cached input tokens are discounted by ~75% across chat models: GLM 5.3 Flash drops from €0.1000 to €0.0250/1M tokens, GLM 5.3 drops from €0.6300 to €0.1580/1M, and Kolibri 1 drops from €0.0700 to €0.0180/1M.

Q:What compliance certifications cover Hetzner Inference API servers?

All models run exclusively in Hetzner's European data centers under GDPR compliance and ISO 27001 certification, powered by 100% renewable grid electricity with waterless cooling.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness