
Larger Request Bodies for Vercel Functions raises the maximum inbound request body from 4.5MB to 20MiB. The change is available in Public Beta for larger uploads, webhooks and API payloads.
The Vercel changelog confirms support for functions using the Node.js, Python and Bun runtimes. Routing Middleware can also pass these larger requests through to a function.
Edge runtime functions remain capped at 4.5MB. They return a 413 response when a request exceeds that limit.
| Runtime or component | Maximum request body | Behaviour |
|---|---|---|
| Node.js functions | 20MiB | Requires the project opt-in and 4GB performance memory |
| Python functions | 20MiB | Requires the project opt-in and 4GB performance memory |
| Bun functions | 20MiB | Requires the project opt-in and 4GB performance memory |
| Routing Middleware | 20MiB | Passes the request through without receiving its body |
| Edge runtime | 4.5MB | Returns 413 for larger bodies |
Enable Larger Request Bodies for Vercel Functions
Set the VERCEL_SUPPORT_LARGE_REQUEST_BODY=1 environment variable on the project. The opt-in covers the whole project within the environment where the variable is set.
That environment-level control means the beta can be enabled for a preview environment before production. Every function in the opted-in project must use Vercel’s 4GB performance memory setting.
Routing Middleware does not receive the request body while the option is active. This avoids the increased cost of transferring and processing the larger body in middleware. The request can still continue to the destination function.
What Changes for Existing Endpoints
Projects do not receive the higher limit automatically. Without the environment variable and required memory setting, the existing 4.5MB limit remains in place.
Endpoints already using the Edge runtime also keep the existing limit, even when the project has opted into larger bodies. A function that needs to accept more than 4.5MB must run on one of the supported Node.js, Python or Bun runtimes instead.
Frequently asked questions
What are Larger Request Bodies for Vercel Functions? They are a Public Beta option that increases the inbound request body limit from 4.5MB to 20MiB. The option covers Node.js, Python and Bun functions, plus requests passing through Routing Middleware.
How do I enable the 20MiB request body limit?
Set VERCEL_SUPPORT_LARGE_REQUEST_BODY=1 in the required project environment. The project’s functions must also use the 4GB performance memory setting.
Is Larger Request Bodies for Vercel Functions free? The changelog does not list pricing or eligible plan details. It states that the feature is in Public Beta and requires the 4GB performance memory setting.
Sources
3 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.







