Vidu API
Dashboard
Docs
Sign in

Prompt Recommendation

POST https://api.vidu.cn/ent/v2/img2video-prompt-recommendation

Request Headers

FieldValueDescription
Content-Typeapplication/jsonData exchange format
AuthorizationToken {your api key}Replace {token} with your token

Request Body

ParameterTypeRequiredDescription
imagesArray[String]YesInput image(s)
- Currently supports only one image
- Supports Base64 or accessible image URL
- Formats: JPG / PNG / WEBP
- Max size: 50MB
typeArray[String]YesPrompt recommendation type(s)
Enum values: template , img2video
You may pass both types together
resolutionStringOptionalTarget output resolution
Default: 360p
Enum: 360p
- Only applicable when different templates support different resolutions
countIntOptionalNumber of recommended prompts to return
Default: 5
Range: 1~10
If type=["img2video", "template"] and count=5, you will receive 10 prompts (5 for each type)
curl -X POST -H "Authorization: Token {your_api_key}" -H "Content-Type: application/json" -d '
{
"images": ["your_image_url"],
"type": ["img2video""template"],
"count": "5"
}' https://api.vidu.com/ent/v2/img2video-prompt-recommendation

Response Body

FieldSubfieldTypeDescription
task_idStringUnique task ID generated by Vidu
imagesArray[String]The image(s) submitted for this request
countIntNumber of prompts requested
promptsArrayList of recommended prompts (structure detailed below)
typeStringPrompt type: template or img2video
contentStringRecommendation prompts
promptStringActual API prompt to call (only for type=template)
templateStringTemplate enum value (only for type=template)
resolutionStringRecommended resolution (only for type=template)
created_atStringTimestamp of task creation

Example Response:

{
"id": "your_task_id",
"images": ["your_input_images"],
"count": 2,
"prompts": [
{
"type": "template",
"content": "Two people kissing",
"prompt": "Video content\\nThe two subjects in the frame turn toward each other and begin to kiss, creating a romantic atmosphere.\\n# Requirements\\n1. Lips must touch and move naturally.\\n2. Set Motion Level to 'Large'.",
"template": "kissing",
"resolution": "360p"
},
{
"type": "template",
"content": "Dragon Boat Festival: Racing together",
"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": "Magical Undersea Adventure"
},
{
"type": "img2video",
"content": "A Cute Little Puppy"
}
],
"created_at": "string"
}