都是以前弄的工作流,最近实在没动力搞n8n或者教程啥的。看过我之前教程导入工作流自己看看应该很快也能看懂,没啥技术门槛
1.可选logo的Flux绘图工具
工作流如下
复制粘贴导入:
{
"name": "FluxGET请求",
"nodes": [
{
"parameters": {
"url": "=https://image.pollinations.ai/prompt/{{ $json.output }}?width={{ $ifEmpty($('GET请求').item.json.query.width,1024) }}&height={{ $ifEmpty($('GET请求').item.json.query.height,1024) }}&seed={{ $('GET请求').item.json.query.seed }}&model=flux&nologo=true",
"options": {}
},
"id": "fa1e2580-0c9d-42d8-af5a-dab81070c9bb",
"name": "调用 硅基流动 推理 API",
"type": "n8n-nodes-base.httpRequest",
"position": [
1260,
340
],
"notesInFlow": true,
"typeVersion": 4.2,
"retryOnFail": false,
"onError": "continueErrorOutput",
"notes": " "
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "https://dubbing.yuychat.cn/error.gif",
"options": {}
},
"id": "86350040-50c5-43bf-8ab7-8bb34655a16e",
"name": "回复错误1",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1400,
500
],
"typeVersion": 1.1
},
{
"parameters": {
"method": "POST",
"url": "=https://image.pollinations.ai/prompt/{{ $json.output }}?width={{ $ifEmpty($('GET请求').item.json.query.width,1024) }}&height={{ $ifEmpty($('GET请求').item.json.query.height,1024) }}&model=flux&nologo=true",
"options": {}
},
"id": "9da5b3cc-3c2e-42d5-bc60-250ea9195019",
"name": "调用 硅基流动 推理 API1",
"type": "n8n-nodes-base.httpRequest",
"position": [
1340,
900
],
"notesInFlow": true,
"typeVersion": 4.2,
"retryOnFail": false,
"onError": "continueErrorOutput",
"notes": " "
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "https://dubbing.yuychat.cn/error.gif",
"options": {}
},
"id": "49f3e434-b3fa-4556-b757-226ce9da6ff5",
"name": "回复错误",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1540,
1040
],
"typeVersion": 1.1
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "06e13542-cb9a-4a81-823e-07c913ba79f9",
"leftValue": "={{ $('GET请求').item.json.query.seed }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
820,
820
],
"id": "b9846d98-8179-4901-af34-0b21c880b218",
"name": "Seed值有无"
},
{
"parameters": {
"path": "draw",
"responseMode": "responseNode",
"options": {}
},
"id": "6101c51c-6315-490f-ac02-a308d61c126c",
"name": "GET请求",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
280,
840
],
"webhookId": "a5a9106f-2389-4b29-8423-8c0d94717ed2"
},
{
"parameters": {
"respondWith": "binary",
"responseDataSource": "set",
"inputFieldName": "bg",
"options": {}
},
"id": "eb710a10-faa5-42d5-83de-324895c48436",
"name": "成功响应",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
3240,
1040
]
},
{
"parameters": {
"respondWith": "binary",
"responseDataSource": "set",
"inputFieldName": "bg",
"options": {}
},
"id": "afaf7f40-e06c-4842-b276-15fa11509acd",
"name": "成功响应1",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
3260,
460
]
},
{
"parameters": {
"operation": "information"
},
"id": "96a853df-2d05-4b46-ade4-33dbc0dae1d0",
"name": "Get Meta BG",
"type": "n8n-nodes-base.editImage",
"position": [
1720,
340
],
"typeVersion": 1
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "2fb3fd91-c13d-45ce-a7ec-612319a008fc",
"name": "metaTop",
"type": "object",
"value": "={{ $json }}"
}
]
},
"options": {
"includeBinary": true
}
},
"id": "249e860a-dbec-4755-a58f-05ce3ad6097b",
"name": "Nest Top Meta",
"type": "n8n-nodes-base.set",
"position": [
1900,
600
],
"typeVersion": 3.3
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "2fb3fd91-c13d-45ce-a7ec-612319a008fc",
"name": "metaBg",
"type": "object",
"value": "={{ $json }}"
}
]
},
"options": {
"includeBinary": true
}
},
"id": "8043a485-dd99-4e44-97d1-c751d817ed26",
"name": "Nest Bg Meta",
"type": "n8n-nodes-base.set",
"position": [
1900,
340
],
"typeVersion": 3.3
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "\n\n const centerX = ($input.item.json.metaBg.size.width - $input.item.json.metaTop.size.width);\n const centerY = ($input.item.json.metaBg.size.height - $input.item.json.metaTop.size.height);\n\n $input.item.json.center = { x: centerX, y: centerY };\n\nreturn $input.item"
},
"id": "2e38dd5e-7449-4d64-b918-ee0424778813",
"name": "Calculate Center",
"type": "n8n-nodes-base.code",
"position": [
2700,
460
],
"typeVersion": 2
},
{
"parameters": {
"url": "https://dubbing.yuychat.cn/dublogo.png",
"options": {}
},
"id": "8a0dcfe3-b978-4000-85e5-d1bce0228aa5",
"name": "Get Logo for the Watermark",
"type": "n8n-nodes-base.httpRequest",
"position": [
1520,
600
],
"typeVersion": 4.2
},
{
"parameters": {
"mode": "combine",
"combinationMode": "mergeByPosition",
"options": {}
},
"id": "7f4106a3-0a9a-41ef-8a1a-6fbc1f9f6903",
"name": "Wait for both Images and merge Binary in one Item",
"type": "n8n-nodes-base.merge",
"position": [
2400,
460
],
"typeVersion": 2.1
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "$input.item.binary.top = $input.item.binary.data;\ndelete $input.item.binary.data;\nreturn $input.item;"
},
"id": "f63c1699-e564-4428-a6db-bbc7fc8b826c",
"name": "Rename Image Binary Top Image",
"type": "n8n-nodes-base.code",
"position": [
2080,
600
],
"typeVersion": 2
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "$input.item.binary.bg = $input.item.binary.data;\ndelete $input.item.binary.data;\nreturn $input.item;"
},
"id": "9a316958-37b2-4e0c-91d9-f218869edceb",
"name": "Rename Image Binary Background Image",
"type": "n8n-nodes-base.code",
"position": [
2080,
340
],
"typeVersion": 2
},
{
"parameters": {
"operation": "information"
},
"id": "9e410196-e073-4d2b-a1a8-c2c1e0e5d143",
"name": "Get Meta Top",
"type": "n8n-nodes-base.editImage",
"position": [
1720,
600
],
"typeVersion": 1
},
{
"parameters": {
"operation": "composite",
"dataPropertyName": "bg",
"dataPropertyNameComposite": "top",
"operator": "Plus",
"positionX": "={{ $json.center.x }}",
"positionY": "={{ $json.center.y }}",
"options": {
"fileName": "out.png",
"format": "jpeg"
}
},
"id": "cf15a221-351f-49d8-8177-d1880f8e8b32",
"name": "Let \"top\" overlay \"bg\"",
"type": "n8n-nodes-base.editImage",
"position": [
3020,
460
],
"typeVersion": 1
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "06e13542-cb9a-4a81-823e-07c913ba79f9",
"leftValue": "={{ $('GET请求').item.json.query.logo }}",
"rightValue": "true",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
520,
840
],
"id": "1f9d5351-95ee-48a6-bd29-89c7273dd51f",
"name": "有无logo"
},
{
"parameters": {
"method": "POST",
"url": "https://api.siliconflow.cn/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"prompt_enhancement\": {{ $ifEmpty($('GET请求').item.json.query.aiprompt,true) }},\n \"prompt\": \"{{ $json.output }}\",\n \"image_size\": \"{{ $ifEmpty($('GET请求').item.json.query.width,1024) }}x{{ $ifEmpty($('GET请求').item.json.query.height,1024) }}\",\n \"model\": \"Kwai-Kolors/Kolors\",\n \"seed\": {{ $('GET请求').item.json.query.seed }}\n}",
"options": {}
},
"id": "f6b58586-1fc2-4818-9370-64b1ef4b4bb9",
"name": "调用 硅基流动 推理 API2",
"type": "n8n-nodes-base.httpRequest",
"position": [
1400,
1420
],
"notesInFlow": true,
"typeVersion": 4.2,
"retryOnFail": false,
"credentials": {
"httpHeaderAuth": {
"id": "1Mh74hpnj9mzMB8Q",
"name": "硅基流动绘画"
}
},
"onError": "continueErrorOutput",
"notes": " "
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "https://dubbing.yuychat.cn/error.gif",
"options": {}
},
"id": "8a23ad27-efd8-48ab-a5ec-d66bf36d9d68",
"name": "回复错误2",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1620,
1560
],
"typeVersion": 1.1
},
{
"parameters": {
"method": "POST",
"url": "https://api.siliconflow.cn/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"prompt_enhancement\": {{ $ifEmpty($('GET请求').item.json.query.aiprompt,true) }},\n \"prompt\": \"{{ $json.output }}\",\n \"image_size\": \"{{ $ifEmpty($('GET请求').item.json.query.width,1024) }}x{{ $ifEmpty($('GET请求').item.json.query.height,1024) }}\",\n \"model\": \"Kwai-Kolors/Kolors\"\n}",
"options": {}
},
"id": "332d2b1f-97da-486f-b65f-a56e81a52502",
"name": "调用 硅基流动 推理 API3",
"type": "n8n-nodes-base.httpRequest",
"position": [
1420,
1840
],
"notesInFlow": true,
"typeVersion": 4.2,
"retryOnFail": false,
"credentials": {
"httpHeaderAuth": {
"id": "1Mh74hpnj9mzMB8Q",
"name": "硅基流动绘画"
}
},
"onError": "continueErrorOutput",
"notes": " "
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "https://dubbing.yuychat.cn/error.gif",
"options": {}
},
"id": "3d997306-3144-4c2d-9879-4bdf4afae120",
"name": "回复错误3",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1640,
1980
],
"typeVersion": 1.1
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "06e13542-cb9a-4a81-823e-07c913ba79f9",
"leftValue": "={{ $('GET请求').item.json.query.seed }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
940,
1640
],
"id": "b4e1474b-ce54-4db2-8837-d06759a80bc6",
"name": "Seed值有无1"
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "={{ $json.images[0].url }}",
"options": {}
},
"id": "1d956d80-613f-4e4d-9e61-23995f05f444",
"name": "成功响应2",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
1620,
1400
]
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "={{ $json.images[0].url }}",
"options": {}
},
"id": "9eae0548-5eae-465c-b8fb-1ac70cbd1e63",
"name": "成功响应3",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
1640,
1820
]
},
{
"parameters": {
"operation": "information"
},
"id": "1bffc275-a259-41de-9339-fbf0c75d63d1",
"name": "Get Meta BG1",
"type": "n8n-nodes-base.editImage",
"position": [
1720,
920
],
"typeVersion": 1
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "2fb3fd91-c13d-45ce-a7ec-612319a008fc",
"name": "metaTop",
"type": "object",
"value": "={{ $json }}"
}
]
},
"options": {
"includeBinary": true
}
},
"id": "38f95e69-b99b-4f0e-8df8-003dda30517a",
"name": "Nest Top Meta1",
"type": "n8n-nodes-base.set",
"position": [
1900,
1180
],
"typeVersion": 3.3
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "2fb3fd91-c13d-45ce-a7ec-612319a008fc",
"name": "metaBg",
"type": "object",
"value": "={{ $json }}"
}
]
},
"options": {
"includeBinary": true
}
},
"id": "54a8032d-b022-472c-a00a-5d8d3829de8d",
"name": "Nest Bg Meta1",
"type": "n8n-nodes-base.set",
"position": [
1900,
920
],
"typeVersion": 3.3
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "\n\n const centerX = ($input.item.json.metaBg.size.width - $input.item.json.metaTop.size.width);\n const centerY = ($input.item.json.metaBg.size.height - $input.item.json.metaTop.size.height);\n\n $input.item.json.center = { x: centerX, y: centerY };\n\nreturn $input.item"
},
"id": "b6ed9b8e-f7be-42e5-a9e8-bba96a114942",
"name": "Calculate Center1",
"type": "n8n-nodes-base.code",
"position": [
2700,
1040
],
"typeVersion": 2
},
{
"parameters": {
"url": "https://dubbing.yuychat.cn/dublogo.png",
"options": {}
},
"id": "369e0429-85ad-4105-8910-e80bc51f743c",
"name": "Get Logo for the Watermark1",
"type": "n8n-nodes-base.httpRequest",
"position": [
1520,
1180
],
"typeVersion": 4.2
},
{
"parameters": {
"mode": "combine",
"combinationMode": "mergeByPosition",
"options": {}
},
"id": "a8299472-4c74-448f-be50-4557490d05c5",
"name": "Wait for both Images and merge Binary in one Item1",
"type": "n8n-nodes-base.merge",
"position": [
2400,
1040
],
"typeVersion": 2.1
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "$input.item.binary.top = $input.item.binary.data;\ndelete $input.item.binary.data;\nreturn $input.item;"
},
"id": "54b8d91a-542b-426d-b912-afb4fe80d317",
"name": "Rename Image Binary Top Image1",
"type": "n8n-nodes-base.code",
"position": [
2080,
1180
],
"typeVersion": 2
},
{
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "$input.item.binary.bg = $input.item.binary.data;\ndelete $input.item.binary.data;\nreturn $input.item;"
},
"id": "43c01380-6492-4474-bc35-185968f23aed",
"name": "Rename Image Binary Background Image1",
"type": "n8n-nodes-base.code",
"position": [
2080,
920
],
"typeVersion": 2
},
{
"parameters": {
"operation": "information"
},
"id": "87c065b2-c71a-4d68-aaf6-52cf8708ed90",
"name": "Get Meta Top1",
"type": "n8n-nodes-base.editImage",
"position": [
1720,
1180
],
"typeVersion": 1
},
{
"parameters": {
"operation": "composite",
"dataPropertyName": "bg",
"dataPropertyNameComposite": "top",
"operator": "Plus",
"positionX": "={{ $json.center.x }}",
"positionY": "={{ $json.center.y }}",
"options": {
"fileName": "out.png",
"format": "jpeg"
}
},
"id": "618360a6-aa62-445d-b1a9-e75aae1103f5",
"name": "Let \"top\" overlay \"bg\"1",
"type": "n8n-nodes-base.editImage",
"position": [
3020,
1040
],
"typeVersion": 1
},
{
"parameters": {
"jsCode": "const output = $('GET请求').first().json.query.prompt.replace(/\\r?\\n/g, '\\\\n').replace(/\"/g, '\\\\\"');\n\n\n// 输出选中的API Key和修改后的文本\nreturn {\n json: {\n output\n }\n};"
},
"id": "540a8c28-91ec-4fb7-82fb-0105548de50f",
"name": "Code5",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1200,
1420
],
"executeOnce": false
},
{
"parameters": {
"jsCode": "const output = $('GET请求').first().json.query.prompt.replace(/\\r?\\n/g, '\\\\n').replace(/\"/g, '\\\\\"');\n\n\n// 输出选中的API Key和修改后的文本\nreturn {\n json: {\n output\n }\n};"
},
"id": "9f049d94-89ca-4e9e-9be0-8623df21752e",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1240,
1840
],
"executeOnce": false
},
{
"parameters": {
"jsCode": "const output = $('GET请求').first().json.query.prompt.replace(/\\r?\\n/g, '\\\\n').replace(/\"/g, '\\\\\"');\n\n\n// 输出选中的API Key和修改后的文本\nreturn {\n json: {\n output\n }\n};"
},
"id": "6c2f3803-f62b-45eb-a881-cfd5ae9823d0",
"name": "Code6",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1020,
620
],
"executeOnce": false
},
{
"parameters": {
"jsCode": "const output = $('GET请求').first().json.query.prompt.replace(/\\r?\\n/g, '\\\\n').replace(/\"/g, '\\\\\"');\n\n\n// 输出选中的API Key和修改后的文本\nreturn {\n json: {\n output\n }\n};"
},
"id": "7162bdbb-e5f5-4d60-87eb-0c2f9a6aa112",
"name": "Code7",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1000,
940
],
"executeOnce": false
}
],
"pinData": {},
"connections": {
"调用 硅基流动 推理 API": {
"main": [
[
{
"node": "Get Meta BG",
"type": "main",
"index": 0
}
],
[
{
"node": "回复错误1",
"type": "main",
"index": 0
}
]
]
},
"调用 硅基流动 推理 API1": {
"main": [
[
{
"node": "Get Meta BG1",
"type": "main",
"index": 0
}
],
[
{
"node": "回复错误",
"type": "main",
"index": 0
}
]
]
},
"Seed值有无": {
"main": [
[
{
"node": "Code6",
"type": "main",
"index": 0
}
],
[
{
"node": "Code7",
"type": "main",
"index": 0
}
]
]
},
"GET请求": {
"main": [
[
{
"node": "有无logo",
"type": "main",
"index": 0
}
]
]
},
"Get Meta BG": {
"main": [
[
{
"node": "Nest Bg Meta",
"type": "main",
"index": 0
}
]
]
},
"Nest Top Meta": {
"main": [
[
{
"node": "Rename Image Binary Top Image",
"type": "main",
"index": 0
}
]
]
},
"Nest Bg Meta": {
"main": [
[
{
"node": "Rename Image Binary Background Image",
"type": "main",
"index": 0
}
]
]
},
"Calculate Center": {
"main": [
[
{
"node": "Let \"top\" overlay \"bg\"",
"type": "main",
"index": 0
}
]
]
},
"Get Logo for the Watermark": {
"main": [
[
{
"node": "Get Meta Top",
"type": "main",
"index": 0
}
]
]
},
"Wait for both Images and merge Binary in one Item": {
"main": [
[
{
"node": "Calculate Center",
"type": "main",
"index": 0
}
]
]
},
"Rename Image Binary Top Image": {
"main": [
[
{
"node": "Wait for both Images and merge Binary in one Item",
"type": "main",
"index": 1
}
]
]
},
"Rename Image Binary Background Image": {
"main": [
[
{
"node": "Wait for both Images and merge Binary in one Item",
"type": "main",
"index": 0
}
]
]
},
"Get Meta Top": {
"main": [
[
{
"node": "Nest Top Meta",
"type": "main",
"index": 0
}
]
]
},
"有无logo": {
"main": [
[
{
"node": "Seed值有无",
"type": "main",
"index": 0
}
],
[
{
"node": "Seed值有无1",
"type": "main",
"index": 0
}
]
]
},
"调用 硅基流动 推理 API2": {
"main": [
[
{
"node": "成功响应2",
"type": "main",
"index": 0
}
],
[
{
"node": "回复错误2",
"type": "main",
"index": 0
}
]
]
},
"调用 硅基流动 推理 API3": {
"main": [
[
{
"node": "成功响应3",
"type": "main",
"index": 0
}
],
[
{
"node": "回复错误3",
"type": "main",
"index": 0
}
]
]
},
"Seed值有无1": {
"main": [
[
{
"node": "Code5",
"type": "main",
"index": 0
}
],
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Let \"top\" overlay \"bg\"": {
"main": [
[
{
"node": "成功响应1",
"type": "main",
"index": 0
}
]
]
},
"Get Meta BG1": {
"main": [
[
{
"node": "Nest Bg Meta1",
"type": "main",
"index": 0
}
]
]
},
"Nest Top Meta1": {
"main": [
[
{
"node": "Rename Image Binary Top Image1",
"type": "main",
"index": 0
}
]
]
},
"Nest Bg Meta1": {
"main": [
[
{
"node": "Rename Image Binary Background Image1",
"type": "main",
"index": 0
}
]
]
},
"Calculate Center1": {
"main": [
[
{
"node": "Let \"top\" overlay \"bg\"1",
"type": "main",
"index": 0
}
]
]
},
"Get Logo for the Watermark1": {
"main": [
[
{
"node": "Get Meta Top1",
"type": "main",
"index": 0
}
]
]
},
"Wait for both Images and merge Binary in one Item1": {
"main": [
[
{
"node": "Calculate Center1",
"type": "main",
"index": 0
}
]
]
},
"Rename Image Binary Top Image1": {
"main": [
[
{
"node": "Wait for both Images and merge Binary in one Item1",
"type": "main",
"index": 1
}
]
]
},
"Rename Image Binary Background Image1": {
"main": [
[
{
"node": "Wait for both Images and merge Binary in one Item1",
"type": "main",
"index": 0
}
]
]
},
"Get Meta Top1": {
"main": [
[
{
"node": "Nest Top Meta1",
"type": "main",
"index": 0
}
]
]
},
"Let \"top\" overlay \"bg\"1": {
"main": [
[
{
"node": "成功响应",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "调用 硅基流动 推理 API3",
"type": "main",
"index": 0
}
]
]
},
"Code5": {
"main": [
[
{
"node": "调用 硅基流动 推理 API2",
"type": "main",
"index": 0
}
]
]
},
"Code6": {
"main": [
[
{
"node": "调用 硅基流动 推理 API",
"type": "main",
"index": 0
},
{
"node": "Get Logo for the Watermark",
"type": "main",
"index": 0
}
]
]
},
"Code7": {
"main": [
[
{
"node": "调用 硅基流动 推理 API1",
"type": "main",
"index": 0
},
{
"node": "Get Logo for the Watermark1",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "ed6552e7-ff84-441e-a57f-026a4043b1c9",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "273cb072730a54351e245b85466131b67e03b4084264c10b9a2f40e05554ac84"
},
"id": "3UgUgC6VPPM3PeMv",
"tags": []
}
使用方法举例:
给你的提示词里面加上这段话就能调用,(logo=true时附上水印,Flux是免费提供的)
# 工具调用:
你可以调用AI绘画工具,一旦用户需要画画或者有绘画需求或者你觉得有必要调用绘画工具时,请你自行生成符合用户需求的详细的Flux.1绘画模型的英文提示词并填充到下面url的{prompt}占位符中,而{width}和{height}占位符的值由你根据情况自行确定,但其值均不得大于1280,常见的三种长宽值有1024x1024,720x1280,1280x720。注意最终需符合URL编码规则:空格转%20,保留英文双引号,URL必须是单行(无换行符)。
这样即表示你已成功生成对应提示词的相关绘画图片:

2.大容量的随机图片API工具
可以自由扩展的大容量图片API,任何一个cloudflare的r2存储桶或者r2存储桶中一个文件夹都可以作为一个随机图片API
工作流如下
复制粘贴导入:
{
"name": "图片API",
"nodes": [
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $('GET请求').item.json.query.name }}",
"rightValue": "touming",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "4daa24ef-cbf0-4a8a-80d6-57fbdab9d129"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "透明底图片"
},
{
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "6528aa0e-d651-4e47-84a6-0208c7713938",
"leftValue": "={{ $('GET请求').item.json.query.name }}",
"rightValue": "biaoqing",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "表情包"
},
{
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "469b8de6-1fe6-4513-b73c-da150d37838e",
"leftValue": "={{ $('GET请求').item.json.query.name }}",
"rightValue": "yangbing",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "小羊饼"
}
]
},
"options": {
"ignoreCase": true
}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
220,
-20
],
"id": "dee27615-3b67-472c-a496-a09693c08b5f",
"name": "Switch"
},
{
"parameters": {
"operation": "getAll",
"bucketName": "touming",
"returnAll": true,
"options": {}
},
"type": "n8n-nodes-base.s3",
"typeVersion": 1,
"position": [
440,
-180
],
"id": "d77ac8c3-8567-4d47-a430-e7935b67f5e4",
"name": "S3",
"credentials": {
"s3": {
"id": "57TdTz1dXM8YdbLb",
"name": "touming"
}
}
},
{
"parameters": {
"path": "api",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-40,
0
],
"id": "8c321c6e-5910-407f-a6b5-9441017670b7",
"name": "GET请求",
"webhookId": "ac689ff1-d5e0-4393-a5bd-514519d931dc"
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "=https://pub-9bfc6c3248664295a6daeaf7efd0977f.r2.dev/{{ $json.Key }}",
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
820,
-180
],
"id": "22244dd1-2d06-4f07-9310-91d95d8c6d09",
"name": "Respond to Webhook",
"executeOnce": false
},
{
"parameters": {
"type": "random"
},
"type": "n8n-nodes-base.sort",
"typeVersion": 1,
"position": [
640,
-180
],
"id": "2bae3ed5-2505-4a8e-8d9e-73c7eb1e3ae2",
"name": "Sort"
},
{
"parameters": {
"operation": "getAll",
"bucketName": "biaoqing",
"returnAll": true,
"options": {}
},
"type": "n8n-nodes-base.s3",
"typeVersion": 1,
"position": [
440,
0
],
"id": "92854615-a6d3-44f4-b692-f8569e72fb70",
"name": "S31",
"credentials": {
"s3": {
"id": "xNycXXXlZffIpMGA",
"name": "biaoqing"
}
}
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "=https://pub-2efc7fc7514c4166a7f59dadc036954f.r2.dev/{{ $json.Key }}",
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
820,
0
],
"id": "ccf32ef3-fa1e-4819-b1f3-4c7ecabee7c2",
"name": "Respond to Webhook1",
"executeOnce": false
},
{
"parameters": {
"type": "random"
},
"type": "n8n-nodes-base.sort",
"typeVersion": 1,
"position": [
640,
0
],
"id": "e057d75b-ce4a-4a9e-a529-a2fca5ae1167",
"name": "Sort1"
},
{
"parameters": {
"operation": "getAll",
"bucketName": "yangbing",
"returnAll": true,
"options": {}
},
"type": "n8n-nodes-base.s3",
"typeVersion": 1,
"position": [
440,
200
],
"id": "a78005e8-0c79-4a37-badc-dfb51e2da4f4",
"name": "S32",
"credentials": {
"s3": {
"id": "QlUoYiFgrggf0EYd",
"name": "yangbing"
}
}
},
{
"parameters": {
"respondWith": "redirect",
"redirectURL": "=https://pub-2d2d20061e7f4f87b271209cdf19fcc9.r2.dev/{{ $json.Key }}",
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
820,
200
],
"id": "a41a24ea-1227-421c-815a-498f2cb2a55f",
"name": "Respond to Webhook2",
"executeOnce": false
},
{
"parameters": {
"type": "random"
},
"type": "n8n-nodes-base.sort",
"typeVersion": 1,
"position": [
640,
200
],
"id": "70976b12-b5fe-4201-a2b5-ba868b0e557b",
"name": "Sort2"
}
],
"pinData": {},
"connections": {
"Switch": {
"main": [
[
{
"node": "S3",
"type": "main",
"index": 0
}
],
[
{
"node": "S31",
"type": "main",
"index": 0
}
],
[
{
"node": "S32",
"type": "main",
"index": 0
}
]
]
},
"GET请求": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"S3": {
"main": [
[
{
"node": "Sort",
"type": "main",
"index": 0
}
]
]
},
"Respond to Webhook": {
"main": [
[]
]
},
"Sort": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"S31": {
"main": [
[
{
"node": "Sort1",
"type": "main",
"index": 0
}
]
]
},
"Sort1": {
"main": [
[
{
"node": "Respond to Webhook1",
"type": "main",
"index": 0
}
]
]
},
"S32": {
"main": [
[
{
"node": "Sort2",
"type": "main",
"index": 0
}
]
]
},
"Sort2": {
"main": [
[
{
"node": "Respond to Webhook2",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "f812147a-48b5-418c-bcc8-512a53fa6bbc",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "273cb072730a54351e245b85466131b67e03b4084264c10b9a2f40e05554ac84"
},
"id": "T5CVzDe3x3um1hYH",
"tags": []
}
使用方法举例:
https://oi.yuychat.cn/webhook/api?name=touming
https://oi.yuychat.cn/webhook/api?name=biaoqing
https://oi.yuychat.cn/webhook/api?name=yangbing

