{"product_id":"n8n-webhook-image-studio-with-google-gemini-ai","title":"n8n Webhook Image Studio with Google Gemini AI","description":"\u003ch3\u003eTurn uploaded references into studio-ready images via an n8n Webhook—powered by Google Gemini\u003c\/h3\u003e\n\u003cp\u003eUse this \u003cstrong\u003en8n Webhook Image Studio with Google Gemini AI\u003c\/strong\u003e to spin up a self-hosted HTML “Image Studio” page, accept one or two reference uploads, and generate or edit images using \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e. The workflow returns a downloadable \u003cstrong\u003edata URL\u003c\/strong\u003e along with the \u003cstrong\u003eexact prompt and metadata\u003c\/strong\u003e—ready for a smooth, repeatable creative loop.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eServes a self-hosted HTML interface\u003c\/strong\u003e on a GET request to the \u003ccode\u003e\/gemini-image-studio\u003c\/code\u003e webhook, with configurable title and upload limits.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProcesses generation\/edit requests\u003c\/strong\u003e via a POST request from the page, including selected mode plus optional flags (brand\/notes\/format-related options as provided by the UI).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and enforces limits\u003c\/strong\u003e (image count\/size\/type), then converts up to two base64 images into binary attachments.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds the final Gemini prompt\u003c\/strong\u003e based on the selected mode:\n    \u003cul\u003e\n      \u003cli\u003eText-to-image (0 images)\u003c\/li\u003e\n      \u003cli\u003eSingle-image edit (1 image)\u003c\/li\u003e\n      \u003cli\u003eTwo-image composite for “space + brand logo” (2 images)\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetries Gemini twice\u003c\/strong\u003e on transient errors before failing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns results as JSON\u003c\/strong\u003e containing: the generated image as a \u003cstrong\u003edata URL\u003c\/strong\u003e, filename, size, elapsed time, and the \u003cstrong\u003eexact prompt used\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreate consistent product visuals from a packshot or design reference using \u003cem\u003eclean packshot\u003c\/em\u003e or \u003cem\u003eproduct ad\u003c\/em\u003e modes.\u003c\/li\u003e\n  \u003cli\u003eGenerate “space” scenes with people or brand placement using the \u003cem\u003espace with people\u003c\/em\u003e and \u003cem\u003espace with brand logo\u003c\/em\u003e modes.\u003c\/li\u003e\n  \u003cli\u003eBuild an internal creative tool for your SaaS team: upload references, iterate with prompt transparency, and re-feed outputs as the next reference.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/logic:\u003c\/strong\u003e if, set, code, merge, switch, webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegration:\u003c\/strong\u003e Google Gemini (text-to-image and image edit\/composite routing)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow design:\u003c\/strong\u003e Gemini node retry (2 attempts), request validation, base64-to-binary conversion\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePerformance safeguard:\u003c\/strong\u003e the browser downscales\/compresses uploads before sending to stay within n8n payload limits\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45895370211507,"sku":"N8N-18664","price":32.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/oavH8vVr1_uUhILxnZ9tr_al2vOdIw.png?v=1787648836","url":"https:\/\/buyflowscripts.com\/products\/n8n-webhook-image-studio-with-google-gemini-ai","provider":"N8N Commerce","version":"1.0","type":"link"}