vidu
  1. API接口
vidu
  • API指南
    • API调用方式
  • API接口
    • 图生视频
      POST
    • 参考生视频
      POST
    • 首尾帧
      POST
    • 文生视频
      POST
    • 场景模板
      POST
    • 模板成片
      POST
    • 智能超清-尊享
      POST
    • 对口型
      POST
    • 文生音频
      POST
    • 可控文生音效
      POST
    • 推荐提示词接口
      POST
    • 查询任务接口
      GET
    • 取消任务接口
      POST
    • 查询积分接口
      GET
    • 参考生图
      POST
  • 产品计费
    • 积分消耗
  • 问题排查
    • 错误码
    • FAQ
  • 资源中心
    • 附加工具
    • 技术支持
  1. API接口

推荐提示词接口

POST
/ent/v2/img2video-prompt-recommendation

请求参数

Header 参数

Body 参数application/json

示例
{
    "images": [
        "your_image_url"
    ],
    "type": [
        "img2video",
        "template"
    ],
    "count": "5"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vidu.cn/ent/v2/img2video-prompt-recommendation' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "images": [
        "your_image_url"
    ],
    "type": [
        "img2video",
        "template"
    ],
    "count": "5"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "id": "your_task_id",
    "images": [
        "your_input_images"
    ],
    "count": 2,
    "prompts": [
        {
            "type": "template",
            "content": "两个人亲吻",
            "prompt": "视频内容\\n画面中的两个主体开始转向彼此,开始接吻,画面呈现充满爱意的氛围。\\n# 要求\\n1.亲吻时候,嘴唇的动作要彼此贴合。\\n2.将Motion Level的值设置为“Large”."
      "template": "kissing",
            "resolution": "360p"
        },
        {
            "type": "template",
            "content": "端午节,一起赛龙舟",
            "prompt": "The characters open their mouths and laugh happily, eyes blinking softly and naturally. \nThe hand holding the instant photo remains rigidly fixed in a stable position, ensuring the photo stays centered  within the frame at all times.\nThe unauthorized appearance of other characters is strictly prohibited."
        "template": "dragonboat_shot",
            "resolution": "360p"
        },
        {
            "type": "img2video",
            "content": "梦幻海底奇缘"
        },
        {
            "type": "img2video",
            "content": "一只可爱的小狗"
        }
    ],
    "created_at": "string"
}
修改于 2025-08-11 11:01:34
上一页
可控文生音效
下一页
查询任务接口
Built with