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

# Muse 视频：线路与请求参数

> Muse 视频生成：官方渠道 A 的模型名、计费方式、能力和统一请求写法

> [!NOTE]
>
> **给 AI 助手的要点**
>
> * 接口：`POST https://1788.love/v1/videos`，请求头 `Authorization: Bearer YOUR_1788_API_KEY`、`Content-Type: application/json`。创建 → 查询 → 下载见[任务式接口](https://docs.1788.love/guides/async-tasks.md)。视频模型不要发到 `/v1/chat/completions`。
> * 模型名：`muse-video-a`（官方渠道 A，**按条**计费，固定 10 秒），清晰度只有 720p。
> * 支持文生视频和参考图（最多 9 张）。**不支持参考视频、参考音频**，也不区分首帧 / 尾帧：`image_with_roles` 里的图一律当参考图用。
> * 图片写成 `image_with_roles`（也接受 `image_urls`）；比例写 `aspect_ratio`，只有 `16:9`、`9:16`、`1:1`。`duration` 是 JSON 数字。
> * 不支持的素材、超量、不合规的时长会在创建任务时直接报错，不扣费。价格见[价目表](https://1788.love/pricing)，本页只说计费方式。

## 线路表

| 模型名 | 渠道 | 计费 | 清晰度 | 时长（秒） | 比例 | 参考图上限 | 参考视频 / 音频 |
| - | - | - | - | - | - | - | - |
| `muse-video-a` | 官方渠道 A | 按条 | 720p | 固定 10 | `16:9` `9:16` `1:1` | 9 | ✗ |

计费：

* `muse-video-a`：一次任务一个固定价，和图片张数无关。

## 统一请求写法

| 字段 | 类型 | 必填 | 说明 |
| - | - | - | - |
| `model` | string | 是 | `muse-video-a` |
| `prompt` | string | 是 | 画面描述；用"图1、图2"指代参考图，编号按数组顺序 |
| `duration` | integer | 否 | 不用填；填了必须是 `10`，JSON 数字 |
| `aspect_ratio` | string | 建议 | `16:9`、`9:16`、`1:1`；也接受字段名 `ratio`。建议明确写，不写时由上游按默认比例出片 |
| `resolution` | string | 否 | 只有 720p，不用填。`muse-video-a` 填了别的清晰度会报错 |
| `image_with_roles` | object\[] | 否 | 参考图，每项 `{ "url": "...", "role": "reference_image" }`，最多 9 张 |

素材 URL 必须是公网 HTTP(S) 地址，不支持 base64。本地文件先用[上传素材](https://docs.1788.love/api-reference/upload-image.md)换成 URL。

## 各线路差异和会报的错

错误在**创建任务时**立即返回，任务不会创建，也不扣费。

| 错误信息（节选） | 线路 | 原因 | 处理 |
| - | - | - | - |
| `duration is fixed at 10 seconds` | A | `duration` 不是 10 | 去掉 `duration` 或填 `10` |
| `only supports 720p` | A | `resolution` 不是 720p | 去掉 `resolution` |
| `supports at most 9 reference images` | A | 参考图超过 9 张 | 删减 |
| `does not support reference videos or audios` | A | 用 `video_with_roles` / `audio_with_roles` 传了视频或音频 | 去掉，改用参考图 |
| `aspect_ratio must be one of 16:9, 9:16, 1:1` | A | 比例不在范围内 | 改成这三种之一 |

## 示例

### 文生视频（官方渠道 A，按条）

```bash theme={null}
curl https://1788.love/v1/videos \
  -H "Authorization: Bearer YOUR_1788_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video-a",
    "prompt": "清晨的咖啡馆，镜头缓缓推进到桌上的拿铁拉花",
    "aspect_ratio": "16:9"
  }'
```

### 参考图（官方渠道 A，按条）

```json theme={null}
{
  "model": "muse-video-a",
  "prompt": "图1的模特在街头回头微笑，风吹起头发",
  "aspect_ratio": "9:16",
  "image_with_roles": [
    { "url": "https://ruyi6.cn/r/EXAMPLE_A.png", "role": "reference_image" }
  ]
}
```

创建成功后保存返回的 `id`，查询、下载见[任务式接口](https://docs.1788.love/guides/async-tasks.md)。


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