curl --request POST \
--url https://api.powertokens.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.7-r2v",
"prompt": "让角色向镜头挥手并缓慢前行。",
"seconds": "5",
"size": "1080P",
"subject_reference": [
{
"type": "character",
"image": [
"https://example.com/assets/subject-reference.png"
]
}
]
}
'{
"id": "<string>",
"task_id": "<string>",
"object": "video",
"model": "<string>",
"status": "pending",
"progress": 123,
"created_at": 123
}适用于 Wan 系列参考生视频模型。当前项目已实现 Ali wan2.7-r2v。提交任务后,请通过 GET /v1/videos/{task_id} 查询状态。
公开字段:model、subject_reference、prompt、seconds、size、prompt_extend、watermark、seed。subject_reference 不得与 image 或 images 混用。
curl --request POST \
--url https://api.powertokens.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.7-r2v",
"prompt": "让角色向镜头挥手并缓慢前行。",
"seconds": "5",
"size": "1080P",
"subject_reference": [
{
"type": "character",
"image": [
"https://example.com/assets/subject-reference.png"
]
}
]
}
'{
"id": "<string>",
"task_id": "<string>",
"object": "video",
"model": "<string>",
"status": "pending",
"progress": 123,
"created_at": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
万相参考生视频模型。当前项目已实现 wan2.7-r2v。
wan2.7-r2v 主体参考输入。不得与 image 或 images 混用。
Show child attributes
文本提示词,描述期望的视频内容。支持中英文,长度不超过 800 个字符。
视频生成时长(秒)的字符串形式。当前默认值为 "5"。
生成视频的分辨率档位。wan2.7-r2v 当前项目实现默认使用 1080P。可选值:720P、1080P。
720P, 1080P 是否开启提示词智能改写。当前项目会向上游透传该字段。
是否在视频中添加水印。
随机数种子,取值范围 [0, 2147483647]。