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.

Starter Template

Use our Next.js template to get started quickly. 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.

note

The template does not include rate limiting or caching. Implement these before making your app publicly available, and set up Vercel Spend Management to control costs. Sandbox snapshots, rendered videos, and other Vercel Blob data persist indefinitely – delete them when no longer needed.

@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.

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

Source Code

See the template source code for implementation details.

See also