AI Rate Limiting Advanced

AI License Required

Enable Consumer rate limitingv3.14+

Protect your LLM services with Consumer 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 a specific Consumer using its ID. You can also target a Consumer using its username or custom ID by changing the config.policies.match.key value.

Prerequisites

Environment variables

  • CONSUMER_ID: The ID of the Consumer 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!