SSD Nodes Learn Hosting plans →
How to do am Matt ConnorBy Matt Connor · Updated 2026-08-13

Self-hosted AI video generator: wetin e fit really do

See wetin Wan 2.2, HunyuanVideo and LTX-Video fit produce for July 2026, the VRAM wey each need, 5-second GPU cost, and when API make more sense.

Wetin self-hosted AI video generator fit really do

Self-hosted AI video generator dey work today, but e slower and smaller pass wetin demo reels dey suggest. As of July 2026, open models wey worth running na Wan 2.2 from Alibaba and HunyuanVideo from Tencent, plus LTX-Video from Lightricks when speed matter pass realism. All of dem dey run under ComfyUI for Linux machine wey get NVIDIA GPU. Wetin you go get na clip wey roughly five seconds long for 720p. No be full scene. No be one minute finished footage.

Na the short answer be this before the details. 24 GB card dey render five-second 720p clip within single-digit minutes. 12 GB card dey do the same work for twenty minutes or more, because the weights no fit enter video memory and the software dey move layers back and forth between video memory and system RAM. Server wey no get GPU no fit do this for any useful way. The same calculation wey make CPU image generation slow dey make CPU video generation pointless.

If you don already read the hardware ladder for self-hosted image generator, video na that same argument, but every number don move one class up. VRAM (video memory, the RAM wey dey soldered next to graphics chip) still na the only spec wey decide whether this work go dey enjoyable or painful.

Why one video cost pass one image

Diffusion model dey generate image by denoise am step by step, and every step dey read all the weights for the model. Video model dey do the same thing to one complete block of frames at once, and e add attention across time so frame 80 go know how frame 12 look. Five seconds for 24 frames per second na 120 frames inside one batch.

Na this temporal attention make cost no dey increase gently with clip length. If you double the frame count, the memory wey sampler need go increase pass two times. So the problem no be say rendering go slow. Na the render go stop.

Another memory spike dey wey people no dey expect. After sampler finish, VAE (variational autoencoder, the part wey dey turn compressed latent into real pixels) dey decode the whole latent video at once. That decode fit need more memory than sampling. The sign na job wey show completed progress bar, then print this:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 9.31 GiB

The fix na tiled decoding or shorter clip. If you know which stage run out of memory, you no go waste one hour tuning the wrong thing.

How much VRAM you need for AI video generation

Two published figures dey frame the whole decision, but e look like dem dey contradict each other. Alibaba talk say Wan 2.2 TI2V-5B model fit produce 720p clips for 24 frames per second, five seconds long, in under nine minutes on one consumer GPU like 4090, and e recommend at least 24 GB VRAM. ComfyUI documentation talk say the same 5B model "should fit well on 8GB vram with the ComfyUI native offloading".

Both statements dey true because dem measure different things. 8 GB na where e fit enter. 24 GB na where e dey comfortable. Offloading dey work by keeping most of the model for system RAM and streaming layers enter GPU for every step, so the card dey spend time waiting for PCIe bus instead of doing calculations. You go pay that cost for every sampler step, no be once.

ChartWan 2.2 TI2V-5B, one 5 second 720p clip (typical, July 2026)
The data behind this chart
[
  {
    "label": "8GB VRAM, heavy offloading",
    "minutes_per_clip": 40
  },
  {
    "label": "12GB VRAM",
    "minutes_per_clip": 22
  },
  {
    "label": "16GB VRAM",
    "minutes_per_clip": 14
  },
  {
    "label": "24GB VRAM, 4090 class",
    "minutes_per_clip": 9
  }
]

Na only the last row be vendor figure. The 24 GB card reach 9 minutes per clip, wey be Alibaba published number for this model. The other rows show wetin offloading dey do to am, and dem be order-of-magnitude estimates, no be benchmark results. The pattern na the important thing: 40 minutes for an 8 GB card technically mean say setup dey work, but practically na batch job wey you go leave running overnight.

The bigger Wan 2.2 models dey for another level. The A14B text-to-video and image-to-video variants need at least 80 GB VRAM for single-GPU inference. Na data-center hardware be that, no be card wey you fit put for desk machine. Na also the point where self-hosting start to mean say you dey rent another person accelerator by the hour. The same arithmetic go much further for the text side, where self-hosting one 2.8 trillion parameter model like Kimi K3 stop to be question about one card and become question about how many 80 GB cards you fit afford to wire together.

Wetin one clip cost for rented GPU

Renting na how most people suppose test this, because card wey you buy fit be wrong hardware if the model wey you later want need 80 GB. Median on-demand prices across the GPU rental market, as of July 2026:

ChartMedian on-demand GPU rental and cost per 5 second clip (July 2026)
The data behind this chart
[
  {
    "label": "RTX 4090, 24GB",
    "usd_per_hour": 0.36,
    "usd_per_clip": 0.05
  },
  {
    "label": "A100, 80GB",
    "usd_per_hour": 1.79,
    "usd_per_clip": 0.6
  },
  {
    "label": "H100, 80GB",
    "usd_per_hour": 2.99,
    "usd_per_clip": 0.55
  }
]

The 4090 row dey run the 5B model and e cost about 0.05 dollars per clip at 0.36 dollars per hour. The 80 GB rows dey run the 14B models, na why cost per clip jump reach 0.6 dollars even though the hardware itself dey much faster. Bigger model mean more compute per second of video.

Five cents per clip sound like nothing, and na there the misleading part dey. Your first usable five seconds no be ever just one render. Prompting video model na search, and twenty to forty renders before you get keeper dey normal for shot wey get specific motion. So one working session go cost dollars instead of cents, and one afternoon of iteration for rented hardware go cost about wetin lunch cost.

Two rental details fit cost real money if you miss dem. Dem go bill you while the box dey download weights, and the Wan 2.2 files together with their text encoder and VAE fit reach tens of gigabytes, so choose provider wey get persistent volume and download am once. Dem go also bill you while the box dey idle with your SSH session still open. Stop the instance instead of only closing the terminal.

GPU box for ComfyUI install

Ubuntu 24.04 wey NVIDIA driver don already install na where you go start. Check the driver first, because without this check, every later failure go look the same.

nvidia-smi

This one suppose print table wey show your card and CUDA version. If e print NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver, kernel module never load. This one usually happen after kernel upgrade when you never reboot. Fix am here. Otherwise, ComfyUI go fall back to CPU path, and you go spend one hour blaming the model.

sudo apt update
sudo apt install -y git python3-venv python3-pip wget
git clone https://github.com/Comfy-Org/ComfyUI.git
cd ComfyUI
python3 -m venv venv
. venv/bin/activate
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130
pip install -r requirements.txt

Confirm say PyTorch dey see the card before you download even one weight file.

python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"

True together with your card name mean say the stack dey healthy. False mean say the installed wheel na CPU-only build. This one happen when pip find cached torch from an earlier install. Reinstall am with the index URL above.

Download Wan 2.2 model files

ComfyUI no get weights inside, and video model no be one file. E be diffusion model, text encoder, and VAE, and each one get its own directory. If you put file for wrong folder, loader node no go list am, and e no go show any error to explain why.

cd ~/ComfyUI/models
wget -P diffusion_models https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors
wget -P text_encoders https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors
wget -P vae https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan2.2_vae.safetensors

The 5B model fit handle both text-to-video and image-to-video, na why e make sense as starting point. Always prefer .safetensors over .ckpt. A .ckpt file na pickled Python object, so when you load am, e go run code wey the person wey build am write. Reserve enough disk space: working install with one model family and its output need 100 GB, and video files dey much bigger than the PNG images wey image workflow leave behind. Back up your workflow JSON files with something like encrypted incremental backups to object storage, because you fit download the weights again, but you no fit download your tuned workflows again.

Run am, then access am safely

cd ~/ComfyUI
. venv/bin/activate
python main.py --listen 127.0.0.1 --port 8188

ComfyUI no get login screen or user accounts. Anything wey fit reach port 8188 fit queue jobs, read every clip wey you don generate, and install custom nodes. This fit run arbitrary code for your server. Bind am to localhost, then reach am through an SSH tunnel from your own machine.

ssh -N -L 8188:127.0.0.1:8188 you@your-server

Then open http://127.0.0.1:8188 for your browser. Load the Wan 2.2 template workflow from the ComfyUI templates menu instead of wiring nodes by hand. The official templates get the sampler settings wey dem tune the model for. Video workflow get plenty more places where value fit quietly wrong compared with image workflow.

Wen e make sense to use an API

Self-hosting video generation na the right choice when volume high and steady, when your frames no suppose comot from your own infrastructure, or when you need specific model or custom adapter wey no hosted service dey offer. E still make sense when the pipeline must work the same way next year, because hosted model fit change under you without version wey you fit pin.

Use hosted API when you need only small number of clips every month, when you need output wey long pass or big pass wetin open models fit produce, or when deadline dey this week. Calculate the break-even cost honestly. 24 GB card wey you rent round the clock for July 2026 median price na roughly 260 dollars every month, and to buy the same card go cost more than that upfront before you generate even one frame. Self-hosted box wey dey idle go lose to per-clip API pricing every time. Na the same trade-off wey decide how you serve text models, as we cover for Ollama against vLLM for self-hosted LLM serving, and e depend on the more basic question for whether VPS with GPU worth the money at all.

Wetin to check when render fail

If render stop for the very end, after sampler bar don complete, e don run out of memory for VAE decode. Reduce the frame count or change to tiled decode node. Changing the step count no go help, because decode dey happen once, after every step don already run.

If output na solid black or e badly scramble, e usually mean say VAE no match the model. If you load Wan 2.1 VAE against Wan 2.2 diffusion model, na exactly this result you go get, and no error go show anywhere for log.

If render dey run but e take hours for machine wey you know say get GPU, ComfyUI dey use CPU path. Check the startup log for the device line, then run the torch.cuda.is_available() check above again.

If process disappear with Killed for dmesg and no Python traceback show, na kernel out-of-memory killer cause am. This one concern system RAM, no be VRAM. Offloading need the complete model to dey inside system RAM, so 16 GB box wey dey offload 5B model no get enough memory. Add RAM or add swap.

FAQ

I fit generate AI video for VPS wey no get GPU?

No, no be in a way wey you go use am twice. One five second 720p clip wey dey take nine minutes for 24 GB GPU fit take many hours for CPU, because the model no get matrix hardware to run on, and system RAM bandwidth dey one order of magnitude below GPU memory bandwidth. CPU server fit host ComfyUI interface, store your models, and keep your workflows, but the rendering itself need GPU.

How much VRAM I need for Wan 2.2?

For TI2V-5B model, 8 GB na the minimum with ComfyUI native offloading, while 24 GB na wetin Alibaba recommend to reach the published speed. For A14B text-to-video and image-to-video models, the model card ask for at least 80 GB of VRAM for single-GPU inference, so you need data-center cards for dem.

How long self-hosted clip fit be?

About five seconds for 720p na the practical unit as of July 2026. To produce longer output, generate segments and join dem, using the last frame of one segment as the first frame of the next one. Quality dey drift for the joins, so treat long video as editing work instead of one generation.

GPU rental by the hour cheaper pass buying card?

Renting better for anything wey involve less than few hours of rendering per day. For July 2026 median of about 0.36 dollars per hour for 24 GB card, you fit rent for long time before the cost reach the purchase price of that card. You also avoid buying hardware wey later turn out to be the wrong class for the model wey you actually want. Buying only better when the machine dey busy for most of the day, every day.