PixVerse V6 Max Image to Video API
pixverse/v6-max/image-to-videoPixVerse V6 Max Image to Video 将一张 JPEG、PNG 或 WebP 图片生成 360p 至 1080p 的 1–15 秒视频,可选原生音轨。图片确定主体与构图,提示词(最多 2,048 字符)引导动作、运镜和声音。
拖拽文件、粘贴剪贴板素材,或输入 URL。 必填,1 张 JPEG、PNG 或 WebP 图片。
1/1 个素材
REST API
快速开始
三步完成首个 PixVerse V6 Max 图生视频请求,示例会返回用于取回结果的 task_id。
连接 Vidgo API
创建 API Key,将它安全保存在服务端,并通过 Authorization 请求头以 Bearer Token 发送。
- 接口地址
- POST
https://api.vidgo.ai/api/generate/submit - 认证方式
- Authorization: Bearer VIDGO_API_KEY
提交一个生成任务
使用 1 张公开图片和提示词运行短示例。
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "pixverse/v6-max/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/apis/models/pixverse/v6-max/image-to-video/v1/01/input-01.png"
],
"prompt": "The sneaker rotates slowly on the pedestal while a soft light sweep travels across the mesh and sole. Keep the background, logo-free design and colors unchanged.",
"duration": 5,
"resolution": "540p",
"audio": false
}
}'等待并获取结果
使用返回的 task_id 查询同一个任务,直到状态变为 finished 或 failed;成功后读取 data.files[].file_url。
查询状态
GET https://api.vidgo.ai/api/generate/status/{task_id}当状态为 not_started 或 running 时,建议约每 2 秒轮询一次;到达 finished 或 failed 后停止。成功时从 data.files[].file_url 读取视频地址;长任务可逐步延长间隔,也可在提交请求顶层添加 callback_url 异步接收最终结果。
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "GA90AZQMXE30ZBBI",
"status": "not_started",
"created_time": "2026-11-05T07:09:31"
}
}{
"code": 200,
"data": {
"task_id": "GA90AZQMXE30ZBBI",
"status": "finished",
"files": [
{
"file_url": "https://cdn.vidgo.ai/apis/models/pixverse/v6-max/image-to-video/v2/01/output-01.mp4",
"file_type": "video"
}
],
"created_time": "2026-11-05T07:09:31",
"error_message": null,
"progress": 100
}
}完整可运行示例
理解上面的三步流程后再展开。这里把提交、轮询、终态处理和结果读取合并在一个脚本中。
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "pixverse/v6-max/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/apis/models/pixverse/v6-max/image-to-video/v1/01/input-01.png"
],
"prompt": "The sneaker rotates slowly on the pedestal while a soft light sweep travels across the mesh and sole. Keep the background, logo-free design and colors unchanged.",
"duration": 5,
"resolution": "540p",
"audio": false
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
done请求参数
model 和 callback_url 位于请求根层;生成参数位于 input。
| 字段 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| model | string | 是 | — | 固定为 pixverse/v6-max/image-to-video。 |
| callback_url | string (URL) | 否 | — | 用于接收任务完成通知的公开 HTTP(S) 地址。 |
| input | object | 是 | — | 生成参数:image_urls 中 1 张图片和提示词,以及可选的时长、分辨率和音频;输出沿用图片构图。 |
| input.image_urls | string[] | 是 | — | 1 个公开 HTTP(S) 的 JPEG、PNG 或 WebP 图片地址(如带扩展名,需为 .jpg、.jpeg、.png 或 .webp)。 |
| input.prompt | string | 否 | — | 动作、运镜和声音描述,最多 2,048 个字符;传入时需包含有效文字。 |
| input.duration | integer | 否 | 5 | 输出时长,1–15 的整数秒。 |
| input.resolution | string | 否 | 540p | 360p、540p、720p 或 1080p,每秒费率由分辨率和音频共同决定。 |
| input.audio | boolean | 否 | false | 设为 true 添加原生音轨,可包含提示词中描述的对白、音效和音乐。 |
响应字段
提交响应会立即返回任务标识;随着任务推进,状态响应会补充进度、输出文件或失败信息。
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 应用层结果码,成功响应使用 0 或 200。 |
| message | string | 存在时返回便于阅读的响应或错误信息。 |
| data.task_id | string | 任务标识,用于拼接状态查询地址。 |
| data.status | string | 当前状态:not_started、running、finished 或 failed。 |
| data.created_time | string | 任务创建时间,采用日期时间格式。 |
| data.progress | number | 上游提供进度时返回的完成百分比。 |
| data.files[] | array | 任务成功后返回的生成文件列表。 |
| data.files[].file_url | string | 生成视频的公开访问地址。 |
| data.files[].file_type | string | 生成文件类型,例如 video。 |
| data.files[].watermark_url | string | null | 存在水印版本时返回对应地址。 |
| data.error_message | string | null | status 为 failed 时的失败详情。 |
任务生命周期
not_started 与 running 属于非终态;finished 与 failed 是两种终态,收到任意终态后都应停止轮询。
not_started任务已被接受,正在等待排队开始。
running视频正在生成中,请保持轮询查询。
finished任务完成,从 data.files[].file_url 读取视频地址。
failed生成失败,读取 data.error_message 了解原因并停止轮询。
轮询与错误处理
- 认证失败401 表示 Bearer API Key 缺失或无效,请在控制台确认密钥后重试。
- 参数校验400 表示参数不合法。请确认 image_urls 只有 1 个 JPEG、PNG 或 WebP 地址,已填写不超过 2,048 个字符的非空提示词,且未发送 aspect_ratio。
- 轮询间隔建议每 2 秒查询一次状态,长任务可按指数退避逐步延长间隔至 5 秒。
- 终态处理仅在 not_started 或 running 时轮询;收到 finished 或 failed 立即终止。
- 回调方式提供 callback_url 可以在生成完成时自动接收推送,无需持续轮询。
模型规格
| 规格 | 取值 | 说明 |
|---|---|---|
| 模型 | pixverse/v6-max/image-to-video | PixVerse V6 Max 异步图生视频的模型标识。 |
| 输入方式 | 1 张 JPEG/PNG/WebP 图 + 提示词 | 输出沿用图片构图。 |
| 时长 | 1–15 | 整数秒,默认 5 秒。 |
| 分辨率 | 360p | 540p | 720p | 1080p | 默认 540p。 |
| 音频 | audio: true | false | 默认 false,true 时添加原生音轨。 |
| 价格 | 4.8–22.4 积分/秒 | 按分辨率与音频计费,乘以时长。 |
相关模型
PixVerse V6 Max Image to Video API 常见问题
PixVerse V6 Max Image to Video API 是什么?
PixVerse V6 Max Image to Video 是 PixVerse 用于将静态图片生成视频的模型。它把一张 JPEG、PNG 或 WebP 图片转化为 360p 至 1080p 的 1–15 秒视频,并可选原生音轨。图片确定主体与构图,提示词引导叠加的动作、运镜和声音。你可以通过 API 进行程序化调用,也可以在上方体验区直接在线试用。
PixVerse V6 Max Image to Video 支持哪些图片格式?
1 张放在公开 HTTP(S) 地址的 JPEG、PNG 或 WebP 图片;地址如带扩展名,应为 .jpg、.jpeg、.png 或 .webp。
PixVerse V6 Max Image to Video 会保留图片构图吗?
会。视频跟随图片构图,上传前可先准备成 9:16、1:1、16:9 等形状。
PixVerse V6 Max Image to Video 需要提示词吗?
需要。每个请求都要在图片之外附上最多 2,048 个字符的提示词,描述动作、运镜和声音;写一句“缓慢推镜”这样的短提示词,就能让运动保持细微、以图片为主导。
PixVerse V6 Max Image to Video 能加声音吗?
可以。将 audio 设为 true 生成原生音轨,并在提示词中描述音效、环境声或带引号的台词。按有音频费率计费,例如 720p 每秒 12 积分。
PixVerse V6 Max Image to Video 一次能生成多长?
1–15 个整数秒,默认 5 秒,可选 360p、540p、720p 或 1080p。
5 秒的 PixVerse V6 Max Image to Video 视频多少钱?
默认 540p 无音频为 36 积分($0.18),有音频为 44 积分;1080p 分别为 88 或 112 积分。
哪个 PixVerse V6 Max 端点可以选择画幅?
PixVerse V6 Max Text to Video 提供八种画幅;在 Image to Video 中,上传的图片决定画面形状。















