Skip to main content

Endpoint

GET https://routerbase.kuaibaike.com/api/v1/run/tasks/{task_id}

Request Headers

HeaderValue
AuthorizationBearer YOUR_API_KEY

Response

{
  "task_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "status": "success",
  "result_urls": [
    "https://routerbase.kuaibaike.com/results/f47ac10b.mp4"
  ],
  "error_message": null,
  "created_at": "2025-01-15T10:30:00Z"
}
task_id
string
The task identifier returned when you submitted the request.
status
string
Current status: waiting, generating, success, or fail.
result_urls
string[]
One or more URLs for the generated output. Populated when status is success. Media files are available for 14 days.
error_message
string
Human-readable error description. Populated when status is fail.
created_at
string
ISO 8601 timestamp when the task was created.

Example

curl https://routerbase.kuaibaike.com/api/v1/run/tasks/f47ac10b-58cc-4372-a567-0e02b2c3d479 \
  -H "Authorization: Bearer sk-t0-xxxxxxxxxxxx"

Status Reference

StatusMeaning
waitingTask is queued
generatingModel is actively producing output
successGeneration complete — result_urls is populated
failGeneration failed — check error_message
For video and image tasks, generating may last 1–5 minutes. Poll every 3 seconds to avoid excessive API calls.