> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apipod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Muse Video 参考生视频

> Muse Video 参考生视频用 1-4 张参考图保持人物、商品与场景一致，生成 5-60 秒 720P 带原生音频的视频。

`muse-video-r2v` 生成忠于你所关心对象成片。它不锁定某一帧，而是让你交出一到四张参考图——一个角色、一件商品、一个场景——它围绕这些参考构图，在全片保持身份与材质细节。

## 模型速览

| | |
| - | - |
| 公开模型 ID | `muse-video-r2v` |
| 输入 | 文本 + 图片（1-4 张） |
| 输出 | 带音频的视频 |
| 时长 | 5 / 10 / 20 / 30 / 40 / 50 / 60 秒（默认 5） |
| 清晰度 | 720p |
| 画幅 | `16:9`、`9:16`、`1:1`、`4:3`、`3:4`（默认 `16:9`） |
| 计费 | 按输出秒数 |

## 参数

| 参数 | 类型 | 默认值 | 说明 |
| - | - | - | - |
| `prompt` | string | — | 必填，最多 4000 个字符。描述动作，不要描述参考图。 |
| `image_urls` | string\[] | — | 必填，1-4 个公网图片 URL。 |
| `duration` | integer | `5` | 只能是 5、10、20、30、40、50、60。 |
| `aspect_ratio` | string | `16:9` | 输出画幅，与参考图无关。 |
| `resolution` | string | `720p` | 目前仅支持 720p。 |
| `style_preset` | string | `none` | 与文生视频相同的七档预设。 |
| `generate_audio` | boolean | `true` | 设为 `false` 可静音人声。 |

## 每张参考图的作用

| 参考图数量 | 适合场景 |
| - | - |
| 1 张 | 单一主体——一个角色或一件商品，放进新场景。 |
| 2-3 张 | 主体加环境，避免模型自己编背景。 |
| 4 张 | 多角度主体一致性，例如商品四面图或角色设定稿。 |

每张参考图只聚焦一件事。一张图里塞两个互相抢戏的主体，会把成片往两个方向拉扯。

## 提示词写法

描述**发生什么**，而不是主体长什么样——外观已经由参考图承载了。点明镜头和运动通常就够了。

```
角色走过雨夜夜市，霓虹倒映在湿沥青上，肩部高度跟拍，浅景深
```

如果参考图是商品，写动作而不是写物体：写「一只手拿起瓶子」，不要写「一个白色玻璃瓶」。关于参考图的形容词很容易被当成风格改动重新施加。

## 调用流程

1. 带 `image_urls` 与提示词调用 `POST /v1/videos/generations`。
2. 取 `data.task_id`。
3. 轮询 `GET /v1/videos/status/{task_id}` 直到 `completed`。
4. 从 `data.result` 下载。

```bash theme={null}
curl https://api.apipod.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIPOD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video-r2v",
    "prompt": "角色走过雨夜夜市，肩部高度跟拍",
    "image_urls": [
      "https://cdn.example.com/character-front.jpg",
      "https://cdn.example.com/night-market.jpg"
    ],
    "duration": 10,
    "aspect_ratio": "9:16",
    "style_preset": "cyberpunk_neon"
  }'
```

## 参考图要求

* 只接受公网 HTTPS 地址——会过期的签名链接、需要登录的域名在提交阶段就会失败。
* 一个主体一张图。角色设定稿、商品抠图、场景底图都很合适。
* 真人参考图要光线充足、正面清楚；极端裁切会丢失身份细节。
* 本模型的参考图不计入费用：计费为 `时长 × 每秒单价`。


## OpenAPI

````yaml api-reference/openapi/muse-video--muse-video-r2v.zh.yaml POST /v1/videos/generations
openapi: 3.1.0
info:
  title: MU Video 参考生视频 API
  version: 1.0.0
  description: >-
    MU Video 参考生视频使用 1-4 张人物、商品或场景参考图，生成主体一致的 5-60 秒 720P
    视频，支持五种画幅、七档风格预设，并原生生成人声与音效。在 APIPod 中，公开模型 ID 为 muse-video-r2v。
servers:
  - url: https://api.apipod.ai
    description: 生产环境
security: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - MU Video 参考生视频
      summary: 创建生成任务
      description: >-
        MU Video 参考生视频使用 1-4 张人物、商品或场景参考图，生成主体一致的 5-60 秒 720P
        视频，支持五种画幅、七档风格预设，并原生生成人声与音效。在 APIPod 中，公开模型 ID 为 muse-video-r2v。
      operationId: create-muse-video-muse-video-r2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: MU Video 参考生视频
              properties:
                model:
                  type: string
                  title: 模型 ID
                  description: APIPod 公开模型 ID。
                  const: muse-video-r2v
                prompt:
                  type: string
                  title: 提示词
                  description: 视频内容描述，必填，最多 4000 个字符。
                  minLength: 1
                  maxLength: 4000
                image_urls:
                  type: array
                  title: 参考图
                  description: 必填。1-4 张参考图（人物、商品或场景），视频会保持与之一致。
                  items:
                    type: string
                    description: 参考图公网 URL。
                  minItems: 1
                  maxItems: 4
                duration:
                  type: integer
                  title: 时长
                  description: 视频时长（秒）。
                  enum:
                    - 5
                    - 10
                    - 20
                    - 30
                    - 40
                    - 50
                    - 60
                  default: 5
                aspect_ratio:
                  type: string
                  title: 画幅
                  description: 生成视频的画幅比例。
                  enum:
                    - '16:9'
                    - '9:16'
                    - '1:1'
                    - '4:3'
                    - '3:4'
                  default: '16:9'
                resolution:
                  type: string
                  title: 清晰度
                  description: 输出清晰度。MU Video 目前仅支持 720p。
                  enum:
                    - 720p
                  default: 720p
                style_preset:
                  type: string
                  title: 风格预设
                  description: 视频风格预设。
                  enum:
                    - none
                    - cinematic_realistic
                    - 2d_anime
                    - 3d_xianxia
                    - american_comic
                    - cyberpunk_neon
                    - ecommerce_ugc
                  default: none
                generate_audio:
                  type: boolean
                  title: 生成声音
                  description: 是否生成人声与音效。设为 false 即静音人声。
                  default: true
              required:
                - model
                - prompt
                - image_urls
            example:
              model: muse-video-r2v
              prompt: A corgi surfing at sunset, cinematic, slow motion
              duration: 10
              aspect_ratio: '16:9'
              style_preset: cinematic_realistic
              generate_audio: true
      responses:
        '200':
          description: 任务已受理
          content:
            application/json:
              schema:
                type: object
                title: 任务提交响应
                description: 任务提交标准响应
                properties:
                  code:
                    type: integer
                  data:
                    type: object
                    title: 任务提交数据
                    description: 任务提交数据体
                    properties:
                      task_id:
                        type: string
                        description: 生成任务 ID
                  message:
                    type: string
                required:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  task_id: vid_task_01JEXAMPLE
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |-
            curl https://api.apipod.ai/v1/videos/generations \
              -H "Authorization: Bearer $APIPOD_API_KEY" \
              -H "Content-Type: application/json" \
              -d '{
              "model": "muse-video-r2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
              "duration": 10,
              "aspect_ratio": "16:9",
              "style_preset": "cinematic_realistic",
              "generate_audio": true
            }'
        - lang: Python
          label: Python
          source: |-
            import os
            import requests

            payload = {
              "model": "muse-video-r2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
              "duration": 10,
              "aspect_ratio": "16:9",
              "style_preset": "cinematic_realistic",
              "generate_audio": True
            }

            response = requests.post(
                "https://api.apipod.ai/v1/videos/generations",
                headers={
                    "Authorization": f"Bearer {os.environ['APIPOD_API_KEY']}",
                    "Content-Type": "application/json",
                },
                json=payload,
                timeout=60,
            )
            response.raise_for_status()
            print(response.json())
        - lang: Go
          label: Go
          source: |-
            package main

            import (
                "bytes"
                "encoding/json"
                "fmt"
                "net/http"
                "os"
            )

            func main() {
                payload := map[string]any{}
                if err := json.Unmarshal([]byte(`{
              "model": "muse-video-r2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
              "duration": 10,
              "aspect_ratio": "16:9",
              "style_preset": "cinematic_realistic",
              "generate_audio": true
            }`), &payload); err != nil {
                    panic(err)
                }
                body, err := json.Marshal(payload)
                if err != nil {
                    panic(err)
                }

                req, err := http.NewRequest(http.MethodPost, "https://api.apipod.ai/v1/videos/generations", bytes.NewReader(body))
                if err != nil {
                    panic(err)
                }
                req.Header.Set("Authorization", "Bearer "+os.Getenv("APIPOD_API_KEY"))
                req.Header.Set("Content-Type", "application/json")

                resp, err := http.DefaultClient.Do(req)
                if err != nil {
                    panic(err)
                }
                defer resp.Body.Close()
                fmt.Println(resp.Status)
            }
        - lang: Rust
          label: Rust
          source: |-
            use reqwest::Client;
            use serde_json::json;
            use std::env;

            #[tokio::main]
            async fn main() -> Result<(), Box<dyn std::error::Error>> {
                let payload = json!({
              "model": "muse-video-r2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
              "duration": 10,
              "aspect_ratio": "16:9",
              "style_preset": "cinematic_realistic",
              "generate_audio": true
            });
                let response = Client::new()
                    .post("https://api.apipod.ai/v1/videos/generations")
                    .bearer_auth(env::var("APIPOD_API_KEY")?)
                    .json(&payload)
                    .send()
                    .await?
                    .error_for_status()?;

                println!("{}", response.text().await?);
                Ok(())
            }
        - lang: JavaScript
          label: JavaScript
          source: >-
            const response = await
            fetch("https://api.apipod.ai/v1/videos/generations", {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.APIPOD_API_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify(
              {
                "model": "muse-video-r2v",
                "prompt": "A corgi surfing at sunset, cinematic, slow motion",
                "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
              "image_urls": ["https://cdn.example.com/ref-character.jpg", "https://cdn.example.com/ref-scene.jpg"],
                "duration": 10,
                "aspect_ratio": "16:9",
                "style_preset": "cinematic_realistic",
                "generate_audio": true
              }
              ),
            });


            if (!response.ok) {
              throw new Error(`APIPod request failed: ${response.status} ${await response.text()}`);
            }


            console.log(await response.json());
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: APIPod API key
      description: 使用 APIPod API Key 作为 Bearer token 放在 Authorization 请求头。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.