> For the complete documentation index, see [llms.txt](https://docs.greennode.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.greennode.ai/ai-stack/ai-gateway/rate-limit.md).

# Rate Limit

Rate Limit is a mechanism used to control the number of requests or tokens within a specified period of time. It helps protect the system from abuse, ensures fairness when multiple users share the sam

### 1. Access the Rate Limit Feature <a href="#id-1.-truy-cap-tinh-nang-gioi-han-rate" id="id-1.-truy-cap-tinh-nang-gioi-han-rate"></a>

1. After creating an Authentication Token, navigate to the token list and select the icon in the **Action** column, as illustrated below, to open the Rate Limit configuration panel.

<figure><img src="https://1985221522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7rE7M1L7GYcwQzNGd0aB%2Fuploads%2Fx6MxDfENAy2PoUSuIjLP%2Fimage.png?alt=media&amp;token=142b0e37-a1b6-419e-add6-19a42c4f0b41" alt=""><figcaption></figcaption></figure>

2. Or you may select **Configure Rate Limit** directly when creating an Authentication Token.

<figure><img src="https://1985221522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7rE7M1L7GYcwQzNGd0aB%2Fuploads%2FlVJbvDZFmXp0b60EVomp%2Fimage.png?alt=media&amp;token=d5bbc147-360f-45bd-bc5b-5e9c6c01fab2" alt=""><figcaption></figcaption></figure>

### 2. Create a New Rate Limit Configuration <a href="#id-2.-tao-moi-rate-limit-token" id="id-2.-tao-moi-rate-limit-token"></a>

1. Limit by (Select one or both options)

* **Requests**: Set a limit for the number of API requests.
  * Minimum: 1 request
  * Maximum: 1,000,000 requests
  * Supported time windows:
    * 1 Minute
    * 1 Hour
    * 1 Day
    * 1 Month
  * **Window Time Type:** Currently supports **Fixed Window** only.
* **Tokens**: Set a limit for the number of tokens consumed
  * Minimum: 100 tokens
  * Maximum: 5,000,000,000 tokens
  * Supported time windows:
    * 1 Minute
    * 1 Hour
    * 1 Day
    * 1 Month
  * **Window Time Type:** Currently supports **Fixed Window** only.

### 3. Save the Configuration

<figure><img src="https://1985221522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7rE7M1L7GYcwQzNGd0aB%2Fuploads%2F7srDEtrmE5ceWW3IDBFv%2Fimage.png?alt=media&amp;token=fe5404e0-d459-4bbb-96ee-a969011af80d" alt=""><figcaption></figcaption></figure>
