Create a CraftStory 2.0 talking video (photo + audio)
create_craftstory2_videoCreate a lip-synced talking-avatar video from a photo or custom avatar and ordered audio clips, returning a job ID to poll until the final video URL is ready.
Instructions
Start a craftstory-2 generation: a photo of a person (image_url or image_path, or a custom avatar scene via scene_id) speaks the given audio clips with lip-sync, gestures and natural motion; any length. resolution is WIDTH_HEIGHT (480_832 / 720_1280 portrait, 832_480 / 1280_720 landscape); 1080p is available afterwards via upscale_video. Credits are charged on create (see preview_cost) and refunded if the job fails. Returns the job id and initial status; generation takes 8-15 minutes, so call wait_for_job(model='craftstory-2') repeatedly until it reports done, then get_job_result for the video URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label, used as the download file name | |
| faceswap | No | Identity pass on the result (default true; off for custom avatars) | |
| gestures | No | How much the avatar moves (default normal) | |
| scene_id | No | Custom avatar scene id (from list_avatars) used instead of a photo | |
| avatar_id | No | Custom avatar id (from list_avatars); its trained model drives identity | |
| image_url | No | Public URL of the photo (JPG/PNG) | |
| image_path | No | Absolute local path of the photo to upload (JPG/PNG/HEIC, <= 20 MB); ~/ is expanded | |
| resolution | Yes | ||
| user_prompt | No | Optional motion / scene hint | |
| lipsync_mode | No | craftstory (default) / sync_so (alternative engine) / empty (no lip-sync) | |
| audio_clip_ids | Yes | Audio clip ids (from create_audio_clip), played in order |