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

# Seedance 2.0 Token 计费

> 使用 doubao-seedance-2-0 系列模型提交并查询按 token 计费的视频任务（gogogotoken.ai）

`doubao-seedance-2-0` 与 `doubao-seedance-2-0-fast` 走 **ARK Token 计费**。提交与查询均使用 `/v1/video/generations`；任务完成后按 `data.data.usage.completion_tokens` **差额结算**。

费率分档见 [视频模型列表](/overseas/video-models)（BytePlus 官方 USD 价目）。

<RequestExample>
  ```bash 文生视频 1080p theme={null}
  curl -X POST https://gogogotoken.ai/v1/video/generations \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "doubao-seedance-2-0",
      "prompt": "a premium smartwatch rotating on a clean studio pedestal, soft product lighting, slow camera push-in",
      "seconds": "5",
      "size": "1080x1920"
    }'
  ```

  ```bash 首帧图生视频 720p（媒体输入档） theme={null}
  curl -X POST https://gogogotoken.ai/v1/video/generations \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "doubao-seedance-2-0-fast",
      "prompt": "turn the product image into a polished product showcase video with slow camera movement",
      "images": ["https://assets.example.com/product-watch.jpg"],
      "seconds": "5",
      "size": "720x1280"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 提交成功 theme={null}
  {
    "id": "task_1234567890",
    "task_id": "task_1234567890",
    "object": "video",
    "model": "doubao-seedance-2-0",
    "status": "queued",
    "progress": 0
  }
  ```

  ```json 查询完成（GET /v1/video/generations/{task_id}） theme={null}
  {
    "code": "success",
    "data": {
      "task_id": "task_1234567890",
      "status": "SUCCESS",
      "progress": "100%",
      "result_url": "https://assets.example.com/generated-video.mp4",
      "data": {
        "usage": {
          "completion_tokens": 108900,
          "total_tokens": 108900
        }
      }
    }
  }
  ```
</ResponseExample>

## 查询任务状态

```bash theme={null}
curl https://gogogotoken.ai/v1/video/generations/task_1234567890 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Note>
  当 `data.status` 为 `SUCCESS` 时，读取 `data.data.usage.completion_tokens` 作为结算依据。`doubao-seedance-2-0-fast` 不支持 `1080p`。
</Note>

## 参数说明

<ParamField body="model" type="string" required default="doubao-seedance-2-0">
  仅 `doubao-seedance-2-0` 或 `doubao-seedance-2-0-fast` 走 Token 计费；带 `-480p` 等后缀的别名模型按秒计费。
</ParamField>

<ParamField body="prompt" type="string" required>
  提示词，支持中英文。
</ParamField>

<ParamField body="seconds" type="string" default="5">
  视频时长，传字符串如 `"5"`。
</ParamField>

<ParamField body="size" type="string">
  像素尺寸，如 `1080x1920`、`720x1280`、`480x854`。
</ParamField>

<ParamField body="metadata.resolution" type="string">
  输出分辨率，优先级高于 `size`。
</ParamField>

<ParamField body="images" type="string[]">
  图生视频时传入公网图片 URL。传入后按**含媒体输入**档计费。
</ParamField>

<ParamField body="metadata.content" type="array">
  高级多模态内容；含 `image_url` / `video_url` / `audio_url` 或 `asset://` 时按**含媒体输入**档计费。
</ParamField>

## 响应体

<ResponseField name="id" type="string">
  提交时返回的任务 ID。
</ResponseField>

<ResponseField name="data.data.usage.completion_tokens" type="integer">
  查询完成时上游返回的真实输出 token 数，用于最终扣费。
</ResponseField>
