4Z API

模板特效

接口: POST https://4zapi.com/tencent-vod/v1/template-effect

模板特效生成。

官方文档:https://cloud.tencent.com/document/product/266/126240

请求体 (application/json)

  • ext_info (object, 必填): 扩展信息
  • scene_type (string, 必填): 取值 template_effect
  • file_infos (array<object>): 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。 注意: 1. 图片大小不超过10M。 2. 支持的图片格式:jpeg、png。
  • prompt (string): 提示词

请求示例

{
  "ext_info": {
    "AdditionalParameters": {
      "template": "morphlab"
    }
  },
  "file_infos": [
    {
      "category": "Image",
      "type": "Url",
      "url": "https://image01.vidu.zone/vidu/example/20241206-175531.jpeg"
    }
  ],
  "prompt": "视频内容\\n画面开始主体突然爆炸,细碎的颗粒爆炸开来\\n# 要求\\n1.根据用户上传图片确定主体数量,每个主体都要爆炸\\n2.Motion Level 设定为:Middle\\n3.以\u003e我的视频内容为第一要素,背景的描述统一、合理,不要描述两次.",
  "scene_type": "template_effect"
}