Managing Inference Tokens with the hcloud CLI and other integrations

Last change on 2026-11-11 • Created on 2026-11-11 • ID: AI-82AB5

Besides Hetzner Console, you can also manage Inference Tokens with our official integrations: the hcloud CLI, the Terraform provider, the Ansible collection, and the libraries for Go and Python. This page shows you how to create and manage Inference Tokens with the hcloud CLI.

Please note: The integrations manage Inference Tokens through the Hetzner API. For this, you need an API token of your project. You then use the Inference Token that you create with it for requests to the Inference API. The two tokens are not interchangeable.

Prerequisites

  • The hcloud CLI in a version with support for the Inference API. For installation instructions, see the hcloud CLI repository.

  • An API token of your project with the Read & Write permission. For instructions, see Generating an API token.

  • A context in the hcloud CLI with this API token:

    hcloud context create my-project

Viewing models and token types

Run the following command to list the available models:

hcloud inference model list
ID   NAME                    TASKS              CONTEXT SIZE   PARAMETER SIZE   QUANTIZATION   DEPRECATED
2    zai-org/GLM-5.3-Flash   chat,code,vision   1048576        320B             NVFP4          -
3    zai-org/GLM-5.3         chat,code          1048576        753B             NVFP4          -
4    Aleph-Alpha/Kolibri-1   chat,code          262144         78B              NVFP4          -
5    BAAI/bge-m3             embedding          8192           0.57B            BF16           -

Run the following command to list the available token types:

hcloud inference token-type list
ID   NAME   KIND          DESCRIPTION   AVAILABLE   PRICE MONTHLY GROSS   DEPRECATED
1    usgb   usage_based   Usage-based   yes         -                     -

To view the details of a single model or token type, run hcloud inference model describe <model> or hcloud inference token-type describe <token-type>.

Creating an Inference Token

Create an Inference Token with a name, a token type, and a consumption cap:

hcloud inference token create --name inference-token-1 --type usgb --cost-cap 5.00

Use --cost-cap to set the monthly consumption cap of the Inference Token. The output contains the Inference Token:

Inference Token 668692069220755 created
Key: hit_...
Please note down this key, it will not be shown again.

Please note: The hcloud CLI shows the Inference Token only once. Store it in a secure place right away, for example in a password manager. If you lose it, delete the Inference Token and create a new one.

Managing Inference Tokens

Task Command
List all Inference Tokens of the project hcloud inference token list
View the details of an Inference Token hcloud inference token describe <token>
View the usage of an Inference Token per model hcloud inference token list-models <token>
Update an Inference Token hcloud inference token update <token>
Delete an Inference Token hcloud inference token delete <token>

For <token>, enter the ID or the name of the Inference Token. To see the options of a command, use --help, for example hcloud inference token update --help.

When you delete an Inference Token, the Inference API immediately rejects requests with this Inference Token. You cannot undo this.

Other integrations

You can also manage Inference Tokens with these integrations:

Integration Repository
Terraform provider hetznercloud/terraform-provider-hcloud
Ansible collection ansible-collections/hetzner.hcloud
Go library hetznercloud/hcloud-go
Python library hetznercloud/hcloud-python

Next steps

Table of Contents