Documentation
Implementation notes for the cloned Nana Banana Pro AI workflows.
Generate
POST /api/ai/nanophoto/generateCreate image/video tasks with model, prompt, mediaType, and options.
Poll Task
GET /api/ai/nanophoto/tasks/:idQuery Kie and persist result URLs into the local ai_task row.
Gallery
GET /api/ai/nanophoto/tasks?limit=12&page=1List the signed-in user generation history.
Upload
POST /api/storage/upload-imageUpload reference images for image/video workflows.
Media Upload
POST /api/storage/upload-mediaUpload image, video, or audio references for Seedance multimodal workflows.
Pricing
GET /api/ai/nanophoto/configRead public model credit costs without exposing provider secrets.
Webhook
POST /api/ai/nanophoto/callbackReceives Kie callbacks. Configure kie_webhook_secret to require a shared-secret header.
Checkout Result
/checkout-result?status=successPost-payment user experience for credits, gallery, and creation recovery flows.