A professional text to video AI workflow converts written prompts into video using models like Wan2.1 inside Wan2GP or ComfyUI. The complete pipeline runs: structured prompt → keyframe image → video inference → post-processing. With correct settings (euler sampler, 8 steps, CFG 3.5, 81 frames at 480p), you can produce 5-second clips in 4-7 minutes on a 24GB GPU. Below is the exact process used in production environments, including the approach refined at Rendereelstudio.ai.
Wan2GP uses the Wan2.1 architecture, a flow-matching model that behaves differently from classic diffusion. These settings are not suggestions — deviating from them degrades output quality measurably:
| Parameter | Correct Value | What Goes Wrong If You Change It |
|---|---|---|
| Sampler | euler | dpm++ 2m causes temporal flickering every 3-5 frames |
| Steps | 8 (fast) / 12 (quality) | Below 6: incomplete motion. Above 20: over-sharpening + artifacts |
| CFG scale | 3.5 | CFG 7+ = color posterization, unnatural motion. CFG 1 = washed-out, unguided |
| Resolution | 480x832 (9:16) or 832x480 (16:9) | Non-multiple-of-64 dims = black border artifacts |
| Frame count | 81 frames = ~5s at 16fps | 97 frames = ~6s but requires 4GB more VRAM |
| VAE config | vae_config=1 (tiled) | vae_config=0 on 24GB card = OOM at decode stage |
| NVENC preset | p4 | p1 = visible macro-blocking at 4Mbps+. p4 = clean at 8-12Mbps |
The h264_nvenc encoder with p4 preset outputs files averaging 35-55MB per 5-second clip at 1080p, compared to 120-180MB from libx264 at equivalent quality. For batch workflows generating 50+ clips daily, this difference is operationally significant.
Video prompts require a different architecture than image prompts. A static image prompt describes appearance; a video prompt must encode motion, camera behavior, and temporal consistency simultaneously. The format that reliably produces clean results follows this 4-layer pattern:
Weak: "woman walking in a city at night" — produces identity drift by frame 30, random camera movement, inconsistent lighting
Structured: "cinematic medium shot, woman in her 30s with dark wavy hair, black fitted jacket, walks steadily forward on rain-slicked urban street, slow dolly push-in, neon signage casting blue and amber light, shallow depth of field, 24fps film grain" — identity holds through frame 81 in approximately 75% of generations, compared to 20% with the weak version
Multi-clip projects require character consistency that text prompts alone cannot guarantee beyond a single generation. Three proven methods, ranked by effectiveness:
Generate a reference keyframe image first using a diffusion model (FLUX, SDXL, or ComfyUI with a checkpoint), then feed it as the first-frame anchor into Wan2GP's I2V pipeline. The model treats the input image as frame 0 and generates forward motion from it. Character identity retention across a 5-second clip improves from ~40% (text-only) to ~85% with a strong reference image. Use PNG at exactly the target resolution — JPEG compression artifacts cause color drift at frame 15-25.
In ComfyUI, PuLID injects face embeddings directly into the attention layers. Critical setting: use CPU provider, weight 0.85. CUDA provider crashes on RTX 5090 (Blackwell architecture incompatibility as of early 2026). Weight above 0.90 causes skin texture over-smoothing. Weight below 0.70 allows identity drift by frame 45. A single reference face image (minimum 512x512, front-facing, neutral expression) is sufficient for consistent results across unlimited clips.
Negative prompts in Wan2.1 suppress the 15-20 most common failure modes. The minimum effective negative prompt for human subjects: "deformed hands, extra fingers, face morph, identity change, background flicker, motion blur on face, watermark, text overlay, multiple people." Adding these reduces artifact frames from approximately 8-12 per 81-frame clip to 2-4.
The ComfyUI workflow used in professional production at Rendereelstudio.ai follows this exact sequence:
nvidia-smi --query-gpu=memory.free --format=csv,noheader. Below 20GB available = reduce frame count from 97 to 81, or drop resolution from 720p to 480p.Single RTX 4090 (24GB) throughput with the above settings:
Running a dual-GPU setup (4090 master + 5090 node) doubles throughput and allows simultaneous keyframe generation on one GPU while video inference runs on the other, reducing effective time-per-clip to 2-3 minutes at 480p.
For cinematic stock footage, music video B-roll, and branded video content built with this exact pipeline, visit rendereelstudio.ai — production-ready AI video assets and workflow resources.