Skip to content
Trang này chưa có bản dịch sang ngôn ngữ của bạn, nên hiện đang được hiển thị bằng tiếng Anh.

seedance-2.5 Video Generation

Async API; returns task_id for polling

Toàn bộ tài liệu
POST/v1/videos/generations
  • Text-to-video / multimodal reference / edit / extend / first–last frame
  • Up to 30s per job; up to 30 images + 10 videos + 10 audios as references
  • Resolution supports 480p / 720p / 1080p / 4k; mp4 or mov output

Note

Main changes vs 2.0: max duration 15s → 30s; references 9 images + 3 videos + 3 audios → 30 images + 10 videos + 10 audios; audio-only reference supported; mov output added.
Resolution: 480p / 720p / 1080p / 4k are supported.

Ví dụ request

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-2.5",
    "prompt": "A cinematic 30-second steampunk miniature landscape sequence",
    "size": "16:9",
    "resolution": "720p",
    "duration": 30
  }'

Authentication

Authorizationstringrequired

Bearer token auth. Get a key from the API Key page.

text
Authorization: Bearer YOUR_API_KEY

Request parameters

modelstringrequired

Fixed value: seedance-2.5

nsfw_checkbooleandefault: false

Whether to run content moderation before submitting the video task.

  • true: use omni-moderation-latest to review prompts and input images
  • false or omitted: do not send a moderation request, adding no moderation cost or latency (default)

Content reviewed:

  • Text: prompt, negative_prompt
  • Images: image_urls, image_with_roles[].url, first_frame_image, last_frame_image
  • Image-type private asset:// assets: resolve and review their original public URL
  • Base64 images: review them after conversion to a public URL

video_urls, audio_urls, and video/audio private assets are not reviewed, because the moderation model does not support video or audio.

The moderation call itself is not billed to the user submitting the video request.

Warning

  • Flagged content returns a synchronous HTTP 400 (nsfw_content_detected). No task or task_id is created, and no video-generation quota is charged
  • If moderation is unavailable, times out, or returns an invalid response, the request fails open and generation continues. Do not treat this option as an absolute content-safety guarantee
  • Inputs that cannot be resolved to a public image URL are skipped

Example:

json
{
  "model": "seedance-2.5",
  "prompt": "a cat walking on the beach",
  "image_urls": ["https://cdn.example.com/ref.png"],
  "nsfw_check": true
}

Response when flagged:

json
{
  "error": {
    "message": "Your request was rejected by content moderation (`nsfw_check` is enabled). Flagged categories: sexual, violence/graphic.",
    "type": "nsfw_content_detected",
    "param": "",
    "code": "nsfw_content_detected"
  }
}
draftboolean

Set to true to generate a 480p draft. Only seedance-2.5 supports this option. Omit it for normal generation.

  • resolution must be 480p; it defaults to 480p when omitted
  • Cannot be combined with draft_task_id
  • Drafts are valid for 3 days from creation and can produce a 1080p / 4k final video after successful completion

See Draft mode for the workflow.

draft_task_idstring

Generate a 1080p / 4k final video from a completed draft. Provide the APISea task ID from the draft submission response (data[0].task_id), not a video URL.

  • Only seedance-2.5 is supported; use the same model as the draft
  • The draft must belong to the user associated with the current API Key, have completed successfully, and be within 3 days of creation
  • resolution supports 1080p / 4k; it defaults to 1080p when omitted
  • Cannot be combined with draft: true; do not resend inherited fields such as prompt, reference media, or duration

See Draft mode for adjustable fields and restrictions.

Rendering a 4K final video requires the original draft’s channel to support 4K. Otherwise submission returns HTTP 400 without creating a task or charging. Keep the same draft_task_id and resubmit with resolution: "1080p".

promptstring

Required for normal generation and drafts. Omit it when using draft_task_id: the final video inherits the draft prompt, and sending this field is rejected.

Prompt. Reference media with @图片1 / @视频1 / @音频1 (1-based index matching array order). English aliases in prompts may also be used depending on model behavior; keep indices aligned with arrays.

Example: "Use @视频1 for first-person framing throughout, @音频1 as BGM, first frame is @图片1"

resolutionstringdefault: 720p

Output resolution, case-insensitive. Supported values:

  • 480p
  • 720p (default)
  • 1080p
  • 4k

Request 4K with "resolution": "4k". 2160p is not an alias; unsupported values such as 2k or 2160p return HTTP 400 at submission.

Draft mode: draft: true only supports 480p, also used when omitted. draft_task_id supports 1080p / 4k, defaulting to 1080p when omitted.

Note

4K and 1080p outputs use 10-bit H.265 encoding. 4K files are larger and take longer to download or transfer. Generation is also slower and more likely to queue or fail at peak times; failed tasks are refunded.

sizestringdefault: adaptive

Aspect ratio (field name aspect_ratio is also accepted).

Values: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive (default)

Warning

Edit, extend, and first/last-frame jobs have hard size constraints — see Task types and constraints.

durationintegerdefault: 5

Duration in seconds:

  • 4 ~ 30
  • -1: model picks duration (pre-charge at the 30s cap; settle to actual length after completion)

If omitted: generate and bill 5 seconds.

generate_audiobooleandefault: true

Whether to generate audio (alias field name: audio).

  • true: with audio (default)
  • false: silent video
watermarkbooleandefault: false

Add an “AI generated” watermark. Default false.

seedinteger

Random seed. Different seeds usually yield different results for the same request; the same seed is similar but not guaranteed identical.

output_formatstringdefault: mp4

Output container:

  • mp4 (default)
  • mov: higher color precision — recommended for edit / extend workflows
omni_reference_task_typestringdefault: auto

Sub-task type hint: auto / reference / edit / extend.

Passing reference / edit / extend validates that type’s constraints at submit time. Invalid requests return 400, create no task, and charge nothing. See Task types and constraints.

image_urlsarray\

Reference image URLs, all treated as reference_image.

Supports:

  • Public URL: https://example.com/pic.jpg
  • Private asset: asset://cm9xxxxxxxx

For first/last frames use image_with_roles.

Warning

  • Max 30 images
  • Prefer image_with_roles for first/last-frame roles
image_with_rolesarray\

Images with explicit roles.

Fields

urlstringrequired

Image URL or asset://...

rolestringrequired
  • first_frame: first frame (1 image)
  • last_frame: last frame (1 image, usually with first frame)
  • reference_image: reference image (up to 30 total)

Example:

json
[
  {"url": "https://example.com/first.jpg", "role": "first_frame"},
  {"url": "https://example.com/last.jpg", "role": "last_frame"}
]

Note

If video_urls / audio_urls are present, first_frame / last_frame are auto-converted to reference_image (multimodal reference job).

video_urlsarray\

Reference videos (reference_video).

Input: video URL or asset ID (asset://...).

See Reference video specs.

audio_urlsarray\

Reference audio URLs (reference_audio). Public URLs or asset://....

Max 10; total duration ≤ 30s (each clip 2~30s).

Note

2.5 supports audio-only reference (no image/video required).

return_last_framebooleandefault: false

When true, the successful result also includes the last-frame image for chaining.

toolsarray\

Tool list for enhancements such as web search.

Example:

json
"tools": [{"type": "web_search"}]

Fields

typestringrequired

Tool type

Values:

  • web_search — web search; generation can ground on online information

Media limits

MediaLimits
Images≤30; jpeg / png / webp / bmp / tiff / gif / heic / heif; aspect ratio [0.4, 2.5]; side length [300, 6000]px; each <30MB
VideosSee Reference video specs
Audio≤10; wav / mp3; each [2, 30]s and total ≤30s; each ≤15MB

Reference video specs

  • Input: video URL or asset ID (asset://...)
  • Container: mp4, mov — codecs in the table below
  • Resolution: 480p, 720p, 1080p
  • Duration: each clip [2, 30] s; up to 10 reference videos; total duration of all videos ≤ 30s
  • Per-video dimensions:
    • Aspect ratio (width/height): [0.4, 2.5]
    • Side length (px): [300, 6000]
    • Total pixels: [640×640=409600, 3326×2494=8295044], i.e. width × height must fall in [409600, 8295044]
  • Size: each video ≤ 200 MB
  • Frame rate (FPS): [24, 60]

Supported codecs

ContainerVideo codecAudio codec
mp4H.264 / H.265AAC / MP3
movH.264 / H.265AAC / MP3

Task types and constraints

The service infers task type from references and prompt intent. The last three types hard-constrain size / duration; violations fail asynchronously after the job starts (e.g. InvalidParameter.TaskTypeConstraint):

Task typeTriggerConstraints
Text-to-videoText onlyNone
Reference-to-videoReferences + normal descriptive promptNone. Avoid words like “edit / extend / continue / delete / replace” in the prompt to prevent misclassification
Video editReferences + prompt with “edit video / add / delete / modify / replace”, etc.size must be adaptive, duration must be -1; source video 4~30s
Video extendReferences + prompt with “extend forward/backward / continue / sequel”size must be adaptive
First / first–last frameimage_with_roles uses first_frame / last_framesize must be adaptive (also checked at submit time)

Turn async errors into sync errors with omni_reference_task_type

Passing reference / edit / extend declares the sub-task type so its constraints are validated at submit time. Invalid requests return 400 immediately: no task is created and nothing is charged — you do not have to poll until failed.

ValueMeaningConstraints checked at submit
auto (default)Model infers the typeNone (violations fail asynchronously)
referenceReference-to-videoNone (size / duration unrestricted)
editVideo editAt least one item in video_urls; size must be adaptive (or omitted); duration must be -1 (or omitted, see below); source video 4~30s
extendVideo extendAt least one item in video_urls; size must be adaptive (or omitted)

Notes:

  • If edit omits duration, the platform sets it to -1. Omitting duration otherwise defaults to 5 seconds, which conflicts with the upstream edit requirement of -1. The trade-off is a 30-second prepaid hold (same as duration: -1); unused amount is refunded after completion. For a smaller hold, skip edit and use default auto.
  • If edit sends duration explicitly, it must be -1. Any other value returns 400 (output length follows the source video).
  • ⚠️ You can still fail asynchronously with InvalidParameter.TaskTypeMismatch. Upstream re-classifies the job from the prompt; a mismatch with your declared type is rejected. Keep prompt wording aligned (edit: “edit / delete / replace…”; extend: “extend forward/backward / continue…”).
  • The task-type validation rules above are consistent across channels; whether a draft can render in 4K also depends on the original draft’s channel.

Asset library

You can pass public URLs as references, or upload into the library first and use asset://. Prefer the library when:

  1. Real human faces must use the library — raw URLs are blocked by content moderation; only approved library assets can be used
  2. Assets are reused often — upload once, skip repeated moderation on later jobs, faster submits
  3. URLs are signed temporary links — the platform stores a durable copy on ingest so later use does not depend on the original URL staying alive
  4. Library assets are synced to all available channels so multi-channel routing can use them wherever the job lands

The library is shared with the 2.0 family; approved asset:// IDs work in both 2.0 and 2.5 generation requests. Full submit fields: also see Private avatar assets.

Upload assets

bash
POST /v1/seedance2/private-avatar/assets
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
bash
curl --request POST \
  --url https://api.apisea.ai/v1/seedance2/private-avatar/assets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedance-2.5",
    "group": { "name": "my-assets" },
    "asset_type": "Image",
    "assets": [
      { "url": "https://example.com/a.png", "name": "a" },
      { "url": "https://example.com/b.png", "name": "b" }
    ]
  }'
FieldRequiredDescription
modelNoModel the assets will be used with (defaults to 2.0). Sets the duration tier; for 2.5 pass seedance-2.5
groupNoAsset group; created automatically if omitted
asset_typeYesImage / Video / Audio
assets[].urlYesPublic media URL
assets[].nameNoAsset name

The response includes a local task id. Poll with Get task status (GET /v1/tasks/{id}). After approval, list assets to obtain the asset:// ID.

Media limits (validated at submit)

Violations return 400 immediately (which asset index and which rule), without starting moderation or consuming moderation quota:

MediaLimits
Imagejpeg / png / webp / bmp / tiff / gif / heic / heif; side length [300, 6000]px; aspect ratio [0.4, 2.5]; each <30MB
Videomp4 / mov; each ≤200MB; duration by model: 2.0 family [2, 15]s, 2.5 [2, 30]s
Audiowav / mp3; each ≤15MB; duration tiers same as video

Error example:

json
{
  "error": {
    "code": "invalid_asset_material",
    "message": "video #1: duration must be between 2s and 15s for seedance-2.0 (got 30s)"
  }
}

Note

For 30s video assets, submit with "model": "seedance-2.5" (2.0 cannot use assets longer than 15s).
If the platform cannot probe the media (e.g. network blip), it may pass through and leave the decision to moderation.

Use in generation requests

Reference approved assets with asset:// in image_urls / image_with_roles / video_urls / audio_urls:

json
{
  "model": "seedance-2.5",
  "prompt": "The person in @图片1 walks along the beach",
  "image_urls": ["asset://cm9xxxxxxxx"],
  "duration": 8
}

Multi-channel: after ingest, assets sync to all available channels so any routed channel can use them. If a channel’s copy is missing, the platform may re-upload from the original URL as a fallback (if that URL is already expired, that channel is skipped and another takes over).

Management APIs (quick reference)

MethodPathPurpose
GET/v1/seedance2/private-avatar/assetsList assets
GET/v1/seedance2/private-avatar/assets/{asset_id}Asset detail (incl. moderation status)
PATCH/v1/seedance2/private-avatar/assets/{asset_id}Update asset metadata
DELETE/v1/seedance2/private-avatar/assets/{asset_id}Delete asset
POST / GET / PATCH / DELETE/v1/seedance2/private-avatar/groups[/{id}]Asset group management

Asset APIs are free of charge (auth + rate limits only); they do not create billing records.

FAQ

Q: How long does moderation take?
Images usually seconds; video and real-person assets may take minutes. Poll the task id until a terminal status.

Q: Moderation failed with no clear reason?
Some failures omit a detailed reason (often a transient fetch failure). The platform already retries once; if it still fails, change the URL (ensure it is publicly downloadable) and resubmit.

Q: Same asset for both 2.0 and 2.5 — upload twice?
No. Upload once; asset:// works for both generations. Cross-channel / cross-model sync is handled by the platform.

Q: Can I pass a real-person face as a raw URL?
Real-person assets must go through the library first.

Billing

These rules apply to normal generation and drafts. For final videos rendered from drafts, see Draft mode billing.

  • Billed by seconds × resolution tier.
  • With reference video input: billable seconds = total input video duration (≤30s) + output duration, at the input-reference rate tier.
  • duration = -1 (auto): pre-charge at the 30s cap; settle to actual output after completion.
  • Omit duration: generate and bill 5 seconds.
  • Failed jobs or content moderation blocks: full refund (charge only on successful output).

4K is reserved at the selected resolution tier and settled using actual token usage. Reference-video input determines whether the standard or input-reference tier applies. Automatic duration still reserves 30 output seconds. See the pricing page for current rates.

Draft mode

Generate a 480p draft to review the visuals, then use its task ID to generate a 1080p / 4k final video. The final video reuses the draft’s prompt, reference media, duration, aspect ratio, seed, audio setting, and task type to align with the draft.

Step 1: Generate a 480p draft

Add "draft": true to a normal generation request. Media and task-type constraints remain unchanged. resolution must be 480p, also used when omitted; any other resolution, including 4k, returns HTTP 400.

bash
curl -X POST 'https://api.apisea.ai/v1/videos/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance-2.5",
    "prompt": "A fox sits on the grass as the camera slowly pulls back and a breeze moves its fur",
    "image_urls": ["https://example.com/reference.png"],
    "duration": 5,
    "size": "16:9",
    "draft": true
  }'

Read the draft task ID from data[0].task_id. Poll task status and submit the final video only after data.status becomes completed.

bash
curl 'https://api.apisea.ai/v1/tasks/task_01KZEVX5R6DM5K9T698P1SDKCR' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Poll every 5–15 seconds. pending means queued, processing means generating, completed means successful, and failed means failed. Video URLs are in the data.result.videos[].url array; read url[0].

Step 2: Generate a 1080p / 4k final video

Set draft_task_id to the ID returned in step 1. Choose 1080p / 4k for resolution, or omit it for the default 1080p. This example requests a 4K final video:

Warning

Rendering a 4K final video requires the original draft’s channel to support 4K. Otherwise submission returns HTTP 400 without creating a task or charging. Keep the same draft_task_id and resubmit with resolution: "1080p".

bash
curl -X POST 'https://api.apisea.ai/v1/videos/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance-2.5",
    "draft_task_id": "task_01KZEVX5R6DM5K9T698P1SDKCR",
    "resolution": "4k",
    "output_format": "mov",
    "return_last_frame": true,
    "watermark": false
  }'

The final video returns a new task ID. Query its result with GET /v1/tasks/{task_id}.

The following fields are inherited from the draft. Do not resend them: even identical values return 400:

prompt, image_urls, image_with_roles, video_urls, audio_urls, duration, size, aspect_ratio, seed, generate_audio, audio, omni_reference_task_type, generation_type, camerafixed, web_search, tools.

You may adjust these output options:

ParameterDescription
resolutionsupports 1080p / 4k; it defaults to 1080p when omitted
output_formatmp4 (default) or mov
return_last_frameReturn a last-frame image; omission uses the model default, not the draft setting
watermarkAdd a watermark; omission uses the model default, not the draft setting

Warning

draft: true and draft_task_id are mutually exclusive. Neither drafts nor final videos support service_tier.

Drafts expire 3 days after creation. A missing task, a task owned by another user, an incomplete or non-draft task, or an expired draft returns 400 on final-video submission, without creating a task or charging.

The final video must use the same route that generated the draft; the service associates it automatically. If that route is temporarily unavailable, submission returns 400. Retry later with the same draft_task_id.

An unexpired draft can generate multiple final videos. Each is an independent task billed separately.

Draft mode billing

Drafts are billed as normal 480p videos. Reference-video input duration is included as usual, up to 30 seconds in total.

Final videos are billed at the requested 1080p / 4k tier. If step 1 included original reference videos, use 1080P-input / 4K-input respectively; otherwise use 1080P / 4K. Settlement uses the corresponding token unit price.

Billable input seconds for the final video come from the original reference videos in step 1, up to 30 seconds in total. The generated Draft video itself is not counted as video input. The final-video POST still references draft_task_id; do not resend reference media or other inherited fields. Not resending media does not remove the original reference-video duration from billing.

For example, if step 1 requested 11 seconds of output with 22 seconds of original reference videos, estimate final-video tokens using 11 + 22 = 33 seconds and the token unit price for the 1080P-input tier.

This example uses 1080p. For a 4K final video, use the 4K-input tier and its token unit price instead.

Draft duration settingDraft reservationFinal-video reservation
Explicit 4–30 seconds480p for the specified duration, with reference videos counted normallySame output duration plus step 1 original reference-video duration, at the applicable 1080p / 4k tier
duration: -1, or edit with omitted duration normalized to -1Up to 30 seconds of output, with reference videos counted normallyUp to 30 output seconds plus step 1 original reference-video duration, at the applicable 1080p / 4k tier
duration omitted in other cases5 seconds of output, with reference videos counted normally5 output seconds plus step 1 original reference-video duration, at the applicable 1080p / 4k tier

Successful tasks settle against actual token usage, refunding excess reservations or charging any shortfall. Failed tasks are fully refunded. Rates and discounts follow model pricing.

text
Draft tokens = (input video seconds + output seconds) × width × height × 24 ÷ 1024
Estimated final-video tokens = (step 1 original reference-video seconds + final output seconds) × width × height × 24 ÷ 1024

Width and height are the output pixel dimensions of the corresponding task. After success, data.usage.completion_tokens reports the tokens used for settlement.

Request examples

Text-to-video (30s)

json
{
  "model": "seedance-2.5",
  "prompt": "A cinematic 30-second steampunk miniature landscape sequence",
  "size": "16:9",
  "resolution": "720p",
  "duration": 30
}

Text-to-Video (4K)

json
{
  "model": "seedance-2.5",
  "prompt": "A cinematic aerial shot of a mountain lake at sunrise, with detailed reflections.",
  "size": "16:9",
  "resolution": "4k",
  "duration": 5
}

Multimodal reference (image + video + audio)

json
{
  "model": "seedance-2.5",
  "prompt": "Use @视频1 for first-person framing, @音频1 as BGM, first frame is @图片1",
  "image_urls": [
    "https://example.com/pic1.jpg",
    "https://example.com/pic2.jpg"
  ],
  "video_urls": ["https://example.com/ref.mp4"],
  "audio_urls": ["https://example.com/bgm.mp3"],
  "size": "16:9",
  "duration": 11
}

Video edit

json
{
  "model": "seedance-2.5",
  "prompt": "Edit the video: remove all passers-by in @视频1, keep only the main character",
  "video_urls": ["https://example.com/input.mp4"],
  "size": "adaptive",
  "duration": -1,
  "output_format": "mov"
}

First–last frame

json
{
  "model": "seedance-2.5",
  "prompt": "The girl in the image says \"cheese\" to the camera, 360-degree orbit shot",
  "image_with_roles": [
    {"url": "https://example.com/first.jpg", "role": "first_frame"},
    {"url": "https://example.com/last.jpg", "role": "last_frame"}
  ],
  "size": "adaptive",
  "duration": 5
}

Private asset

json
{
  "model": "seedance-2.5",
  "prompt": "A person walking naturally on a city street in sunlight",
  "image_urls": ["asset://cm9xxxxxxxx"],
  "duration": 5,
  "resolution": "720p"
}
json
{
  "model": "seedance-2.5",
  "prompt": "Generate a short tech-news video intro based on the latest information",
  "size": "16:9",
  "resolution": "720p",
  "duration": 8,
  "tools": [{"type": "web_search"}]
}

Common errors

SymptomCause
400 This model only supports 480p, 720p, 1080p, or 4k resolution (got: xxx).Use 480p / 720p / 1080p / 4k; 2k and 2160p are unsupported
400 a video rendered from a draft only supports resolution 1080p or 4k (got: xxx)Final videos only support 1080p / 4k; omission defaults to 1080p
400 the account that created this draft cannot render 4k; a video rendered from this draft only supports resolution 1080p (got: 4k)The original draft cannot render in 4K. Keep draft_task_id and resubmit with resolution: "1080p". HTTP 400 at submission, no task, no charge
400 This model only supports duration 4-30 seconds, or -1duration out of range
400 first_frame/last_frame tasks only support ratio=adaptiveFirst/last-frame job with a fixed aspect ratio
Async failure (edit / extend style message)Prompt classified as edit/extend but size / duration violate that type’s rules
Async failure SensitiveContentDetectedMedia or output failed moderation

Response (submit)

codeinteger

Status code; 200 on success

dataarray

Submit response with status / task_id

Array item

statusstring

Initially submitted

task_idstring

Task ID for status polling

Completed task (GET /v1/tasks/{task_id})

After submit, poll with Get task status. When status is completed, the payload looks like this.

Completed response example

json
{
  "code": 200,
  "data": {
    "id": "task_01KZEWTMH6TG3Z1X2QRP2B9ZG9",
    "status": "completed",
    "progress": 100,
    "created": 1786132648,
    "completed": 1786132748,
    "actual_time": 100,
    "estimated_time": 300,
    "cost": 0.3104,
    "credits_cost": 3.104,
    "usage": {
      "completion_tokens": 38800
    },
    "result": {
      "videos": [
        {
          "url": [
            "https://cdn.example.com/video/…-video_task_01KZEWTMH6TG3Z1X2QRP2B9ZG9.mp4"
          ],
          "expires_at": 1786219148
        }
      ]
    }
  }
}

Completed fields

FieldTypeDescription
data.idstringTask ID
data.statusstringAlways completed when done
data.progressintAlways 100 when done
data.created / data.completedintSubmit / finish time (Unix seconds)
data.actual_timeintElapsed seconds = completed − created
data.estimated_timeintPlatform ETA in seconds (reference only)
data.costfloatActual charge in USD for this job (includes discounts; matches billing logs)
data.credits_costfloatCredits charged = cost × 10
data.usage.completion_tokensintTokens consumed. Settlement: cost = completion_tokens ÷ 10⁶ × token unit price × discount
data.result.videos[].urlstring[]Video URL(s). This is an array — use url[0]. Values are long-lived platform CDN URLs after re-hosting
data.result.videos[].expires_atintExpiry timestamp (kept for compatibility; re-hosted URLs are long-lived)
data.result.videos[].last_frame_urlstringLast-frame image (only if submit used return_last_frame=true)

Notes

  • Failed tasks (status=failed): cost is always 0 (pre-charge fully refunded); reason in data.error.message
  • usage may be missing for a few seconds after completion (settlement lag); query again shortly

Differences from 2.0

Feature2.02.5
Modelseedance-2.0, etc.seedance-2.5
Duration~4–15s4–30s, or -1 auto
Resolution480p / 720p / 1080p / 4k480p / 720p / 1080p / 4k
Reference images≤9≤30
Reference videos≤3, total ~<15s≤10, total ≤30s
Reference audio≤3, total ≤15s≤10, total ≤30s; audio-only OK
Output formatMainly mp4mp4 / mov
Watermark—watermark
Private asset://SupportedShared with the same private APIs

Phản hồi

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KMCGF6BQGN3X28H3KSR50X5T"
    }
  ]
}

Phát hiện lỗi trong tài liệu này? Gửi email đến support@apisea.ai.