{ "name": "Flux 绘图", "intro": "通过请求 Flux 接口绘图,需要有 api key", "author": "FastGPT", "avatar": "/appMarketTemplates/flux/avatar.svg", "type": "plugin", "tags": ["image-generation"], "workflow": { "nodes": [ { "nodeId": "pluginInput", "name": "插件开始", "intro": "可以配置插件需要哪些输入,利用这些输入来运行插件", "avatar": "core/workflow/template/workflowStart", "flowNodeType": "pluginInput", "showStatus": false, "position": { "x": 503.3030871469042, "y": -91.64434154072819 }, "version": "481", "inputs": [ { "renderTypeList": ["reference"], "selectedTypeIndex": 0, "valueType": "string", "canEdit": true, "key": "绘图提示词", "label": "绘图提示词", "description": "绘图提示词", "required": true, "toolDescription": "绘图提示词" } ], "outputs": [ { "id": "绘图提示词", "valueType": "string", "key": "绘图提示词", "label": "绘图提示词", "type": "hidden" } ] }, { "nodeId": "pluginOutput", "name": "插件输出", "intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出", "avatar": "core/workflow/template/pluginOutput", "flowNodeType": "pluginOutput", "showStatus": false, "position": { "x": 1876.2082565873427, "y": -110.14434154072819 }, "version": "481", "inputs": [ { "renderTypeList": ["reference"], "valueType": "string", "canEdit": true, "key": "图片访问链接", "label": "图片访问链接", "description": "", "value": ["tMvel910bnrJ", "pJXgWoTpPoMy"] }, { "renderTypeList": ["reference"], "valueType": "object", "canEdit": true, "key": "error", "label": "错误信息", "description": "", "value": ["tMvel910bnrJ", "error"] } ], "outputs": [] }, { "nodeId": "tMvel910bnrJ", "name": "HTTP 请求", "intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)", "avatar": "core/workflow/template/httpRequest", "flowNodeType": "httpRequest468", "showStatus": true, "position": { "x": 1138.1732435351091, "y": -416.6443415407282 }, "version": "481", "inputs": [ { "key": "system_addInputParam", "renderTypeList": ["addInputParam"], "valueType": "dynamic", "label": "", "required": false, "description": "common:core.module.input.description.HTTP Dynamic Input", "customInputConfig": { "selectValueTypeList": [ "string", "number", "boolean", "object", "arrayString", "arrayNumber", "arrayBoolean", "arrayObject", "arrayAny", "any", "chatHistory", "datasetQuote", "dynamic", "selectApp", "selectDataset" ], "showDescription": false, "showDefaultValue": true }, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpMethod", "renderTypeList": ["custom"], "valueType": "string", "label": "", "value": "POST", "required": true, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpTimeout", "renderTypeList": ["custom"], "valueType": "number", "label": "", "value": 30, "min": 5, "max": 600, "required": true, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpReqUrl", "renderTypeList": ["hidden"], "valueType": "string", "label": "", "description": "common:core.module.input.description.Http Request Url", "placeholder": "https://api.ai.com/getInventory", "required": false, "value": "https://fal.run/fal-ai/flux-pro", "debugLabel": "", "toolDescription": "" }, { "key": "system_httpHeader", "renderTypeList": ["custom"], "valueType": "any", "value": [ { "key": "Authorization", "type": "string", "value": "Key {{apikey}}" } ], "label": "", "description": "common:core.module.input.description.Http Request Header", "placeholder": "common:core.module.input.description.Http Request Header", "required": false, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpParams", "renderTypeList": ["hidden"], "valueType": "any", "value": [], "label": "", "required": false, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpJsonBody", "renderTypeList": ["hidden"], "valueType": "any", "value": "{\n \"prompt\": \"{{prompt}}\",\n \"image_size\": \"landscape_4_3\",\n \"num_inference_steps\": 28,\n \"guidance_scale\": 3.5\n}", "label": "", "required": false, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpFormBody", "renderTypeList": ["hidden"], "valueType": "any", "value": [], "label": "", "required": false, "debugLabel": "", "toolDescription": "" }, { "key": "system_httpContentType", "renderTypeList": ["hidden"], "valueType": "string", "value": "json", "label": "", "required": false, "debugLabel": "", "toolDescription": "" }, { "renderTypeList": ["reference"], "valueType": "string", "canEdit": true, "key": "prompt", "label": "prompt", "customInputConfig": { "selectValueTypeList": [ "string", "number", "boolean", "object", "arrayString", "arrayNumber", "arrayBoolean", "arrayObject", "arrayAny", "any", "chatHistory", "datasetQuote", "dynamic", "selectApp", "selectDataset" ], "showDescription": false, "showDefaultValue": true }, "required": true, "value": ["pluginInput", "绘图提示词"] } ], "outputs": [ { "id": "error", "key": "error", "label": "workflow:request_error", "description": "HTTP请求错误信息,成功时返回空", "valueType": "object", "type": "static" }, { "id": "httpRawResponse", "key": "httpRawResponse", "required": true, "label": "workflow:raw_response", "description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。", "valueType": "any", "type": "static" }, { "id": "system_addOutputParam", "key": "system_addOutputParam", "type": "dynamic", "valueType": "dynamic", "label": "", "customFieldConfig": { "selectValueTypeList": [ "string", "number", "boolean", "object", "arrayString", "arrayNumber", "arrayBoolean", "arrayObject", "any", "chatHistory", "datasetQuote", "dynamic", "selectApp", "selectDataset" ], "showDescription": false, "showDefaultValue": false } }, { "id": "pJXgWoTpPoMy", "valueType": "string", "type": "dynamic", "key": "images[0].url", "label": "images[0].url" } ] }, { "nodeId": "lSYsc889IXDr", "name": "系统配置", "intro": "", "avatar": "core/workflow/template/systemConfig", "flowNodeType": "pluginConfig", "position": { "x": 45.52914573588026, "y": -110.14434154072819 }, "version": "4811", "inputs": [], "outputs": [] } ], "edges": [ { "source": "pluginInput", "target": "tMvel910bnrJ", "sourceHandle": "pluginInput-source-right", "targetHandle": "tMvel910bnrJ-target-left" }, { "source": "tMvel910bnrJ", "target": "pluginOutput", "sourceHandle": "tMvel910bnrJ-source-right", "targetHandle": "pluginOutput-target-left" } ] } }