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

# seedance-2-fast-ext 视频生成

> 使用 seedance-2-fast-ext 模型低成本快速生成视频

<Note>
  **国内用户请注意：** 中国大陆用户请使用 `https://toapis.cn` 作为接口地址（Base URL）。文档示例中的 `https://toapis.com` 请替换为 `https://toapis.cn`。
</Note>

`seedance-2-fast-ext` 是 Seedance 2.0 系列的促销渠道冲量模型，面向低成本、快速生成场景：

* 文生视频、参考图片生成
* 支持 480p、720p 和 1080p 输出
* 不支持参考视频、参考音频、首尾帧控制和视频编辑
* 接口为异步任务：提交后返回 `generation.task`，完成后通过[视频任务状态接口](../../tasks/video-status)获取结果。

## 认证

<ParamField header="Authorization" type="string" required>
  使用 Bearer Token 认证：

  ```text theme={null}
  Authorization: Bearer YOUR_API_KEY
  ```
</ParamField>

## 请求参数

<ParamField body="model" type="string" default="seedance-2-fast-ext" required>
  ToAPIs 公共模型名，固定使用 `seedance-2-fast-ext`。
</ParamField>

<ParamField body="prompt" type="string">
  描述场景、镜头运动、主体动作、风格和声音氛围。
</ParamField>

<ParamField body="seconds" type="integer" default="5">
  输出视频时长（秒），仅支持 `5`、`10`、`15`。兼容字段 `duration` 也可以使用，无需同时传入。
</ParamField>

<ParamField body="size" type="string">
  输出宽高比，支持 `16:9`、`9:16`、`4:3`、`3:4`、`1:1`。兼容字段 `aspect_ratio` 也可以使用。
</ParamField>

<ParamField body="resolution" type="string" default="720p">
  输出分辨率，支持 `480p`、`720p` 和 `1080p`。
</ParamField>

<ParamField body="reference_image" type="string">
  单张参考图片的公开 URL。多张时请改用 `reference_images`。
</ParamField>

<ParamField body="reference_images" type="string[]">
  参考图片 URL 数组，最多 `9` 张。也可以使用 `image_with_roles`（`role` 为 `reference_image`）显式传入。
</ParamField>

<ParamField body="callback_url" type="string">
  ToAPIs 任务完成回调地址，详见[任务 Webhook](/docs/cn/api-reference/webhooks/task-webhooks)。
</ParamField>

<ParamField body="client_business_id" type="string">
  客户侧订单号或业务任务 ID。提交后会随任务保存，也可用 `GET /v1/videos/generations/{client_business_id}` 查询。
</ParamField>

<ParamField body="trace_id" type="string">
  调用方自定义的链路追踪 ID。
</ParamField>

## 素材组合规则

| 请求内容 | 是否支持 | 说明 |
| - | -: | - |
| 仅提示词 | 是 | 文生视频 |
| 参考图片 | 是 | 最多 9 张 |
| 参考视频 / 参考音频 | 否 | 请使用 `seedance-2.5-ext` |
| 首帧 / 尾帧 | 否 | 不支持首尾帧模式 |

## 请求示例

### 文生视频

```bash theme={null}
curl --request POST \
  --url https://toapis.com/v1/videos/generations \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-2-fast-ext",
    "prompt": "海浪拍打礁石，镜头环绕缓慢推进。",
    "seconds": 5,
    "size": "16:9",
    "resolution": "720p"
  }'
```

### 参考图片生成

```bash theme={null}
curl --request POST \
  --url https://toapis.com/v1/videos/generations \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-2-fast-ext",
    "prompt": "让图片1中的角色眨眼微笑。",
    "seconds": 5,
    "size": "9:16",
    "resolution": "480p",
    "reference_images": [
      "https://example.com/avatar.png"
    ]
  }'
```

## 响应

<ResponseField name="id" type="string">任务 ID，用于查询状态。</ResponseField>
<ResponseField name="client_business_id" type="string">请求传入该字段时返回。</ResponseField>
<ResponseField name="object" type="string">固定为 `generation.task`。</ResponseField>
<ResponseField name="model" type="string">本次请求的模型名。</ResponseField>
<ResponseField name="status" type="string">`queued`、`in_progress`、`completed` 或 `failed`。</ResponseField>
<ResponseField name="progress" type="integer">`0`–`100` 的任务进度。</ResponseField>
<ResponseField name="created_at" type="integer">创建时间戳。</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "tsk_vid_xxx",
    "object": "generation.task",
    "model": "seedance-2-fast-ext",
    "status": "in_progress",
    "progress": 10,
    "created_at": 1781577600
  }
  ```
</ResponseExample>


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