aliyun-pixverse-generation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: provider
分类:provider
Model Studio Aishi Video Generation
Model Studio 爱诗视频生成
Validation
验证
bash
mkdir -p output/aliyun-pixverse-generation
python -m py_compile skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py && echo "py_compile_ok" > output/aliyun-pixverse-generation/validate.txtPass criteria: command exits 0 and is generated.
output/aliyun-pixverse-generation/validate.txtbash
mkdir -p output/aliyun-pixverse-generation
python -m py_compile skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py && echo "py_compile_ok" > output/aliyun-pixverse-generation/validate.txt通过标准:命令退出码为0,且成功生成文件。
output/aliyun-pixverse-generation/validate.txtOutput And Evidence
输出与凭证
- Save normalized request payloads, chosen model variant, and task polling snapshots under .
output/aliyun-pixverse-generation/ - Record region, resolution/size, duration, and whether audio generation was enabled.
Use Aishi when the user explicitly wants the non-Wan PixVerse family for video generation.
- 将标准化请求负载、选定的模型变体以及任务轮询快照保存至目录下。
output/aliyun-pixverse-generation/ - 记录区域、分辨率/尺寸、时长以及是否启用音频生成。
当用户明确要求使用非Wan系列的PixVerse家族模型进行视频生成时,请使用爱诗(Aishi)。
Critical model names
关键模型名称
Use one of these exact model strings:
pixverse/pixverse-v5.6-t2vpixverse/pixverse-v5.6-it2vpixverse/pixverse-v5.6-kf2vpixverse/pixverse-v5.6-r2v
Selection guidance:
- Use for text-only generation.
pixverse/pixverse-v5.6-t2v - Use for first-frame image-to-video.
pixverse/pixverse-v5.6-it2v - Use for first-frame + last-frame transitions.
pixverse/pixverse-v5.6-kf2v - Use for multi-image character/style consistency.
pixverse/pixverse-v5.6-r2v
请使用以下精确模型字符串之一:
pixverse/pixverse-v5.6-t2vpixverse/pixverse-v5.6-it2vpixverse/pixverse-v5.6-kf2vpixverse/pixverse-v5.6-r2v
选择指南:
- 纯文本生成视频请使用。
pixverse/pixverse-v5.6-t2v - 首图生成视频请使用。
pixverse/pixverse-v5.6-it2v - 首帧+尾帧转场生成视频请使用。
pixverse/pixverse-v5.6-kf2v - 需保证多图人物/风格一致性请使用。
pixverse/pixverse-v5.6-r2v
Prerequisites
前置要求
- This family currently only supports China mainland (Beijing).
- Install SDK or call HTTP directly:
bash
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope- Set in your environment, or add
DASHSCOPE_API_KEYtodashscope_api_key.~/.alibabacloud/credentials
- 该模型家族目前仅支持中国大陆(北京)区域。
- 安装SDK或直接调用HTTP接口:
bash
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope- 在环境变量中设置,或者将
DASHSCOPE_API_KEY添加到dashscope_api_key文件中。~/.alibabacloud/credentials
Normalized interface (video.generate)
标准化接口(video.generate)
Request
请求参数
- (string, required)
model - (string, optional for
prompt, required for other variants)it2v - (array<object>, optional)
media - (string, optional): direct pixel size such as
size, used by1280*720andt2vr2v - (string, optional):
resolution/360P/540P/720P, used by1080Pandit2vkf2v - (int, required):
duration/5/8, except 1080P only supports10/58 - (bool, optional)
audio - (bool, optional)
watermark - (int, optional)
seed
- (字符串,必填)
model - (字符串,
prompt模型可选,其他变体必填)it2v - (对象数组,可选)
media - (字符串,可选):直接指定像素尺寸,例如
size,供1280*720和t2v使用r2v - (字符串,可选):
resolution/360P/540P/720P,供1080P和it2v使用kf2v - (整数,必填):
duration/5/8,其中1080P分辨率仅支持10/58 - (布尔值,可选)
audio - (布尔值,可选)
watermark - (整数,可选)
seed
Response
响应参数
- (string)
task_id - (string)
task_status - (string, when finished)
video_url
- (字符串)
task_id - (字符串)
task_status - (字符串,任务完成时返回)
video_url
Endpoint and execution model
接口地址与执行模式
- Submit task:
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis - Poll task:
GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id} - HTTP calls are async only and must set header .
X-DashScope-Async: enable
- 提交任务:
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis - 轮询任务:
GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id} - HTTP调用仅支持异步模式,必须设置请求头。
X-DashScope-Async: enable
Quick start
快速开始
Text-to-video:
bash
python skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py \
--model pixverse/pixverse-v5.6-t2v \
--prompt "A compact robot walks through a rainy neon alley." \
--size 1280*720 \
--duration 5Image-to-video:
bash
python skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py \
--model pixverse/pixverse-v5.6-it2v \
--prompt "The turtle swims slowly as the camera rises." \
--media image_url=https://example.com/turtle.webp \
--resolution 720P \
--duration 5文本生成视频:
bash
python skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py \
--model pixverse/pixverse-v5.6-t2v \
--prompt "A compact robot walks through a rainy neon alley." \
--size 1280*720 \
--duration 5图片生成视频:
bash
python skills/ai/video/aliyun-pixverse-generation/scripts/prepare_aishi_request.py \
--model pixverse/pixverse-v5.6-it2v \
--prompt "The turtle swims slowly as the camera rises." \
--media image_url=https://example.com/turtle.webp \
--resolution 720P \
--duration 5Operational guidance
使用指南
- and
t2vuser2v;sizeandit2vusekf2v.resolution - For , provide exactly one
kf2vand onefirst_frame.last_frame - For , you can pass up to 7 reference images.
r2v - Aishi returns task IDs first; do not treat the initial response as the final video result.
- 和
t2v使用r2v参数;size和it2v使用kf2v参数。resolution - 使用时,必须恰好提供1个
kf2v和1个first_frame。last_frame - 使用时,最多可传入7张参考图。
r2v - 爱诗会优先返回任务ID,请勿将初始响应作为最终视频结果。
Output location
输出位置
- Default output:
output/aliyun-pixverse-generation/request.json - Override base dir with .
OUTPUT_DIR
- 默认输出路径:
output/aliyun-pixverse-generation/request.json - 可通过环境变量覆盖基础目录。
OUTPUT_DIR
References
参考资料
references/sources.md
references/sources.md