CogVideo GitHub: Free Open-Source AI Video Generator (CogVideoX) — Complete Guide (2026)

CogVideo GitHub is a free, open-source AI video generator — type a prompt and get a moving video, or upload an image and watch it come alive. Its CogVideoX models come from Zhipu AI and Tsinghua University’s THUDM lab, the team behind the ChatGLM language models, and the code and weights are public. This is Part 14 of our Famous GitHub Repos series. (Missed Part 13? Here is our Open-Sora guide.)

Key Takeaways

  • CogVideoX is a free open-source text/image-to-video model family.
  • 2B runs on a GTX 1080 Ti, 5B on an RTX 3060.
  • 1.5-5B reaches 1360×768 and 10 seconds.
  • 5B weights need a free sign-up for commercial use.

One thing to get straight first: CogVideo is not one model, it is a family. The original CogVideo (2022, ICLR 2023) was the first open-source large Transformer-based text-to-video model. CogVideoX (2024) is the newer, much stronger generation — a diffusion Transformer with a 3D causal VAE — and CogVideoX1.5 (November 2024) is the latest open release, with higher resolution and longer clips. The newest commercial CogVideoX-3, by contrast, is API-only with no open weights, so it is not part of this repo at all.

CogVideo GitHub — CogVideoX free open-source AI video generator

Quick Facts

  • Project: CogVideo, on GitHub at zai-org/CogVideo
  • What it is: an open-source text-to-video and image-to-video model family — CogVideoX and CogVideoX1.5 — with inference code, fine-tuning code and model checkpoints
  • Latest open models: CogVideoX1.5-5B, released 8 November 2024; CogVideoX-2B released 6 August 2024, CogVideoX-5B on 27 August 2024
  • License: Apache-2.0 for the code and the CogVideoX-2B weights; the 5B weights use a separate CogVideoX LICENSE with conditions on commercial use
  • Stars: 13,208 (checked live on GitHub 16 November 2026)
  • Forks: 1,396, with 454 commits and 1 release
  • Created: 29 May 2022
  • Price: the code and weights are free to download; running them needs your own GPU, and the 5B commercial terms need a free sign-up

What Is CogVideo GitHub, in Simple Words?

CogVideo GitHub answers a simple frustration: the best AI video generators are closed, expensive, or both. You type a prompt into a website, pay per generation, and never see how the model works. CogVideoX flips that around. The model, the inference code, the fine-tuning code and the training framework are all public, so anyone with a GPU can generate video locally and anyone curious can read exactly how the model was built.

The family covers three sizes, so there is a model for almost any GPU. CogVideoX-2B is the light one: 2 billion parameters, 720×480 video, 6 seconds at 8 frames per second, and the README says it runs on older cards like a GTX 1080 Ti — with the Diffusers version needing as little as 4GB of VRAM. CogVideoX-5B is the flagship: 5 billion parameters, the same 720×480 and 6 seconds, but noticeably better quality, and the README says it runs on a desktop card like an RTX 3060. CogVideoX1.5-5B is the latest: 1360×768 resolution, 10 seconds at 16 frames per second, with an image-to-video variant that takes any resolution between 768 and 1360 pixels on the long side.

That range is the project’s real story. Most open video models ask for one expensive GPU and give you one size. CogVideoX gives you a ladder — start on the card you already own with the 2B model, move up to the 5B when you want better quality, and use the 1.5 model when you need HD and ten seconds. The paper behind it (arXiv 2408.06072) was published at ICLR 2025, so the research is peer-reviewed, not just a README claim.

How to Use CogVideo GitHub

Start with the free demo, not the install. The project hosts a Hugging Face Space — open it in a browser, type a prompt, and get a video with no setup at all. That tells you in two minutes whether the output quality is what you need, before you spend an evening on drivers and downloads. A ModelScope Space exists too, and Zhipu AI’s QingYing product is the hosted commercial version for anyone who wants one-click generation.

If the demo convinces you, the local install is a real GPU project, not a casual download. You need Python 3.10 to 3.12 and a CUDA GPU. The README’s own path, using the popular Diffusers library, is:

  1. Clone the repo: git clone https://github.com/zai-org/CogVideo then cd CogVideo
  2. Install the dependencies: pip install -r requirements.txt
  3. Load a model from Hugging Face — for example THUDM/CogVideoX-2b for the light model or THUDM/CogVideoX-5b for the flagship — and generate with the Diffusers pipeline in the inference folder

Two details from the README matter before you start. First, prompts should be long and detailed: the model was trained on long prompts, and the project even suggests using a large language model such as GLM-4 to expand a short idea into a full prompt first — a short prompt directly impacts quality. Second, prompts must be in English; other languages need translating first. The repo also ships a SAT version of the code for researchers who want to fine-tune or build on the model, plus CogKit (March 2025), a fine-tuning and inference framework for the CogVideoX series.

Image-to-Video: Where CogVideo GitHub Is Strongest

CogVideoX is not text-only. The CogVideoX-5B-I2V model, released 19 September 2024, takes an image as its starting frame and animates it from your prompt — so you control the look, and the model supplies the motion. The 1.5 image-to-video variant goes further, accepting any resolution in its range. That makes the image-to-video path the practical one for creators: generate or pick a still you like, describe the motion, and get a clip that actually matches your vision.

The same models also support video continuation — extending an existing clip — and the community has built ComfyUI wrappers, LoRA fine-tuning, GGUF quantization and ControlNet pose control around them. A single-GPU fine-tuning framework, cogvideox-factory, even claims to fine-tune the 5B model on one RTX 4090. In short, this is a model family people build on, not just a demo you run once.

What Does It Cost?

CogVideo GitHub itself costs nothing to download — the code is Apache-2.0, the 2B weights are Apache-2.0, and there is no subscription or per-generation fee. The cost is hardware and time. The 2B model is the cheap path (a few GB of VRAM with Diffusers optimizations); the 5B model wants a stronger card; and the 1.5-5B model wants more still, with the README quoting around 1,000 seconds on a single A100 for a 5-second clip in the SAT version — though the Diffusers version is far faster, around 90 seconds for the 2B on an A100.

There is also a license fork in the road sitting inside the repo itself. The 5B weights are not Apache-2.0: they sit under the separate CogVideoX LICENSE, which is free for research but puts conditions on commercial use, including a free sign-up. Read the MODEL_LICENSE file before you build a product on the 5B model. If you want zero license questions, the 2B model is the safe one — Apache-2.0, end of story.

Honest Limits

  • Clips are short. Six seconds for the main models, ten for the 1.5-5B. That is fine for social video and prototypes, and not a long scene — you stitch clips together for anything longer.
  • 720p is the ceiling for most models. Only the 1.5-5B reaches 1360×768. There is no 1080p or 4K open model here, and the newer CogVideoX-3 that reaches 4K is a closed API product, not in this repo.
  • Local install needs a real GPU. Python 3.10–3.12, CUDA, and gigabytes of weights. Quantized inference can squeeze the 2B onto small cards, but it is slower. The Hugging Face demo is the no-GPU way to try it.
  • The 5B license has conditions. The code is Apache-2.0, the 2B weights are Apache-2.0, but the 5B weights are not — read the CogVideoX LICENSE before commercial use.
  • English prompts only. The model takes English input, so other languages need translating first, ideally with a prompt-expansion step.
  • It is a fast-moving research project. The repo moved from THUDM to zai-org, so old links redirect; star counts, releases and the README change often, so re-check them if you read this later.

Is CogVideo free?

Yes. CogVideo GitHub is free and open source. The code and the CogVideoX-2B model weights are Apache-2.0, and there is no subscription or per-generation fee. You only pay for your own GPU and electricity.

What GPU do I need to run CogVideoX?

The light CogVideoX-2B model runs on older cards like a GTX 1080 Ti and needs as little as 4GB of VRAM with Diffusers. The CogVideoX-5B flagship runs on a desktop card like an RTX 3060. The 1.5-5B model needs a stronger GPU.

Is CogVideoX-5B free for commercial use?

Not automatically. The code and 2B weights are Apache-2.0, but the 5B weights use a separate CogVideoX LICENSE with conditions on commercial use, including a free sign-up. Read the MODEL_LICENSE file in the repo before selling anything built on the 5B model.

What is the difference between CogVideo and Open-Sora?

Both are free open-source text-to-video projects. CogVideoX (from Zhipu AI / THUDM) offers a ladder of models from 2B to 1.5-5B, up to 1360×768 and 10 seconds. Open-Sora (from HPC-AI Tech) is a single 11B model with training code, trained for a claimed $200K. CogVideo is easier to run on a small GPU; Open-Sora publishes the full training pipeline.

Final Verdict

CogVideo GitHub earns its place in this series because it does something few video projects do: it publishes a whole ladder of models — a light 2B you can run on an old card, a strong 5B, and a 1.5 HD version — with the code, the weights and a peer-reviewed paper behind them. For creators, the free Hugging Face demo and the image-to-video pipeline are the practical win: upload a still, describe the motion, get a moving clip. For builders, the fine-tuning code and the ComfyUI ecosystem are the real prize. Try the demo first, start with the 2B model on the GPU you already own, check the 5B license before you sell anything, and remember the open repo stops at CogVideoX1.5 — the newer 4K model is a closed API, not this download.

1 thought on “CogVideo GitHub: Free Open-Source AI Video Generator (CogVideoX) — Complete Guide (2026)”

  1. Pingback: CCXT GitHub: Free Crypto Trading Library for 100+ Exchanges — Complete Guide (2026)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top