Open-Sora GitHub is a free, open-source AI video generator — type a prompt and get a video, or upload an image and watch it move. Its latest model has 11 billion parameters, was trained for a claimed $200K, and is fully open: checkpoints and training code included. This is Part 13 of our Famous GitHub Repos series. (Missed Part 12? Here is our Open Generative AI guide.)
Key Takeaways
- Open-Sora 2.0 is a free open-source 11B text-to-video model.
- It includes the full training code.
- It is not OpenAI’s Sora.
- Apache-2.0 license.
One thing to get straight first: Open-Sora is not OpenAI’s Sora. It is an independent project from HPC-AI Tech, the team behind Colossal-AI, built to democratise video generation the way open image models democratised image generation. The name is similar because the goal is similar — but the code, the models and the team are entirely separate.

Quick Facts
- Project: Open-Sora, on GitHub at hpcaitech/Open-Sora
- What it is: an open-source text-to-video and image-to-video generator, with training code, inference code and model checkpoints
- Latest model: Open-Sora 2.0, 11B parameters, released 12 March 2025
- License: Apache-2.0 — free to use, modify and build on
- Stars: 29,937 (checked live on GitHub 15 November 2026)
- Forks: 3,097, with 1,333 commits and 4 releases
- Created: 20 February 2024
- Price: the code and checkpoints are free; running it needs your own GPU, and the README also points to a commercial product, Video Ocean, for anyone who wants a hosted version
What Is Open-Sora GitHub, in Simple Words?
Open-Sora 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. Open-Sora flips that around. The model, the training code, the inference code and the data pipeline are all public, so anyone with a GPU can generate video locally and anyone curious can read exactly how the model was built.
The project has moved fast since February 2024. Version 1.0 produced short 2-second clips at 512×512. Version 1.1 added 2 to 15 seconds, 144p to 720p, any aspect ratio, and image-to-video, video-to-video and “infinite time” generation. Version 1.2 added a 3D-VAE, rectified flow and score conditioning. Version 1.3 (1B parameters, February 2025) upgraded the VAE and Transformer. Then Open-Sora 2.0 arrived in March 2025: an 11B model that, according to the project’s own tech report, matches the 11B HunyuanVideo and the 30B Step-Video on VBench and human preference — trained for only $200K.
That efficiency claim is the project’s real story. Most frontier video models cost tens of millions to train. Open-Sora 2.0 claims comparable quality at a fraction of that, and publishes the training code so others can reproduce it. Whether you believe the benchmark or not, the openness is real: you can download the weights, read the report, and run the model yourself.
How to Use Open-Sora GitHub
Start with the free demo, not the install. The project hosts a Gradio demo on Hugging Face Spaces — 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.
If the demo convinces you, the local install is a real GPU project, not a casual download. You need a CUDA GPU, Python 3.10, and PyTorch 2.4 or newer. The README’s own steps are:
- Create and activate a conda environment:
conda create -n opensora python=3.10thenconda activate opensora - Clone the repo:
git clone https://github.com/hpcaitech/Open-Sorathencd Open-Sora - Install the package:
pip install -v .(usepip install -v -e .for development mode) - Install xformers for your CUDA version — for example
pip install xformers==0.0.27.post2 --index-url https://download.pytorch.org/whl/cu121— andpip install flash-attn --no-build-isolation - Download the 11B model weights:
huggingface-cli download hpcai-tech/Open-Sora-v2 --local-dir ./ckpts(a ModelScope mirror exists too)
Then generate a video. The recommended path is text-to-image-to-video: a text-to-image model makes the first frame, then Open-Sora animates it. For 256px resolution, one GPU:
torchrun --nproc_per_node 1 --standalone scripts/diffusion/inference.py configs/diffusion/inference/t2i2v_256px.py --save-dir samples --prompt "raining, sea"
For 768px, the same command with t2i2v_768px.py — and up to 8 GPUs for the multi-GPU version. You can change the aspect ratio with --aspect_ratio (16:9, 9:16, 1:1 or 2.39:1) and the length with --num_frames (values of 4k+1, under 129 frames). Direct text-to-video without the image step is also supported, through the 256px.py and 768px.py configs.
Image-to-Video: Where Open-Sora GitHub Is Strongest
The README is honest about this: the model is optimised for image-to-video generation. Give it a reference image and a prompt describing the motion, and it animates that image. The example in the README turns a still photo of a pig in a muddy farm pond into a splashing, snorting video with ripples, fences and a red barn behind it.
The command looks like this (256px, one GPU):
torchrun --nproc_per_node 1 --standalone scripts/diffusion/inference.py configs/diffusion/inference/256px.py --cond_type i2v_head --prompt "A plump pig wallows in a muddy pond on a rustic farm, its pink snout poking out as it snorts contentedly. The camera captures the pig's playful splashes, sending ripples through the water under the midday sun. Wooden fences and a red barn stand in the background, framed by rolling green hills. The pig's muddy coat glistens in the sunlight, showcasing the simple pleasures of its carefree life." --ref assets/texts/i2v.png
You can also feed it a CSV of prompts and images for batch generation, and the same configs handle video-to-video — restyling or extending an existing clip. Advanced options include a motion score (default 4, or “dynamic” with an OpenAI API key for automatic scoring), prompt refinement, and reproducibility controls. The model supports 2 to 15 seconds of video, and the 2.0 demos show 5-second clips at 1024×576 and 576×1024, including vertical 9:16 — the format short-form creators actually use.
What Does It Cost?
Open-Sora GitHub itself costs nothing — Apache-2.0, free to download, no subscription, no per-generation fee. The cost is hardware. You need a CUDA GPU with enough VRAM for an 11B model, plus disk space for multi-gigabyte checkpoints, plus the electricity to run them. The 256px model is the lighter path; 768px wants a serious card or several of them.
There is also a commercial fork in the road sitting inside the README itself: it recommends “Video Ocean”, a professional AI video product powered by a superior model, for anyone who wants a polished hosted tool instead of a research codebase. That is a separate paid product, not part of the open-source repo — and it is a useful signal about who Open-Sora is really for. If you want one-click video, use the Gradio demo or a hosted product. If you want to own the pipeline, train your own variant, or build a product on top of a video model, Open-Sora is the open route.
Honest Limits
- It is not OpenAI’s Sora. The name invites the confusion, and the output is not the same as the closed frontier models. The 11B model’s VBench parity claim is the project’s own tech-report result — treat it as a claim, not a settled fact.
- Local install needs a real GPU. CUDA, PyTorch 2.4+, xformers and flash-attn, plus gigabytes of weights. There is no Apple Silicon path and no one-click installer. The Gradio demo is the no-GPU way to try it.
- 768px is the ceiling. The 2.0 model generates at 256px or 768px. That is fine for social video and prototypes, and not 1080p or 4K output.
- Text-to-video is the weaker path. The model is optimised for image-to-video, and the README’s recommended workflow routes text prompts through a text-to-image model first. Pure text-to-video works, but expect better results when you give it a starting image.
- Versions live on branches. The main branch is the latest (2.0), while 1.0 through 1.3 live on their own branches — make sure you are reading the docs for the version you actually installed, because commands and configs differ between them.
- It is a fast-moving research project. Star counts, releases and the README change often; the 29,937 stars and the 2.0 release date are as checked on 15 November 2026, so re-check them if you read this later.
Is Open-Sora free?
Yes. Open-Sora is free and open source under the Apache-2.0 license, including its training code.
Is Open-Sora the same as OpenAI’s Sora?
No. Open-Sora is an independent open-source project from HPC-AI Tech. It is not OpenAI’s Sora and is not affiliated with OpenAI.
What hardware do I need to run Open-Sora?
Open-Sora 2.0 is an 11B model, so it needs a strong GPU with plenty of VRAM. The project publishes the full training pipeline, so check its README for the exact requirements before installing.
How much did it cost to train Open-Sora?
The project claims it was trained for around $200K, far less than commercial video models.
Final Verdict
Open-Sora GitHub earns its place in this series because it does something few video projects do: it publishes the whole thing — an 11B video model, the training code, and the claim that it was trained for $200K — and lets anyone with a GPU verify it. For creators, the free Gradio demo and the image-to-video pipeline are the practical win: upload a still, describe the motion, get a moving clip. For builders, the training code and the efficiency story are the real prize. Try the demo first, check your GPU before you install, and remember it is Open-Sora, not Sora — an open alternative, not the closed original.

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