Use this checklist before putting Seedance 2 video generation into a user-facing product.
- Store
POYO_API_KEYin server-side environment variables. - Never send the key to browser code or mobile clients.
- Do not print
Authorizationheaders in logs.
- Persist
data.task_idimmediately after submit. - Treat
finishedandfailedas terminal states. - Store the selected model, user ID, request time, and final status together.
- Poll with a moderate interval, such as 5 to 10 seconds.
- Add a timeout in your application.
- Reconcile important webhook callbacks with the status endpoint.
- Verify that the callback
task_idbelongs to a task your system submitted. - Return 2xx quickly.
- Make duplicate callbacks safe.
- Replace demo in-memory state with your database.
- Download generated files before they expire.
- Copy production assets to your own storage.
- Avoid logging private media URLs when they contain customer content.