AI Rate Limiting Advanced

AI License Required

Enable rate limiting for a headerv3.14+

Protect your LLM services with header rate limiting. The AI Rate Limiting Advanced plugin will analyze query costs and token response to provide an enterprise-grade rate limiting strategy.

In this example, we’re rate limiting based on a specific header value. The header name is specified in the config.policies.match.key field, and the values in config.policies.match.value.

Prerequisites

Environment variables

  • HEADER_NAME: The name of the header.

  • HEADER_VALUE: The value of the header to rate limit.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!