SuperAPIAI Directory

openshorts

github.com · AI video

🎖️ 🐍 ☁️ 🏠 🍎 🪟 🐧 - Turn long videos into vertical shorts: moment detection, face-tracked 9:16 reframing, captions, dubbing and publishing to TikTok, Instagram and YouTube.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

OpenShorts is an open-source AI video platform that integrates three tools into a single interface: Clip Generator (long-video clipping), AI Shorts (AI actor UGC video generation), and YouTube Studio (a YouTube toolset). It is aimed at content creators, marketing agencies, SaaS founders, e-commerce brands, local businesses, and developers, with the goal of automatically turning long videos into vertical short videos suitable for TikTok, Instagram Reels, and YouTube Shorts.

  1. Main capabilities

  2. Clip Generator: turns long videos such as podcasts, webinars, livestreams, vlogs, and interviews into 9:16 vertical short clips.

  • Viral moment detection: uses Google Gemini 3.1 Flash-Lite to analyze transcripts and scene boundaries and detect 3-15 high-potential segments (each 15-60 seconds). You can also point LLM_BASE_URL to OpenAI-compatible servers such as Ollama, LM Studio, and vLLM, so moment selection runs entirely locally without a Google key.
  • Smart 9:16 cropping: AI reframing by scene, supporting TRACK mode (MediaPipe + YOLOv8 face tracking), GENERAL mode (blurred background), SPLIT mode (two speakers stacked top and bottom, with subtitles placed at the seam), and SCREENCAST mode (screen overlaid above the speaker). The layout can be automatically selected by Gemini based on the video, or forcibly specified in the dashboard.
  • Automatic subtitles: faster-whisper provides word-level timestamps, and subtitles are styled and burned into the clips.
  • AI dubbing: integrates ElevenLabs, supporting more than 30 languages and voice cloning (you need to provide your own ElevenLabs key; the same applies in the cloud).
  • Hook text overlay: AI-generated attention-grabbing text overlays.
  • AI video effects: Gemini generates FFmpeg filters to achieve professional effects.
  1. AI Shorts (UGC video creator): generate AI actor marketing videos for any product or business without a camera, studio, or influencer budget. Just describe the product, paste a URL, or manually enter a description. The workflow is: analysis (scrape the website URL + web research, or manual description) -> script (AI written in hook-problem-solution-CTA format) -> actor (generated by Flux 2 Pro or selected from the shared gallery) -> voiceover (ElevenLabs TTS, English/Spanish, male/female voices) -> video (Hailuo 2.3 Fast image-to-video + VEED Lipsync, or Premium mode using Kling Avatar v2) -> B-roll (AI-generated visuals + Ken Burns effect) -> composition (final assembly with FFmpeg, including subtitles and hook overlays) -> publishing (direct posting to TikTok, Instagram Reels, and YouTube Shorts via Upload-Post). Two cost modes are available: Low Cost ($0.65/video) and Premium ($2/video). You can choose from the shared avatar gallery or upload your own photos.

  2. YouTube Studio: a free AI YouTube toolset, including AI thumbnail generation with face overlays, 10 viral title suggestions with an interactive optimization chat, automatic description generation with chapter timestamps, and one-click publishing to YouTube.

  3. UGC video gallery: all generated videos and avatars are saved to a public gallery, and each video has an SEO page (/gallery hover-to-play, /video/{id} with og:video meta tags and JSON-LD structured data).

  4. Social auto-publishing: publish to TikTok, Instagram Reels, and YouTube Shorts simultaneously with one click; schedule uploads for any date and time; asynchronous uploads via Upload-Post integration; S3 cloud backup (private bucket for clips, public bucket for gallery/avatars).

  5. How to use

Self-hosted (free, MIT license): requires Docker and Docker Compose, a Google Gemini API key (free, required for all AI features), a fal.ai API key (pay-as-you-go, required for AI Shorts), an ElevenLabs API key (free tier, required for voiceover), and an Upload-Post API key (free tier, required for social publishing). After startup, visit http://localhost:5175,在 Enter the API key in Settings to use it. The default image is CPU-only; using an NVIDIA GPU (with NVENC support, such as an RTX 4060) can reduce the editing time for an 8-minute video from 5-8 minutes to about 1 minute. You need to install the NVIDIA driver and NVIDIA Container Toolkit, and create a docker-compose.override.yml to enable the GPU. 8 GB of VRAM is enough to run large-v3-turbo fp16 plus the detection model.

Cloud hosting: openshorts.app is the same software running on official hardware. An NVIDIA GPU edits an 8-minute video in about 50 seconds, includes a Gemini key, and auto-publishing is already configured. The free plan includes 20 minutes per month, with a watermark, and no credit card required; paid plans start at $12/month, include 100 minutes per month, and have no watermark.

Automation interface: a built-in MCP server (/mcp). MCP clients such as Claude, ChatGPT, and Cursor can paste https://mcp.openshorts.app/mcp as a custom connector, connect via OAuth 2.1 dynamic client registration, and no key copying is required. Tools include process_video, create_upload, get_job_status, list_clips, get_quota, add_subtitles, recut_clip, and publish_clip. Hosted accounts can generate osk_... API keys, and interactive documentation is at /docs (OpenAPI). POST /api/process supports webhook_url and webhook_secret. When a job reaches a terminal state, it sends one POST; when a secret is provided, the request body is signed with X-OpenShorts-Signature: sha256=<hmac-sha256(body)>. The cli/ directory provides zero-dependency terminal invocation; skills/openshorts/SKILL.md follows the open Agent Skills standard; examples/n8n/ provides an importable workflow.

III. Use cases

Content creators can automatically turn long videos into short clips and publish them to all platforms at once; marketing agencies can generate client UGC videos at scale without actors or a studio; SaaS founders can create product demos and marketing short videos from just a URL; e-commerce brands can produce product videos with AI actors for TikTok Shop, Instagram, and YouTube; local businesses (restaurants, gyms, real estate, coaching) can do low-cost video marketing; developers can self-host, customize the pipeline, and integrate via API.

IV. Limitations and notes

Self-hosting itself is free, but you need to provide your own machine and API keys and maintain operation yourself. When using a local LLM instead of Gemini: scoring calls carry a transcript window of about 2-3k tokens, and detail calls carry up to about 5k tokens; Ollama's default 4096-token context will silently truncate, so set OLLAMA_CONTEXT_LENGTH=16384; 7-8B models can reliably return valid JSON, while 3B models cannot. Features that need to see the picture (automatic layout selection AUTO_LAYOUT, screen content detection, videos without speech) still require a Gemini key; otherwise they fall back to ordinary face-tracking cropping, and videos without speech will fail with a prompt. In terms of security and performance: containers run as the non-root appuser, with a semaphore-based job queue (MAX_CONCURRENT_JOBS); old jobs are retained for 1 hour and then automatically cleaned up; API keys are encrypted on the client side and not stored on the server; uploaded images are validated for format and minimum size; uploads are limited to 2GB. The core application is MIT licensed and can be freely used, modified, and extended; the cloud/ directory (billing, hosted keys, and hosted service infrastructure, controlled by the BILLING_ENABLED flag) uses the OpenShorts commercial license, and may be read, modified, and used for personal or internal self-hosting, but may not be provided to third parties as a paid/hosted service; self-hosting the core application does not require that directory.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools