PixVerse V6 Max Text to Video API
pixverse/v6-max/text-to-videoPixVerse V6 Max Text to Video 将提示词转化为 360p 至 1080p 的 1–15 秒视频,支持八种画幅与可选原生音轨。在一条提示词中写清主体、动作和对白音效,再按投放位选择时长与画幅。
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
提交一个生成任务
使用提示词运行短示例,示例开启了 audio,台词会被说出。
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/text-to-video",
"input": {
"prompt": "A late-night ramen stall in a narrow alley. The cook lifts noodles from the steaming pot, shakes them twice and lays them into a bowl as a customer at the counter says, \"That smells perfect.\" Neon reflections on wet pavement, sizzling broth and distant traffic. Handheld medium shot, slow push toward the bowl.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true
}
}'等待并获取结果
使用返回的 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": "GDQ2FNCL1HB9O7TU",
"status": "not_started",
"created_time": "2026-11-05T07:08:09"
}
}{
"code": 200,
"data": {
"task_id": "GDQ2FNCL1HB9O7TU",
"status": "finished",
"files": [
{
"file_url": "https://cdn.vidgo.ai/apis/models/pixverse/v6-max/text-to-video/v2/01/output-01.mp4",
"file_type": "video"
}
],
"created_time": "2026-11-05T07:08:09",
"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/text-to-video",
"input": {
"prompt": "A late-night ramen stall in a narrow alley. The cook lifts noodles from the steaming pot, shakes them twice and lays them into a bowl as a customer at the counter says, \"That smells perfect.\" Neon reflections on wet pavement, sizzling broth and distant traffic. Handheld medium shot, slow push toward the bowl.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true
}
}
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/text-to-video。 |
| callback_url | string (URL) | 否 | — | 用于接收任务完成通知的公开 HTTP(S) 地址。 |
| input | object | 是 | — | 生成参数:必填提示词,可选时长、分辨率、画幅和音频。 |
| input.prompt | string | 是 | — | 场景、动作和声音描述,最多 5,000 个字符且不能为空。 |
| input.duration | integer | 否 | 5 | 输出时长,1–15 的整数秒。 |
| input.resolution | string | 否 | 540p | 360p、540p、720p 或 1080p,每秒费率由分辨率和音频共同决定。 |
| input.aspect_ratio | string | 否 | — | 16:9、9:16、4:3、3:4、1:1、2:3、3:2 或 21:9。 |
| 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 表示参数不合法。请确认提示词已填写且不超过 5,000 个字符,并且未发送 image_urls。
- 轮询间隔建议每 2 秒查询一次状态,长任务可按指数退避逐步延长间隔至 5 秒。
- 终态处理仅在 not_started 或 running 时轮询;收到 finished 或 failed 立即终止。
- 回调方式提供 callback_url 可以在生成完成时自动接收推送,无需持续轮询。
模型规格
| 规格 | 取值 | 说明 |
|---|---|---|
| 模型 | pixverse/v6-max/text-to-video | PixVerse V6 Max 异步文生视频的模型标识。 |
| 画幅 | 16:9 | 9:16 | 4:3 | 3:4 | 1:1 | 2:3 | 3:2 | 21:9 | 可选。 |
| 时长 | 1–15 | 整数秒,默认 5 秒。 |
| 分辨率 | 360p | 540p | 720p | 1080p | 默认 540p。 |
| 音频 | audio: true | false | 默认 false,true 时添加原生音轨。 |
| 价格 | 4.8–22.4 积分/秒 | 按分辨率与音频计费,乘以时长。 |
相关模型
PixVerse V6 Max Text to Video API 常见问题
PixVerse V6 Max Text to Video API 是什么?
PixVerse V6 Max Text to Video 是 PixVerse 用于根据文本提示词生成视频的模型。它可生成 360p 至 1080p、八种画幅的 1–15 秒视频,并可选原生音轨承载对白、音效和音乐。画面中的人物、场景、运镜与声音都来自你写的提示词。你可以通过 API 进行程序化调用,也可以在上方体验区直接在线试用。
如何为 PixVerse V6 Max Text to Video 添加对白?
将 audio 设为 true,用引号写出台词并注明说话人,再补充环境声或音乐。开启音频后 540p 每秒 8.8 积分(无音频为 7.2)。
PixVerse V6 Max Text to Video 支持哪些画幅?
通过 aspect_ratio 可选 16:9、9:16、4:3、3:4、1:1、2:3、3:2 和 21:9。
PixVerse V6 Max Text to Video 一次能生成多长?
1–15 个整数秒,默认 5 秒;15 秒 1080p 带音频为 336 积分。
PixVerse V6 Max Text to Video 的 1080p 怎么计费?
无音频每秒 17.6 积分,有音频每秒 22.4 积分,乘以时长;5 秒无音频为 88 积分。
PixVerse V6 Max Text to Video 的 360p 适合做什么?
适合以每秒 4.8 积分快速、低成本测试提示词,再将选定提示词以 720p 或 1080p 重跑。
PixVerse V6 Max Text to Video 的提示词能写多长?
最多 5,000 个字符。两个端点都需要提示词:本端点最多 5,000 个字符,Image to Video 最多 2,048 个字符。
什么时候应改用 PixVerse V6 Max Image to Video?
当开场画面必须与现有图片一致,例如产品图或插画时。图片端点保留图片构图,费率相同。















