Initiates an AI-assisted video generation (up to 10 minutes) using either a text prompt (for script + visuals) or a user-provided script (to skip script generation). Returns a Run ID used to query the status or results of the generation process.
/short, this API supports generating videos up to 10 minutes in length.Your API key for authenticating requests. Example: 'x-api-key: MY_SECRET_KEY'
Parameters used to initiate video creation. Provide at least one of prompt or script.
A textual description of what you want your video to depict or explain. Used to generate the script, scenes, and voiceover. MUTUALLY EXCLUSIVE with 'script' field - only provide one of 'prompt' or 'script'.
A fully-written script to skip AI script generation. MUTUALLY EXCLUSIVE with 'prompt' field - only provide one of 'prompt' or 'script'.
Prompt for the image generation engine. Example: 'Warm lighting' or 'Make the first image very impactful'
Experimental: if true, we choose a better framework for you and add Director Notes if necessary. It doesn't overwrite your settings.
Parameters for still-image generation used as video backgrounds or scenes.
Enables and customizes an AI voiceover for the generated script content.
Controls visual styling and position of text captions derived from the voiceover.
Controls visual transitions and animations applied between scenes. 'Random' picks a dynamic effect per scene.
Specifies a background music track and how it should be mixed with voiceover.
Configures video generation for each scene using an image-to-video model.
Internal use only - Template configuration for LongStories branding.
Video resolution & encoding quality. Higher quality takes longer to render and results in a larger file size. Note: Different quality levels will have different costs in the future, but currently only affect file size and visual quality.
high, medium, low Video aspect ratio - vertical (9:16) or horizontal (16:9)
9:16, 16:9 Creation request accepted. Returns a generation Run ID used to fetch status or results later.