Skip to main content
An API Key is the credential used to authenticate with the HaiToken LLM gateway. You need to create a token in the console and include it in the request header when making API calls.

Create an API Key

1

Log in to the console

Visit the HaiToken console and sign in to your account.
2

Go to Token Management

Click Token Management in the left sidebar to open the token management page.
3

Create a new token

Click the + Create New Token button in the top-right corner, enter a name for your token, and it will be generated.
4

Save your API Key

Copy and securely store the generated API Key.
The API Key is only visible once upon creation. Once you close the dialog, you will not be able to view it again. Make sure to save it to a secure location immediately. Never expose your API Key in client-side code, public repositories, or shared screenshots.

Token Types

HaiToken provides two types of tokens for different billing scenarios:

Personal Token

Personal tokens are billed against your personal account. Before using a personal token, make sure your personal account balance is sufficient.

Team Token

Team tokens are billed against your team account. You must join a team before you can create and use team tokens. Before using a team token, make sure your team account balance is sufficient.
You can switch between the Personal Token and Team Token views using the tabs at the top of the token management page to view and manage different types of tokens.

Manage Tokens

On the token management page, you can perform the following actions on existing tokens:
  • Edit: Modify the token name
  • Disable / Enable: Temporarily disable or re-enable a token
  • Delete: Permanently delete a token (irreversible)
If you no longer need a token, it is recommended to disable or delete it promptly to reduce the risk of key leakage.

Next Steps