Skip to main content
POST
Create video
Use a production DGrid Model API Key with model access and enough available balance for the estimated cost. The following parameters describe Seedance 2.5. See the video generation guide for credential setup and a complete walkthrough.

Seedance 2.5 request parameters

Save this example as request.json.
Send the body as application/json with a Bearer token. Set a unique Idempotency-Key for each new logical task. Submitting the request may incur charges.
HTTP 202 means DGrid accepted the task and reserved the estimated cost. Save id to query the task. This response uses illustrative values.

Reference media

On the BytePlus Seedance channel, add media items to the content array alongside the text prompt. Use each upload’s complete HTTPS URL, or provide a server-accessible HTTPS link. External reference videos must be direct MP4 links with readable duration and HTTP Range support.
After an asset submitted through DGrid by the same user reaches Active, you can use asset://<IMAGE_ASSET_ID> in image_url.url or asset://<VIDEO_ASSET_ID> in video_url.url. DGrid checks the official review status before reserving the estimated cost and again before submitting the generation request upstream. An Active asset can still be referenced after its signed upload link expires. Model input and content requirements still apply. See Upload reference asset.

Idempotency and errors

If a creation request times out or returns a temporary 503 before you receive a task ID, retry with the same API key, idempotency key, and request body. Any change to the body, including a signed URL, may cause a conflict. If acceptance is still uncertain, check or recover the original request before making a new one. If you already have the task ID, query that task. Check the HTTP status first. Error details can appear as an error string or an error.code field. A gateway error can have a non-JSON body.

Authorizations

Authorization
string
header
required

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

Headers

Idempotency-Key
string

Use a unique key for a new task. Reuse that key with the same request body if you retry.

Body

application/json
model
string
required

Video model ID. The documented request format applies to Seedance 2.5.

Example:

"bytedance/seedance-2.5"

content
object[]
required

Text prompt and optional reference media.

duration
integer
required

Duration in seconds. The maximum depends on the supported input combination.

Required range: 1 <= x <= 30
Example:

5

resolution
string
required

Output resolution. Available settings depend on the model and channel.

Example:

"720p"

ratio
string

Output aspect ratio.

Example:

"16:9"

generate_audio
boolean

Whether to generate audio.

watermark
boolean

Whether to include a watermark.

seed
integer

Seed value.

Response

Video task accepted.

id
string<uuid>

DGrid video task ID.

model
string

Model used for the task.

status
string

Video task status.

settlement_status
string

Billing settlement status.

estimated_amount
string

Estimated cost in USD as a decimal string.

created_at
string<date-time>

Task creation timestamp.