Edit an existing video using HappyHorse 1.0 Video Edit. Supports reference images for style guidance. This is a separate model from alibaba/happyhorse-1.0-video.

Model

alibaba/happyhorse-1.0-video-edit

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYesText prompt describing the intended edit. Supports any language. Max 5,000 non-Chinese characters or 2,500 Chinese characters; excess is truncated
video_urlstringYesURL of the source video to edit
reference_image_urlsstring[]NonullReference image URLs for style guidance (max 5)
audio_settingstringNo"auto"Audio handling mode: "auto" (model decides) or "origin" (keep original audio)
resolutionstringNo"1080P""720P" or "1080P"
watermarkbooleanNofalseAdd watermark to the output
seedintegerNonullRandom seed for reproducible generation (0-2147483647)

Example - Basic Video Edit

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/happyhorse-1.0-video-edit",
    "input": {
      "prompt": "Convert the scene to a watercolor painting style",
      "video_url": "https://example.com/scene.mp4",
      "resolution": "1080P"
    }
  }'

Example - With Reference Images

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/happyhorse-1.0-video-edit",
    "input": {
      "prompt": "Apply the visual style from the reference image to the entire video",
      "video_url": "https://example.com/clip.mp4",
      "reference_image_urls": ["https://example.com/style.png"],
      "audio_setting": "origin"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}