Task Status & Polling
Poll async job results or use webhooks for video, image, and music generation
Async jobs (video, image, music) return a taskId. Poll or use webhook:
GET https://aimarcusimage.eu/api/v1/jobs/recordInfo?taskId=...
Polling interval: 3–5 seconds. Max task duration: ~10 minutes for video, ~60 seconds for image.
Webhook: add callBackUrl to the create-task body, at the top level next to model and input (not inside input; the snake_case callback_url is ignored). When the task succeeds or fails, a JSON POST arrives at that URL with data.taskId and data.state. Treat it as a signal only: fetch the result from recordInfo with your own key before you use it.
{
"model": "google-google-veo-3-1-text-to-video-fast-1080p",
"callBackUrl": "https://your-app.com/ai-callback",
"input": { "prompt": "a golden retriever running through autumn leaves", "aspect_ratio": "16:9" }
}