I’ve been exploring ways to automate parts of my image generation workflow lately, and one tool I came across is img2.ai. It supports a few useful image-related workflows in one place, so I started wondering whether anyone here has tried connecting a tool like this with n8n for content pipelines or creative automation.
What I’m most interested in is building a simple flow like this:
trigger from a form, sheet, or webhook
send prompt or source image into the image tool
get the generated result back
save it to cloud storage or push it into a CMS / social workflow
I’m also curious how people here usually structure this kind of pipeline in n8n. Do you keep image generation as a separate branch, or do you combine it with approval steps, metadata tagging, and publishing in one workflow?
I’m not looking for anything overly complex at first—just a practical setup for faster content production and testing ideas. If anyone has built something similar with AI image tools, I’d love to hear how you approached it and what worked well.
Tool I was looking at: https://img2.ai/
Hi @Yy_Lee , good day ![]()
I’m not aware of a dedicated img2.ai template in the official n8n gallery, there are a few workflow templates that are very close to the pattern you described and should be useful as a starting point. I’d especially point to the templates for image creation with OpenAI, generate/edit image workflows, and the example that generates AI images and uploads them to Google Drive, since they follow the same general structure: trigger > call image API > receive result > store/publish. If img2.ai exposes a standard API, you could usually swap the provider-specific request step for an HTTP Request node and keep the rest of the workflow design almost the same.
Store AI-generated images in AWS S3: OpenAI image creation & cloud storage | n8n workflow template
Generate AI images with APImage and upload to Google Drive | n8n workflow template
Generate and Edit Images with OpenAI’s GPT-Image-1 Model | n8n workflow template
Generate custom AI images with OpenAI GPT-Image-1 model | n8n workflow template
Image creation with OpenAI and Telegram | n8n workflow template
@Yy_Lee nobody else dropped an actual workflow so here you go, webhook trigger into HTTP Request into Google Drive upload:
swap out the api url/body shape once you check img2’s actual api docs, plug in your google drive creds on the last node and you’re set.
img2.ai 對於一次性生成來說是不錯的選擇,但它不是為 n8n 工作流模式而設計的(你需要用 HTTP Request + Code node 來處理他們的回應格式)。
根據你的使用案例,還有其他替代方案值得查看,例如 n8n-nodes-thumbapi(社群節點)— 輸入標題,直接輸出平台就緒的縮圖,以 n8n binary 格式返回。
公開揭露:這是我開發的,但免費公開測試金鑰讓你可以不需註冊就試用,如果你想比較的話。
你的目標最終格式是什麼(YouTube 縮圖、IG 貼文、部落格封面)?有這個背景資訊的話,我更容易建議適合的選項。
@Yy_Lee img2.ai 沒有公開 API,它只是一個 UI 包裝器。直接呼叫底層模型 API:
GPT Image → 原生 OpenAI node
Flux → fal.ai 或 Replicate via HTTP Request
Gemini → Google AI API via HTTP Request
fal.ai 最容易連接,會回傳一個直接 URL 你可以傳入下一個 node。
對於你的管道:
觸發 → Form / Sheets / Webhook,如果處理列的話加入 Split In Batches
生成 → 以子工作流程執行,不要內聯。速度慢(5 - 30秒)且之後更容易更換供應商
儲存 → 透過 HTTP Request 下載二進制,推送到 Drive/S3/Cloudinary。檔名:{{ $now.toISO() }}_{{ $json.prompt.slice(0,30) }}
發佈 → Webflow/WordPress/Contentful 有原生 nodes,社交媒體透過 Buffer 或 HTTP Request
分成兩個工作流程:
A:觸發 → 生成 → 保存 → 預覽通知
B:核准 → 標籤 → 發佈
讓生成和發佈獨立可交換。對於核准,一個 Wait node + Slack 按鈕就足夠了,測試時可以完全跳過。
我一直在用 n8n 建構類似的管道流程,可以分享一些對我有效的做法。
針對你描述的核心流程,我通常會這樣架構:
-
觸發層:Webhook 或 Google Sheets 觸發——如果你想要即時提交(表單填寫、來自其他應用的 API 呼叫),Webhook 更好;如果是批次處理/測試,Sheets 更好,因為你可以直接在其中放入列。
-
影像生成分支:我會將其保持為單獨的隔離分支/子工作流,而不是內嵌到主流程中。這樣日後更容易切換工具,無需重建整個管道——你只需將 HTTP Request 節點指向不同的端點。
-
核准步驟:如果品質很重要(品牌內容、客戶工作),我會在生成和發佈之間新增手動核准節點(Slack/Telegram 核准按鈕效果很好)。對於純測試/大量工作,我會跳過這一步,只記錄所有內容供日後檢查。
-
元資料標籤:我在生成後、儲存前立即附加標籤(提示詞、來源、時間戳、使用的模型)——這樣日後搜尋/篩選會容易得多,特別是一旦你執行了數百次生成。
-
儲存 + 發佈:雲端儲存(S3/Drive)優先進行,然後 CMS/社群推送參考已儲存的 URL,而不是每次都重新上傳原始輸出。這樣可以加快速度,避免步驟重試時重複上傳。
在工具方面,我一直在類似設置中測試 freeaiwork(https://freeaiwork.com)用於影像生成步驟——它在提示詞轉影像和影像編輯工作流方面表現穩定,而且通過 n8n 中的 HTTP Request 節點整合得很順暢,因為它只需要簡單的 API 輸入/輸出呼叫。如果你還在評估選項,值得和 img2.ai 比較——我建議用相同的測試提示詞試試兩個,看哪個能為你的特定使用案例提供更一致的輸出,然後再決定在管道中採用哪個。
很樂意分享實際的 n8n 工作流 JSON 檔,如果這能幫助你更快開始的話。