Generate a video (any model)
generate_videoCreate UGC videos from text, images, references, or audio for lip-sync and talking avatars, with optional brand grounding and job polling.
Instructions
Generate a video with any model on the EzUGC dashboard. Call list_video_models for model ids and each model's requiredInputs. Supports text-to-video, image-to-video (pass imageUrls: a start frame and optional end frame), reference inputs on models that accept them (Seedance 2.0 / 2.5 and MiniMax H3: referenceImageUrls, referenceVideoUrls, referenceAudioUrls), and lip-sync / talking avatars from your own voice track: OmniHuman 1.5 and Kling Avatar 2.0 Pro take audioUrl plus one image in imageUrls, Kling Lip Sync takes audioUrl plus sourceVideoUrl; the clip is as long as the audio. Frames and references cannot be combined. Seedance models count against the plan's separate Seedance allowance. Optionally ground it in a saved brand. Defaults to waiting for the result; set wait=false to return a job id to poll with get_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for completion (default true). | |
| model | No | Model id from list_video_models. Omit to use the default model. | |
| prompt | No | Text prompt describing the video. | |
| brandId | No | ID of a saved brand workspace (from list_brands). | |
| audioUrl | No | Public https voice track (MP3, WAV or M4A) for lip-sync and talking-avatar models (OmniHuman 1.5, Kling Avatar 2.0 Pro, Kling Lip Sync). The clip is as long as this audio. | |
| duration | No | Clip duration in seconds (snapped to the model's options). | |
| brandSlug | No | Slug of a saved brand workspace. | |
| imageUrls | No | Public https image URLs for image-to-video. First image is the start frame. | |
| resolution | No | Explicit resolution like '1280x720'. Optional. | |
| aspectRatio | No | ||
| generateAudio | No | ||
| negativePrompt | No | What to keep out of the video. | |
| sourceVideoUrl | No | Public https video whose speaker is lip-synced to audioUrl (Kling Lip Sync only). | |
| useDefaultBrand | No | Use the user's most recently ready saved brand automatically. Great for 'create a video for my brand'. | |
| referenceAudioUrls | No | Public https audio track to use as the soundtrack. Needs at least one reference image or video, except on Seedance 2.5. | |
| referenceImageUrls | No | Public https reference images (character, product, scene). Only for models that accept references; cannot be combined with imageUrls. | |
| referenceVideoUrls | No | Public https reference videos (motion, style). Only for models that accept them; cannot be combined with imageUrls. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| error | No | ||
| result | No |