{ "active": true, "connections": [ { "sourceNodeId": "node_1785999268136", "sourceOutput": "main", "targetInput": "config", "targetNodeId": "node_1786002941621" }, { "sourceNodeId": "node_1786002941621", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786004423373" }, { "sourceNodeId": "node_1785999268136", "sourceOutput": "main", "targetInput": "config", "targetNodeId": "node_1786004423373" }, { "sourceNodeId": "node_1785999216336", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786002941621" }, { "sourceNodeId": "node_1785999221583", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786002941621" }, { "sourceNodeId": "node_1785999268136", "sourceOutput": "main", "targetInput": "config", "targetNodeId": "node_1786011832521" }, { "sourceNodeId": "node_1786004423373", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786011832521" }, { "sourceNodeId": "node_1785999268136", "sourceOutput": "main", "targetInput": "config", "targetNodeId": "node_1786013716017" }, { "sourceNodeId": "node_1786011832521", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786029193764_8510" }, { "sourceNodeId": "node_1786029193764_8510", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786013716017" }, { "sourceNodeId": "node_1786013716017", "sourceOutput": "main", "targetInput": "data", "targetNodeId": "node_1786003128448" } ], "name": "[SWF] SDCCP v2 generate image", "nodes": [ { "config": { "allowExtra": false, "fields": [ { "defaultValue": "", "description": "What to generate", "name": "prompt", "required": true }, { "defaultValue": "1024", "description": "Target width", "name": "width", "required": true }, { "defaultValue": "1024", "description": "Target height", "name": "height", "required": true }, { "defaultValue": "", "description": "Appended to the prompt. Empty for none", "name": "loraTag", "required": false }, { "defaultValue": "reddit/r/selfie", "description": "Job title, so the queue says which workflow asked", "name": "title", "required": false }, { "defaultValue": "sdcpp_outputs", "description": "Where the finished image is stored", "name": "collection", "required": false }, { "defaultValue": "2", "description": "How many images", "name": "batchCount", "required": false }, { "defaultValue": "24", "description": "How long the stored image lives. 0 keeps it for good", "name": "keepForHours", "required": false }, { "defaultValue": true, "description": "Keep a copy of the generated image in the database. The image is already on the SD.cpp server and is fetched from there by URL, so a caller that publishes it elsewhere does not need a second copy.", "name": "storeInDatabase", "required": false } ] }, "disabled": false, "id": "node_1785999216336", "name": "Workflow Input", "position": { "x": 320, "y": 0 }, "type": "workflow-input" }, { "config": { "label": "Execute" }, "disabled": false, "id": "node_1785999221583", "name": "Click Trigger", "position": { "x": 620, "y": 0 }, "type": "click-trigger" }, { "config": { "settings": [ { "name": "credentialId", "value": "cred_62748b40-e9d1-4659-b175-6dbc691cc0b1" }, { "name": "serverUrl", "value": "http://mulan:8077" } ] }, "disabled": false, "id": "node_1785999268136", "name": "Configurator", "position": { "x": -300, "y": 180 }, "type": "configurator" }, { "config": { "backend": "", "diffusionConvDirect": false, "diffusionFlashAttn": true, "eagerLoad": true, "enableMmap": false, "flashAttn": true, "force": false, "forceSdxlVaeConvScale": false, "llm": "Huihui-Qwen3-4B-abliterated-v2.f16.gguf", "loadWaitMs": 900000, "loraApplyMode": "", "maxVram": -1, "modelArgs": "", "modelName": "z_image_turbo_bf16.safetensors", "modelType": "diffusion", "nThreads": 10, "options": {}, "paramsBackend": "*=cpu", "prediction": "", "rngType": "", "rpcServers": "", "samplerRngType": "", "serverUrl": "http://localhost:8077", "streamLayers": true, "taePreviewOnly": false, "timeout": 600000, "vae": "ae.safetensors", "vaeConvDirect": false, "vaeFormat": "auto", "weightType": "", "whenDifferent": "load" }, "disabled": false, "id": "node_1786002941621", "name": "SD.cpp Load Model", "position": { "x": 360, "y": 180 }, "type": "sdcpp-model-load" }, { "config": { "fields": [ { "name": "jobId", "value": "{{$node['SD.cpp Wait For Job'].jobId}}" }, { "name": "succeeded", "value": "{{$node['SD.cpp Wait For Job'].succeeded}}" }, { "name": "outputs", "value": "{{$node['SD.cpp Wait For Job'].outputs}}" }, { "name": "urls", "value": "{{$node['SD.cpp Wait For Job'].urls}}" }, { "name": "count", "value": "{{$node['SD.cpp Fetch Output'].count}}" }, { "name": "stored", "value": "{{$node['SD.cpp Fetch Output'].storage}}" }, { "name": "error", "value": "{{$node['SD.cpp Wait For Job'].error}}" } ], "source": "fields" }, "disabled": false, "id": "node_1786003128448", "name": "Workflow Output", "position": { "x": 0, "y": 1260 }, "type": "workflow-output" }, { "config": { "batchCount": "{{$node[\"Workflow Input\"].batchCount}}", "cacheMode": "off", "cfgScale": 1, "clipSkip": -1, "height": "{{$node[\"Workflow Input\"].height}}", "prompt": "{{$node[\"Workflow Input\"].prompt}} {{$node[\"Workflow Input\"].loraTag}}", "sampler": "euler", "scheduler": "smoothstep", "seed": 42, "serverUrl": "http://localhost:8077", "steps": 9, "timeout": 30000, "title": "{{$node[\"Workflow Input\"].title}}", "width": "{{$node[\"Workflow Input\"].width}}" }, "disabled": false, "id": "node_1786004423373", "name": "SD.cpp Text to Image", "position": { "x": 360, "y": 360 }, "type": "sdcpp-txt2img" }, { "config": { "failOnJobFailure": false, "failOnTimeout": false, "jobId": "{{$node[\"SD.cpp Text to Image\"].jobId}}", "maxWait": 600000, "pollInterval": 2000, "serverUrl": "http://localhost:8077", "timeout": 30000 }, "disabled": false, "id": "node_1786011832521", "name": "SD.cpp Wait For Job", "position": { "x": 140, "y": 540 }, "type": "sdcpp-job-wait" }, { "config": { "collection": "{{$node[\"Workflow Input\"].collection}}", "limit": 0, "paths": [ "{{$node[\"SD.cpp Wait For Job\"].outputs}}" ], "serverUrl": "http://localhost:8077", "storageTtlHours": "{{$node[\"Workflow Input\"].keepForHours}}", "storeInDatabase": "{{String($node['Workflow Input'].storeInDatabase) !== 'false'}}", "timeout": 120000 }, "disabled": false, "id": "node_1786013716017", "name": "SD.cpp Fetch Output", "position": { "x": 0, "y": 900 }, "type": "sdcpp-fetch-output" }, { "config": { "duration": 500, "unit": "milliseconds" }, "disabled": false, "id": "node_1786029193764_8510", "name": "Wait", "position": { "x": 140, "y": 720 }, "type": "wait" } ], "settings": { "errorWorkflowId": "wf_766fcbcb-6345-4e9c-b7f8-f219505ee45c", "storagePermissions": { "collections": { "anime_images": "read-write", "files": "read-write", "sdcpp_outputs": "read-write" }, "defaultAccess": "none" } } }