Skip to main content
POST

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <API Key>. Create API Keys in the DreamTo console; all Keys of an account share the asset library.

Body

application/json

Only the fields below are accepted; any other field returns 400 "unsupported parameter: xxx".

model
enum<string>
default:seedance-2.5-flash
required

Required: seedance-2.5-flash. Returns 404 if the model is not enabled for your account.

Available options:
seedance-2.5-flash
Example:

"seedance-2.5-flash"

content
(Text · object | Image · object | Video · object | Audio · object)[]
required

Required. At least one text prompt, plus optional reference images / videos / audios.

  • Media: public http(s) URLs, asset://<asset Id> or Base64 data:<kind>/<format>;base64,<data> (up to 45 MB each after decoding, 64 MB for the whole request body)
  • Refer to media in the prompt by order: "image 1", "video 1", "audio 1"
  • Limits for this model: 10 images, 5 videos, 5 audios; exceeding them fails the task
  • A reference video means video editing / extension

A missing content or no text item returns 400.

Minimum array length: 1

Text prompt. At least one is required in content.

ratio
enum<string>
default:adaptive

Output aspect ratio, default adaptive. With a first / last frame image the output follows the image.

Allowed values:

  • adaptive: Adaptive (default): follows the reference image/video ratio, or lets the model choose for text-only prompts
  • 16:9: Landscape widescreen, for desktop, TV and most video platforms
  • 9:16: Portrait, for short-video apps and full-screen mobile
  • 1:1: Square, for social feeds and avatar-style content
  • 4:3: Classic landscape ratio
  • 3:4: Portrait ratio, for people and product shots
  • 21:9: Ultra-wide cinematic
Available options:
adaptive,
16:9,
9:16,
1:1,
4:3,
3:4,
21:9
duration
enum<integer>
default:-1

Video duration in seconds, -1 (smart duration) when omitted.

  • Integer 4–30: generate exactly that many seconds
  • -1: smart duration, the model picks 4–30 s and you are billed for actual usage; the actual length is returned as duration when querying
  • Decimals, strings or out-of-range values: 400 "duration must be an integer from 4 to 30 seconds, or -1 (smart duration)"
Available options:
-1,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
resolution
enum<string>
default:720p

Output resolution, default 720p; this model supports 480p / 720p. Higher resolutions take longer and cost more. Other values return 400 "resolution must be one of: 480p, 720p".

Allowed values:

  • 480p: SD; fastest and cheapest, good for previews and quick iteration
  • 720p: HD (default); balanced quality and speed
Available options:
480p,
720p
generate_audio
boolean
default:true

Generate audio (effects, music, voice), default true; false outputs a silent video.

output_format
enum<string>

Output container format, default mp4.

Allowed values:

  • mp4: MP4 (default), the most compatible
  • mov: QuickTime MOV, convenient for editing software
Available options:
mp4,
mov
watermark
boolean
default:false

Add a watermark, default false.

seed
integer<int64>

Random seed. The same seed and parameters usually give similar results, which helps reproduction; not guaranteed identical.

return_last_frame
boolean

Return the last frame. When true, a succeeded task returns content.last_frame_url, usable as the next clip's first frame.

callback_url
string<uri>

Callback URL (http(s)) notified when the task ends. See Task callback.

tools
object[]

Tools to enable. Only web search is supported: [{"type": "web_search"}].

priority
integer<int64>

Task priority (integer), scheduled by the model side.

service_tier
string

Service tier, decided by the model side.

execution_expires_after
integer<int64>

Execution timeout in seconds; tasks still unfinished may be stopped.

safety_identifier
string

End-user identifier for content-safety review. Send a hashed user ID, never plain personal data.

omni_reference_task_type
enum<string>

Reference task type; derived from content when omitted. edit / extend need a reference video in content. Case-sensitive; other values return 400 "omni_reference_task_type must be one of: auto, reference, edit, extend".

Allowed values:

  • auto: Auto: derived from the media in content
  • reference: Reference: generate a new video from the reference media
  • edit: Edit: change the content of the reference video; needs a reference video
  • extend: Extend: continue the reference video; needs a reference video
Available options:
auto,
reference,
edit,
extend

Response

Success

Successful creation response.

id
string
required

Task ID, prefixed with task_. Use it to query the task; the callback taskId carries the same value.

Example:

"task_8c1d2e3f4a5b6c7d8e9f0a1b"

request_id
string
required

ID of this request (prefixed with req_), same as the X-Request-Id header. Include it and the task id when contacting support.

Example:

"req_3f9a1c2b7d4e5f60718293a4"