AI Rate Limiting Advanced Policy

Request prompt function with Google Cloud Memorystore cluster auth

Protect your LLM services with rate limiting and Google Cloud Memorystore cluster auth. The AI Rate Limiting Advanced Policy analyzes query costs and token responses to provide an enterprise-grade rate limiting strategy.

The following example uses request prompt rate limiting, which lets you rate limit requests based on a custom token.

Prerequisites

Environment variables

  • CLUSTER_ADDRESS: The Memorystore cluster address.

  • GCP_SERVICE_ACCOUNT: The GCP service account JSON.

Set up the policy

Attach the policy

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!