Generate a video clip
generate_videoGenerates one video clip from a prompt and saves it to your FXI library. Optional start and end frames, reference images, a reference or source video (for example your own clip to edit with Gemini Omni) and reference audio. Bring your own files with create_upload_url or upload_from_url first. Spends credits. Returns a generation id; check with get_generation (usually 1-3 min; prefer lifecycle_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed for repeatable results. | |
| model | No | Video model from list_models. Defaults to "p-video-2" (fast, lowest cost); for dialogue, multi-shot or complex camera work the result suggests "seedance-2-mini". | |
| outfit | No | Optional outfit for this clip only (overrides the character's default Look). Modest, everyday clothing words. | |
| prompt | Yes | What happens in the clip, including camera movement. | |
| duration | No | Clip length in seconds. Up to 20, or up to the model's max_duration_seconds from list_models (Seedance 2.5: 30). Within that, each model adjusts to its own range. | |
| model_id | No | Deprecated alias of "model". Prefer "model". | |
| resolution | No | For example "720p" or "1080p". Models that list resolutions in list_models accept only those. | |
| video_role | No | How reference_video is used by Gemini Omni: "source" edits that clip, "previous" continues from it, "reference" (default) guides motion and style. | |
| aspect_ratio | No | For example "16:9" or "9:16". | |
| character_id | No | Optional id of one of your saved characters (find ids with list_characters). Their locked Identity and default Look go into the clip word for word, with their reference images where the model accepts them. | |
| estimate_only | No | If true, returns the estimated credit cost for this exact request (model, duration, resolution) and does NOT generate anything or spend any credits. | |
| voice_consent | No | Required with reference_audio: true only after the user confirms they own the audio or have the rights to use it, including any voice, music or lyrics in it. | |
| generate_audio | No | Ask for sound on models that support it. | |
| idempotency_key | No | Optional. Reuse the same key to retry safely: the earlier result is returned and nothing is charged twice. | |
| reference_audio | No | Optional reference audio (models that support it). Requires voice_consent. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). | |
| reference_image | No | Optional reference image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). | |
| reference_video | No | Optional reference or source video, mp4 or webm (models that support it; Gemini Omni uses it as the clip to edit). Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). | |
| last_frame_image | No | Optional end frame image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). | |
| reference_images | No | Optional up to 4 reference images (models that accept several). Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). | |
| first_frame_image | No | Optional start frame image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is). |