AI filmmaking / Vast.ai 3:03
The Seven-Cent Shot: Generate Video with Wan 2.2 on Vast.ai
Chapters
What you’ll learn
See how to generate a short AI video with Wan 2.2 5B on a rented Vast.ai GPU, then calculate compute cost and understand the overhead of a first run.
Rent an RTX 4090 with the Vast CLI, connect over SSH, and run Wan 2.2 on the rental. Copy the result back, inspect the shot, and release the rental. The seven-cent figure estimates GPU compute for five seconds from a warm benchmark. A first run also has to set up the machine and download the model.
To follow the companion guide, use a terminal with Python and OpenSSH and a funded Vast.ai account. Check the current hourly rate, storage, and bandwidth charges before renting.
Project resources
Class transcript
English · 7 chaptersSee the Wan 2.2 sample
What did this shot cost? These boxing cats came from Wan, an open video model. Once Wan is loaded, five seconds of video could cost about seven cents in GPU time.
Understand first-run costs
The first clip also has to cover the time it takes to get the machine ready. Think of renting a kitchen by the hour. You're paying while you unpack. Here, the machine boots and pulls a software image.
Then it downloads about thirty-four gigabytes of model files. If you only make one clip, setup can be most of the bill. Make a few clips in the same rental, and you spread the setup cost across the batch.
Choose a model and estimate GPU cost
Start with Wan 2.2 5B. Give it text or a still image, and it can render roughly 720p video. The smaller distilled LTX model is worth trying for quick drafts. For a shot you might keep, I'd start with Wan 5B.
On a 4090, Wan's published warm run took just under nine minutes. At forty-seven cents an hour, that's about seven cents in GPU time. At twenty cents an hour, a 3090 only wins if it can finish the same job in about twenty-one minutes or less. That's your break-even time.
Rent a GPU and connect through SSH
Vast handles the rental. Its API finds a machine and starts the instance. You connect over SSH, and Wan makes the video on that machine. We'll use the Vast command-line tool. It calls the Vast API from your terminal.
Register your public SSH key with Vast so you can log into the rental. Set your private API key in your terminal to authorize Vast commands. Look for one verified, on-demand 4090. Include eighty gigabytes of disk, then compare the total hourly prices.
The offer ID identifies the listing. The instance ID identifies your rental. Pass the offer ID to the create command, then save the instance ID that Vast returns. Wait until the instance is running. Get its SSH address, connect, and check that the GPU is visible.
Install Wan and generate a shot
Install Wan on the rental and download the 5B weights. The guide pins the dependencies and the checkpoint revision. Now run generate.py. Set it to one hundred twenty-one frames.
At twenty-four frames per second, that's about five seconds. Two cats in boxing gloves spar under a spotlight. The camera tracks around the ring. That's the whole prompt. Starting with a still? Pass it with the image flag, then describe what should move.
Copy the video and check the result
Copy the finished video back using the host and port Vast gave you. Watch the whole shot. Do the subjects stay consistent? Does the camera follow your direction? These cats are a published sample from a compressed version of Wan 5B.
On your next run, try changing one thing while the weights are still loaded.
Release the rental and calculate the total cost
Once the file plays locally, destroy the instance and check that it's gone. Stopped rentals can still incur disk charges. Divide the entire bill by the number of clips you kept.
That's your cost per usable shot. The companion guide has the full commands, model settings, and an HTTP search example. [Bell rings] Thanks for watching. If you enjoyed this video, subscribe to successgraph® for more.
[Bell chimes]