{"product_id":"n8n-form-to-hiapi-product-image-generator-editor-workflow","title":"n8n Form to HiAPI Product Image Generator \u0026 Editor Workflow","description":"\u003ch3\u003eGenerate or edit product marketing images from an n8n Form—automatically with HiAPI\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow turns a simple product-image brief into a finished marketing image using \u003cstrong\u003eHiAPI\u003c\/strong\u003e. Submit details through an \u003cstrong\u003en8n Form\u003c\/strong\u003e, and the workflow generates a text-to-image marketing visual or performs image-to-image transformation—then polls until the final image URL is ready.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects a brief via n8n Form\u003c\/strong\u003e: The submission includes a product-image brief, a generation mode, an aspect ratio, and an optional reference image URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSelects the correct HiAPI model\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eText-to-image\u003c\/strong\u003e uses \u003cem\u003egpt-image-2\/text-to-image\u003c\/em\u003e.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eImage-to-image\u003c\/strong\u003e uses \u003cem\u003egpt-image-2\/image-to-image\u003c\/em\u003e and includes the reference image URL only for this mode.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates an asynchronous generation task\u003c\/strong\u003e in HiAPI and stores the returned task ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWaits and polls for completion\u003c\/strong\u003e: The workflow waits 20 seconds, requests task status using the task ID, and repeats until it reaches a terminal state.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns results\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eOn success: task ID, status, and the generated image URL.\u003c\/li\u003e\n      \u003cli\u003eOn failure: task ID, status, and the returned error message.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators creating consistent product marketing images without leaving n8n.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building a “request an image” form for teams (copy + aspect ratio + mode).\u003c\/li\u003e\n  \u003cli\u003eTransforming existing product photos into new marketing variations using image-to-image via a public reference URL.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Form Trigger\u003c\/strong\u003e, plus nodes: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, and \u003cstrong\u003eHTTP Request\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHiAPI integration\u003c\/strong\u003e using HTTP header auth: \u003ccode\u003eAuthorization: Bearer YOUR_HIAPI_API_KEY\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003eIncludes HiAPI polling logic (wait 20 seconds → check status by task ID → loop until terminal state).\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup notes\u003c\/strong\u003e: Ensure your HiAPI account has sufficient balance for a 1K image. For image-to-image mode, provide a publicly reachable reference image URL in the form submission.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45962331521203,"sku":"N8N-18906","price":12.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/I_MEb5Nxu0tAzJf39jywM_L6pS4dGD.png?v=1788600580","url":"https:\/\/buyflowscripts.com\/products\/n8n-form-to-hiapi-product-image-generator-editor-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}