# Hetzner Inference API

> Source: <https://www.hetzner.com/ai/inference-api/>
> Published: 2026-12-01 08:51:47+00:00

**Key takeaway:** Point the OpenAI SDK's base_url at https://inference.hetzner.com/v1 with a Hetzner inference token to call GLM 5.3 Flash, GLM 5.3, Kolibri 1 or BGE M3, and use the /v1/messages endpoint for Anthropic-format code.

## AI inference on your terms

We do not store chat histories or generated output. None of this is used for training purposes.

Without exception, the models run in our own data centers: GDPR-compliant and ISO 27001-certified.

You can see how much your usage costs at any time, and you can set your own upper limit using usage limits.

Here's where you can save money: For recurring prompts, we charge a much lower rate for your input tokens.

Whether you're looking for an all-rounder or a specialized model, you'll find the right fit here. Openly available, no lock-in.

Create an API token in the Hetzner Console, select a model, and get started right away.

## GLM 5.3 Flash

### Tasks

### Parameters

### Context window

### Input

### Output

### API compatible

- 
Our interface is compatible with the OpenAI API. That way, you can easily move projects that use the OpenAI format without rewriting your code from scratch.
- 
Our interface is compatible with the Anthropic API. That way, you can easily move projects that use the Anthropic format without rewriting your code from scratch.

### Price optimization

### Price

## GLM 5.3

### Tasks

### Parameters

### Context window

### Input

### Output

### API compatible

- 
Our interface is compatible with the OpenAI API. That way, you can easily move projects that use the OpenAI format without rewriting your code from scratch.
- 
Our interface is compatible with the Anthropic API. That way, you can easily move projects that use the Anthropic format without rewriting your code from scratch.

### Price optimization

### Price

## Kolibri 1

### Tasks

### Parameters

### Context window

### Input

### Output

### API compatible

- 
Our interface is compatible with the OpenAI API. That way, you can easily move projects that use the OpenAI format without rewriting your code from scratch.
- 
Our interface is compatible with the Anthropic API. That way, you can easily move projects that use the Anthropic format without rewriting your code from scratch.

### Price optimization

### Price

## BGE M3

### Tasks

### Parameters

### Context window

### Input

### Output

### API compatible

- 
Our interface is compatible with the OpenAI API. That way, you can easily move projects that use the OpenAI format without rewriting your code from scratch.
- 
Our interface is compatible with the Anthropic API. That way, you can easily move projects that use the Anthropic format without rewriting your code from scratch.

### Price

## Easy to migrate thanks to 

the OpenAI-compatible API

Set base URL

Add API Key

Run your app

``` python
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)
curl https://inference.hetzner.com/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_INFERENCE_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"model": "zai-org/GLM-5.3-Flash", "messages": [{"role": "user", "content": "Hello!"}]}'
```

## Getting started made easy

## How an experiment turned into a finished product

Whether for personal projects or business: Many of you have been asking for an inference API. That’s what your feedback on our experiment showed us.

## Frequently asked questions

- 
For complex coding and agent tasks, use GLM 5.3. For quick answers, use GLM 5.3 Flash. It’s also the only model that processes images. Kolibri 1 handles German and English and works well for chat and RAG. Use BGE M3 to create embeddings. Test the models with your own use case. We bill based on usage, so a comparison costs very little.
- 
Yes. The API offers /v1/chat/completions, /v1/responses, /v1/embeddings, and the Anthropic interface /v1/messages. The OpenAI SDK, OpenCode, Open WebUI, and other OpenAI-compatible tools continue to work. You only need to change the base URL and the token. Some endpoints are not available, such as /v1/completions and /v1/batches. You can find the complete list in our docs.
- 
No. Initial tests usually cost only a few cents. Create your own inference token with a usage cap of 1 € for your tests. The spending cap keeps your testing costs low from the start. Each inference token has its own spending cap. The default is €10 (excluding VAT). If a token reaches its spending cap, the API rejects further requests with an HTTP 429 status code.
- 
Each inference token can send 100 requests per minute per model. Concurrent requests count toward this limit. You can set a higher rate limit in the Console. In addition, the usage cap per token and an individual limit for your account apply. Within these limits, you may utilize the API to its full capacity, even on a continuous and automated basis.
- 
No. Our zero-retention policy covers prompts and responses. We do not store them and do not use them to train or improve models. The policy applies to all customers; you do not need to set anything up. For prompt caching, we briefly store parts of prompts in RAM. You cannot retrieve these parts, and our servers automatically discard them. Log files and billing data do not contain any content from your requests.
