Unboxing the AI Stack
L04 · Image, Video & Avatars · Explainer

How AI Video Generation Works: Clip Length, Resolution and Audio by Model

Video models now make clips of 8 to 30 seconds at up to 4K, many with native audio. Here is how a diffusion transformer turns a prompt into frames, and why clip length and resolution are capped.

Checked against the vendors' model and API pages (Veo 3.1 on Vertex AI, Seedance 2.5, Wan 3.0, MiniMax H3, Grok Imagine Video 1.5, Runway Gen-4.5) and the Wan technical report (arXiv 2503.20314)

Text prompt Text encoder cross-attention Noise latent Diffusion transformer spacetime patches × N denoising steps VAE decoder Frames Audio track in sync
  • Text conditioning
  • Noise latent
  • Denoising transformer
  • VAE decoder
  • Native audio (some models)
Diagram: how a latent diffusion video model turns a prompt into frames (and, on some models, a synced audio track), simplified and not to scale.

As of All figures vendor-statedLongest clip first

AI video generation models: maximum clip length, resolution, frame rate and native audio, as of 2026-10-13
Model Maker Max clip (s) Max output resolution Frame rate (FPS) Native audio Access Figure
Seedance 2.51Dreamina Seedance 2.5 ByteDance 30 1080p — Yes API (BytePlus ModelArk) Vendor-stated
Wan 3.02wan3.0-video Alibaba 30 1080P — Yes3 API (Alibaba Cloud Model Studio) Vendor-stated
Seedance 2.01Dreamina Seedance 2.0 ByteDance 15 4K — Yes API (BytePlus ModelArk) Vendor-stated
Kling Video 3.05Kling AI 3.0 series Kuaishou 15 Not stated — Yes Kling AI Vendor-stated
MiniMax H36MiniMax-H3 MiniMax 15 2K — Not stated API (MiniMax) Vendor-stated
MiniMax H3 Max6MiniMax-H3-Max, post-trained by fal.ai MiniMax 15 768P — Yes3 API (MiniMax) Vendor-stated
Grok Imagine Video 1.57grok-imagine-video-1.5 xAI 15 1080p — Yes API (xAI) Vendor-stated
Grok Imagine Video 1.5 Lite7grok-imagine-video-1.5-lite xAI 15 1080p — Yes API (xAI) Vendor-stated
Gen-4.54gen4.5 Runway 10 720p (1280:720) — Not offered in API API (Runway) Vendor-stated
Veo 3.18veo-3.1-generate-001, GA Google 8 4K 24 Yes API (Vertex AI) Vendor-stated
Veo 3.1 Fast8veo-3.1-fast-generate-001, GA Google 8 1080p 24 Yes API (Vertex AI) Vendor-stated
Veo 3.1 Lite8veo-3.1-lite-generate-001, Preview Google 8 1080p 24 Yes API (Vertex AI) Vendor-stated
Wan2.2-TI2V-5B95B dense, Wan2.2-VAE Alibaba — 720P (1280×704) 24 Not stated Open weights (Hugging Face) Vendor-stated
Sora 2 and Sora 2 Pro10sora-2, sora-2-pro OpenAI — — — — API shut down 2026-09-24 Vendor-stated

Max clip is the longest single generation each vendor's own model or API page allows, in seconds; max output resolution and frame rate are as those pages state them ("—" or "Not stated" where the page gives none; we don't fill gaps from third-party listings). Native audio means the model can generate a synced soundtrack in the same request: Wan 3.0's and MiniMax H3 Max's audio support comes from Runway's API listing, where both are hosted3; Alibaba's and MiniMax's own pages list audio only as an input. Rows are current video models with a public spec page we could open on Oct 13, 2026, plus Sora 2 as a dated row: OpenAI shut down the Sora 2 models and its Videos API on Sept 24, 2026, with no listed replacement10. Left out: Kling 4.0, which Kling's site promotes without published specs12, and models whose pages state no maximum length. Every figure is vendor-stated, not measured, and lengths are per generation, before any extension. Figure labels: how they work.

How it works

1. A video is a block of numbers, squeezed into a latent

To a model, a clip is a stack of frames, each a grid of pixels with three color channels. The Wan technical report writes its input as a tensor of (1 + T) frames × height × width × 3.14 Generating that many pixels directly is expensive, so nearly every current system works in a compressed latent space instead, the approach the Diffusion Transformer (DiT) paper describes as latent diffusion: an autoencoder learns to compress images into smaller representations, the diffusion model learns to generate those, and a decoder turns them back into pixels.13

For video the autoencoder is a 3D variational autoencoder (VAE) that compresses time as well as space. Wan-VAE shrinks a clip to [1 + T/4, H/8, W/8] with 16 channels, a 4 × 8 × 8 compression; its first frame is compressed only spatially, which lets the same model handle still images.14 The later Wan2.2-VAE reaches 4 × 16 × 16.9

2. Generation starts from noise and removes it step by step

The model begins with a latent of pure random noise the shape of the target clip and refines it over a series of steps. Wan uses flow matching, a variant of diffusion: in training, each example is a straight-line blend between noise and a real video latent, xt = t·x1 + (1 − t)·x0, and the network learns to predict the velocity x1 − x0 that points from noise toward the video.14 At generation time the model follows that predicted direction from noise to a clean latent over many small steps, then hands the result to the VAE decoder, which turns it back into frames.14

3. The denoiser is a transformer over spacetime patches

Early image diffusion models used a convolutional U-Net as the denoiser. The 2022 DiT paper replaced it with a transformer that operates on latent patches: the latent is cut into p × p patches and flattened into a sequence of tokens, and a smaller patch means a longer sequence and more compute.13 It found that DiTs with more compute per forward pass, through a deeper or wider transformer or more input tokens, consistently produced better images (lower FID).13

Video models extend the patches through time. Wan's patchifying module is a 3D convolution with a (1, 2, 2) kernel, giving a sequence of length L = (1 + T/4) × H/16 × W/16 that the transformer processes with full spatio-temporal attention, so patches attend to each other across frames as well as within them.14 Wan2.2 splits the denoiser into two experts (a mixture of experts): a high-noise expert for the early steps, focusing on overall layout, and a low-noise expert for the later steps, refining detail; each has about 14B parameters, with 14B of the 27B total active per step.9

4. The prompt steers every step through cross-attention

The text prompt never becomes pixels itself. A separate text encoder turns it into a sequence of embeddings, and the transformer reads them at every denoising step. Wan uses the multilingual umT5 encoder, with a text embedding sequence 512 tokens long, and injects it through cross-attention layers in each transformer block; other designs, the report notes, instead concatenate the text tokens with the video tokens (MM-DiT).14 APIs extend the same idea to images: MiniMax H3, for example, accepts a first frame, a last frame or reference images, videos and audio alongside the text prompt.6

5. Why clip length and resolution are capped

The sequence the transformer must process grows with both frames and pixels. Applying Wan's formula to the report's own example of 81 frames at 1280 × 720 gives (1 + 80/4) × (720/16) × (1280/16) = 21 × 45 × 80 = 75,600 tokens (our arithmetic from the paper's formula). Doubling the frame count roughly doubles the sequence; doubling both height and width quadruples it. Wan's authors say such extended sequence lengths "substantially reduce training throughput" and that memory use forces small batch sizes, which is why they trained first on low-resolution images, then on 5-second clips at 192 px and 16 fps, then 480 px and finally 720 px.14

The vendors' limits reflect the same trade-off. Google's Veo 3.1 on Vertex AI offers 4-, 6- or 8-second clips at 24 FPS, up to 4K,8 while Runway's Gen-4.5 API takes 2 to 10 seconds at 1280 × 720.4 At the long end, ByteDance lists 4 to 30 seconds for Seedance 2.5 at up to 1080p,1 and Alibaba lists up to 30 seconds at up to 1080P for Wan 3.0.2 Seedance 2.0 shows the trade within one family: up to 4K, but 15 seconds.1

Video: Google DeepMind's official Veo 3.1 overview (Google DeepMind channel). Vendor video showing clips generated by the model.

6. Native audio is a second stream generated in step

Many text-to-video diffusion models "remain silent," as the LTX-2 authors put it, so sound has to be added afterward. Models with native audio generate the soundtrack in the same pass. Lightricks' open LTX-2 paper describes one design in detail: an asymmetric dual-stream transformer with a 14B-parameter video stream and a 5B-parameter audio stream, coupled through bidirectional audio-video cross-attention layers with temporal positional embeddings, so each stream can follow the other in time.15

In the commercial APIs this shows up as a switch. BytePlus documents Seedance's generate_audio option as producing voice, sound effects and background music matched to the prompt and the picture, delivered as mono audio.1 Veo 3.1 lists sound generation as supported,8 xAI describes lip-synced speech for Grok Imagine Video 1.5,7 and Kuaishou says Kling Video 3.0 generates speech in English, Chinese, Japanese, Korean and Spanish, including multi-character dialogue.5

7. Longer videos come from extension, not one giant generation

Because each generation is capped, longer sequences are built by continuing a finished clip: the model is conditioned on the end of the previous clip and generates the next stretch. Veo 3.1 on Vertex AI lists "extend videos" as a supported capability,8 and BytePlus documents video extension as one of Seedance 2.5's reference-to-video tasks.1 Inside the model, Wan-VAE's causal design helps: it encodes and decodes video chunk by chunk, at most 4 frames per chunk, carrying cached features from earlier chunks so that it can handle arbitrarily long videos without running out of memory.14

8. Where Sora went

OpenAI's Sora 2 was one of the best-known examples of the approach; OpenAI's guide describes it as built on research into multimodal diffusion, with clips of up to 20 seconds and 1080p output on sora-2-pro, and with video extensions.11 On March 24, 2026, OpenAI told developers it would remove the Sora 2 models and the Videos API, and both were shut down on Sept 24, 2026, with no recommended replacement.10 The guide is now kept for historical reference only.11

Sources

  1. BytePlus (ByteDance), ModelArk: Create a video generation task (duration, resolution and generate_audio by model), retrieved 2026-10-13.
  2. Alibaba Cloud, Model Studio: wan3.0-video, retrieved 2026-10-13.
  3. Runway, Available AI Models (Runway API model listing, incl. WAN 3.0 and MiniMax H3 Max), retrieved 2026-10-13.
  4. Runway, API reference (gen4.5 request schema: duration 2–10, ratio 1280:720 or 720:1280), retrieved 2026-10-13.
  5. Kuaishou Technology, "Kling AI Launches 3.0 Model, Ushering in an Era Where Everyone Can Be a Director," press release via Bernama-GLOBE NEWSWIRE, Feb 6, 2026, retrieved 2026-10-13.
  6. MiniMax, Video Generation guide (MiniMax H3 and H3 Max output specs), retrieved 2026-10-13.
  7. xAI, Imagine API: video generation, retrieved 2026-10-13.
  8. Google Cloud, Veo 3.1 model page (Vertex AI), retrieved 2026-10-13.
  9. Wan-AI, Wan2.2-TI2V-5B model card (Hugging Face), retrieved 2026-10-13.
  10. OpenAI, Deprecations ("2026-03-24: Sora 2 video generation models and Videos API"), retrieved 2026-10-13.
  11. OpenAI, Video generation with Sora (retained for historical reference), retrieved 2026-10-13.
  12. Kling AI, kling.ai home page ("All-New Kling 4.0"), retrieved 2026-10-13.
  13. William Peebles and Saining Xie, Scalable Diffusion Models with Transformers, arXiv 2212.09748, retrieved 2026-10-13.
  14. Team Wan (Alibaba), Wan: Open and Advanced Large-Scale Video Generative Models, arXiv 2503.20314, retrieved 2026-10-13.
  15. Yoav HaCohen et al. (Lightricks), LTX-2: Efficient Joint Audio-Visual Foundation Model, arXiv 2601.03233, retrieved 2026-10-13.