Skip to content
CSuite
Nov 24, 20269 min read

How AI video generators work

We joined 32 AI images into a clip and got two seconds of flicker. What a video model adds explains the per-second price.

On this page
One 5-second clip, by the numbers
What an open video model works through to make five seconds of a lighthouse at sunset, step by step.
Step 1
81frames
97 million numbers of raw pixels
Step 2
21squeezed frames
2.1 million numbers on the hidden canvas
Step 3
32,760tokens
Each one checked against all the others
Step 4
30passes
108 seconds of work on one GPU
Wan 2.1 (1.3B) at 832×480, run through Replicate’s API on November 24, 2026, seed 1234, first result. Sizes follow the Wan technical report; arithmetic ours.
This post as a 66-second video, with sound. The clips in it are the real generations from this post’s test.

An AI image costs a fraction of a cent and takes a few seconds. Ask the same kind of tool for a video and the rules change. The clip is five seconds long, it takes a minute or two, and the bill is counted by the second. Why is a moving picture so much harder than a still one?

The short answer fits in one line. A video model is an image model that also has to keep every frame consistent with every other frame. That one extra job explains the short clips, the long waits and the per-second prices. To show it, we ran one lighthouse prompt through an image model, an open video model at five lengths, and three current cloud video models. The whole test cost $2.61.

A video is a stack of pictures that have to agree

A film is a flip-book. Show 16 or 24 slightly different pictures every second and the eye reads them as motion. So the obvious way to make AI video would be to ask an image generator for a lot of pictures and play them in order.

We tried it. FLUX.1 schnell made 32 images from the lighthouse prompt, each with its own seed, and we joined them at 16 frames a second. The result is on the left below. Every frame is a good picture. Together they are two seconds of strobing, because each frame invents a different lighthouse on a different headland under a different sky.

Same prompt, two ways to fill 16 frames a second
Press play on each. On the left, an image model made every frame on its own. On the right, a video model made all of its frames together.
FLUX.1 schnell, 32 separate images
A new lighthouse every sixteenth of a second
Wan 2.1 (1.3B), 81 frames in one run
One lighthouse, one wave, gulls that keep flying
Generated on November 24, 2026, first results, no rerolls. Left: 32 images through Runware’s API, seeds 1 to 32, 4 steps, $0.001 each, joined at 16 frames a second. Right: one run through Replicate’s API, seed 1234, 30 steps, $0.20.

Our earlier post on how AI image generators work explains why. An image model starts from random static and removes it step by step, and the static decides the layout. New static, new picture. Nothing tells frame 12 what frame 11 looked like. Video needs a model whose frames know about each other.

A flip-book only works when each page is almost the same as the one before. That “almost” is the whole problem a video model has to solve. Illustration generated with Nano Banana 2.1 via Runware.

The model cleans up every frame at the same time

The fix is to stop treating frames as separate jobs. A video model starts with a block of static, one noisy frame for every frame of the finished clip, and cleans up the whole block together. At every step, each part of each frame can look at every other frame before it decides what to become. A gull in frame 40 is placed with frame 39 and frame 41 in view.

This grew directly out of image models. An early paper in the line, 2022’s Video Diffusion Models, calls its design “a natural extension of the standard image diffusion architecture”. A year later, Stable Video Diffusion described the common recipe of the time: take a trained image model and turn it into a video model “by inserting temporal layers”. AnimateDiff went further and built a plug-in “motion module” that could be dropped into an existing image model to make it animate.

Animators draw on a light box so they can see the neighbouring drawings through the page. A video model does the same thing with every frame at once. Illustration generated with Nano Banana 2.1 via Runware.

Current models skip the bolt-on stage. Wan, the open model family from Alibaba, is one network trained on images and video together. Its technical report describes cutting the clip into small patches and letting the network relate all of them across space and time. The clip on the right of the figure above is Wan 2.1’s small 1.3B model on the same prompt: one lighthouse for the full five seconds, a wave that breaks and drains, and a gull that crosses the frame.

Where does the motion come from? From watching. Wan’s authors say the larger model was trained on “billions of images and videos”. Nobody programs in how a wave breaks or how a gull’s wing bends. The model has seen enough waves to guess what the next sixteenth of a second usually looks like. That is also why motion sometimes goes wrong in ways a physics engine never would: the model predicts what video tends to look like, and it does not simulate water.

It squeezes time as well as space

Five seconds of small 480p video at 16 frames a second is 81 frames, or about 97 million numbers. No model cleans that up directly. Like image models, video models work on a compressed hidden canvas and only turn it back into pixels at the end.

The difference is that a video canvas is also compressed in time. Wan’s autoencoder shrinks a clip “by 4×8×8 times”: every four frames become one, and each 8×8 square of pixels becomes one spot holding 16 values. The first frame is kept on its own, so 81 frames become 21. The model then groups the spots into 2×2 patches called tokens. Our five-second clip ends up as 32,760 of them.

Five seconds of 480p video, before and after the squeeze
Wan’s autoencoder keeps the first frame and folds every four frames after it into one, then shrinks each frame 8× in both directions.
Raw frames
81 frames × 832 × 480 × 3 colours
97 million numbers
Hidden canvas
21 frames × 104 × 60 × 16 values
2.1 million numbers
Tokens
21 frames × 52 × 30 patches
32,760 tokens
Compression factors and the token formula from the Wan technical report; arithmetic ours.

Time squeezes well for the flip-book reason: neighbouring frames are almost the same picture, so most of what frame 12 says was already said by frame 11. Altogether the hidden canvas holds about 46 times fewer numbers than the raw frames. The image model in our earlier post managed 12 times.

How hard to squeeze is the main design choice in a video model. Squeeze more and everything gets faster, but fine detail has less room. LTX-Video pushed the idea to a compression ratio of 1:192 and reported 5 seconds of 24-frame video at 768×512 in 2 seconds on an Nvidia H100, faster than the clip takes to watch. The 5B model in Wan 2.2 uses a 4×16×16 autoencoder so that 720p video at 24 frames a second fits on a single consumer graphics card.

Each extra second costs more than the one before

Keeping frames consistent has a price, and it is easy to state. If every token checks itself against every other token, doubling the tokens quadruples the checks. The Wan report says it plainly: the cost of that step, called attention, “increases quadratically with the number of tokens”, and it is the main cost of the whole model.

We measured it. The same prompt and seed went through Wan 2.1 (1.3B) at five lengths, from 17 frames to 81. Replicate reports the GPU time for each run.

Same prompt and seed, five clip lengths
GPU time Replicate reported for each run of Wan 2.1 (1.3B) at 30 steps. The last column is that time divided by the frame count.
17 frames
1 s
7,800 tokens
17.4 s
1.02 s a frame
33 frames
2 s
14,040 tokens
34.8 s
1.06 s a frame
49 frames
3 s
20,280 tokens
55.2 s
1.13 s a frame
65 frames
4 s
26,520 tokens
80.8 s
1.24 s a frame
81 frames
5 s
32,760 tokens
108.4 s
1.34 s a frame
Run through Replicate’s API on November 24, 2026, on an Nvidia L40S, seed 1234, 832×480, one run per length. Replicate bills this model a flat $0.20 per video, so the time is the measure here, not the price.

One second of video took 17.4 seconds to make. Five seconds took 108.4. That is 4.8 times the frames for 6.2 times the work. The cost of a frame rose from 1.02 seconds to 1.34 as the clip got longer, because every new frame has to be checked against all the frames already there. The growth is gentler than a pure square, since parts of the network scale in a straight line, but it bends the same way.

The number of clean-up passes multiplies all of this. The Wan report puts a normal run at “around 50” steps, each one a full pass over the whole block. At 81 frames, our 10-step run took 40.2 seconds, the 30-step run 108.4 and the 50-step run 177.3. This is why fast tiers exist: research such as CausVid trains a student model to do a 50-step job in 4 steps.

Clips are short because the models learned on short clips

Compute is half the reason clips are short. The other half is training. A model can only keep a scene steady for as long as the examples it learned from. Wan was trained in three stages of rising resolution, and the report describes the video in each stage as “5-second video clips”. Ask such a model for a minute and it has never seen what second 40 of a shot should look like.

Memory is a limit as well, because the whole block has to sit in the graphics card at once. Wan 2.1’s small model needs 8.19 GB for a 5-second 480p clip, and its README says that clip takes about 4 minutes on an RTX 4090, a high-end consumer card. A longer or sharper clip means a bigger block, and at some point it no longer fits.

Limits have moved up as training clips got longer. CogVideoX reached 10-second videos at 16 frames a second in 2024. On the pages we read on November 24, 2026, Veo 3.1 Lite offers 4, 6 or 8 seconds, Kling 4.0 Flash goes up to 20 seconds, and Wan 3.0 advertises 30-second clips.

The other route to length is to stop making the whole clip at once and generate it piece by piece, each piece continuing from the last. That saves work, but small mistakes pile up: colours drift and faces slowly change. The CausVid paper names the problem “error accumulation”, and reducing it is how the authors get long clips from a model trained on short ones. Extending a clip from its last frame in an app is the same idea done by hand, and it drifts the same way.

You pay by the second because the work grows by the second

An image is one fixed job, so it gets one price. A video job grows with every second you ask for, so providers price the second. We sent the lighthouse prompt to three current models through Runware and recorded what each one billed.

One prompt, three current models, three bills
Each clip is the first result at 1280×720 with sound, at the shortest length the test allowed.
Veo 3.1 Lite
$0.20for 4 s, $0.05 a second
43 s wait
Wan 3.0
$0.50for 5 s, $0.10 a second
135 s wait
Kling 4.0 Flash
$0.47for 5 s, $0.094 a second
73 s wait
Generated through Runware’s API on November 24, 2026, no seed set, no rerolls, $1.17 in total. Costs are what Runware billed; waits run from request to finished file.

The rates came out at $0.05, $0.10 and $0.094 a second. For scale, the image model in our flicker test charged $0.001 a picture. Veo 3.1 Lite’s four seconds are 96 frames, so each frame cost about a fifth of a cent, twice the price of a whole standalone image, and that is the cheapest rate here. The extra pays for the frames agreeing with each other.

The waits tell the same story. Four or five seconds of video took between 43 and 135 seconds to arrive, on data-centre hardware. All three clips came back with a soundtrack, which these models now generate alongside the picture.

Resolution works the same way as length, because more pixels mean more tokens in every frame. Runware’s own examples for Veo 3.1 Lite bill a 6-second clip at 1080p at $0.48, which is $0.08 a second against $0.05 at 720p. This post is about the mechanics, so it does not rank the models. For choosing one, see what a sentence gets you in text-to-video.

Plan in shots, the way the model does

Once you see a video model as an image model with a consistency job, the settings make sense. Each one changes how much has to stay consistent, or for how long.

Four settings that follow from how video models work
Length
How many frames the model must keep in agreement
Ask for the shortest shot that works, then cut shots together
Resolution
How many tokens each frame adds
Draft at 480p or 720p; pay for 1080p once the shot is right
Fast tier
How many clean-up passes the model was trained to need
Explore on the fast model, finish on the full one
Start image
What the first frame looks like before any motion
Use one when a face or a product has to match across shots
Films were always built from short shots. A storyboard of four- to eight-second shots matches what video models do well. Illustration generated with Nano Banana 2.1 via Runware.

Three habits follow. Write shots, not scenes: one action and one camera move in each clip, then cut them together, as our idea-to-video pipeline does. Test cheaply first, at a low resolution or in a draft mode, since every second and every pixel is billed; the guide to draft mode for AI video covers when that pays off. And when something must look the same in every shot, start each clip from a still image of it, so the model is only asked to keep it consistent, not to invent it again.

The 32 pictures in our flicker test were each fine on their own. What made the other clips watchable was the agreement between frames, and that agreement is the expensive part. A video generator sells consistency, and it sells it by the second.

Test prompt, used for every image and clip in this post: “A white lighthouse on a rocky headland at sunset, waves breaking on dark rocks below, the lamp turning, gulls gliding across a pink and orange sky, slow camera push-in, photographic”.

Summarize with

Make AI videos with local and cloud models in one app.

Get CSuite
More reading
Black Friday sale · 25% off

One-time payment. Yours forever.

No subscriptions. No renewals. Buy CSuite once, future updates included.

Secure checkout via Stripe. Already have a license? Download the app