Skip to main content
GET
Get task

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.

Path Parameters

id
string
required

Task ID, the id returned at creation (prefixed with task_). A missing or foreign task returns 404 not_found.

Example:

"task_8c1d2e3f4a5b6c7d8e9f0a1b"

Response

Success

Get-task response: the task object plus the request_id of this request.

id
string
required

Task ID (prefixed with task_).

Example:

"task_8c1d2e3f4a5b6c7d8e9f0a1b"

model
string
required

The model given at creation, echoed unchanged.

Example:

"seedance-2.0"

status
enum<string>
required

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
Available options:
running,
succeeded,
failed
created_at
integer<int64>
required

Task creation time, Unix timestamp in seconds.

Example:

1794384000

updated_at
integer<int64>
required

Last update time, Unix timestamp in seconds.

Example:

1794384196

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_b2c4d6e8f0a1b3c5d7e9f1a2"

content
object

Generated output, present only when succeeded.

error
object

Failure details, present only when failed.

duration
integer<int64>

Actual duration of the generated video in seconds. Authoritative when the request used duration: -1 (smart duration).

frames_per_second
integer<int64>

Frame rate (FPS) of the generated video.

ratio
string

Actual aspect ratio of the generated video, e.g. 16:9.

resolution
string

Resolution of the generated video, e.g. 720p.

seed
integer<int64>

Seed actually used; pass it as seed in a new task to reproduce a similar result.

generate_audio
boolean

Whether audio was generated.

output_format
string

Output container format, e.g. mp4.

service_tier
string

Service tier actually used (when reported by the model side).

priority
integer<int64>

Task priority (when reported by the model side).

execution_expires_after
integer<int64>

Execution timeout in seconds (when reported by the model side).

usage
object

Token usage, present once the task has been metered.