---
title: "Muse Video"
description: "通过 APIMart Ext 生成 2–10 秒的有声 720p 短视频，支持文字提示和最多 9 张参考图。"
seo:
  title: "Muse Video API 文档：参数与调用示例"
  description: "Muse Video API 文档：模型 ID meta/muse-video、输入模式、参数取值与默认值，附请求示例。通过 APIMart Ext 生成 2–10 秒的有声 720p 短视频，支持文字提示和最多 9 张参考图。"
---

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

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

## 输入模式

| 模式 | 参考数量 | 参考角色 |
| --- | --- | --- |
| `text` 纯文本 | — | — |
| `reference` 参考素材 | 1–9 | `reference_image` |

## 参数

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

## 示例

`text` 输入：

```json
{
  "model": "meta/muse-video",
  "input": {
    "type": "text",
    "prompt": "A paper boat drifting down a rainy city street, slow tracking shot"
  },
  "parameters": {
    "duration": 10,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": true,
    "n": 1
  }
}
```

`reference` 输入：

```json
{
  "model": "meta/muse-video",
  "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": 10,
    "resolution": "720p",
    "aspect_ratio": "auto",
    "generate_audio": true,
    "n": 1
  }
}
```

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

Muse Video 通过第三方 APIMart Ext 渠道供给。参考图生成支持 1–9 张图片，原图合计最多 11 MiB。参考图用于引导场景和构图。需要指定画幅时，请显式设置 `aspect_ratio`。

报价按选择的时长计算，已包含参考图。最终按照 APIMart 返回的逐任务费用和渠道结算规则计费。

[APIMart Muse Video Ext 文档](https://docs.apimart.ai/en/api-reference/videos/muse-video-ext/generation)
