Skip to content

AI-Youtube-Shorts-Generator

Python tool that cuts long YouTube videos into ranked vertical shorts

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

47

Health

Slowing

Overview

Stars

6,529

Last commit

today

Nov 2026

Repository age

2 years

since Jun 2024

Latest version

–

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Language

Python

AI YouTube Shorts Generator takes a YouTube URL and produces a set of vertical 9:16 clips. An LLM ranks highlight candidates, and Whisper transcribes the speech. Each clip comes with a score, an opening hook line and a short reason it was picked.

It has two modes. API mode uses MuAPI for download, transcription and cropping. Local mode runs on your machine with yt-dlp, faster-whisper (CPU or CUDA), and ffmpeg and OpenCV, with face tracking for the crop. You can pick OpenAI or Gemini for ranking. Videos over 30 minutes are split into overlapping chunks, and overlapping highlights are removed by score.

You can use it from the command line or import generate_shorts into your own Python code. A flag sets other aspect ratios such as 1:1, and --output-json dumps the transcript, candidates and clip paths for automation. It is MIT licensed. It is positioned against Opus Clip, Vidyo.ai, Klap and SubMagic. A hosted API is available as a paid option.

Who it's for

Creators repurposing long videos for Shorts, Reels and TikTok

It finds and crops highlights into vertical clips without per-clip credits.

Skip if: You want a visual editor to adjust cuts and captions by hand.

Agencies batch-processing client videos

The CLI and JSON output fit scripted pipelines over a list of URLs.

Skip if: You need a supported product with an uptime guarantee.

Developers building clipping features into their own product

The MIT license lets you import it as a Python library.

Skip if: You need an actively developed codebase, since commits have slowed.

The problem it solves

Hosted AI clipping tools charge monthly fees and cap processing minutes. This tool lets you pull highlights from long videos using your own machine and your own LLM keys.

Strengths

  • Local mode runs yt-dlp, faster-whisper, ffmpeg and OpenCV on your machine
  • Each clip gets a score, hook line and reason
  • Long videos are chunked and duplicate highlights removed
  • CLI, Python library and JSON output for automation
  • MIT license allows embedding

Trade-offs

  • Maintenance is slowing: one recent contributor and no releases last year
  • API mode depends on the MuAPI service, with usage costs
  • LLM ranking needs an OpenAI or Gemini key
  • No graphical editor for refining clips

Frequently asked questions

Is it free?

The code is MIT licensed and free. You pay only for any API usage, such as LLM or MuAPI calls. A hosted plan is also offered, starting at 13 USD per month.

Can it run fully offline?

Local mode uses yt-dlp, faster-whisper and ffmpeg on your machine. Highlight ranking still calls OpenAI or Gemini.

Does it add watermarks?

No. It produces plain mp4 files.

Can I use other aspect ratios?

Yes. 9:16 is the default, and a flag selects 1:1 or other ratios.

Similar tools in AI image and video generators

ace-step-ui

AI image and video generators

Browser interface for generating music locally with the ACE-Step model on your own GPU

5.3k 808 5 months ago Dormant Unknown

SwarmUI

AI image and video generators

Web interface for generating AI images and video, with a ComfyUI workflow tab for

4.8k 486 yesterday Active MIT

mochi

AI image and video generators

3.8k 499 32 days ago Slowing Apache-2.0

waifu2x-ncnn-vulkan

AI image and video generators

Command-line AI image upscaler and denoiser that runs on any Vulkan GPU

3.5k 240 9 months ago Dormant MIT

HeliosGen

AI image and video generators

3.4k 381 2 months ago Slowing Unknown

Qwen-Image-2.1

AI image and video generators

2.3k 168 41 days ago Slowing Unknown