SuperAPI AI Directory

FramePack

FramePack is the official implementation and desktop software of the paper "Frame Context Packing and Drift Prevention in Next-Frame-Prediction Video Diffusion Models". It is a next-frame (next-frame-segment) prediction neural network architecture that can generate video progressively and compress the input context to a constant length, making the generation workload independent of video length. FramePack can process a large number of frames even on a laptop GPU with a 13B model, and larger batches can be used during training. This repository is the only official site, providing a one-click package and complete desktop software, supporting image-to-video and text-to-video, with a minimum of 6GB of VRAM.

Open website

About this tool

FramePack is the official implementation and desktop software of the paper "Frame Context Packing and Drift Prevention in Next-Frame-Prediction Video Diffusion Models". Its core is a next-frame (next-frame-segment) prediction neural network architecture that can generate video progressively. FramePack compresses the input context to a constant length, so the generation workload does not increase with video length. This design makes it possible to process a very large number of frames even on a laptop GPU with a 13B model; at the same time, larger batches similar to those used in image diffusion training can be used during training. It is officially described as "video diffusion, but it feels like image diffusion".

Main capabilities and features

  • Progressive video generation: The model predicts frame by frame or frame segment by frame segment, so you directly see the generated frames and can obtain a large amount of visual feedback before the complete video is generated.
  • Constant computational load: The context is compressed to a fixed length, and the generation workload is independent of video length.
  • Low VRAM requirement: Generating a 1-minute (60 seconds, 30fps, 1800 frames) video with a 13B model requires a minimum of only 6GB of VRAM, and it can also run on a laptop GPU.
  • Training-friendly: Supports larger batch training, similar to the batch size in image diffusion training.
  • Desktop software: This repository is fully functional desktop software, including a minimal, standalone high-quality sampling system and memory management.

How to use

  • System requirements: Nvidia GPU supporting fp16 and bf16 (RTX 30XX, 40XX, 50XX series; GTX 10XX/20XX untested); Linux or Windows operating system; at least 6GB of VRAM.
  • One-click package: Provides download of "One-Click Package (CUDA 12.6 + Pytorch 2.6)". After downloading, extract it, run update.bat to update, and run run.bat to start. The official instructions emphasize that running update.bat is very important; otherwise, an old version with unfixed bugs may be used. Models will be downloaded automatically, requiring more than 30GB of download from HuggingFace.
  • Manual installation: It is recommended to use a standalone Python 3.10. To start the GUI, run the corresponding command, which supports parameters such as --share, --port, and --server.
  • Attention kernels: The software supports PyTorch attention, xformers, flash-attn, sage-attention, defaults to PyTorch attention. The official recommendation is to first try without installing sage-attention, because it affects the results (although the effect is very small).
  • Interface operation: upload an image on the left and enter a prompt, and the generated video and latent preview are displayed on the right. Because it is a next-frame-segment prediction model, the video will get longer and longer, and you will see a progress bar for each segment as well as the latent preview of the next segment. The initial progress may be slower than subsequent diffusion because the device needs to warm up.

Applicable scenarios and examples

The official examples include image-to-5-second, image-to-1-minute, and so on. For example, upload an image and copy the prompt "The man dances energetically, leaping mid-air with fluid arm swings and quick footwork. (all default parameters, teacache disabled)" to generate a video. The official documentation emphasizes that if the video obtained in the interface is very short (such as only 1 second), this is completely normal; just wait, and more segments will be generated to complete the video. The official documentation also provides a prompt guide, recommending using a ChatGPT template to generate prompts from images, or writing concise prompts yourself.

Limitations and notes

  • Speed reference: on an RTX 4090 desktop, it is about 2.5 seconds/frame when unoptimized, and about 1.5 seconds/frame with teacache; on a 3070ti or 3060 laptop it is about 4 to 8 times slower. If the speed is much slower than this, you need to troubleshoot the problem.
  • TeaCache and quantization effects: TeaCache is not lossless, and sometimes significantly affects the results (about 30% of users will get different results, while the remaining 70% will get other random results due to different hardware). The official recommendation is to use teacache to try out ideas, and then use the full diffusion process to obtain high-quality results; this recommendation also applies to sage-attention, bnb quant, gguf, etc.
  • Hardware sensitivity: the next-frame-segment prediction model is very sensitive to noise and subtle differences in hardware. Different devices usually get slightly different results, but overall they should be similar; in some cases, completely identical results may be obtained.
  • Official statement: this GitHub repository is the only official FramePack website, and there is no official web service. Other websites are all spam and fake websites, including but not limitedto framepack.co, frame_pack.co, framepack.net, frame_pack.net, framepack.ai, frame_pack.ai, framepack.pro, frame_pack.pro, framepack.cc, frame_pack.cc, framepackai.co, frame_pack_ai.co, framepackai.net, frame_pack_ai.net, framepackai.pro, frame_pack_ai.pro, framepackai.cc, frame_pack_ai.cc, etc. Do not pay or download files from these websites.

Version updates

  • July 14, 2025: uploaded some pure text-to-video anti-drift stress test results for FramePack-P1, using common prompts, with no reference images.
  • June 26, 2025: uploaded some results for FramePack-P1. FramePack-P1 will be the next version of FramePack, containing two designs: Planned Anti-Drifting and History Discretization.
  • May 3, 2025: released FramePack-F1.