{ "schema_version": "2", "name": "Qwen-Image 2.1", "references": [ { "id": "ref_prompt", "label": "Prompt", "role": "reference", "asset_type": "text", "x": 40, "y": 40, "data": { "out": "A capybara wearing a wizard hat, oil painting" }, "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ] }, { "id": "ref_image", "label": "Condition Image", "role": "reference", "asset_type": "image", "x": 40, "y": 800, "data": {}, "inputs": [ { "id": "in", "label": "Image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Image", "type": "image" } ] }, { "id": "ref_instruction", "label": "Edit Instruction", "role": "reference", "asset_type": "text", "x": 40, "y": 1150, "data": { "out": "Move it to a snowy mountain top" }, "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ] } ], "operators": [ { "id": "op_enhance_t2i", "label": "Enhance Prompt (PE-T2I)", "role": "operator", "kind": "fn", "fn": "enhance_prompt_t2i", "x": 440, "y": 40, "inputs": [ { "id": "prompt", "label": "Prompt", "type": "text", "required": true }, { "id": "enhance", "label": "Enhance", "type": "boolean" } ], "outputs": [ { "id": "out_0", "label": "Rewritten Prompt", "type": "text", "output_index": 0 } ], "data": { "enhance": false } }, { "id": "op_t2i", "label": "Qwen-Image 2.1 Text-to-Image", "role": "operator", "kind": "fn", "fn": "text_to_image", "x": 840, "y": 330, "data": { "steps": 28 }, "inputs": [ { "id": "prompt", "label": "Prompt", "type": "text", "required": true }, { "id": "steps", "label": "Steps", "type": "number" } ], "outputs": [ { "id": "out_0", "label": "Image", "type": "image", "output_index": 0 } ] }, { "id": "op_enhance_i2i", "label": "Enhance Instruction (PE-I2I)", "role": "operator", "kind": "fn", "fn": "enhance_prompt_i2i", "x": 440, "y": 950, "inputs": [ { "id": "image", "label": "Image", "type": "image", "required": true }, { "id": "instruction", "label": "Instruction", "type": "text", "required": true }, { "id": "enhance", "label": "Enhance", "type": "boolean" } ], "outputs": [ { "id": "out_0", "label": "Rewritten Instruction", "type": "text", "output_index": 0 } ], "data": { "enhance": false } }, { "id": "op_edit", "label": "Qwen-Image 2.1 Edit", "role": "operator", "kind": "fn", "fn": "edit_image", "x": 840, "y": 1090, "data": { "steps": 28 }, "inputs": [ { "id": "image", "label": "Image", "type": "image", "required": true }, { "id": "instruction", "label": "Instruction", "type": "text", "required": true }, { "id": "steps", "label": "Steps", "type": "number" } ], "outputs": [ { "id": "out_0", "label": "Image", "type": "image", "output_index": 0 } ] } ], "subjects": [ { "id": "sub_prompt", "label": "Rewritten Prompt", "role": "subject", "asset_type": "text", "x": 840, "y": 40, "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ] }, { "id": "sub_generated", "label": "Generated Image", "role": "subject", "asset_type": "image", "x": 1240, "y": 330, "inputs": [ { "id": "in", "label": "Image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Image", "type": "image" } ] }, { "id": "sub_edit_prompt", "label": "Rewritten Instruction", "role": "subject", "asset_type": "text", "x": 840, "y": 800, "inputs": [ { "id": "in", "label": "Text", "type": "text" } ], "outputs": [ { "id": "out", "label": "Text", "type": "text" } ] }, { "id": "sub_edited", "label": "Edited Image", "role": "subject", "asset_type": "image", "x": 1240, "y": 800, "inputs": [ { "id": "in", "label": "Image", "type": "image" } ], "outputs": [ { "id": "out", "label": "Image", "type": "image" } ] } ], "edges": [ { "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_enhance_t2i", "to_port_id": "prompt", "type": "text" }, { "id": "e2", "from_node_id": "op_enhance_t2i", "from_port_id": "out_0", "to_node_id": "op_t2i", "to_port_id": "prompt", "type": "text" }, { "id": "e3", "from_node_id": "op_enhance_t2i", "from_port_id": "out_0", "to_node_id": "sub_prompt", "to_port_id": "in", "type": "text" }, { "id": "e4", "from_node_id": "op_t2i", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image" }, { "id": "e5", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_enhance_i2i", "to_port_id": "image", "type": "image" }, { "id": "e6", "from_node_id": "ref_instruction", "from_port_id": "out", "to_node_id": "op_enhance_i2i", "to_port_id": "instruction", "type": "text" }, { "id": "e7", "from_node_id": "op_enhance_i2i", "from_port_id": "out_0", "to_node_id": "op_edit", "to_port_id": "instruction", "type": "text" }, { "id": "e8", "from_node_id": "op_enhance_i2i", "from_port_id": "out_0", "to_node_id": "sub_edit_prompt", "to_port_id": "in", "type": "text" }, { "id": "e9", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "image", "type": "image" }, { "id": "e10", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image" } ] }