🔍 Querying product list: category=image_to_video
✅ Model found:
   name          = Sora 2 Pro
   model_id      = sora-2-pro
   model_version = sora-2-pro   ← version_id from product list
   attribute_id  = 1945
   credit        = 160 pts
   form_params   = {"duration": "4", "aspect_ratio": "16:9", "resolution": "720p"}

📤 Processing 1 input image(s)…
   [1] Using URL: https://ws.esxscloud.com/aiagent/src/d/20260320/in/67ed1184b...
✅ All 1 image(s) ready

🚀 Creating task…
🎯 Smart credit_rule selection: {'duration': '4', 'resolution': '720p'} → attribute_id=1945, credit=160 pts
✅ Task created: 1706948

⏳ Polling… (interval=8s, max=600s)
⏳ 36s elapsed … 12%
⏳ 73s elapsed … 24%
⏳ 109s elapsed … 36%
⏳ 146s elapsed … 48%
⏳ 183s elapsed … 61%
⏳ 219s elapsed … 73%
⏳ 256s elapsed … 85%
⏳ 293s elapsed … 95%
⏳ 329s elapsed … 95%  (taking longer than expected, please wait…)
⏳ 366s elapsed … 95%  (taking longer than expected, please wait…)
⏳ 402s elapsed … 95%  (taking longer than expected, please wait…)
⏳ 439s elapsed … 95%  (taking longer than expected, please wait…)
⏳ 476s elapsed … 95%  (taking longer than expected, please wait…)
⏳ 512s elapsed … 95%  (taking longer than expected, please wait…)
2026-03-20 13:37:42 | ERROR | poll_task            | Task failed: task_id=1706948, status=failed, error=unknown
2026-03-20 13:37:42 | ERROR | main                 | Task polling failed: Generation failed: unknown

❌ Generation failed: unknown
