🔍 Querying product list: category=text_to_image
✅ Model found:
   name          = Nano Banana 2
   model_id      = gemini-3.1-flash-image
   model_version = gemini-3.1-flash-image-preview   ← version_id from product list
   attribute_id  = 4400
   credit        = 4 pts
   form_params   = {"aspect_ratio": "1:1", "size": "1K"}

🚀 Creating task…
🎯 Smart credit_rule selection: {'size': '2K'} → attribute_id=4402, credit=10 pts
✅ Task created: 1717766

⏳ Polling… (interval=5s, max=180s)
⏳ 18s elapsed … 20%

✅ Generation complete!
   URL:   https://ws.esxscloud.com/aiagent/src/d/20260321/in/50329ff0f6b8e04b41b4ef1b285cb100.jpg

{
  "task_id": "1717766",
  "url": "https://ws.esxscloud.com/aiagent/src/d/20260321/in/50329ff0f6b8e04b41b4ef1b285cb100.jpg",
  "cover_url": "",
  "model_id": "gemini-3.1-flash-image",
  "model_name": "Nano Banana 2",
  "credit": 4
}
