---
title: "PixVerse V6"
description: "用首尾帧生成转场，或用参考图生成新场景。支持 720p 和可选原生音频。"
seo:
  title: "PixVerse V6 API 文档：参数与调用示例"
  description: "PixVerse V6 API 文档：模型 ID pixverse/pixverse-v6、输入模式、参数取值与默认值，附请求示例。用首尾帧生成转场，或用参考图生成新场景。支持 720p 和可选原生音频。"
---

{/* 由 scripts/generate-model-pages.mjs 根据 openapi/model-contracts.json 生成，请勿手改；补充说明写在 docs/zh/models/_notes/pixverse/pixverse-v6.mdx */}

| 模型 ID | 别名 | 接口 |
| --- | --- | --- |
| `pixverse/pixverse-v6` | `pixverse-v6` | [视频生成](/zh/docs/guides/video-generation) |

## 输入模式

| 模式 | 参考数量 | 参考角色 |
| --- | --- | --- |
| `image` 图片输入 | 2 | `first_frame`、`last_frame` |
| `reference` 参考素材 | 1–7 | `reference_image` |

提示词上限：5000 个字符，超出时返回 400。

## 参数

| 参数 | 说明 | 取值 | 默认值 | 必填 |
| --- | --- | --- | --- | --- |
| `duration` | 时长：输出视频的秒数。 仅 `image` 模式。 | `5`、`8` | `5` | 否 |
| `duration` | 时长：输出视频的秒数。 仅 `reference` 模式。 | `1`–`15` | `5` | 否 |
| `resolution` | 分辨率：输出内容的分辨率。 | `720p` | `720p` | 否 |
| `aspect_ratio` | 画幅：输出内容的宽高比。 仅 `image` 模式。 | `auto` | `auto` | 否 |
| `aspect_ratio` | 画幅：输出内容的宽高比。 仅 `reference` 模式。 | `16:9`、`4:3`、`1:1`、`3:4`、`9:16`、`2:3`、`3:2`、`21:9` | `16:9` | 否 |
| `generate_audio` | 生成音频：随视频生成原生音频。 | `false`、`true` | `false` | 否 |
| `n` | 单次请求输出数量：单次 API 请求（一个 Job）的输出数量，不是应用的批量张数。应用可提交多个独立请求组成一批；n=1 不表示应用只能生成一张。 | `1` | `1` | 否 |

## 示例

`image` 输入：

```json
{
  "model": "pixverse/pixverse-v6",
  "input": {
    "type": "image",
    "prompt": "A paper boat drifting down a rainy city street, slow tracking shot",
    "references": [
      {
        "role": "first_frame",
        "file_id": "file_..."
      },
      {
        "role": "last_frame",
        "file_id": "file_..."
      }
    ]
  },
  "parameters": {
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "auto",
    "generate_audio": false,
    "n": 1
  }
}
```

`reference` 输入：

```json
{
  "model": "pixverse/pixverse-v6",
  "input": {
    "type": "reference",
    "prompt": "A paper boat drifting down a rainy city street, slow tracking shot",
    "references": [
      {
        "role": "reference_image",
        "file_id": "file_..."
      }
    ]
  },
  "parameters": {
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": false,
    "n": 1
  }
}
```

完整合同以 `GET /v1/models/pixverse/pixverse-v6?view=contract` 为准。参数合法不代表每个渠道都能执行，请对完整请求[报价](/zh/docs/concepts/billing#获取报价)。价格与渠道见[模型市场](https://yir.ai/zh/models)。

将 `input.type` 设为 `"image"`，各提供一张 `first_frame` 和 `last_frame` 图片。APIMart 支持 720p、5 秒或 8 秒的转场，画幅由输入图片决定。

将 `parameters.generate_audio` 设为 `true` 可生成音轨。报价取决于时长和是否生成音轨，Yir 根据渠道的逐任务费用结算。

参考生将 `input.type` 设为 `"reference"`，传入 1–7 个 `reference_image`。APIMart 支持 720p、1–15 秒，默认画幅为 16:9。参考图片包含在输出秒价内，秒价随音轨开关变化。
