The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "flux250711_fixed",
"nodes": [
{
"parameters": {
"path": "flux",
"responseMode": "responseNode",
"options": {}
},
"id": "e387a35a-9c83-4a58-8ebe-69528c45959b",
"name": "GET\u8bf7\u6c42",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
0,
300
]
},
{
"parameters": {
"method": "POST",
"url": "https://api.siliconflow.cn/v1/chat/completions",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"Qwen/Qwen2.5-7B-Instruct\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"\u4f60\u662f\u4e00\u4e2a\u4e13\u4e1a\u7684AI\u56fe\u50cf\u751f\u6210\u63d0\u793a\u8bcd\u4f18\u5316\u4e13\u5bb6\u3002\u8bf7\u5c06\u7528\u6237\u8f93\u5165\u7684\u7b80\u5355\u63cf\u8ff0\u8f6c\u6362\u4e3a\u8be6\u7ec6\u3001\u4e13\u4e1a\u7684FLUX\u56fe\u50cf\u751f\u6210\u63d0\u793a\u8bcd\u3002\u8981\u6c42\uff1a1. \u4fdd\u6301\u539f\u610f\u4e0d\u53d8 2. \u6dfb\u52a0\u827a\u672f\u98ce\u683c\u3001\u5149\u5f71\u6548\u679c\u3001\u6784\u56fe\u7ec6\u8282 3. \u4f7f\u7528\u82f1\u6587\u8f93\u51fa 4. \u63d0\u793a\u8bcd\u8981\u5177\u4f53\u4e14\u5bcc\u6709\u8868\u73b0\u529b 5. \u957f\u5ea6\u63a7\u5236\u5728100-200\u8bcd\u4e4b\u95f4\"\n },\n {\n \"role\": \"user\",\n \"content\": \"\u8bf7\u4f18\u5316\u8fd9\u4e2a\u56fe\u50cf\u63cf\u8ff0\uff1a{{ $('GET\u8bf7\u6c42').item.json.query.prompt }}\"\n }\n ],\n \"max_tokens\": 300,\n \"temperature\": 0.7\n}",
"options": {}
},
"id": "da9769b1-b88a-4ef3-9e89-bf213239ae49",
"name": "\u63d0\u793a\u8bcd\u4f18\u5316",
"type": "n8n-nodes-base.httpRequest",
"position": [
200,
300
],
"typeVersion": 4.2,
"credentials": {
"httpBearerAuth": {
"name": "<your credential>"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "06e13542-cb9a-4a81-823e-07c913ba79f9",
"leftValue": "={{ $('GET\u8bf7\u6c42').item.json.query.seed }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
400,
300
],
"id": "c012a7ed-4037-460d-850f-774e309bbb72",
"name": "Seed\u503c\u6709\u65e0"
},
{
"parameters": {
"method": "POST",
"url": "https://api.siliconflow.cn/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"prompt_enhancement\": false,\n \"prompt\": \"{{ $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content }}\",\n \"image_size\": \"{{ $ifEmpty($('GET\u8bf7\u6c42').item.json.query.width, 1024) }}x{{ $ifEmpty($('GET\u8bf7\u6c42').item.json.query.height, 1024) }}\",\n \"model\": \"Kwai-Kolors/Kolors\",\n \"seed\": {{ $('GET\u8bf7\u6c42').item.json.query.seed }}\n}",
"options": {}
},
"id": "050eaa39-4e6e-46c1-a71b-edd4da244d92",
"name": "\u56fe\u50cf\u751f\u6210(\u6709seed)",
"type": "n8n-nodes-base.httpRequest",
"position": [
600,
200
],
"typeVersion": 4.2,
"retryOnFail": false,
"credentials": {
"httpBearerAuth": {
"name": "<your credential>"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"method": "POST",
"url": "https://api.siliconflow.cn/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"prompt_enhancement\": false,\n \"prompt\": \"{{ $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content }}\",\n \"image_size\": \"{{ $ifEmpty($('GET\u8bf7\u6c42').item.json.query.width, 1024) }}x{{ $ifEmpty($('GET\u8bf7\u6c42').item.json.query.height, 1024) }}\",\n \"model\": \"black-forest-labs/FLUX.1-dev\"\n}",
"options": {}
},
"id": "e0e0125f-7437-4274-bc88-f0cdb39a7fca",
"name": "\u56fe\u50cf\u751f\u6210(\u65e0seed)",
"type": "n8n-nodes-base.httpRequest",
"position": [
600,
400
],
"typeVersion": 4.2,
"retryOnFail": false,
"credentials": {
"httpBearerAuth": {
"name": "<your credential>"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ {\n \"success\": true,\n \"originalPrompt\": $('GET\u8bf7\u6c42').item.json.query.prompt,\n \"enhancedPrompt\": $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content,\n \"imageUrl\": $json.images[0].url,\n \"parameters\": {\n \"width\": $ifEmpty($('GET\u8bf7\u6c42').item.json.query.width, 1024),\n \"height\": $ifEmpty($('GET\u8bf7\u6c42').item.json.query.height, 1024),\n \"seed\": $('GET\u8bf7\u6c42').item.json.query.seed,\n \"model\": \"Kwai-Kolors/Kolors\"\n }\n} }}",
"options": {}
},
"id": "8cc40247-48df-4c8f-b96c-92002c0a26a1",
"name": "\u6210\u529f\u54cd\u5e94(\u6709seed)",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
800,
200
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ {\n \"success\": true,\n \"originalPrompt\": $('GET\u8bf7\u6c42').item.json.query.prompt,\n \"enhancedPrompt\": $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content,\n \"imageUrl\": $json.images[0].url,\n \"parameters\": {\n \"width\": $ifEmpty($('GET\u8bf7\u6c42').item.json.query.width, 1024),\n \"height\": $ifEmpty($('GET\u8bf7\u6c42').item.json.query.height, 1024),\n \"seed\": null,\n \"model\": \"black-forest-labs/FLUX.1-dev\"\n }\n} }}",
"options": {}
},
"id": "6986dbef-8248-4c0a-aabe-3be567d2177a",
"name": "\u6210\u529f\u54cd\u5e94(\u65e0seed)",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
800,
400
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ {\n \"success\": false,\n \"error\": \"\u63d0\u793a\u8bcd\u4f18\u5316\u5931\u8d25\uff1a\" + ($json.error.message || '\u672a\u77e5\u9519\u8bef'),\n \"step\": \"prompt_enhancement\"\n} }}",
"options": {}
},
"id": "a4d096df-daf4-41fc-8ade-0ec10d3c9ef3",
"name": "\u63d0\u793a\u8bcd\u4f18\u5316\u9519\u8bef",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
400,
460
],
"typeVersion": 1.1
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ {\n \"success\": false,\n \"error\": \"\u56fe\u50cf\u751f\u6210\u5931\u8d25\uff1a\" + ($json.error.message || '\u672a\u77e5\u9519\u8bef'),\n \"step\": \"image_generation\",\n \"enhancedPrompt\": $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content\n} }}",
"options": {}
},
"id": "11088d91-cadb-499b-ad02-3f44da02b9ed",
"name": "\u56fe\u50cf\u751f\u6210\u9519\u8bef(\u6709seed)",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
800,
100
],
"typeVersion": 1.1
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ {\n \"success\": false,\n \"error\": \"\u56fe\u50cf\u751f\u6210\u5931\u8d25\uff1a\" + ($json.error.message || '\u672a\u77e5\u9519\u8bef'),\n \"step\": \"image_generation\",\n \"enhancedPrompt\": $('\u63d0\u793a\u8bcd\u4f18\u5316').item.json.choices[0].message.content\n} }}",
"options": {}
},
"id": "de235342-c1fb-4301-a04d-5fc9cb19ab08",
"name": "\u56fe\u50cf\u751f\u6210\u9519\u8bef(\u65e0seed)",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
800,
540
],
"typeVersion": 1.1
},
{
"parameters": {
"content": "## FLUX \u589e\u5f3a\u7248\u56fe\u50cf\u751f\u6210\u5de5\u4f5c\u6d41 (v1.102.1\u5b8c\u5168\u4fee\u590d\u7248)\n\n\u529f\u80fd\u7279\u6027\uff1a\n1. \u667a\u80fd\u63d0\u793a\u8bcd\u4f18\u5316 - \u4f7f\u7528Qwen\u6a21\u578b\u4f18\u5316\u7528\u6237\u8f93\u5165\n2. \u4e13\u4e1a\u56fe\u50cf\u751f\u6210 - \u4f7f\u7528FLUX.1-dev\u6a21\u578b\n3. JSON\u54cd\u5e94\u683c\u5f0f - \u4fbf\u4e8e\u524d\u7aef\u96c6\u6210\n4. \u5b8c\u6574\u9519\u8bef\u5904\u7406 - \u5206\u6b65\u9aa4\u9519\u8bef\u4fe1\u606f\n5. \u7248\u672c\u517c\u5bb9\u6027 - \u5b8c\u5168\u652f\u6301n8n 1.102.1\n\n\u4f7f\u7528\u65b9\u6cd5\uff1a\n- GET /webhook/flux?prompt=\u63cf\u8ff0&width=1024&height=1024&seed=123456\n\n\u4fee\u590d\u5185\u5bb9\uff1a\n- \u4f7f\u7528\u65b0\u7684\u8868\u8fbe\u5f0f\u8bed\u6cd5 ={{ }} \u66ff\u4ee3\u5b57\u7b26\u4e32\u6a21\u677f\n- \u4fee\u590dJSON\u54cd\u5e94\u4f53\u4e2d\u7684null\u503c\u5904\u7406\n- \u4f18\u5316\u5b57\u7b26\u4e32\u62fc\u63a5\u903b\u8f91\n- \u786e\u4fdd\u6240\u6709\u8868\u8fbe\u5f0f\u7b26\u5408\u6700\u65b0\u89c4\u8303\n\n\u8fd4\u56de\u683c\u5f0f\uff1a\n{\n \"success\": true/false,\n \"originalPrompt\": \"\u539f\u59cb\u63d0\u793a\u8bcd\",\n \"enhancedPrompt\": \"\u4f18\u5316\u540e\u63d0\u793a\u8bcd\",\n \"imageUrl\": \"\u56fe\u50cfURL\",\n \"parameters\": {...}\n}",
"height": 900,
"width": 1420,
"color": 2
},
"id": "7c7e3566-875d-45d9-be40-ef7e4b491b15",
"name": "\u8bf4\u660e\u6587\u6863",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-320,
-80
]
}
],
"connections": {
"GET\u8bf7\u6c42": {
"main": [
[
{
"node": "\u63d0\u793a\u8bcd\u4f18\u5316",
"type": "main",
"index": 0
}
]
]
},
"\u63d0\u793a\u8bcd\u4f18\u5316": {
"main": [
[
{
"node": "Seed\u503c\u6709\u65e0",
"type": "main",
"index": 0
}
],
[
{
"node": "\u63d0\u793a\u8bcd\u4f18\u5316\u9519\u8bef",
"type": "main",
"index": 0
}
]
]
},
"Seed\u503c\u6709\u65e0": {
"main": [
[
{
"node": "\u56fe\u50cf\u751f\u6210(\u6709seed)",
"type": "main",
"index": 0
}
],
[
{
"node": "\u56fe\u50cf\u751f\u6210(\u65e0seed)",
"type": "main",
"index": 0
}
]
]
},
"\u56fe\u50cf\u751f\u6210(\u6709seed)": {
"main": [
[
{
"node": "\u6210\u529f\u54cd\u5e94(\u6709seed)",
"type": "main",
"index": 0
}
],
[
{
"node": "\u56fe\u50cf\u751f\u6210\u9519\u8bef(\u6709seed)",
"type": "main",
"index": 0
}
]
]
},
"\u56fe\u50cf\u751f\u6210(\u65e0seed)": {
"main": [
[
{
"node": "\u6210\u529f\u54cd\u5e94(\u65e0seed)",
"type": "main",
"index": 0
}
],
[
{
"node": "\u56fe\u50cf\u751f\u6210\u9519\u8bef(\u65e0seed)",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "6e01b326-7353-496d-8234-983fe42022ee",
"id": "3hzHxl5jf5AQc7co",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpBearerAuth
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
flux250711_fixed. Uses httpRequest. Webhook trigger; 11 nodes.
Source: https://github.com/LisaPullman/flux/blob/b7a8c9a90fe54702d81faee84d7ea56b437462ff/flux250711_fixed.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c
Sign PDF documents with legally-compliant digital signatures using X.509 certificates. Supports multiple PAdES signature levels (B, T, LT, LTA) with optional visible stamps.
📡 This workflow serves as the central Alpha Vantage API fetcher for Tesla trading indicators, delivering cleaned 20-point JSON outputs for three timeframes: , , and . It is required by the following a