# Get a clear error for AI Gateway requests over 32 MiB

> AI Gateway now rejects requests larger than 32 MiB with a clear error, before they reach a provider.

- Date: 2026-10-14
- Shipped by: Brenden Ehlers and mohamed
- Products: AI Gateway
- URL: https://ngrok.com/changelog/ai-gateway-request-size-limit

Inference requests, such as chat completions, messages, and embeddings, can be up to 32 MiB on every API format. A larger request gets `ERR_NGROK_AI_GATEWAY_REQUEST_BODY_TOO_LONG` right away, so it never reaches a provider.

Most requests are far below the limit. If you hit it, trim long conversation history or large embedded documents.

## Get started

1. Check the [error code reference](https://ngrok.com/docs/ai-gateway/reference/error-codes) for the full error.
2. If you see it, shorten the request and send it again.
