Skip to main content
POST
Create Video Generation Task

Callback payload examples

AnyFast sends the task result to callback_url as a POST request body.
In a failure callback, code: "success" means the task result was returned successfully. Check data.status for the video generation outcome.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Model ID. For specific content requests, select seedance-2.0-mini-nsfw under the Direct resource group.

Available options:
seedance-2.0-mini,
seedance-2.0-mini-nsfw
Example:

"seedance-2.0-mini"

content
object[]
required

Input content array for video generation. Supports text, images, videos, and audio in various combinations:

  • Text only
  • Text (optional) + Image(s)
  • Text (optional) + Video(s)
  • Text (optional) + Image + Audio
  • Text (optional) + Image + Video
  • Text (optional) + Video + Audio
  • Text (optional) + Image + Video + Audio
Example:
callback_url
string<uri>

Public HTTP(S) endpoint for task notifications. AnyFast sends a POST callback when the task reaches SUCCESS or FAILURE. The callback body matches the task result returned by GET /v1/video/generations/{id}.

Example:

"https://example.com/webhooks/seedance"

generate_audio
boolean
default:true

Generate synchronized audio with the video.

  • true — Video includes auto-generated voice, sound effects, and background music
  • false — Silent video
resolution
enum<string>
default:720p

Output video resolution. Seedance 2.0 Mini does not support 1080p.

Available options:
480p,
720p
ratio
enum<string>
default:adaptive

Output aspect ratio. adaptive automatically selects the best ratio based on input.

Available options:
16:9,
4:3,
1:1,
3:4,
9:16,
21:9,
adaptive
duration
integer
default:5

Video duration in seconds (integer, 4–15).

Required range: 4 <= x <= 15
tools
object[]

Tools for the model to use. Currently supports web search (text-to-video only).

watermark
boolean
default:false

Add watermark to the generated video.

Response

Video generation task created

id
string

Task ID for polling

Example:

"cgt-20260312231129-7db6s"

task_id
string

Task ID (same as id)

Example:

"cgt-20260312231129-7db6s"

object
string
Example:

"video"

model
string
Example:

"seedance-2.0-mini"

status
string

Initially empty

Example:

""

progress
integer
Example:

0

created_at
integer

Unix timestamp

Example:

1773328294