generate_short
Generates an original vertical short video from a topic or idea with AI script, voice-over, stock footage, music and animated captions, rendered locally; returns a job_id to poll for status.
Instructions
Create an original vertical short video from an idea: an AI-written script, voice-over, stock footage, background music and animated captions, rendered locally by the ShortsFlow pipeline. It runs in the background: the call returns a job_id immediately and the render takes a few minutes, so poll get_render_status until the job is 'completed' or 'failed'. It uses the user's own LLM, voice and stock-footage keys from the ShortsFlow .env, writes files only inside the ShortsFlow folder, and never uploads or posts anything. Use this to make a new short from a topic; use extract_clips instead to cut shorts out of an existing video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Content format. FACTS = a 'spot the lie' quiz of three claims; STORY / HORROR / TRUE_CRIME = narrated stories; EXPLAINER = an animated explainer; WYR = 'would you rather'; TOP_5 = a ranked list; TRIVIA / RIDDLE / EMOJI_GUESS = quiz formats; NEWS = a news recap; others as named. | FACTS |
| vibe | No | Mood of the background music. | suspense |
| prompt | No | Optional extra instructions or context for the script writer, e.g. 'Explain how black holes bend light'. | |
| script | No | Optional finished script to narrate as written. When given, no AI script is generated. | |
| category | No | Topic or category the script should be about, e.g. 'space mysteries', 'ancient Rome', 'psychology'. | space mysteries |
| sfx_preset | No | Sound effects on visual transitions; none turns them off. | auto |
| aspect_ratio | No | Output shape: 9:16 vertical (Shorts, Reels, TikTok), 16:9, 1:1 or 4:5. | 9:16 |
| auto_ducking | No | Lower the background music while the voice is speaking. | |
| tts_provider | No | Voice-over engine. auto picks the best available; edgetts is free; kokoro and local run fully offline; elevenlabs and voicestudio need their own setup. | auto |
| use_remotion | No | Render animated captions with the Remotion engine (needs Node.js). False uses simple captions. | |
| caption_style | No | Animated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, AUTO/RANDOM = pick for me. | HORMOZI |