Request conventions
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.
Authenticate with Authorization: Bearer $TOKENLIO_API_KEY. POST uses Content-Type: application/json. Access follows the current Workspace and Key.
Generation uses lowercase fields; material and verification Actions use PascalCase. Material Version is optional and defaults to 2024-01-01; read Actions also use POST. Generation JSON is limited to 64 MiB, including encoded Base64. Material/verification bodies are limited to 32 KiB. See models and inputs for media support.
Fix optional Idempotency-Key before the first mutation. Retry the same intent with the original parameters and key; use a new key only for a new intent or target. POSTs without a key are independent. A client timeout is not a reason to automatically create again.
| Method | Path | Description |
|---|---|---|
POST | /api/v3/contents/generations/tasks | Create a video task |
GET | /api/v3/contents/generations/tasks/{id} | Query a video task |
GET | /api/v3/contents/generations/tasks | List tasks |
DELETE | /api/v3/contents/generations/tasks/{id} | Cancel a queued task or delete a finished task record |
POST | /?Action={Action}&Version=2024-01-01 | Material and person-verification Actions |
GET | /api/v3/assets/operations/{operation_id} | Recover an unknown material mutation |
POST | /api/v3/assets?Action={Action} | Manage material groups and assets |
Access and sharing
Task queries and lists use the current Workspace and platform Key's access scope. Another Key in the same Workspace does not thereby list this Key's tasks.
Materials are shared management resources within a Workspace. Keys with the corresponding material access can manage the shared library; it is not private to each member or Key. Different Workspaces are not mutually visible. ProjectName organizes and filters projects, not end-user authorization. Sharing one Key among end users does not isolate those users.
Material-management visibility and permission to use an asset:// generation reference are distinct. Use materials you are authorized to use; the actual response determines whether a generation reference is usable.
Identifiers and their next use
| ID | Next steps |
|---|---|
model | Public model ID from the current catalog |
id | Task UUID from creation; used by queries, cancel/delete and draft references |
Result.Id | Opaque material/group ID for the corresponding Action body |
BytedToken | Opaque session token used only to query this verification |
Result.GroupId | Verified group ID used as CreateAsset GroupId |
X-Tokenlio-Operation-Id | Platform operation UUID for material-mutation recovery |
ResponseMetadata.RequestId | Diagnostic request ID, not a task, asset or operation ID |
