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

# Get Seedance video content

> Proxy-download the MP4 file for a completed Seedance video task

## When to use this endpoint

Use it when you need to proxy the video download through your own
server, or when direct access to the CDN URL in `metadata.url` is
not practical (e.g. server-side downloads, signed delivery pipelines).

## Prerequisites

* Task `status` must be `completed`
* Task must not be expired (check `expires_at`)

## Response format

On success the response body is a raw `video/mp4` byte stream with
HTTP status 200. Write the response body directly to a file or stream
it to your end user.

## Alternative

If you only need a link, read `metadata.url` from the
`GET /v1/videos/{task_id}` response — no need to download through
this endpoint.


## OpenAPI

````yaml /openapi/videos.en.yaml get /v1/videos/{task_id}/content
openapi: 3.1.0
info:
  title: InfinityBlue API — Videos
  version: 1.0.0
  summary: Unified AI video generation endpoints
  description: >
    Video generation endpoints using an **async task model**:

    submit a task → poll for status → retrieve the result.


    InfinityBlue provides two video endpoint families:


    - **Generic video endpoints** (`/v1/video/generations`): multi-vendor
    support
      for Kling, Veo, and others. Request style is close to the OpenAI Images API,
      making it suitable for cross-model scenarios.
    - **Seedance 2.0 endpoints** (`/v1/videos`): optimised for ByteDance
    Seedance 2.0.
      Exposes richer Seedance-specific parameters (`seconds`, `resolution`, `ratio`,
      `generate_audio`, `camera_fixed`, etc.) and supports advanced multimodal inputs
      such as first/last frame references, video references, and audio references.

    ## Typical flow


    1. `POST /v1/video/generations` or `POST /v1/videos` — submit the task,
    receive `task_id`

    2. `GET /v1/video/generations/{task_id}` or `GET /v1/videos/{task_id}` —
       poll until `status` is `completed` or `failed`
    3. Read the video URL from `url` / `metadata.url`, or download via
       `GET /v1/videos/{task_id}/content`

    ## Authentication


    Every request must include your API key in the header:

    ```

    Authorization: Bearer YOUR_API_KEY

    ```
  contact:
    name: InfinityBlue
    url: https://getinfinityblue.com
servers:
  - url: https://api.getinfinityblue.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Videos
    description: >
      Generic video generation endpoints supporting Kling, Veo, and other
      vendors,

      using a submit → poll → retrieve async task model.
  - name: Seedance 2.0
    description: |
      ByteDance Seedance 2.0 dedicated video endpoints with richer parameters,
      including first/last frame, video reference, and audio reference support.
paths:
  /v1/videos/{task_id}/content:
    get:
      tags:
        - Seedance 2.0
      summary: Get Seedance video content
      description: |
        Retrieve the raw video file for a completed Seedance video task.
        The endpoint proxies or redirects to the video file stream,
        returning raw `video/mp4` bytes. Only available when `status=completed`;
        returns 404 if the task is not yet finished.
      operationId: getSeedanceVideoContent
      parameters:
        - name: task_id
          in: path
          description: Video task ID — the `id` field returned by the create endpoint.
          required: true
          schema:
            type: string
          example: video_abc123
      responses:
        '200':
          description: Video content retrieved successfully — raw MP4 byte stream
          content:
            video/mp4:
              schema:
                type: string
                format: binary
                description: Raw bytes of the MP4 video file.
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Task not found, not completed yet, or content already expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      description: Standard error response.
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message.
              examples:
                - Invalid duration. Supported range is 4 to 15 seconds.
            type:
              type: string
              description: Error type.
              examples:
                - invalid_request_error
            param:
              type:
                - string
                - 'null'
              description: The parameter related to the error.
              examples:
                - seconds
            code:
              type:
                - string
                - 'null'
              description: Error code.
              examples:
                - invalid_duration
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >
        Bearer token authentication, format: `Authorization: Bearer sk-xxxxxx`.

        Get your API key in the
        [console](https://api.getinfinityblue.com/console).

````