ProBanana:使用Gemini 2.5 Flash Image (Nano Banana)的AI产品模型生成器
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Set, FormTrigger, HttpRequest, ConvertToFile, ExtractFromFile 等节点。 通过OpenRouter使用Gemini 2.5 Flash Image生成产品模型
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "d43MQMcUi1o2LV9P",
"meta": {
"instanceId": "cc97e277471243407a97fac722dd43bf90ad12b9c39cedf2f3471404a5d5cf65"
},
"name": "ProBanana:使用 Gemini 2.5 Flash Image (Nano Banana) 的 AI 产品模型生成器",
"tags": [],
"nodes": [
{
"id": "37bf3601-5310-4405-940e-0c6eea007e71",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
-272,
-48
],
"webhookId": "f0d09c32-e0a1-4bcc-95f5-c02d8f5db384",
"parameters": {
"options": {},
"formTitle": "Nano Banana ",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "Upload your product image",
"requiredField": true,
"acceptFileTypes": ".jpg, .png, .jpeg"
},
{
"fieldType": "file",
"fieldLabel": "Upload your template/playground image",
"requiredField": true,
"acceptFileTypes": ".jpg, .png, .jpeg"
},
{
"fieldLabel": "Pls describe what you want to do?",
"placeholder": "Prompt",
"requiredField": true
}
]
}
},
"typeVersion": 2.3
},
{
"id": "d1c1f126-3c07-4121-bba9-bd625b914fd6",
"name": "用户资源 Base64",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-48,
-48
],
"parameters": {
"options": {},
"operation": "binaryToPropery",
"binaryPropertyName": "=Upload_your_product_image"
},
"typeVersion": 1
},
{
"id": "e2c0e978-9511-4952-b5f6-631a8d72def2",
"name": "模板 Base64",
"type": "n8n-nodes-base.extractFromFile",
"position": [
176,
-48
],
"parameters": {
"options": {},
"operation": "binaryToPropery",
"binaryPropertyName": "=Upload_your_template_playground_image"
},
"typeVersion": 1
},
{
"id": "3981098c-c9ca-45b8-8242-d8511e68ae8f",
"name": "组装最终数据",
"type": "n8n-nodes-base.set",
"position": [
400,
-48
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "4208831c-38dc-44ce-a7a0-f832a3c8c148",
"name": "promptText",
"type": "string",
"value": "={{ $('On form submission').item.json['Pls describe what you want to do?'] }}"
},
{
"id": "5cb7a52f-2e3f-4b1e-972e-e07f31c5c3a2",
"name": "assetBase64",
"type": "string",
"value": "={{ $('User Asset Base64').item.json.data }}"
},
{
"id": "60ac2edd-25de-4fda-a12b-fa0fd321e188",
"name": "templateBase64",
"type": "string",
"value": "={{ $json.data }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "02ea84df-3688-491b-bc0c-801155e9fe1c",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
624,
-48
],
"parameters": {
"url": "https://openrouter.ai/api/v1/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"google/gemini-2.5-flash-image-preview:free\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"{{ $json.promptText }}\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"data:image/jpeg;base64,{{ $json.assetBase64 }}\"\n }\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"data:image/jpeg;base64,{{ $json.templateBase64 }}\"\n }\n }\n ]\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "openRouterApi"
},
"credentials": {
"openRouterApi": {
"id": "x6VAdhIltXiwayfj",
"name": "OpenRouter account"
},
"httpHeaderAuth": {
"id": "v7x6cZ0p0C5zpumy",
"name": "OpenRouter API"
}
},
"typeVersion": 4.2
},
{
"id": "a8efdcb7-cc46-4936-bdb8-8608abd94688",
"name": "编辑字段",
"type": "n8n-nodes-base.set",
"position": [
848,
-48
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "84544a25-271b-4c63-ade5-06af10150d12",
"name": "outputfile",
"type": "string",
"value": "={{ $json.choices[0].message.images[0].image_url.url.split(\",\")[1] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "42c886b5-559e-4e51-9180-fbb52fd9f47a",
"name": "转换为文件",
"type": "n8n-nodes-base.convertToFile",
"position": [
1072,
-48
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "outputfile"
},
"typeVersion": 1.1
},
{
"id": "a6713708-22d2-4abd-8505-5cf169b2a0e0",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-576,
-160
],
"parameters": {
"width": 448,
"height": 240,
"content": "## 工作流初始化"
},
"typeVersion": 1
},
{
"id": "df9ddb5d-7c9f-4e5b-a8e8-5839ddbe5da0",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1008,
112
],
"parameters": {
"color": 4,
"width": 244,
"height": 364,
"content": "## 最终输出"
},
"typeVersion": 1
},
{
"id": "98a1e947-d3d1-4dfd-8183-27e3ae3095f6",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
544,
-480
],
"parameters": {
"width": 256,
"height": 592,
"content": "## 核心 AI 生成步骤"
},
"typeVersion": 1
},
{
"id": "7fc736d5-2f57-4748-9fb6-9ec0fc3ea783",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
112,
112
],
"parameters": {
"color": 6,
"width": 228,
"height": 364,
"content": "## 模板模型"
},
"typeVersion": 1
},
{
"id": "d39b2682-e418-4eb5-868c-cf1448791894",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-112,
-432
],
"parameters": {
"color": 5,
"width": 232,
"height": 364,
"content": "## 产品(用户资源)"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "eef2aa5d-6d3c-43fd-a1bf-ef7cbb6ddbc9",
"connections": {
"Edit Fields": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Template Base64": {
"main": [
[
{
"node": "Assemble Final Data",
"type": "main",
"index": 0
}
]
]
},
"User Asset Base64": {
"main": [
[
{
"node": "Template Base64",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "User Asset Base64",
"type": "main",
"index": 0
}
]
]
},
"Assemble Final Data": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Recap AI - Veo 3.1 电商产品动画生成器
基于Veo 3.1的电商产品目录AI视频生成器
If
Set
Wait
+10
18 节点Lucas Walter
内容创作
Recap AI - Facebook广告克隆系统
使用Gemini AI和Apify克隆和定制竞争对手的Facebook广告
If
Set
Merge
+9
18 节点Lucas Walter
内容创作
纳米🍌
通过OpenRouter使用Gemini AI生成时尚模特产品广告
Set
Code
Form
+5
10 节点Zakwan
内容创作
使用 NanoBanana 🍌和 Telegram 的表单提交 UGC 图片生成器
使用 Google Gemini 和 Telegram 从表单提交生成 UGC 图片
Set
Code
Merge
+6
15 节点Jaures NYA
内容创作
The Recap AI - Nano Banana 网红广告创意
使用 Nano Banana 图片生成器生成无限电商广告创意
Set
Form Trigger
Google Drive
+5
11 节点Lucas Walter
内容创作
使用 Google Slides 和 Flux 将会议转录转换为 AI 生成演示文稿
使用 Google Slides 和 Flux 将会议转录转换为 AI 生成演示文稿
Set
Code
Wait
+14
107 节点Joseph
内容创作
工作流信息
难度等级
中级
节点数量12
分类2
节点类型6
作者
The Growth Bolt
@thegrowthbolt-shivamHelping businesses unlock growth through AI and workflow automation. I specialize in building custom n8n solutions that save time, cut costs, and boost efficiency. Book a consultation to explore how automation can work for you.
外部链接
在 n8n.io 查看 →
分享此工作流