Seedance video generation (ZLHub)
This guide applies to ZLHub Seedance groups on the Mainland China and Global sites. Creating a task returns a task ID. Use the same API key to check its status and retrieve the video URL.
1. Choose a site, group, and model
Create an API key and select a Seedance group on the site you use. Send requests to that site's base URL. The key and account balance belong to that site.
| Site | API base URL | Billing currency |
|---|---|---|
| Mainland China | https://sidrune.ai | Chinese yuan (CNY) |
| Global | https://fluxionai.world | US dollars (USD) |
| Model | Request model | Resolutions | Fixed duration |
|---|---|---|---|
| Seedance 2.0 | doubao-seedance-2-0-260128 | 480p, 720p, 1080p, 4k | 4–15 seconds |
| Seedance 2.0 Fast | doubao-seedance-2-0-fast-260128 | 480p, 720p | 4–15 seconds |
| Seedance 2.0 Mini | doubao-seedance-2-0-mini-260615 | 480p, 720p | 4–15 seconds |
| Seedance 2.5 | doubao-seedance-2-5-260628 | 480p, 720p, 1080p, 4k | 4–30 seconds |
The Mainland China public catalog lists all four models. The Global public catalog lists 2.0 and 2.5. Your key's group determines which models you can call. Set SIDRUNE_API_KEY to the key you created on the site, then use GET /v1/models to check.
export SIDRUNE_BASE_URL=https://fluxionai.world
# For Mainland China, set the URL above to https://sidrune.ai
curl --fail-with-body --silent --show-error \
"${SIDRUNE_BASE_URL}/v1/models" \
-H "Authorization: Bearer ${SIDRUNE_API_KEY}"2. Create a video task
Save the following text-to-video request as request.json. It creates a five-second 480p video with Seedance 2.5.
{
"model": "doubao-seedance-2-5-260628",
"content": [
{"type": "text", "text": "A paper boat drifts down a creek as the camera tracks it just above the water."}
],
"resolution": "480p",
"duration": 5,
"ratio": "16:9",
"generate_audio": true
}curl --fail-with-body --silent --show-error \
"${SIDRUNE_BASE_URL}/api/v3/contents/generations/tasks" \
-H "Authorization: Bearer ${SIDRUNE_API_KEY}" \
-H 'Content-Type: application/json' \
--data-binary @request.jsonA successful submission returns JSON such as {"id":"example-task-id"}. Save the returned id for the status query.
| Field | Usage |
|---|---|
model | Required. Use a model ID enabled for your key's group. |
content | Required. An array of text or media reference entries. |
resolution | Defaults to 720p. See the model table for supported values. |
duration | Output duration in whole seconds. The 2.0 family defaults to 5 seconds. For 2.5, pass -1 or omit the field to let the model choose. |
ratio | Output aspect ratio, for example 16:9 or 9:16. |
generate_audio | Boolean. Set it explicitly to true to request generated audio. |
Use a reference image or video
Add either of the following entries after the text entry in content. Replace the example URL with a direct HTTPS link that the service can download. Keep the link valid while the task runs.
Reference image entry
{
"type": "image_url",
"role": "reference_image",
"image_url": {"url": "https://example.com/reference.jpg"}
}Reference video entry
{
"type": "video_url",
"role": "reference_video",
"video_url": {"url": "https://example.com/reference.mp4"}
}ZLHub groups accept direct HTTPS media links. The Asset API, asset:// references, Draft mode, callbacks, and task cancellation are unavailable for these groups.
3. Check status and download
Set TASK_ID to the ID from the create response. Wait about 60 seconds before the first check, then poll about once per minute.
TASK_ID='example-task-id'
curl --fail-with-body --silent --show-error \
"${SIDRUNE_BASE_URL}/api/v3/contents/generations/tasks/${TASK_ID}" \
-H "Authorization: Bearer ${SIDRUNE_API_KEY}"queued/runningmeans the task is still in progress. Keep querying with the same ID.- When the status is
succeeded, readcontent.video_urland download the video promptly. - If the status is
failed, check the returned error. Share the task ID and error code if you contact support. - If submission times out before returning an ID, save the error response or request reference and contact support. Resubmitting may create a duplicate task.
4. Billing holds, charges, and errors
Submitting a task reserves part of your available balance and API key quota. A fixed duration makes the hold easier to estimate. With automatic duration, the hold uses the group's configured maximum output duration. A reference video can also add a hold based on the maximum input duration.
The final charge uses actual output tokens and the applicable group price. Unused funds are released on settlement. Rates are listed per million output tokens and can vary by model, resolution, input type, and group. Check current rates in Model Plaza and the final charge in your account's billing history. Mainland China Model Plaza · Global Model Plaza
| Error code | What to check |
|---|---|
UNSUPPORTED_VIDEO_SPEC | Check that the model belongs to your key's group and that the resolution, duration, and reference media combination has a pricing rule. |
VIDEO_KEY_QUOTA_EXCEEDED | Check whether your key has enough remaining quota to cover the hold. |
VIDEO_NOT_SUBMITTED | The task was never dispatched and the hold was released. You can submit again after service recovers. |
