Persistent VMs are now available.Learn more

Generative media on serverless GPUs

Run text-to-video models like Mochi behind an API without reserving a single GPU. Beam provisions H100s per job, saves the rendered video, and returns a hosted URL.

Run large video models on H100s per job


Ship an AI video API

  1. Upload your weights

    Download the model to a persistent volume once, and every container mounts it instantly afterward.

  2. Deploy the pipeline

    Wrap the diffusers pipeline in an endpoint or task queue with an H100 attached.

  3. Host as HTTPS endpoint

    POST a prompt and get a hosted video URL back, synchronously for short clips or via webhook for long renders.

terminal
# 1. Stage the weights on a volume (once)
$ python upload.py   # snapshot_download() into the volume

# 2. Deploy the generation API
$ beam deploy app.py:generate_video
=> Deployed 🎉
=> https://mochi-1-abc123.app.beam.cloud

# 3. Render over HTTP
$ curl -X POST https://mochi-1-abc123.app.beam.cloud \
    -H 'Authorization: Bearer YOUR_TOKEN' \
    -d '{"prompt": "a hot air balloon drifting over glaciers"}'

{"url": "https://app.beam.cloud/output/id/77c1..."}

Frequently asked questions

Which video models can I run?

Beam has a step-by-step Mochi-1 guide, and any open video model that runs in PyTorch (via diffusers or custom code) deploys the same way.

How do you handle multi-minute render times?

Run the model behind a task queue: requests return a task ID instantly, timeouts are configurable (or disabled), and a callback URL notifies your app when the render lands.

How do I keep costs under control?

Billing is per-second and containers scale to zero between renders, so you pay for render time only.

Where do model weights live?

On a persistent volume. Upload them once with snapshot_download, and every container loads from disk instead of pulling tens of gigabytes per boot.

How are finished videos delivered?

Save them with Output and return hosted public URLs from your API, or push them to your own storage from inside the container.

Pay as you go
billed by the second

Give your agents their own machines

Sign up, install the CLI, and launch a sandbox, VM, or GPU from your terminal or your coding agent.