OpenClaw must call scripts/ima_video_create.py.
OpenClaw must not:
/open/v1/tasks/create payloadsattribute_idcreditsrc_img_urlsrc_imagesrc_videosrc_audio--prompt--model-id--task-type when explicit task type is required--input-images--reference-image--reference-video--reference-audio--extra-paramsStop before task creation if:
Input patterntask_typetext onlytext_to_videoone imageimage_to_videoexplicit first-last-frame with 2 imagesfirst_last_frame_to_videoany video inputreference_image_to_videoany audio inputreference_image_to_videomultiple images without explicit first-last-frame intentreference_image_to_video
Use exact model_id from this table. Do NOT infer from friendly names.
Friendly Namemodel_idNotesSeedance 2.0ima-pro✅ Quality priority, 300900sSeedance 2.0 Fast600sima-pro-fast⚠️ Speed priority, 120
User input aliases:
ima-proima-pro-fastima-proima-proTaskDefaultFast Alternativetext_to_video``ima-pro``ima-pro-fast``image_to_video``ima-pro``ima-pro-fast``first_last_frame_to_video``ima-pro``ima-pro-fast``reference_image_to_video``ima-pro``ima-pro-fast
bash
# Text to video
python3 {baseDir}/scripts/ima_video_create.py \
--prompt "a puppy runs across a sunny meadow, cinematic"
# Single image
python3 {baseDir}/scripts/ima_video_create.py \
--prompt "camera slowly zooms in" \
--input-images https://example.com/photo.jpg \
--model-id ima-pro-fast
# Explicit first-last-frame
python3 {baseDir}/scripts/ima_video_create.py \
--task-type first_last_frame_to_video \
--prompt "smooth transition" \
--input-images https://example.com/first.jpg https://example.com/last.jpg
# Multimodal reference mode
python3 {baseDir}/scripts/ima_video_create.py \
--reference-image https://example.com/product.jpg \
--reference-video https://example.com/clip.mp4 \
--reference-audio https://example.com/narration.mp3 \
--model-id ima-pro-fast
references/protocols/execution.mdreferences/protocols/event-stream.mdreferences/contracts/create-task.mdreferences/contracts/credit-rules.mdreferences/contracts/payload-rules.mdreferences/flows/reference-image-to-video.mdreferences/flows/text-to-video.mdreferences/limits/reference-media-rules.mdreferences/support/faq.mdreferences/support/troubleshooting.md