Blue Whale APIBlue Whale API
Video Generation API

Draft Mode (Seedance 2.5)

Generate a 480p draft to check framing and pacing, then finalize it to 1080p

Seedance 2.5 (doubao-seedance-2-5-260628) supports draft mode: generate a cheap 480p preview to check framing and pacing, then finalize it into a 1080p video once you are happy with it.

The two steps are two independent tasks, each billed and queried separately, each with its own task_id:

StepRequestResult
1. Submit draftPOST /v1/video/generations with metadata.draft: true480p draft task
2. PollGET /v1/video/generations/{task_id}Draft result
3. FinalizePOST /v1/videos/{task_id}/finalize1080p final task (new task_id)

⚠️ The finalize endpoint exists only at /v1/videos/{task_id}/finalize. Submitting the draft works on both /v1/video/generations and /v1/videos, but step 3 must use /v1/videos/.


Step 1: Submit a Draft

Add metadata.draft: true to a normal submit request.

FormWorks
metadata.draft: true✅ Recommended
Top-level draft: true✅ Equivalent
The string "true"✅ Equivalent (case-insensitive, surrounding whitespace trimmed)

The gateway forces resolution to 480p — do not send it yourself:

resolution valueResult
Omitted✅ Upstream receives 480p
480p✅ Upstream receives 480p
720p / 1080p / 4k❌ 400 invalid_resolution

A non-480p value is rejected outright rather than silently rewritten to 480p — a silent rewrite would leave you believing you had a high-resolution preview. The rejection happens before any pre-charge, so it costs nothing.

All other parameters (prompt / seconds / ratio / content, etc.) behave exactly as in a normal submit, including how to pass duration.

BASE_URL="https://api.yunjizi.cn"   # in China use https://yunjizi.cn

curl "$BASE_URL/v1/video/generations" \
  -H "Authorization: Bearer sk-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-2-5-260628",
    "prompt": "An orange tabby stretching on a windowsill, raking sunlight, shallow depth of field",
    "seconds": "4",
    "metadata": {
      "draft": true,
      "ratio": "16:9"
    }
  }'

The response is identical to a normal submit. Note the task_id.


Step 2: Poll the Draft

curl "$BASE_URL/v1/video/generations/$TASK_ID" \
  -H "Authorization: Bearer sk-YOUR-KEY"

The draft must reach a successful status before you can finalize. Otherwise the finalize endpoint returns 409 origin_task_not_finished.


Step 3: Finalize

Set task_id to the draft's task_id:

curl -X POST "$BASE_URL/v1/videos/$TASK_ID/finalize" \
  -H "Authorization: Bearer sk-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
  • The body may be empty, or -d '{}'.
  • Do not send model: the channel and model are locked to the ones used for the draft.
  • prompt / seconds / ratio / content / seed neither need to be sent nor can be sent — the final inherits the draft's prompt, duration and aspect ratio. Included values are ignored, not rejected.

The response contains a new task_id. That is a second, independent task: poll it via Query a Task to get the 1080p result.

Accepted fields in the finalize body

All optional. resolution may only be omitted or 1080p:

FieldTypeDescription
resolutionstringOmit or 1080p only; anything else returns 400 invalid_resolution
watermarkboolWatermark
return_last_frameboolReturn the last frame
output_formatstringContainer (mp4 / mov)
service_tierstringService tier
execution_expires_afterintExecution timeout
priorityintPriority
callback_urlstringWebhook URL
safety_identifierstringSafety identifier

Ark-Compatible Mode (Volcengine Native Protocol)

The same two-step flow is available on the Ark-compatible video endpoints, expressed in the official request shape (see Submit a Task — Ark-Compatible Mode). Both steps are ordinary task submissions; poll them with GET /api/v3/contents/generations/tasks/{id}.

Step 1: create the draft

BASE_URL="https://api.yunjizi.cn"

curl "$BASE_URL/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer sk-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-5-260628",
    "content": [{"type": "text", "text": "An orange tabby stretching on a windowsill, raking sunlight, shallow depth of field"}],
    "draft": true
  }'
# {"id":"task_draft_xxx"}
FieldBehaviour
draftSet true to enable draft mode
resolutionMay be omitted or 480p; any other value returns 400 invalid_resolution
ModelSeedance 2.5 only. Any other model with draft: true returns 400 invalid_draft_model
Other fieldsSame as a normal Ark-compatible submit (duration, ratio, generate_audio, content[], ...)

Step 2: finalize

Submit a second task whose only content is a reference to the draft:

curl -X POST "$BASE_URL/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer sk-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-5-260628",
    "content": [{"type": "draft_task", "draft_task": {"id": "task_draft_xxx"}}]
  }'
# {"id":"task_final_xxx"}
  • draft_task.id is the gateway task id returned in step 1 (never an upstream id).
  • The final is fixed at 1080p; resolution, duration and seed sent with this request are ignored, and the prompt / duration / aspect ratio are inherited from the draft.
  • Only output-spec fields (output_format, watermark, return_last_frame, service_tier, execution_expires_after, priority, callback_url, safety_identifier) may be set on the finalize request.
  • The response is a new task id — a second, independent, separately billed task.

Constraints

ConstraintDetail
Draft is 480p onlySee the table above
Final is locked to 1080pSet by the gateway; clients cannot change it
Draft valid for 7 daysCounted from submit time, not completion time. Past that: 400 origin_draft_expired
Must be your own taskSomeone else's task_id returns 400 task_not_exist
Finalize is not idempotentCalling it twice on the same draft produces two finals and two charges. Call it once
Seedance 2.5 onlySeedance 2.0 / fast / mini have no draft mode and are not supported by this channel

Errors

codeHTTPMeaning
invalid_resolution400Draft sent a non-480p resolution, or finalize sent a non-1080p one
task_not_exist400task_id does not exist or is not yours
origin_not_draft400The target task is a normal task, not a draft, so it cannot be finalized
origin_task_not_finished409The draft has not finished generating
origin_draft_expired400The draft was submitted more than 7 days ago
origin_upstream_id_missing400The draft is missing its upstream task ID (legacy data)