Skip to main content

Rendering with Vercel Sandbox

Vercel Sandbox allows you to render videos on-demand without managing Lambda or AWS infrastructure.
Each render spawns an ephemeral Linux VM with full access to the Remotion renderer.

As a reference implementation, we have created a template: Next.js Sandbox Template.

Getting Started

You can deploy with one-click using the button below:

Deploy with Vercel

Or, visit the Remotion on Vercel template on Vercel's template marketplace.

Manual

Use the Vercel template:

npx create-video@latest --template vercel

Push it to Vercel.

Then, in your Vercel dashboard, under "Storage", create a new Blob store and connect it to the project.
Redeploy for the changes to take effect.

Advantages

This is the easiest way to setup Remotion server-side rendering. You only need one Vercel account and connect a blob storage - then you just push to deploy.

Vercel has higher limits than Lambda by default, so you can render more videos at once than with a fresh AWS account.

Allowing for 2000 concurrent sandboxes on the Pro Plan allows for massive scale.

Limitations

Rendering happens on a single machine rather than a distributed system, so it is slower than Lambda.

The Sandbox is heavy, containing Chrome and FFmpeg and takes a few seconds to start up.

Limits

The timeout limit for Vercel Sandbox is 45 minutes on the Hobby plan, and 5 hours on the Pro and Enterprise plans.
For concurrency, the limit is 10 simultaneous renders on Hobby, and 2000 on Pro and Enterprise.

For more details, see: Vercel Sandbox pricing

@remotion/vercel package

The @remotion/vercel package provides a programmatic API for rendering Remotion videos on Vercel Sandbox. The template uses this package under the hood.

Source Code

See the template source code for implementation details.

See also