AI video generation on a Cloud GPU

Text-to-video models generate short clips from a prompt. Open models such as Wan 2.5 come in a small 1.3B version that fits in about 8 GB and a 14B version that needs a large data-centre Cloud GPU.

VRAM

How much VRAM is required?

Setup GPU memory Cheapest GPU that fits
Wan 2.1 T2V 1.3B, 480p about 8.2 GB NVIDIA L4
Wan 2.1 T2V 14B, 720p 80 GB-class GPU (or CPU offloading) NVIDIA H100
GPU

Which GPU should I use?

The 1.3B model fits on any ComputeBD GPU; an L40S is a good balance of speed and price. The 14B model needs an A100 or H100-class GPU (80 GB or more).

Recommended GPU Memory Per hour
NVIDIA L40S 48 GB ৳343
NVIDIA A100 80 GB ৳638
NVIDIA H100 80 GB ৳1,047
COST

How much will it cost?

On Indicative cost
One 5-second clip on an L40S (~4 min) ৳23
Twenty clips to find a good one ৳457

Live ComputeBD rates in taka, billed by the minute. Estimates — your data and settings change the numbers.

TIME

How long will it take?

Case Time
5-second 480p clip, 1.3B model about 4 minutes on an RTX 4090-class GPU (Wan's own figure); expect similar on an L40S and faster on an H100

Source: Wan 2.1 model card on Hugging Face (Wan-AI/Wan2.1-T2V-1.3B-Diffusers).

JUPYTER

Can I run it in Jupyter?

Yes. Generate clips from a notebook cell and play them inline before downloading.

EXAMPLE CODE

Example code

Install:

pip install -q "diffusers>=0.33" transformers accelerate ftfy imageio imageio-ffmpeg
import torch
from diffusers import AutoencoderKLWan, WanPipeline
from diffusers.utils import export_to_video

model_id = "Wan-AI/Wan2.1-T2V-1.3B-Diffusers"     # Apache-2.0; ~8 GB of VRAM
vae = AutoencoderKLWan.from_pretrained(model_id, subfolder="vae", torch_dtype=torch.float32)
pipe = WanPipeline.from_pretrained(model_id, vae=vae, torch_dtype=torch.bfloat16).to("cuda")

frames = pipe(
    prompt="a boat on the Buriganga river at sunrise, gentle waves, cinematic",
    negative_prompt="blurry, low quality, distorted",
    height=480, width=832, num_frames=81, guidance_scale=5.0,
).frames[0]
export_to_video(frames, "buriganga.mp4", fps=15)   # 81 frames ≈ 5 seconds
EXAMPLE NOTEBOOK

Example notebook

The code above as a ready Jupyter notebook: check the GPU, install, run.

COMPUTEBD RECOMMENDATION

Our GPU recommendation

NVIDIA L40S — The 1.3B model fits on any ComputeBD GPU; an L40S is a good balance of speed and price. The 14B model needs an A100 or H100-class GPU (80 GB or more).

Common questions

What is Video generation?

Text-to-video models generate short clips from a prompt. Open models such as Wan 2.5 come in a small 1.3B version that fits in about 8 GB and a 14B version that needs a large data-centre Cloud GPU.

How much VRAM does Video generation need?

Wan 2.1 T2V 1.3B, 480p: about 8.2 GB; Wan 2.1 T2V 14B, 720p: 80 GB-class GPU (or CPU offloading).

Which GPU should I use for Video generation?

The 1.3B model fits on any ComputeBD GPU; an L40S is a good balance of speed and price. The 14B model needs an A100 or H100-class GPU (80 GB or more).

Can I run Video generation in Jupyter?

Yes. Generate clips from a notebook cell and play them inline before downloading.