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

# seedance-1.0-pro

> Seedance 1.0 Pro 文生视频与图生视频 API。

Seedance 1.0 Pro 的文生视频和图生视频均通过 `POST /v1/video/generations` 调用，模型 ID 为 `doubao-seedance-1-0-pro-250528`。

<Tabs sync={false}>
  <Tab title="文生视频">
    ## 创建任务

    `POST /v1/video/generations`

    ```bash cURL theme={null}
    curl --request POST \
      --url https://www.anyfast.ai/v1/video/generations \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{"model":"doubao-seedance-1-0-pro-250528","content":[{"type":"text","text":"一只猫在金色夕阳下穿过向日葵花田"}],"ratio":"16:9","resolution":"1080p","duration":5,"watermark":false}'
    ```

    ## 请求体

    <ParamField body="model" type="string" required>固定为 `doubao-seedance-1-0-pro-250528`。</ParamField>
    <ParamField body="content" type="object[]" required>必须包含一个 `type: "text"` 和 `text` 提示词的文本项。</ParamField>
    <ParamField body="ratio" type="string" default="16:9">`16:9`、`4:3`、`1:1`、`3:4`、`9:16`、`21:9`；文生视频不支持 `adaptive`。</ParamField>
    <ParamField body="resolution" type="string" default="1080p">`480p`、`720p`、`1080p`。</ParamField>
    <ParamField body="duration" type="integer" default={5}>视频时长，2–12 秒。</ParamField>
    <ParamField body="watermark" type="boolean" default={false}>是否添加水印。</ParamField>
    <ParamField body="seed" type="integer">用于复现的随机种子。</ParamField>
    <ParamField body="camera_fixed" type="boolean" default={false}>是否固定镜头位置。</ParamField>
  </Tab>

  <Tab title="图生视频">
    ## 创建任务

    `POST /v1/video/generations`

    ```bash cURL theme={null}
    curl --request POST \
      --url https://www.anyfast.ai/v1/video/generations \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{"model":"doubao-seedance-1-0-pro-250528","content":[{"type":"text","text":"女孩睁开眼，温柔地看向镜头"},{"type":"image_url","image_url":{"url":"https://example.com/photo.jpg"},"role":"first_frame"}],"ratio":"adaptive","resolution":"1080p","duration":5,"watermark":false}'
    ```

    ## 请求体

    <ParamField body="model" type="string" required>固定为 `doubao-seedance-1-0-pro-250528`。</ParamField>
    <ParamField body="content" type="object[]" required>包含文本提示词和一个或多个参考图片的多模态内容数组。</ParamField>
    <ParamField body="content[].type" type="string" required>提示词使用 `text`，参考图片使用 `image_url`。</ParamField>
    <ParamField body="content[].image_url.url" type="string">参考图片的公开 URL。</ParamField>
    <ParamField body="content[].role" type="string">参考图片角色：`first_frame` 或 `last_frame`。</ParamField>
    <ParamField body="ratio" type="string" default="16:9">`16:9`、`4:3`、`1:1`、`3:4`、`9:16`、`21:9` 或 `adaptive`。</ParamField>
    <ParamField body="resolution" type="string" default="1080p">`480p`、`720p`、`1080p`。</ParamField>
    <ParamField body="duration" type="integer" default={5}>视频时长，2–12 秒。</ParamField>
    <ParamField body="watermark" type="boolean" default={false}>是否添加水印。</ParamField>
    <ParamField body="seed" type="integer">用于复现的随机种子。</ParamField>
    <ParamField body="camera_fixed" type="boolean" default={false}>是否固定镜头位置。</ParamField>
  </Tab>
</Tabs>

## 请求头

<ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer &lt;token&gt;`。</ParamField>
<ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

## 响应体

```json 200 theme={null}
{"id":"gen-abc123","model":"doubao-seedance-1-0-pro-250528","status":"processing","created_at":1773130665}
```

<ResponseField name="id" type="string">创建的任务 ID。</ResponseField>
<ResponseField name="model" type="string">创建任务所用模型。</ResponseField>
<ResponseField name="status" type="string">任务初始状态。</ResponseField>
<ResponseField name="created_at" type="integer">任务创建 Unix 时间戳（秒）。</ResponseField>

## 错误响应

* `401 Unauthorized` — API 密钥缺失或无效。
* `429 Rate limit exceeded` — 请求超过适用的限流阈值。

<script src="/feedback.js" />
