PixMind Docs
API 参考视频模型PixVerse V5 视频生成

PixVerse V5 视频生成

适合社媒短片与产品动态的快速文生或图生短视频。

适合社媒短片、转场和产品动态的快速文生或单图视频创作。

提供方

PixVerse

模型 ID

pixverse-v5

请求端点

POST /v1/generations

模型说明

  • 当前线路接受文字或一张起始图片。
  • duration 接受 4 到 10 的整数秒数。

请求参数

参数类型必填说明
modelstring

稳定的 PixMind 模型 ID,请使用 `pixverse-v5`。

可选值: pixverse-v5

promptstring

用于生成或编辑的自然语言指令。

resolutionstring

输出视频分辨率,该字段会影响每秒价格。

可选值: 360p, 540p, 720p, 1080p

默认值: 360p

durationinteger

期望生成的视频时长,单位为秒。

可选值: 4, 5, 6, 7, 8, 9, 10

默认值: 4

aspect_ratiostring

期望输出画面比例。

可选值: 16:9, 9:16, 1:1, 4:3, 3:4

默认值: 16:9

image_urlstring (URI)

图生视频使用的起始图片。

callback_urlstring (URI)

接收任务终态事件的 HTTPS 地址;不填写时仍可使用轮询。

请求示例

cURL
curl https://aihub-admin.aimix.pro/v1/generations \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v5",
  "prompt": "A fast product reveal with energetic lighting and a clean final frame",
  "duration": 5,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image_url": "https://example.com/product.jpg"
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/v1/generations", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "pixverse-v5",
  "prompt": "A fast product reveal with energetic lighting and a clean final frame",
  "duration": 5,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image_url": "https://example.com/product.jpg"
})
});

const task = await response.json();

任务受理响应

生成任务为异步处理。请保存响应中的 id,并轮询 GET /v1/generations/{id},直到任务进入终态。

202 Accepted
{
  "id": "img_01JXYZ...",
  "model": "pixverse-v5",
  "status": "processing"
}

API 定价

配置价格
360p 或 540p$0.067 / second
720p$0.090 / second
1080p$0.179 / second

API 使用 apiPlatform 角色独立计费,与 PixMind Studio 积分分开;任务受理响应中的价格快照是最终计费依据。