Developer Docs/Seedance 2.x Video API

Seedance 2.x Video API

Build Seedance 2.x Video integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Overview

Build Seedance 2.x Video integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Primary Endpoint

POST/api/v1/seedance2Video/start

Generate videos with Seedance 2.0 (standard/mini/fast), Seedance 2.5 (model_version=2.5), or Seedance 2.5 Flash (model_version=2.5-flash, BytePlus model dreamina-seedance-2-5-flash-261115). Supports text-to-video, image-to-video, first-last-frames, and reference modes. Media inputs must be public URLs. Both 2.5 variants support up to 30 seconds of output, up to 30 seconds of total reference-video duration, and audio-only references. Flash supports 480p and 720p (default), and up to 10 reference images, 5 reference videos, and 5 reference audios. This API does not accept draft-task input. Flash default rates are 46/101 coins per output second at 480p/720p without input video, or 47/104 coins per billed input plus output second with input video. The billed input duration is at least two thirds of the output duration rounded up to the next whole second. Use the generation quote API for the current price. Actual media size, dimensions, duration, format and applicable frame-rate limits are checked against the selected provider interface before charging or creating any task. Client metadata is not authoritative. Invalid or unreadable media returns HTTP 400 with the failing field, measured value and expected range; direct API requests are not automatically resized or transcoded and do not inherit lower website upload limits. Media inspection errors preserve HTTP status and business code: 400 INVALID_MEDIA for confirmed invalid media, 400 MEDIA_RESOURCE_UNAVAILABLE for inaccessible or expired sources, 400 MEDIA_PROBE_LIMIT for the server source inspection budget, 429 MEDIA_PROBE_BUSY for local queue saturation, 503 MEDIA_PROBE_UNAVAILABLE for transient network/upstream failures, 504 MEDIA_PROBE_TIMEOUT for inspection timeouts, and 500 MEDIA_PROBE_FAILED for internal processing failures. All media checked for this request share a 280-second deadline, including queueing, Range probing and full-download fallback. Even valid assets can exceed this processing deadline. Timeout cancels remaining inspection and cleanup completes before returning; no automatic retry, charge, task creation or generation-provider submission occurs on failed inspection. ### Request - Send a valid bearer token. The server evaluates the operation in the authenticated caller's access context. - Send an `application/json` body. Required fields: `prompt`. - API-token callers may include `webhook_url` and `webhook_token` for best-effort terminal-state notifications; ordinary JWT/cookie calls ignore these fields. ### Behavior - This is an asynchronous operation: a successful submission creates a task and returns before processing finishes. - Persist the returned task identifier and use the corresponding detail or list operation to observe progress. - Treat the detail endpoint as the source of truth even when webhook delivery is enabled. ### Response - A `200` response confirms task acceptance; it does not by itself mean media generation has completed. - Retain the returned identifier and wait for a documented terminal status before using output URLs. - JSON object responses, including error responses, normally carry a top-level `trace_id` string for this request; include it when contacting support. It is not a task identifier. - Do not infer undocumented fields or statuses; clients should tolerate additional response properties. ### Errors - `401` — Unauthorized - Invalid or missing JWT token. - `422` — Content moderation rejected the source image, first and last frames, and reference images. Code `1003` means confirmed minor content. Code `1004` means suspected minor content. For `1004`, confirm the input and retry with `minor_suspected_skip: true`. - `429` — MEDIA_PROBE_BUSY - Local media inspection queue is full or its wait deadline elapsed. - `500` — MEDIA_PROBE_FAILED - Internal media inspection failure; not a media specification violation. - `503` — MEDIA_PROBE_UNAVAILABLE - Transient network or upstream failure; retry is allowed. - `504` — MEDIA_PROBE_TIMEOUT - Media connection, download, inspection or the shared 280-second request inspection deadline elapsed; retry is allowed. This is a processing timeout, not a media specification violation. ### Related Operations - `GET /api/v1/seedance2Video/allRecords` — Get all records. - `GET /api/v1/seedance2Video/{_id}` — Get task detail. - `PUT /api/v1/seedance2Video/{_id}` — Rename task. Authentication: set header Authorization: Bearer <token> (supports user JWT or sk_ API token).

Request Parameters

NameTypeRequiredDescription
ai_sharing_consentobjectNoConsent receipt for newer native apps. Legacy native requests may omit this field and continue without a consent record. If present, null, malformed, expired or incomplete receipts return AI_SHARING_CONSENT_REQUIRED before generation. Valid receipts cover all actual AI recipients, including safety providers and intermediaries, and constrain later fallback. Content safety checks remain required for native requests. Web and legacy API behavior is unchanged.
ai_sharing_consent.versionenum: 2026-11-12Yes-
ai_sharing_consent.recipientsarray<string>Yes-
namestringNo-
modeenum: text-to-video | image-to-video | first-last-frames | referenceNoimage-to-video uses image_url (+ optional last_frame_url); first-last-frames uses first_frame_url + last_frame_url; reference accepts any combination of reference_urls (image) / video_urls / audio_urls. On Seedance 2.0 audio cannot be used alone and must accompany at least one image or video reference; on Seedance 2.5 audio-only references are supported.; default: "text-to-video"
model_versionenum: standard | mini | fast | 2.5 | 2.5-flashNostandard / mini / fast select a Seedance 2.0 tier. "2.5" selects Seedance 2.5. "2.5-flash" selects Seedance 2.5 Flash.; default: "standard"
omni_reference_task_typeenum: reference | edit | extendNoSeedance 2.5 reference-mode task hint. edit uses ratio=adaptive and duration=-1; extend uses ratio=adaptive; reference keeps the requested ratio and duration. edit currently accepts exactly one video_url. auto is intentionally not exposed because its output duration is unknown before billing.
promptstringYes-
image_urlstringNoFirst frame for image-to-video mode.
first_frame_urlstringNoRequired for first-last-frames mode.
last_frame_urlstringNoOptional last frame for image-to-video; required for first-last-frames.
reference_urlsarray<string>NoReference images for reference mode. Max 9 on Seedance 2.0, 30 on Seedance 2.5, 10 on Seedance 2.5 Flash.; maxItems: 30
video_urlsarray<string>NoReference videos (mp4/mov). Seedance 2.0: max 3 clips, each 2-15s, total <= 15 × number_of_videos seconds. Seedance 2.5: max 10 clips with a combined cap of 30s; Seedance 2.5 Flash: max 5 clips. omni_reference_task_type=edit currently requires exactly one clip. The server always probes video_urls (public hosts only, with separate connection/download/parse limits) as the authoritative duration for billing.; maxItems: 10
audio_urlsarray<string>NoReference audios (mp3/wav). Seedance 2.0: max 3 clips, each 2-15s, total <=15s, and audio cannot be used standalone (at least one image or video reference is required). Seedance 2.5: max 10 clips; Seedance 2.5 Flash: max 5 clips. Both 2.5 variants allow audio-only references.; maxItems: 10
input_video_durationnumberNoOptional client estimate of the total reference-video duration in seconds. This value is never trusted for final billing: the server always probes video_urls and bills on max(measured, this value), so passing a smaller number does not lower the price. Must be within [2, 15 × number_of_videos] on Seedance 2.0 and within [2, 30] on Seedance 2.5.; minimum: 2; maximum: 45.5
durationintegerNoOutput length in seconds. Max 15 on Seedance 2.0; max 30 on Seedance 2.5. Seedance 2.5 edit tasks require -1.; default: 5
aspect_ratioenum: adaptive | 21:9 | 16:9 | 4:3 | 1:1 | 3:4 | 9:16Nodefault: "16:9"
resolutionenum: 480p | 720p | 1080p | 4kNoSeedance 2.0 standard and Seedance 2.5 support 480p / 720p / 1080p / 4k. Seedance 2.5 1080p and 4k output use 10-bit HEVC encoding. Seedance 2.5 Flash and Seedance 2.0 fast / mini support only 480p / 720p.; default: "720p"
generate_audiobooleanNoDefaults to true to match billing (audio is included); pass false explicitly to disable.; default: true
minor_suspected_skipbooleanNoSkip soft minor-suspect block (code 1004); hard CSAM block (code 1003) is always enforced.; default: false
webhook_urlstringNoHTTPS URL to receive task.completed / task.failed notifications. Best-effort delivery, single attempt, no retries; clients should treat the detail API as the source of truth.; maxLength: 2048
webhook_tokenstringNoOptional plaintext token returned in the X-A2e-Webhook-Token header so receivers can verify the request originated from a2e.; maxLength: 256
Request schema and conditional rules
{
  "allOf": [
    {
      "type": "object",
      "required": [
        "prompt"
      ],
      "properties": {
        "ai_sharing_consent": {
          "type": "object",
          "description": "Consent receipt for newer native apps. Legacy native requests may omit this field and continue without a consent record. If present, null, malformed, expired or incomplete receipts return AI_SHARING_CONSENT_REQUIRED before generation. Valid receipts cover all actual AI recipients, including safety providers and intermediaries, and constrain later fallback. Content safety checks remain required for native requests. Web and legacy API behavior is unchanged.",
          "required": [
            "version",
            "recipients"
          ],
          "properties": {
            "version": {
              "type": "string",
              "enum": [
                "2026-11-12"
              ]
            },
            "recipients": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "A2E",
                "Alibaba Cloud",
                "ByteDance"
              ]
            }
          }
        },
        "name": {
          "type": "string"
        },
        "mode": {
          "type": "string",
          "enum": [
            "text-to-video",
            "image-to-video",
            "first-last-frames",
            "reference"
          ],
          "default": "text-to-video",
          "description": "image-to-video uses image_url (+ optional last_frame_url); first-last-frames uses first_frame_url + last_frame_url; reference accepts any combination of reference_urls (image) / video_urls / audio_urls. On Seedance 2.0 audio cannot be used alone and must accompany at least one image or video reference; on Seedance 2.5 audio-only references are supported."
        },
        "model_version": {
          "type": "string",
          "enum": [
            "standard",
            "mini",
            "fast",
            "2.5",
            "2.5-flash"
          ],
          "default": "standard",
          "description": "standard / mini / fast select a Seedance 2.0 tier. \"2.5\" selects Seedance 2.5. \"2.5-flash\" selects Seedance 2.5 Flash."
        },
        "omni_reference_task_type": {
          "type": "string",
          "enum": [
            "reference",
            "edit",
            "extend"
          ],
          "description": "Seedance 2.5 reference-mode task hint. edit uses ratio=adaptive and duration=-1; extend uses ratio=adaptive; reference keeps the requested ratio and duration. edit currently accepts exactly one video_url. auto is intentionally not exposed because its output duration is unknown before billing."
        },
        "prompt": {
          "type": "string"
        },
        "image_url": {
          "type": "string",
          "description": "First frame for image-to-video mode."
        },
        "first_frame_url": {
          "type": "string",
          "description": "Required for first-last-frames mode."
        },
        "last_frame_url": {
          "type": "string",
          "description": "Optional last frame for image-to-video; required for first-last-frames."
        },
        "reference_urls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 30,
          "description": "Reference images for reference mode. Max 9 on Seedance 2.0, 30 on Seedance 2.5, 10 on Seedance 2.5 Flash."
        },
        "video_urls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 10,
          "description": "Reference videos (mp4/mov). Seedance 2.0: max 3 clips, each 2-15s, total <= 15 × number_of_videos seconds. Seedance 2.5: max 10 clips with a combined cap of 30s; Seedance 2.5 Flash: max 5 clips. omni_reference_task_type=edit currently requires exactly one clip. The server always probes video_urls (public hosts only, with separate connection/download/parse limits) as the authoritative duration for billing."
        },
        "audio_urls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 10,
          "description": "Reference audios (mp3/wav). Seedance 2.0: max 3 clips, each 2-15s, total <=15s, and audio cannot be used standalone (at least one image or video reference is required). Seedance 2.5: max 10 clips; Seedance 2.5 Flash: max 5 clips. Both 2.5 variants allow audio-only references."
        },
        "input_video_duration": {
          "type": "number",
          "minimum": 2,
          "maximum": 45.5,
          "description": "Optional client estimate of the total reference-video duration in seconds. This value is never trusted for final billing: the server always probes video_urls and bills on max(measured, this value), so passing a smaller number does not lower the price. Must be within [2, 15 × number_of_videos] on Seedance 2.0 and within [2, 30] on Seedance 2.5."
        },
        "duration": {
          "type": "integer",
          "oneOf": [
            {
              "enum": [
                -1
              ]
            },
            {
              "minimum": 4,
              "maximum": 30
            }
          ],
          "default": 5,
          "description": "Output length in seconds. Max 15 on Seedance 2.0; max 30 on Seedance 2.5. Seedance 2.5 edit tasks require -1."
        },
        "aspect_ratio": {
          "type": "string",
          "enum": [
            "adaptive",
            "21:9",
            "16:9",
            "4:3",
            "1:1",
            "3:4",
            "9:16"
          ],
          "default": "16:9"
        },
        "resolution": {
          "type": "string",
          "enum": [
            "480p",
            "720p",
            "1080p",
            "4k"
          ],
          "default": "720p",
          "description": "Seedance 2.0 standard and Seedance 2.5 support 480p / 720p / 1080p / 4k. Seedance 2.5 1080p and 4k output use 10-bit HEVC encoding. Seedance 2.5 Flash and Seedance 2.0 fast / mini support only 480p / 720p."
        },
        "generate_audio": {
          "type": "boolean",
          "default": true,
          "description": "Defaults to true to match billing (audio is included); pass false explicitly to disable."
        },
        "minor_suspected_skip": {
          "type": "boolean",
          "default": false,
          "description": "Skip soft minor-suspect block (code 1004); hard CSAM block (code 1003) is always enforced."
        }
      }
    },
    {
      "$ref": "#/components/schemas/WebhookInput"
    }
  ]
}

Response Fields

code: enum: 0
data: object
data._id: string
Task ID for detail and batch polling.
data.name: string
data.prompt: string
data.is_downloaded: boolean
data.is_previewed: boolean
data.current_status: string
Persisted task state; use the concrete task family schema for its allowed values and terminal states.
data.createdAt: string
data.updatedAt: string
data.expirationDate: string
data.remainingDays: number
data.isExpired: boolean
data.coins: number
data.hasRefundCoin: boolean
Whether charged credits were refunded.
data.failed_code: string
data.failed_message: string
data.failed_reason: string
Public failure category when available.
data.image_url: string
data.image_urls: array<string>
data.result_url: string
data.video_url: string
data.result_video_url: string
data.cover_url: string
data.result_cover: string
data.hd_video_url: string
data.video_time: number
data.duration_seconds: number
data.refund_pending: boolean
True means refund pending resolution and takes precedence over hasRefundCoin. Explicit false is preserved; omitted when unknown, including legacy records without a stored flag.
data.mode: enum: text-to-video | image-to-video | first-last-frames | reference
data.model_version: enum: standard | mini | fast | 2.5 | 2.5-flash
data.omni_reference_task_type: enum: reference | edit | extend
data.first_frame_url: string
data.last_frame_url: string
data.reference_urls: array<string>
data.video_urls: array<string>
data.audio_urls: array<string>
data.input_video_duration: number
data.duration: integer
data.aspect_ratio: string
data.resolution: string
data.generate_audio: boolean
trace_id: string
Trace ID of this HTTP request. Include it when contacting support about this request. It is generated per request and is not a task identifier; use the returned task `_id` to query results.

Request Example

curl -X POST "https://www.a2e.com.cn/api/v1/seedance2Video/start" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "high quality, clear, cinematic"
}'

Related Endpoints

Responses

200

Task started successfully. Each returned task exposes optional boolean hasRefundCoin (true: refund recorded; false: not refunded; omitted: unknown). A generation failure reason does not prove that a refund was recorded.

401

Unauthorized - Invalid or missing bearer token

422

Content moderation rejected the source image, first and last frames, and reference images. Code `1003` means confirmed minor content. Code `1004` means suspected minor content. For `1004`, confirm the input and retry with `minor_suspected_skip: true`.

429

MEDIA_PROBE_BUSY - Local media inspection queue is full or its wait deadline elapsed.

500

MEDIA_PROBE_FAILED - Internal media inspection failure; not a media specification violation.

503

MEDIA_PROBE_UNAVAILABLE - Transient network or upstream failure; retry is allowed.

504

MEDIA_PROBE_TIMEOUT - Media connection, download, inspection or the shared 280-second request inspection deadline elapsed; retry is allowed. This is a processing timeout, not a media specification violation.

Seedance 2.x Video API Documentation