You need an Inference Token to send requests to the Hetzner Inference API. With the Inference Token, you get access to all models listed in the model catalog. You can create Inference Tokens in Hetzner Console and manage them per project.
Default values and limits
| Setting | Default value | Options |
|---|---|---|
| Token type | Usage-Based |
Usage-Based is currently the only token type. You only pay for what you use. |
| Consumption cap | €10/mo (excl. VAT) | The slider goes from €1 to €20,000. The maximum value you can actually select depends on your individual account limit. |
| Labels | none | Optional. Keys and values can have up to 63 characters each. |
| Name | inference-token-1 |
You can choose any name. |
Creating a project
If you want to manage your Inference Tokens in a new project, go to the project overview in Hetzner Console and do the following:
-
Add a new project Click on
New project.
-
Enter a project name Enter a name for the project in the
Namefield, for exampleInference Tokens. Then click onAdd project.
The new project now shows up in the project overview. Click on the project name to open it.
Creating an Inference Token
Open your project in Hetzner Console and do the following:
-
Open the Inference menu In the left menu bar, click on
Inference→Create Inference Token. TheInference Tokenstab lists all Inference Tokens of the project.
-
Select the token type Under
Token type, the typeUsage-Basedis already selected. With this type, you are billed strictly by consumption, the models run on infrastructure in the EU, and you set a monthly consumption cap.
-
Set the consumption cap With the consumption cap, you set the maximum amount the Inference Token can cost per calendar month. The default value is €10/mo (the usage limit is always shown without VAT). Enter an amount in the field or adjust it with the slider.
The slider shows amounts from €1 to €20,000. Your own limit might be lower, because each account has its own limit. If you pick an amount above your limit, you will need to verify it further.
Follow the instructions in the Hetzner Console.
Please note: For more information on limits, see the API usage limits documentation.
-
Add labels and a name Labels are optional. You can use them to organize your Inference Tokens, for example by team or application. A label is a key-value pair, and the value is optional. Keys and values can have up to 63 characters each and must begin and end with an alphanumeric character. In between, you can also use dashes, underscores, and dots. In the
Namefield, Hetzner Console suggests the nameinference-token-1. Enter a name that helps you identify the Inference Token later.
-
Create the Inference Token The summary on the right shows your settings. Because
Usage-Basedis billed by consumption,TOTALshows €0.00/mo. Click onCreate & Buy now.
-
Copy the Inference Token Click on
Click to showand copy the Inference Token. Save it in a secure place, for example in a password manager. You also need theAPI URLhttps://inference.hetzner.com/v1to send requests to the Hetzner Inference API.
When you are done, click onDone.
Please note: Hetzner Console only shows the Inference Token once. If you close the dialog without copying the Inference Token, you cannot view it again. In this case, delete the Inference Token and create a new one.
You now have a new Inference Token. You can find it in your project in the list under Inference → Inference Tokens, together with its current consumption and the consumption cap.