Sign inGet API key ↗
Asynchronous Tasks

Connect Image and Video Tasks

Complete American English translation of the archived Orbis article text. Endpoints, route names, fields, timing, and billing behavior describe the source provider, not verified BadAssModel support. Local marketplace links are previews. Running these examples yourself can incur provider charges. This page does not submit tasks, poll endpoints, fetch media, or download files.

Source updated October 20, 2026 · 4 min read

Using Seedance 2.0 as an example, choose a route and key, submit a task, check its status, and download the generated result.

Asynchronous tasks: submit → query using the task ID → download after completion. Successful submission means the task was accepted, not that generation is finished.

An endpoint that returns an image directly is synchronous. Follow this guide only when it returns a task ID first. Use the parameters documented for your selected route.

1. Choose a Route and Prepare Its Key

Open the Seedance 2.0 model page, select the source route Seedance2.0 · Chuangjing Channel T, and click Quick Connect. This is the English rendering of the archived route name, not a new BadAssModel route.

On the right, select or create a key for this route. Do not use a key from another route. See Quickly Create an API Key.

The example model ID is seedance-2.0-pro. Start with a 4-second, 1080p, 16:9 video, then try reference materials. Generation incurs charges; check the route page for prices.

2. Connect Your Project: Choose One Method

Ask an AI Assistant to Integrate It

Select AI Setup → Copy Prompt and give it to your project's AI coding assistant. It should implement task submission, status queries, and result retrieval according to the route documentation.

Read the key from the ORBIS_API_KEY environment variable rather than writing it into source code. Give it only to tools you trust.

Entering a key and changing the model name are not enough. Your application must support task submission and querying.

Write the Integration Yourself

Select Code Setup for complete examples. The following cURL commands are for macOS or Linux. On Windows, copy the Python or Node.js examples from the route documentation.

Set the key, then submit only once:

export ORBIS_API_KEY='REPLACE_WITH_THIS_ROUTES_COMPLETE_KEY'
curl -X POST 'https://api.orbiorbi.com/v1/tasks' \
  -H "Authorization: Bearer $ORBIS_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"seedance-2.0-pro","prompt":"A green leaf gently sways in a light breeze, fixed camera, natural light.","duration_sec":4,"resolution":"1080p","aspect_ratio":"16:9","enable_audio":true}'

The response looks like this. Save the actual id returned for subsequent queries:

{"id":"task_example","status":"queued","progress":0}

3. Query Until Complete, Then Download

Replace TASK_ID with the actual id. Query with the same key used to submit the task:

curl 'https://api.orbiorbi.com/v1/tasks/TASK_ID' \
  -H "Authorization: Bearer $ORBIS_API_KEY"

For this source route, query every 20 seconds until the task completes or fails:

Task status and next steps
StatusWhat to Do
queuedThe task is waiting. Check again later.
in_progressGeneration is underway. Continue querying the same task.
completedGeneration is complete. Read the result URL and stop querying.
failedGeneration failed. Stop querying and retain the task ID for troubleshooting.

After completion, this route's video URL is in metadata.url:

{"id":"task_example","status":"completed","progress":100,"metadata":{"url":"https://example.com/result.mp4"}}

Open the actual URL to download, or replace the URL below and run the command. You do not need to send your Orbis key to the download URL.

curl -L 'REPLACE_WITH_THE_ACTUAL_METADATA_URL' -o result.mp4

A timeout does not mean the task failed. Keep the ID and continue querying. Do not resubmit, because that can create multiple tasks. If submission times out before you receive an ID, check the task records or contact support first.

4. Adapt for Image Tasks or Other Routes

Use the same overall workflow, but recheck these three areas:

  • Endpoints and fields: Follow the target route's documentation. Changing only the example's model name is not enough.
  • Reference materials and specifications: This example uses input_images for reference images, with publicly downloadable URLs. Other routes may use different fields, resolutions, durations, and restrictions.
  • Results and statuses: Images may be returned as URLs or base64, individually or in batches. Follow each route's documentation for whether polling is needed, terminal statuses, and result fields. Not all routes use metadata.url.

Common Issues

Asynchronous task troubleshooting
IssueWhat to Try First
Only an ID is returned, or the task is still queuedKeep querying the same task. If nothing changes for a long time, contact support with the ID.
Invalid key or insufficient permissionsCheck that the key is complete, enabled, and belongs to the selected route.
Invalid parameters or reference materialsCheck the route documentation. Materials must be publicly downloadable; do not use a local file path.
failed or a download failureRetain the task ID, route, and error when contacting support. For a download failure, query again or retry the download first.

For all fields and automatic polling code, see Code Setup or the example route documentation (external source; may not be in English). This article is based on production documentation from October 20, 2026.