Block incoming requests where the body is greater than a specific size. You can limit the payload size in bytes, kilobytes, or megabytes (default).
Because prompt payloads are client-controlled and can be large, capping request size stops oversized bodies before AI Gateway forwards them to an AI Model Provider.
For security reasons, we suggest enabling this Policy across your AI Gateway traffic to prevent a DOS (Denial of Service) attack.