When the 4K video generation task completes, the system will notify you of the results through callback mechanism.
Callback Configuration
Configure the callback URL when requesting 4K video generation:Callback Format
When 4K video generation completes, the system will send a POST request to your configured callback URL with the following format:Callback Field Descriptions
| Field | Type | Description |
|---|---|---|
code | integer | Status code, 200 indicates success, 500 indicates failure |
msg | string | Status message, success shows “Success”, failure shows error message |
data | object | null | Task result data when successful, null when failed |
data.taskId | string | Task ID |
data.resultUrls | array | Generated 4K video URL array |
data.mediaIds | array | Media ID array |
data.imageUrls | array | Related image URL array |
Callback Handling
1
Verify Callback
Check the
code field to confirm generation success2
Extract Results
Retrieve the generated 4K video download address from
data.result_urls3
Process Media
Use
mediaIds for media management and tracking4
Respond to Callback
Your server should return a 200 status code to confirm callback receipt
Error Handling
If errors occur during 4K video generation, the callback will return an error status code with the corresponding error message. Currently supported error cases include:- 500: 4K version unavailable - “The 4K version of this video is unavailable. Please try a different video.”
Best Practices
Alternative Solutions
If you cannot use the callback mechanism, you can also use polling:Poll Query Results
Use the Get Video Details endpoint to periodically query 4K video generation task status.
