> ## 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 文生视频仅需提示词即可生成 5-60 秒的 720P 视频，支持五种画幅、七档风格预设，并原生生成人声与音效。

`muse-video-t2v` 把一段文字变成完整成片。不需要准备任何素材——你描述镜头，Muse Video 负责运动、光线与风格，同时生成与画面同步的人声和音效。

## 模型速览

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

## 参数

| 参数 | 类型 | 默认值 | 说明 |
| - | - | - | - |
| `prompt` | string | — | 必填，最多 4000 个字符。 |
| `duration` | integer | `5` | 只能是 5、10、20、30、40、50、60。 |
| `aspect_ratio` | string | `16:9` | 可选 `16:9`、`9:16`、`1:1`、`4:3`、`3:4`。 |
| `resolution` | string | `720p` | 目前仅支持 720p。 |
| `style_preset` | string | `none` | 见下方风格预设。 |
| `generate_audio` | boolean | `true` | 设为 `false` 可静音人声。 |

本模型不支持 `negative_prompt`、`seed` 与参考素材——需要用图片引导画面时请用 [`muse-video-i2v`](./muse-video-i2v) 或 [`muse-video-r2v`](./muse-video-r2v)。

## 风格预设

| 取值 | 画面风格 |
| - | - |
| `none` | 交给提示词决定。 |
| `cinematic_realistic` | 真人电影感，自然光与浅景深。 |
| `2d_anime` | 手绘动画，平涂上色与硬朗线条。 |
| `3d_xianxia` | 3D 国漫仙侠，飘动衣袂、云雾山峰、流光灵气。 |
| `american_comic` | 美漫风格，重墨线与网点质感。 |
| `cyberpunk_neon` | 雨夜街道、霓虹招牌、高反差。 |
| `ecommerce_ugc` | 明亮干净、手机实拍感的产品演示构图。 |

## 提示词写法

Muse Video 对镜头语言的理解很直接。写清镜头、光线和一两个材质，比堆砌形容词可控得多。

```
海边日落，一只柯基冲浪，低角度跟拍，逆光水花，
浅景深，暖色高光，电影感慢镜头
```

这段提示词固定了三件模型本来会自己猜的事：**构图**（低角度跟拍）、**光线**（逆光水花、暖色高光）与**节奏**（电影感慢镜头）。主体与材质保持简短，避免注意力被分散。

提示词控制在 400 字左右时遵循度最好；4000 字的上限是留给结构化脚本和多镜头描述的。

## 调用流程

1. 带上述参数调用 `POST /v1/videos/generations`。
2. 从响应里取 `data.task_id`。
3. 每隔几秒轮询 `GET /v1/videos/status/{task_id}`，直到 `status` 为 `completed`。
4. 从 `data.result` 下载成片。

5 秒片段通常在 1-3 分钟内返回，60 秒片段可能明显更久。请轮询到终态，不要按固定等待时间判断。

```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-t2v",
    "prompt": "海边日落，一只柯基冲浪，低角度跟拍，逆光水花，电影感慢镜头",
    "duration": 10,
    "aspect_ratio": "16:9",
    "style_preset": "cinematic_realistic"
  }'
```

## 费用

按输出秒计费：`时长 × 每秒单价`。文生视频没有参考素材，费用完全由你传入的 `duration` 决定，批量提交前可以用 [`POST /v1/pricing/estimate`](https://docs.apipod.ai/endpoint-conventions) 先估价。


## OpenAPI

````yaml api-reference/openapi/muse-video--muse-video-t2v.zh.yaml POST /v1/videos/generations
openapi: 3.1.0
info:
  title: MU Video 文生视频 API
  version: 1.0.0
  description: >-
    MU Video 文生视频仅需提示词即可生成 5-60 秒的 720P 视频，支持五种画幅、七档风格预设（真人电影感 / 2D 动漫 / 3D 国漫仙侠
    / 美漫 / 赛博朋克 / 电商种草），并原生生成人声与音效。在 APIPod 中，公开模型 ID 为 muse-video-t2v。
servers:
  - url: https://api.apipod.ai
    description: 生产环境
security: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - MU Video 文生视频
      summary: 创建生成任务
      description: >-
        MU Video 文生视频仅需提示词即可生成 5-60 秒的 720P 视频，支持五种画幅、七档风格预设（真人电影感 / 2D 动漫 / 3D
        国漫仙侠 / 美漫 / 赛博朋克 / 电商种草），并原生生成人声与音效。在 APIPod 中，公开模型 ID 为 muse-video-t2v。
      operationId: create-muse-video-muse-video-t2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: MU Video 文生视频
              properties:
                model:
                  type: string
                  title: 模型 ID
                  description: APIPod 公开模型 ID。
                  const: muse-video-t2v
                prompt:
                  type: string
                  title: 提示词
                  description: 视频内容描述，必填，最多 4000 个字符。
                  minLength: 1
                  maxLength: 4000
                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
            example:
              model: muse-video-t2v
              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-t2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "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-t2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "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-t2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "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-t2v",
              "prompt": "A corgi surfing at sunset, cinematic, slow motion",
              "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-t2v",
                "prompt": "A corgi surfing at sunset, cinematic, slow motion",
                "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.