Video from text: Kandinsky 5 Lite
Lesson "video-kandinsky", in the group Video of the lesson list. Steps: 12.
What you will be able to do
You build a light one-model graph that makes a five-second clip from a prompt.
What you need
- It goes on from Video on a modest graphics card: Wan 2.2 5B. The card says so; it is a hint, not a lock.
- Model files the lesson checks:
- for
unet_nameof Load Diffusion Model: a file whose name haskandinsky5andt2v; - for
clip_name1of DualCLIPLoader: a file whose name hasqwen_2.5_vl; - for
clip_name2of DualCLIPLoader: a file whose name hasclip_l; - for
vae_nameof Load VAE: a file whose name hashunyuan_video_vae.
- for
- Nodes: Load Diffusion Model, DualCLIPLoader, Load VAE, CLIP Text Encode (Prompt), ModelSamplingSD3, Kandinsky5ImageToVideo, KSampler, VAE Decode / VAE Decode (Tiled), Create Video, Save Video.
- The app downloads and installs nothing. The step texts below say which files and folders, and which ComfyUI template names them.
The steps
The words of each step, as the lesson shows them. Node names are in bold.
What it costs, first (reading)
Kandinsky 5.0 Video Lite by Sber AI is a small video model, 2B, about 4 GB on disk. It reads the prompt with two text encoders and decodes with the VAE of HunyuanVideo.
What you need: the
kandinsky5lite_t2vfile inmodels/diffusion_models;qwen_2.5_vl_7b(about 9 GB infp8) andclip_linmodels/text_encoders;hunyuan_video_vaeinmodels/vae. The model itself fits modest cards; the text encoder is the largest file. 50 steps make the run long: expect many minutes.If the canvas already holds another graph, start from an empty one: "File ▸ New project".
Load the model
Add a Load Diffusion Model node and choose the
kandinsky5lite_t2vfile inunet_name.If the file you need is not in the list, your ComfyUI does not have it. The app downloads nothing. The easiest way is to open, in ComfyUI itself, the "Kandinsky 5.0 Video Lite Text to Video" template: it shows which files are missing and where to put them. Then choose "Sync ▸ Sync now" in this app's menu, and the files appear in the lists.
Load the two text encoders
Add a DualCLIPLoader node. In
clip_name1chooseqwen_2.5_vl_7b, inclip_name2chooseclip_l, and settypetokandinsky5.Load the VAE
Add a Load VAE node and choose
hunyuan_video_vaeinvae_name. Kandinsky 5 uses the VAE of HunyuanVideo 1.0.Write the prompt
Add two CLIP Text Encode (Prompt) nodes and connect the
CLIPoutput of DualCLIPLoader to theclipinput of each. In thetextfield of one, describe the clip: who or what is in the frame, what happens, how the camera moves. The other is the negative prompt: what must not be there.For video the action matters most. "A cat jumps onto a windowsill, the camera follows" works better than "a cat on a windowsill".
Set the shift
Add a ModelSamplingSD3 node and connect the
MODELoutput of the loader to itsmodelinput. Setshiftto 5.Size and length
Add a Kandinsky5ImageToVideo node and connect to it the two prompts and the VAE. Set
widthto 768,heightto 512 andlengthto 121.The Lite file of this lesson is made for five-second clips: 121 frames at 24 fps. Its
start_imageinput stays empty for video from text.Add the sampler
Add a KSampler node. Its
modelinput takes the output of ModelSamplingSD3;positive,negativeandlatent_imagetake the outputs of Kandinsky5ImageToVideo with the same names.Set up the sampler
Set
stepsto 50,cfgto 5,sampler_nametoeuler_ancestralandschedulertobeta, as in the template. With fewer steps the run is faster and the clip rougher.Turn the result into frames
Add a VAE Decode node. Connect the sampler's output to its samples input and the output of Load VAE to its vae input.
The sampler gives the clip in compressed form, the latent. This node unfolds it into frames.
- Make the clip and save it
Add Create Video and Save Video. The frames from VAE Decode go into the images input of Create Video, and its output into the video input of Save Video. Set fps to 24.
Kandinsky 5 draws 24 fps. With another number the clip runs faster or slower than it was meant to.
- The graph is ready (reading)
Save the graph with "File ▸ Save workflow for ComfyUI…", open the file in ComfyUI and run it there. This app runs nothing in ComfyUI itself.
What the lesson checks
A reading step is done when you press Got it, next. A doing step ticks itself off when the canvas holds:
- Step 2, Load the model:
- a Load Diffusion Model node.
unet_nameof Load Diffusion Model holds a file whose name haskandinsky5andt2v(capitals, dots and dashes do not matter).
- Step 3, Load the two text encoders:
- a DualCLIPLoader node.
clip_name1of DualCLIPLoader holds a file whose name hasqwen_2.5_vl(capitals, dots and dashes do not matter).clip_name2of DualCLIPLoader is not the same file asclip_name1of DualCLIPLoader.typeof DualCLIPLoader iskandinsky5.clip_name2of DualCLIPLoader holds a file whose name hasclip_l(capitals, dots and dashes do not matter).
- Step 4, Load the VAE:
- a Load VAE node.
vae_nameof Load VAE holds a file whose name hashunyuan_video_vae(capitals, dots and dashes do not matter).
- Step 5, Write the prompt:
- a CLIP Text Encode (Prompt) node.
- a CLIP Text Encode (Prompt) node.
CLIPof DualCLIPLoader intoclipof CLIP Text Encode (Prompt) (prompt).CLIPof DualCLIPLoader intoclipof CLIP Text Encode (Prompt) (negative prompt).textof CLIP Text Encode (Prompt) (prompt) holds at least 3 characters.
- Step 6, Set the shift:
- a ModelSamplingSD3 node.
MODELof Load Diffusion Model intomodelof ModelSamplingSD3 (a LoraLoaderModelOnly or EasyCache in between is accepted).shiftof ModelSamplingSD3 is from 3 to 8; Do this for me sets 5.
- Step 7, Size and length:
- a Kandinsky5ImageToVideo node.
CONDITIONINGof CLIP Text Encode (Prompt) (prompt) intopositiveof Kandinsky5ImageToVideo.CONDITIONINGof CLIP Text Encode (Prompt) (negative prompt) intonegativeof Kandinsky5ImageToVideo.VAEof Load VAE intovaeof Kandinsky5ImageToVideo.widthof Kandinsky5ImageToVideo is from 512 to 1280; Do this for me sets 768.heightof Kandinsky5ImageToVideo is from 320 to 768; Do this for me sets 512.lengthof Kandinsky5ImageToVideo is from 49 to 121; Do this for me sets 121.
- Step 8, Add the sampler:
- a KSampler node.
MODELof ModelSamplingSD3 intomodelof KSampler (a LoraLoaderModelOnly or EasyCache in between is accepted).positiveof Kandinsky5ImageToVideo intopositiveof KSampler.negativeof Kandinsky5ImageToVideo intonegativeof KSampler.latentof Kandinsky5ImageToVideo intolatent_imageof KSampler.
- Step 9, Set up the sampler:
stepsof KSampler is from 20 to 50; Do this for me sets 50.cfgof KSampler is from 3 to 7; Do this for me sets 5.sampler_nameof KSampler iseuler_ancestral.schedulerof KSampler isbeta.
- Step 10, Turn the result into frames:
- a VAE Decode or VAE Decode (Tiled) node.
LATENTof KSampler intosamplesof VAE Decode or VAE Decode (Tiled).VAEof Load VAE intovaeof VAE Decode or VAE Decode (Tiled).
- Step 11, Make the clip and save it:
- a Create Video node.
- a Save Video node.
IMAGEof VAE Decode or VAE Decode (Tiled) intoimagesof Create Video.VIDEOof Create Video intovideoof Save Video.fpsof Create Video is24.