[API]: Bug: video_id equals task_id in video creation response — polling fails
Model
agnes-2.5-flash
Endpoint
/v1/videos
SDK or client
Nodejs fetch
Minimal sanitized request
POST : https://apihub.agnes-ai.com/v1/videos
PAYLOAD :
{
"model": "agnes-video-2.5-flash",
"prompt": "my prompt",
"seconds": "5",
"mode": "text",
"size": "720P",
"aspect_ratio": "9:16"
}
Error response
Response success but the video_id is not valid, it's the same as task_id
{
"id": "task_hXJPax...",
"video_id": "task_hXJPax...",
"task_id": "task_hXJPax...",
"object": "video",
"model": "agnes-video-2.5-flash",
"status": "queued",
"progress": 0,
"created_at": 1793301347,
"seconds": "5",
"size": "720P",
"quality": "standard"
}
Expected behavior
Receiving the real video_id to be able to make poll requests to get the status and get the final video.
Actual behavior
Receiving a video_id equal to task_id making poll request responding pending indefinitely and being unable to get my generated video while my limits are well removed from my account, so the video generation seems to be working.
Is this reproducible?
Yes
Hello, you can use the video_id returned by the API to check the task status. If the status is pending, the video task is not yet complete and may still be waiting in the queue. Please try checking again later.
Hello,ok it finally worked but the video_id is still always the same as task_id while your documentation says it should be a different id. Thank you for your response.