TUIWOTUIWO
APIByteDanceSeedance series

Create task

Create an asynchronous video generation task.

Request

POST /ai/api/v3/contents/generations/tasks
Authorization: Bearer <TUIWO_API_TOKEN>
Content-Type: application/json
{
  "model": "<seedance-model-id>",
  "content": [
    {"type": "text", "text": "A calm lake at sunrise, cinematic lighting"}
  ],
  "callback_url": "https://example.com/callback"
}

Parameters

FieldTypeRequiredDescription
modelstringyesModel ID available to the current group
contentarrayyesArk-style content array
resolutionstringnoResolution; supported values depend on the model
durationnumbernoDuration in seconds; range depends on the model
ratiostringnoAspect ratio; support depends on the model
seednumbernoRandom seed
generate_audiobooleannoWhether to generate audio; support depends on the model
callback_urlstringnoTerminal callback URL; must be public HTTPS

Available content types (text, image, video, etc.) depend on the model and service. The Ark structure is compatible, but not every model supports every content type.

Response

{
  "id": "cgt-xxxxxxxx",
  "task_id": "task_xxxxxxxx"
}
  • id is the compatible task ID and may be empty.
  • task_id is the TUIWO platform task ID.
  • Do not assume id exists; use task_id or either ID for queries.

Errors

HTTPcodeDescription
400InvalidParameterInvalid body, missing model or parse failure
401AuthenticationErrorInvalid token
403AccessDeniedInsufficient group/model access
404NotFoundModel not available in this group
409AmbiguousServiceConfigurationMultiple service configurations match
409SubmissionUncertainSubmission result uncertain; query with the returned task_id
429RateLimitExceededToo many requests
503ServiceUnavailableTask service unavailable

Idempotency

Creation uses platform idempotency. Do not create tasks to probe models, because it may incur charges.