Endpoint
Request Headers
| Parameter | Value | Description |
|---|---|---|
| x-api-key | API Key | Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded. |
| Authorization | Bearer {token} | Your API Key used for request authorization.Get Token |
Body Attributes
| Parameter | Type | Required | Description |
|---|---|---|---|
| _ids | String | true | Multiple IDs separated by commas |
Response Attributes
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Interface returns business status code (1000:success) |
| msg | String | Interface returns status information |
| data | Object | Response data object |
| - result | Array | Array of result objects |
| — _id | String | Document ID |
| — create_time | Long | Creation timestamp |
| — uid | Integer | User ID |
| — team_id | String | Team ID |
| — update_time | Long | Last update time/completion time |
| — video_duration | Number | Actual video duration |
| — webhookUrl | String | Callback URL |
| — file_name | String | File name |
| — effect_name | String | Effect name |
| — image_url | String | Image URL |
| — prompt | String | Prompt text |
| — resolution | String | Resolution |
| — audio_type | Integer | Audio type |
| — audio_url | String | Audio URL |
| — deduction_credit | Integer | Actual credits deducted |
| — effect_code | String | Effect code |
| — video_url | String | Generated video URL |
| — status | Integer | Status: 1=queueing, 2=processing, 3=completed, 4=failed |
| — only_add_audio | Boolean | Whether only audio was added |
Example
Request Body
Request
Response
Queueing Status (status = 1)
Completed Status (status = 3)
Video Status
| Status | Description |
|---|---|
| 1 | In Queue - Your request is waiting to be processed |
| 2 | Processing - Video is currently being generated |
| 3 | Success - Video completed, result URL is available in the video_url field |
| 4 | Failed - Video generation failed, check your input resources |
Important Notes
- Use the
_idvalues from the Create Image to Video or Create Batch Image to Video response as the_idsparameter - You can query multiple video results at once by separating IDs with commas
- Poll this endpoint periodically to check the video generation status
- When
statusis 3 (Success), thevideo_urlfield will contain the URL of the generated video - Generated videos are valid for 7 days, download and save them promptly
- If a webhook URL was provided during creation, you will receive a callback when the task completes (no need to poll)