Happy Horse 1.0 - Edit video
Edit an existing video with natural-language instructions using Happy Horse 1.0, Alibaba’s AI video editing model, optionally guided by up to 5 reference images.
Editing modes:
- Instruction-based editing: Provide
promptwith editing instructions (e.g., “change the sky to sunset”) - Reference-image editing: Provide
promptandimage_urls, then reference images from the prompt using@Image1..@Image5(1-based, in array order)
Key features:
- 720P and 1080P resolution support
- Up to 5 reference images
- Output is capped at 15 seconds
- Configurable audio handling:
auto(regenerate when relevant) ororigin(preserve input audio)
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Edit an existing video using natural-language instructions with Happy Horse 1.0, optionally guided by up to 5 reference images. Reference images from the prompt using @Image1..@Image5 tokens (1-based, in array order). Output is capped at 15 seconds.
URL of the source video to be edited.
Supported formats: MP4, MOV with H.264 codec Duration: between 3 and 60 seconds (the output is capped at 15 seconds) Frame rate: greater than 8 fps Dimensions: longer side at most 2160 px and shorter side at least 320 px Aspect ratio: between 1:2.5 and 2.5:1 Maximum file size: 100 MB
"https://example.com/input-video.mp4"
Text prompt describing the desired editing instructions. To reference an image from image_urls inside the prompt, use the tokens @Image1..@Image5 (1-based, matching the array order).
Example: "Replace the background with a futuristic cityscape at night"
1 - 2500"Replace the background with a futuristic cityscape at night"
Up to 5 reference images that guide the edit. Reference them from the prompt using @Image1..@Image5 (1-based, in array order).
Supported formats: JPEG, JPG, PNG, WEBP Minimum dimension: 300 px Aspect ratio: between 1:2.5 and 2.5:1 Maximum file size: 10 MB per image
5Audio handling mode for the edited video:
auto: The model decides whether to regenerate audio based on the prompt — if the prompt involves audio descriptions, audio may be regenerated; otherwise the original audio is preservedorigin: Force-preserve the input video's original audio without regeneration
auto, origin