generate_video
Generates a video project from JSON scenes, supporting text, images, video, audio, components, and subtitles for custom video creation.
Instructions
Creates a video project using the json2video API. Each project can contain multiple scenes, and each scene can contain various elements such as text, images, video, audio, components, HTML, voice, audiogram, and subtitles. See https://json2video.com/docs/api/ for full schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Unique identifier for the movie project. If not provided, a random string will be generated. | |
| comment | No | A comment or description for the movie project. | |
| cache | No | Use the cached version of the movie if available. Default: true. | |
| client_data | No | Key-value pairs included in the response and webhooks. Used to pass information to later workflow steps. | |
| draft | No | If true, adds a watermark to the movie. Free plans must set draft to true. | |
| quality | No | Quality of the final rendered movie. Use for speed/quality tradeoff. | high |
| resolution | No | Preset resolution. Use "custom" to set width/height manually. | custom |
| width | No | Width of the movie (pixels). Only if resolution is "custom". Min: 50, Max: 3840. | |
| height | No | Height of the movie (pixels). Only if resolution is "custom". Min: 50, Max: 3840. | |
| variables | No | Global variables for use in templates/components. Variable names: letters, numbers, underscores. | |
| elements | No | Global elements not tied to a specific scene. Each element can be of type video, image, text, html, component, audio, voice, audiogram, subtitles. | |
| scenes | Yes | List of scenes in the video. Each scene contains an array of elements. | |
| apiKey | No | json2video API key (optional, can also be set as environment variable JSON2VIDEO_API_KEY) |