Skip to main content
HappyHorse

HappyHorse -- Edit a video

Submit HappyHorse video editing task

POST
/services/aigc/video-generation/video-synthesis
cURL - Video editing (instruction + reference image)
curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "happyhorse-1.0-video-edit",
  "input": {
    "prompt": "Make the horse-headed humanoid character in the video wear the striped sweater from the image",
    "media": [
      {
        "type": "video",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260409/dozxak/Wan_Video_Edit_33_1.mp4"
      },
      {
        "type": "reference_image",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260415/hynnff/wan-video-edit-clothes.webp"
      }
    ]
  },
  "parameters": {
    "resolution": "720P"
  }
}'
{
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "PENDING"
  }
}
Edit videos using the HappyHorse model with text instructions and optional reference images. Supports style transfer, local replacement, and other editing tasks. Input videos can be 3-60 seconds; output is capped at 15 seconds.

Authorizations

string
header
required

DashScope API Key. Get one from the Qwen Cloud console.

Header Parameters

enum<string>
required

Must be set to enable for asynchronous task submission.

enable

Body

application/json
enum<string>
required

Model identifier. Fixed value: happyhorse-1.0-video-edit.

happyhorse-1.0-video-edit
happyhorse-1.0-video-edit
object
required

Input content including the video to edit, optional reference images, and the editing prompt.

object

Video editing parameters.

Response

200-application/json
string

Unique request identifier for tracing and troubleshooting.

4909100c-7b5a-9f92-bfe5-xxxxxx
object