SuperAPI AI Directory

shortsmash

ShortSmash is an open-source AI video studio: input a single sentence or a current trend, and it automatically generates a 9:16 short video with subtitles and publishes it via official APIs to 10 platforms including YouTube, TikTok, and Instagram. It features CLIP visual verification of assets, neural voices, karaoke subtitles, voiceovers in 50 languages, trend collection, batch production, scheduled publishing, and comment reply drafts, and it provides a CLI and an MCP server so AI agents can drive the entire workflow.

Open website

About this tool

ShortSmash is an open-source AI video studio designed to turn a one-sentence prompt or a current trending topic into a complete, subtitled 9:16 vertical short video and automatically publish it to multiple social platforms. Its core pipeline includes script generation, speech synthesis, asset acquisition and verification, subtitle generation, rendering, and publishing.

Key capabilities:

  • Script generation: Use NVIDIA NIM, Gemini, Grok, or any OpenAI-compatible endpoint (such as OpenRouter, DeepSeek, local Ollama) to generate engaging scripts and a strict JSON edit plan, validated via pydantic.
  • Speech synthesis: An Edge-TTS, Piper offline neural voice, or gTTS fallback chain supports voiceovers in 50 languages, including Urdu, Hindi, Arabic, and more, with a romanized subtitle option.
  • Visual assets: Fetch free assets from Pixabay, or use AI-generated video from Google Veo 3.1, Kling AI, Agnes AI, and others. All assets undergo two-stage visual verification: first, a local CLIP model checks middle frames against 15 confusable categories (such as burgers, birds, potted plants, etc.), then a Gemini vision model performs a second verification when quota allows, ensuring incorrect assets are never published.
  • Subtitles: Use faster-whisper to generate word timestamps and burn in karaoke-style subtitles.
  • Rendering: Use FFmpeg for 9:16 smart reframing, transitions, hook and CTA overlays, music ducking (sidechain), and H.264/AAC faststart encoding.
  • Publishing: Publish via official APIs to YouTube, TikTok, Instagram, X, Threads, Bluesky, LinkedIn, Pinterest, and Facebook (profiles and pages), with one-click publishing or scheduled publishing (natural language such as "Friday 6 PM").
  • Trend collection: Fetch trends for free from Google News and Hacker News, browse by niche, and turn trends into videos.
  • Batch production: Automatically generate videos in batches from trending topics.
  • Analytics: Pull real views, likes, and comment data from the YouTube API.
  • Engagement: Pull recent comments and draft warm replies, which require human approval before publishing.
  • MCP server: Expose tools such as generate_video, get_trends, list_projects, and project_status via python -m shortsmash.mcp_server for use by MCP clients such as Claude Code and Cursor.
  • Resume: shortsmash resume <slug> continues a failed project from the first unfinished stage.

How to use:

  • Quick install: Windows offers a one-line PowerShell or CMD command that automatically installs Python, FFmpeg, and Git and sets up the environment; Linux/macOS/Git Bash also have a one-line command. After installation, launch ShortSmash Studio from the Start menu/desktop, or run shortsmash serve and visit http://127.0.0.1:8000。
  • Manual installation: After downloading the repository, double-click install.bat (Windows) or run ./install.sh (Linux/macOS). Requires Python 3.11–3.13 and ffmpeg.
  • Using Studio: Open ShortSmash Studio in your browser, which includes tabs such as Studio (generate videos), Trends (browse trends), Library (project library), Manual posts (upload your own videos with pre-checks, AI-generated titles and tags, publish or schedule), and Stats (statistics).
  • Command line: shortsmash post myvideo.mp4 --caption publishes your own video; shortsmash dub <slug> --lang ur dubs an existing video into 50 languages; shortsmash trends <niche> collects trends; shortsmash batch generates in bulk; shortsmash analytics retrieves analytics data.
  • Publishing setup: Official API setup documentation for each platform is located at docs/setup-*.md.
  • Free keys: Pixabay (assets), Google AI Studio (Gemini LLM), NVIDIA NIM (LLM), or point to a local Ollama for completely free use.

Use cases:

  • Content creators quickly producing multilingual short videos and publishing them to multiple platforms.
  • Social media operators using trends to generate content in bulk.
  • Developers integrating video generation capabilities into AI agent workflows via the MCP server.
  • Users who need to dub their own videos into multiple languages and add subtitles.

Limitations:

  • Requires Python 3.11–3.13 and ffmpeg.
  • Publishing functionality depends on each platform's official API and must be configured according to the documentation.
  • In visual verification, Gemini verification is subject to quota limits.
  • No fake engagement, bot behavior, scrapers, or unofficial endpoints are provided; such functionality is not in the codebase.
  • The project uses the MIT license.
  • The repository is about 213 MB including demo videos and can be skipped using sparse checkout.