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.1-i2v",
    "input": {
      "prompt": "一只猫在草地上奔跑。",
      "media": [
        {
          "type": "first_frame",
          "url": "https://example.com/first-frame.png"
        }
      ]
    },
    "parameters": {
      "resolution": "720P",
      "ratio": "16:9",
      "duration": 5
    }
  }'
input.media 有且仅有一张 first_frame 图片。建议使用公网可访问的 JPEG、PNG 或 WEBP 图片;最终画幅通常会参考首帧比例。 参考:阿里云百炼 HappyHorse 首帧图生视频官方文档