Prepare your account
Create an API key, fund your wallet, and review current prices. Each successful generation is billable. You need curl and Python 3; no provider SDK is required. SetGENGEN_API_KEY in your local environment. Keep the key on your backend and out of browser code, source control and shared logs.
Choose one request
Save one of these examples asrequest.json. The examples use no input media, so you can first verify your task lifecycle without hosting reference files.
- Seedance 2.5
- Wan 3.0 Spicy
request.json
Submit once and save the response
id. Keep task.json: it contains the ID needed to resume polling. Do not rerun the creation command to check progress. If the POST times out or its outcome is unclear, check Dashboard task logs or contact support before creating another paid task.
Poll and download
Save this aspoll_video.py and run python3 poll_video.py. It resumes the ID in task.json, retries only temporary GET failures, and never creates another generation task. The 30-minute polling limit is a client timeout, not a provider completion guarantee; you can resume polling later with the same file.
poll_video.py
Handle failures before retrying
For assistance, include the task ID, model ID and error code, without your API key. See provider troubleshooting and support.