> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hairoute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get API Key

> Learn how to obtain your HaiRoute API Key

An API Key is the credential used to authenticate with the HaiRoute 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

<Steps>
  <Step title="Log in to the console">
    Visit the [HaiRoute console](https://hairoute.ai) and sign in to your account.
  </Step>

  <Step title="Go to Token Management">
    Click **Token Management** in the left sidebar to open the token management page.
  </Step>

  <Step title="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.
  </Step>

  <Step title="Save your API Key">
    Copy and securely store the generated API Key.

    <Warning>
      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.
    </Warning>
  </Step>
</Steps>

## Token Types

HaiRoute 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.

<Note>
  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.
</Note>

<Frame>
  <img src="https://mintcdn.com/hai-token/sUvzjDwGFFNKv615/images/quickstart/token.png?fit=max&auto=format&n=sUvzjDwGFFNKv615&q=85&s=2f2f264c71d6dc5ddfe1fd58e5b01c28" alt="Token management page" width="2533" height="475" data-path="images/quickstart/token.png" />
</Frame>

## 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)

<Tip>
  If you no longer need a token, it is recommended to disable or delete it promptly to reduce the risk of key leakage.
</Tip>

## Next Steps

* Check out the [Integration Guide](/docs/en/quickstart/integration-guide) to learn how to call the API
* See [Rate Limits](/docs/en/others/rate-limits) to understand API usage limits
