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

# List tasks

> Lists the tasks created with the current API Key, newest first.



## OpenAPI

````yaml /openapi/en/seedance-2-5-flash.json get /api/v3/contents/generations/tasks
openapi: 3.1.0
info:
  description: >-
    DreamTo Open Platform API. Generated from the Gateway source
    (apps/gateway/internal/service/seedance_v3_contract.go); do not edit by
    hand.
  title: Seedance 2.5 Flash · DreamTo Open Platform API
  version: v3
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Seedance 2 video generation
paths:
  /api/v3/contents/generations/tasks:
    get:
      tags:
        - Seedance 2 video generation
      summary: List tasks
      description: Lists the tasks created with the current API Key, newest first.
      operationId: seedanceListTasks
      parameters:
        - description: >-
            Exact filter on task IDs. Pass several by repeating the parameter
            (`filter.task_ids=a&filter.task_ids=b`) or comma-separating
            (`filter.task_ids=a,b`); the first 100 are used. Omit to list all
            tasks of the current API Key.
          explode: true
          in: query
          name: filter.task_ids
          schema:
            items:
              type: string
            maxItems: 100
            type: array
        - description: >-
            Filter by status; omit for no filter. `queued` and `running` both
            mean in progress; any other value returns an empty list (no error).


            **Allowed values:**

            - `queued`: In progress (same as `running`)

            - `running`: In progress

            - `succeeded`: Succeeded

            - `failed`: Failed
          explode: false
          in: query
          name: filter.status
          schema:
            enum:
              - queued
              - running
              - succeeded
              - failed
            type: string
        - description: >-
            Page number, default `1`, range 1–500; out-of-range values are
            clamped, non-numbers fall back to the default.
          explode: false
          in: query
          name: page_num
          schema:
            default: 1
            format: int64
            maximum: 500
            minimum: 1
            type: integer
        - description: >-
            Page size, default `20`, range 1–500; out-of-range values are
            clamped, non-numbers fall back to the default.
          explode: false
          in: query
          name: page_size
          schema:
            default: 20
            format: int64
            maximum: 500
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              examples:
                example:
                  value:
                    items:
                      - id: task_8c1d2e3f4a5b6c7d8e9f0a1b
                        model: seedance-2.5-flash
                        status: succeeded
                        content:
                          video_url: https://example-cdn.com/videos/2026/11/11/output.mp4
                        created_at: 1794384000
                        updated_at: 1794384196
                        duration: 5
                        ratio: '16:9'
                        resolution: 720p
                        output_format: mp4
                        usage:
                          completion_tokens: 108900
                          total_tokens: 108900
                    total: 1
                    request_id: req_c3d5e7f9a1b2c4d6e8f0a2b4
              schema:
                $ref: '#/components/schemas/SeedanceV3TaskList'
          description: Success
          headers:
            X-Request-Id:
              description: >-
                Unique ID of this request (prefixed with `req_`). Present on
                every response, success or failure; include it and the task `id`
                when contacting support.
              schema:
                type: string
        '401':
          content:
            application/json:
              examples:
                example:
                  value:
                    error:
                      code: unauthorized
                      message: Invalid API key
                      type: authentication_error
                      http_status: 401
                      request_id: req_3f9a1c2b7d4e5f60718293a4
                    request_id: req_3f9a1c2b7d4e5f60718293a4
              schema:
                $ref: '#/components/schemas/SeedanceV3ErrorResponse'
          description: '`unauthorized`: missing or invalid API Key'
        '403':
          content:
            application/json:
              examples:
                example:
                  value:
                    error:
                      code: forbidden
                      message: No permission to access this resource
                      type: permission_error
                      http_status: 403
                      request_id: req_3f9a1c2b7d4e5f60718293a4
                    request_id: req_3f9a1c2b7d4e5f60718293a4
              schema:
                $ref: '#/components/schemas/SeedanceV3ErrorResponse'
          description: '`forbidden`: no permission for this resource'
        '429':
          content:
            application/json:
              examples:
                example:
                  value:
                    error:
                      code: rate_limit_exceeded
                      message: Rate limit exceeded. Please try again later.
                      type: rate_limit_error
                      http_status: 429
                      request_id: req_3f9a1c2b7d4e5f60718293a4
                    request_id: req_3f9a1c2b7d4e5f60718293a4
              schema:
                $ref: '#/components/schemas/SeedanceV3ErrorResponse'
          description: '`rate_limit_exceeded`: too many requests, retry later'
        '500':
          content:
            application/json:
              examples:
                example:
                  value:
                    error:
                      code: api_error
                      message: Internal server error, please retry later
                      type: api_error
                      http_status: 500
                      request_id: req_3f9a1c2b7d4e5f60718293a4
                    request_id: req_3f9a1c2b7d4e5f60718293a4
              schema:
                $ref: '#/components/schemas/SeedanceV3ErrorResponse'
          description: '`api_error`: internal error, retryable'
        '503':
          content:
            application/json:
              examples:
                example:
                  value:
                    error:
                      code: service_unavailable
                      message: Service temporarily unavailable, please retry later
                      type: api_error
                      http_status: 503
                      request_id: req_3f9a1c2b7d4e5f60718293a4
                    request_id: req_3f9a1c2b7d4e5f60718293a4
              schema:
                $ref: '#/components/schemas/SeedanceV3ErrorResponse'
          description: >-
            `service_unavailable`: temporarily unavailable (502 / 503 / 504),
            retryable
components:
  schemas:
    SeedanceV3TaskList:
      additionalProperties: false
      description: Task list.
      properties:
        items:
          description: >-
            Tasks on this page, newest first, each identical to the object
            returned by "Get task".
          items:
            $ref: '#/components/schemas/SeedanceV3Task'
          type: array
        total:
          description: Total number of tasks matching the filter.
          format: int64
          type: integer
        request_id:
          description: >-
            ID of this request (prefixed with `req_`), same as the
            `X-Request-Id` header. Include it and the task `id` when contacting
            support.
          examples:
            - req_c3d5e7f9a1b2c4d6e8f0a2b4
          type: string
      required:
        - items
        - total
        - request_id
      type: object
    SeedanceV3ErrorResponse:
      additionalProperties: false
      description: >-
        Error response. Branch on the HTTP status first (retry / fix parameters
        / top up), then on `error.code` and `error.param`.
      properties:
        error:
          $ref: '#/components/schemas/SeedanceV3ErrorBody'
          description: Error object.
        request_id:
          description: >-
            ID of this request (prefixed with `req_`), same as the
            `X-Request-Id` header. Include it and the task `id` when contacting
            support.
          examples:
            - req_3f9a1c2b7d4e5f60718293a4
          type: string
      required:
        - error
        - request_id
      type: object
    SeedanceV3Task:
      additionalProperties: false
      description: >-
        Task object. Only `id` / `model` / `status` / `created_at` /
        `updated_at` are always present; other fields appear only when the
        information exists, so parse them as optional.
      properties:
        id:
          description: Task ID (prefixed with `task_`).
          examples:
            - task_8c1d2e3f4a5b6c7d8e9f0a1b
          type: string
        model:
          description: The `model` given at creation, echoed unchanged.
          examples:
            - seedance-2.0
          type: string
        status:
          description: >-
            Task status. Branch on it: keep polling on `running`, read
            `content.video_url` on `succeeded`, read `error.message` on
            `failed`.


            **Allowed values:**

            - `running`: In progress (queued or generating); keep polling

            - `succeeded`: Succeeded; read `content.video_url`

            - `failed`: Failed; read `error.message`
          enum:
            - running
            - succeeded
            - failed
          type: string
        content:
          $ref: '#/components/schemas/SeedanceV3TaskOutput'
          description: Generated output, present only when `succeeded`.
        error:
          $ref: '#/components/schemas/SeedanceV3TaskError'
          description: Failure details, present only when `failed`.
        created_at:
          description: Task creation time, Unix timestamp in seconds.
          examples:
            - 1794384000
          format: int64
          type: integer
        updated_at:
          description: Last update time, Unix timestamp in seconds.
          examples:
            - 1794384196
          format: int64
          type: integer
        duration:
          description: >-
            Actual duration of the generated video in seconds. Authoritative
            when the request used `duration: -1` (smart duration).
          format: int64
          type: integer
        frames_per_second:
          description: Frame rate (FPS) of the generated video.
          format: int64
          type: integer
        ratio:
          description: Actual aspect ratio of the generated video, e.g. `16:9`.
          type: string
        resolution:
          description: Resolution of the generated video, e.g. `720p`.
          type: string
        seed:
          description: >-
            Seed actually used; pass it as `seed` in a new task to reproduce a
            similar result.
          format: int64
          type: integer
        generate_audio:
          description: Whether audio was generated.
          type: boolean
        output_format:
          description: Output container format, e.g. `mp4`.
          type: string
        service_tier:
          description: Service tier actually used (when reported by the model side).
          type: string
        priority:
          description: Task priority (when reported by the model side).
          format: int64
          type: integer
        execution_expires_after:
          description: Execution timeout in seconds (when reported by the model side).
          format: int64
          type: integer
        usage:
          $ref: '#/components/schemas/SeedanceV3TaskUsage'
          description: Token usage, present once the task has been metered.
      required:
        - id
        - model
        - status
        - created_at
        - updated_at
      type: object
    SeedanceV3ErrorBody:
      additionalProperties: false
      description: Error object.
      properties:
        code:
          description: >-
            Error code: `invalid_parameter` (validation failed),
            `invalid_request`, `unauthorized`, `insufficient_balance`,
            `forbidden`, `not_found`, `rate_limit_exceeded`, `api_error`,
            `service_unavailable`.
          examples:
            - invalid_parameter
          type: string
        message:
          description: Readable error description that can be shown to users.
          type: string
        type:
          description: >-
            Error category: `invalid_request_error`, `authentication_error`,
            `insufficient_balance_error`, `permission_error`,
            `rate_limit_error`, `api_error`.
          examples:
            - invalid_request_error
          type: string
        http_status:
          description: Same as the HTTP status code of the response.
          examples:
            - 400
          format: int64
          type: integer
        request_id:
          description: >-
            Request ID, same as the `X-Request-Id` header; include it when
            contacting support.
          examples:
            - req_3f9a1c2b7d4e5f60718293a4
          type: string
        param:
          description: >-
            The offending request field, present only for validation errors,
            e.g. `duration`, `content[1]`.
          examples:
            - duration
          type: string
      required:
        - code
        - message
        - type
        - http_status
        - request_id
      type: object
    SeedanceV3TaskOutput:
      additionalProperties: false
      description: Generated output.
      properties:
        video_url:
          description: >-
            Direct download URL of the generated video. Download it to your own
            storage soon after success; do not use it as a long-term URL.
          format: uri
          type: string
        last_frame_url:
          description: >-
            Last frame image URL, present only when `return_last_frame: true`
            was requested and a frame is available.
          format: uri
          type: string
      type: object
    SeedanceV3TaskError:
      additionalProperties: false
      description: Task failure details.
      properties:
        code:
          description: >-
            Error code, always `task_failed` for a failed task. The query
            endpoint still returns HTTP 200.
          enum:
            - task_failed
          type: string
        message:
          description: >-
            Readable failure reason, e.g. non-compliant material or a model
            limit exceeded; "Video generation failed, please retry" when
            unknown.
          type: string
      required:
        - code
        - message
      type: object
    SeedanceV3TaskUsage:
      additionalProperties: false
      description: Token usage. Fields that are 0 are omitted.
      properties:
        prompt_tokens:
          description: Tokens consumed by the input (prompt and reference media).
          format: int64
          type: integer
        completion_tokens:
          description: >-
            Tokens consumed by the generated video; depends on resolution,
            duration and frame rate.
          format: int64
          type: integer
        cache_tokens:
          description: Cached tokens.
          format: int64
          type: integer
        total_tokens:
          description: Total tokens.
          format: int64
          type: integer
        thoughts_tokens:
          description: Tokens consumed by model reasoning (thinking).
          format: int64
          type: integer
      type: object
  securitySchemes:
    bearerAuth:
      description: >-
        Send `Authorization: Bearer <API Key>`. Create API Keys in the DreamTo
        console; all Keys of an account share the asset library.
      scheme: bearer
      type: http

````

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