PixVerse 系列
- 文生视频、图生视频、首尾帧、多图融合、视频延长
- 画幅支持最全,含 21:9 超宽
- 可一次性输出多段连续片段
认证
All endpoints authenticate with a Bearer token.
Get an API key: open the console and create one.
Add it to the request header:
Authorization: Bearer YOUR_OAIRoute_KEY请求参数
提交成功只返回任务 ID,不含视频本身。拿成片用 task_id 轮询获取任务状态,成片地址在 result.videos[0].url,该地址约 24 小时后过期,请及时转存。
取值 pixverse-v6 或 pixverse-v6-max。
画面描述,所有模式都必填。上限 5000 字符。
反向描述,上限 2048 字符。
输出分辨率,取值 360p、540p、720p、1080p,默认 540p。直接影响计费。
时长,单位秒,默认 5。
通用范围 1 到 15;首尾帧模式只接受 5 或 8。
输出画幅,取值 16:9、4:3、1:1、3:4、9:16、2:3、3:2、21:9,默认 16:9。
只在文生视频与多图融合下生效。
图生视频的图片,只取第一张。
首帧,必须与 last_frame_image 成对使用。
尾帧,必须与 first_frame_image 成对使用。
参考图,1 到 7 张。传入即进入多图融合模式。
要延长的任务 ID,必须是本人所有且状态为 completed 的 pixverse-v6 任务。
是否生成音轨,默认 false。开启会提高单价。
是否在右下角加水印,默认 false。
运动模式,只接受 normal。fast 属于旧模型,v6 会拒绝。
输出多段连续片段,默认 false。仅文生视频与图生视频可用。
随机种子,取值 0 到 2147483647,默认 0。
A successful submission returns only the task ID, not the video itself. Poll Get task status with the task_id; the video URL is at result.videos[0].url, expires after about 24 hours, so copy it promptly.
pixverse-v6 or pixverse-v6-max.
The scene description; required in every mode. Up to 5000 characters.
A negative description, up to 2048 characters.
Output resolution: 360p, 540p, 720p, or 1080p; default 540p. Affects billing directly.
Duration in seconds, default 5.
The general range is 1 to 15; first-and-last-frame mode accepts only 5 or 8.
Output framing: 16:9, 4:3, 1:1, 3:4, 9:16, 2:3, 3:2, or 21:9; default 16:9.
Takes effect only for text to video and multi-image fusion.
Images for image to video; only the first is used.
The first frame; must be used as a pair with last_frame_image.
The last frame; must be used as a pair with first_frame_image.
Reference images, 1 to 7. Including them enters multi-image fusion mode.
The task ID to extend; must be a pixverse-v6 task you own with status completed.
Whether to generate an audio track; defaults to false. Enabling it raises the unit price.
Whether to add a watermark in the bottom right; defaults to false.
Motion mode; only normal is accepted. fast belongs to older models and v6 rejects it.
Output several consecutive clips; defaults to false. Available only for text to video and image to video.
Random seed, 0 to 2147483647, default 0.
模式判定
按固定优先级判定,命中即停:
- 没有任何图片或延长字段 —— 文生视频
- 传了
image_urls—— 图生视频,只取第一张 - 同时传
first_frame_image与last_frame_image—— 首尾帧过渡 - 传了
img_references—— 多图融合 - 传了
extend_from_task_id—— 视频延长
Judged in a fixed priority order, stopping at the first match:
- No image or extension fields — text to video
image_urlspassed — image to video, using only the first image- Both
first_frame_imageandlast_frame_imagepassed — first-and-last-frame transition img_referencespassed — multi-image fusionextend_from_task_idpassed — video extension
支持的模型列表
| 模型 ID | 定位 |
|---|---|
pixverse-v6 | 标准版,支持全部五种模式 |
pixverse-v6-max | 画质更高的版本,参数与 v6 一致 |
| Model ID | Positioning |
|---|---|
pixverse-v6 | Standard version, supports all five modes |
pixverse-v6-max | Higher-quality version; same parameters as v6 |
使用限制
- 所有图片必须是公网可达的 HTTP(S) 地址,不接受 Base64 与 data URI
- 首尾帧只能选 5 秒或 8 秒
motion_mode只接受normal- 延长任务的源任务必须是本人所有且已完成
- All images must be publicly reachable HTTP(S) addresses; Base64 and data URIs aren't accepted
- First-and-last-frame mode allows only 5 or 8 seconds
motion_modeaccepts onlynormal- An extension task's source task must be owned by you and already completed
响应
提交成功返回统一的受理结构:
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}状态码,200 表示任务已受理。
本次提交的任务列表,逐项提交时按顺序排列。
受理状态,提交成功时为 submitted。
任务 ID,用它轮询结果。
A successful submission returns the standard accepted structure:
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}The status code; 200 means the task was accepted.
The list of tasks submitted this time, in order when submitting item by item.
The acceptance status; submitted on success.
The task ID; use it to poll for the result.
错误
| HTTP | type | 说明 |
|---|---|---|
| 400 | invalid_request_error | 请求参数无效,或参数组合冲突 |
| 401 | authentication_error | 身份验证失败,需检查 API Key |
| 402 | payment_required | 账户余额不足,需先充值 |
| 429 | rate_limit_error | 调用频率过高,稍后重试 |
参数错误在提交阶段同步返回,不创建任务、不扣费。
余额不足时部分上游返回 403 quota_not_enough,响应体带上余额与所需金额。
| HTTP | type | Notes |
|---|---|---|
| 400 | invalid_request_error | Invalid parameters, or a conflicting combination |
| 401 | authentication_error | Authentication failed; check the API key |
| 402 | payment_required | Insufficient account balance; top up first |
| 429 | rate_limit_error | Too many calls; retry later |
Parameter errors are returned synchronously at submission, creating no task and charging nothing.
When the balance is insufficient, some upstreams return 403 quota_not_enough with the current balance and required amount in the body.
For more status codes and retry guidance see Error codes and rate limits; for troubleshooting steps on common errors see the FAQ.
查询任务
GET /v1/tasks/{task_id} 返回任务进度与结果,status 为 completed 时成片地址在 result.videos[0].url,元素带 expires_at 过期时间戳。
建议每 5 到 10 秒轮询一次,客户端总超时设为 10 到 15 分钟。status 取值 pending、processing、completed、failed、cancelled,以状态判定完成,不要依赖 progress。
失败任务自动退回费用,error.message 给出原因。
GET /v1/tasks/{task_id} returns task progress and results; once status is completed, the video URL is at result.videos[0].url, with an expires_at timestamp on the element.
Poll every 5 to 10 seconds, with a 10 to 15 minute client timeout. status is one of pending, processing, completed, failed, cancelled; judge completion by status, not by progress.
Failed tasks are refunded automatically, with the reason in error.message.