curl --location --request POST \
  'https://suanwuyou.com.cn/v1/videos' \
  --header "Authorization: Bearer $SUANWYOU_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "happyhorse-1.0-video-edit",
    "input": {
      "prompt": "让视频中的人物穿上参考图中的条纹毛衣。",
      "media": [
        {
          "type": "video",
          "url": "https://example.com/input.mp4"
        },
        {
          "type": "reference_image",
          "url": "https://example.com/sweater.webp"
        }
      ]
    },
    "parameters": {
      "resolution": "720P"
    }
  }'
请求必须包含一个 video;可以附带 0 至 5 张 reference_image。提示词应明确描述需要替换、迁移或调整的内容。 参考:阿里云百炼 HappyHorse 视频编辑官方文档