Generation callbacks
Seedance API(v3)
Use https://api.tokenlio.ai with your platform Bearer Key and an exact model ID from the current catalog. Official references provide more field details; use the addresses, authentication and examples on this page for your calls.
Optionally include public HTTPS callback_url when creating a task. After terminal confirmation, the platform POSTs the task object to that URL. Without callbacks, use task queries.
Deduplicate by the stable X-Tokenlio-Event-Id header and acknowledge with any2xx response. Delivery uses at most8 backed-off attempts; a lost acknowledgement can cause duplicates. Delivery failure does not change generation or confirmed charges. Query the original task when your application needs to verify the result.
Generation callback_url is a server notification. Person-verification CallbackURL is a browser return address. Do not mix them. Match notifications against your saved task identity and query with the original Key instead of trusting an arbitrary task identity in a received body.
Add the callback to a normal create request
{
"model": "seedance-2.0",
"content": [
{
"type": "text",
"text": "A paper boat on calm water"
}
],
"resolution": "720p",
"duration": 5,
"generate_audio": false,
"callback_url": "https://customer.example/video-events"
}Example task object received by your endpoint
POST /video-events
Content-Type: application/json
X-Tokenlio-Event-Id: EVENT_ID{
"id": "dfc68868-d388-4d83-a173-d44e47a8bec7",
"model": "seedance-2.0",
"status": "succeeded",
"content": {
"video_url": "https://example.com/result.mp4"
},
"usage": {
"completion_tokens": 108900,
"total_tokens": 108900
}
}