workflow / workflow.json
akhaliq's picture
akhaliq HF Staff
Add image editor lane for Ideogram 4 output using FLUX.2-klein
b1bc991
{
"schema_version": "2",
"name": "FLUX.1-dev & Z-Image & Ideogram 4 Compare/Edit Workflow v4",
"runtime": {
"default": "client"
},
"references": [
{
"id": "ref_concept",
"label": "Text",
"inputs": [
{
"id": "in",
"label": "Text",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Text",
"type": "text"
}
],
"width": 220,
"height": 163,
"asset_type": "text",
"role": "reference",
"data": {
"in": "a ginger cat wearing a tiny wizard hat reading a spellbook"
},
"x": 80,
"y": 80
},
{
"id": "ref_prompt",
"label": "Expanded Prompt",
"inputs": [
{
"id": "in",
"label": "Text",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Text",
"type": "text"
}
],
"width": 220,
"height": 163,
"asset_type": "text",
"role": "reference",
"data": {
"in": ""
},
"x": 740,
"y": 80
},
{
"id": "ref_edit_prompt",
"label": "Edit Instruction",
"inputs": [
{
"id": "in",
"label": "Text",
"type": "text"
}
],
"outputs": [
{
"id": "out",
"label": "Text",
"type": "text"
}
],
"width": 220,
"height": 163,
"asset_type": "text",
"role": "reference",
"data": {
"in": "Turn the cat into a tiger"
},
"x": 1400,
"y": 590
}
],
"operators": [
{
"id": "op_generate_prompt",
"label": "Nemotron Prompt Generator",
"role": "operator",
"kind": "fn",
"fn": "generate_prompt",
"inputs": [
{
"id": "in_0",
"label": "concept",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "text"
}
],
"data": {},
"x": 380,
"y": 80,
"width": 280,
"height": 124
},
{
"id": "op_generate_image",
"label": "FLUX.1-dev Image Generator",
"role": "operator",
"kind": "fn",
"fn": "generate_image",
"inputs": [
{
"id": "in_0",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1040,
"y": 80,
"width": 280,
"height": 124
},
{
"id": "op_generate_z_image",
"label": "Z-Image-Turbo Generator",
"role": "operator",
"kind": "fn",
"fn": "generate_z_image",
"inputs": [
{
"id": "in_0",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1040,
"y": 250,
"width": 280,
"height": 124
},
{
"id": "op_edit_image_flux",
"label": "FLUX.2-klein Editor (FLUX.1-dev)",
"role": "operator",
"kind": "fn",
"fn": "edit_image",
"inputs": [
{
"id": "in_0",
"label": "image",
"type": "image",
"required": true
},
{
"id": "in_1",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1720,
"y": 80,
"width": 280,
"height": 140
},
{
"id": "op_edit_image_z",
"label": "FLUX.2-klein Editor (Z-Image)",
"role": "operator",
"kind": "fn",
"fn": "edit_image",
"inputs": [
{
"id": "in_0",
"label": "image",
"type": "image",
"required": true
},
{
"id": "in_1",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1720,
"y": 250,
"width": 280,
"height": 140
},
{
"id": "op_generate_ideogram_image",
"label": "Ideogram 4 Generator",
"role": "operator",
"kind": "fn",
"fn": "generate_ideogram_image",
"inputs": [
{
"id": "in_0",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1040,
"y": 420,
"width": 280,
"height": 124
},
{
"id": "op_edit_image_ideogram",
"label": "FLUX.2-klein Editor (Ideogram)",
"role": "operator",
"kind": "fn",
"fn": "edit_image",
"inputs": [
{
"id": "in_0",
"label": "image",
"type": "image",
"required": true
},
{
"id": "in_1",
"label": "prompt",
"type": "text",
"required": true
}
],
"outputs": [
{
"id": "out_0",
"label": "output",
"type": "image"
}
],
"data": {},
"x": 1720,
"y": 420,
"width": 280,
"height": 140
}
],
"subjects": [
{
"id": "subj_output_image",
"label": "Generated Image",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 1400,
"y": 80,
"width": 220,
"height": 107
},
{
"id": "subj_output_z_image",
"label": "Z-Image Output",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 1400,
"y": 250,
"width": 220,
"height": 107
},
{
"id": "subj_edited_image_flux",
"label": "Edited FLUX.1-dev Image",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 2060,
"y": 80,
"width": 220,
"height": 107
},
{
"id": "subj_edited_image_z",
"label": "Edited Z-Image",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 2060,
"y": 250,
"width": 220,
"height": 107
},
{
"id": "subj_output_ideogram_image",
"label": "Ideogram 4 Output",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 1400,
"y": 420,
"width": 220,
"height": 107
},
{
"id": "subj_edited_image_ideogram",
"label": "Edited Ideogram Image",
"role": "subject",
"asset_type": "image",
"inputs": [
{
"id": "in",
"label": "Image",
"type": "image"
}
],
"outputs": [
{
"id": "out",
"label": "Image",
"type": "image"
}
],
"data": {
"in": null
},
"x": 2060,
"y": 420,
"width": 220,
"height": 107
}
],
"edges": [
{
"id": "edge_1",
"from_node_id": "ref_concept",
"from_port_id": "out",
"to_node_id": "op_generate_prompt",
"to_port_id": "in_0",
"type": "text"
},
{
"id": "edge_2",
"from_node_id": "op_generate_prompt",
"from_port_id": "out_0",
"to_node_id": "ref_prompt",
"to_port_id": "in",
"type": "text"
},
{
"id": "edge_3",
"from_node_id": "ref_prompt",
"from_port_id": "out",
"to_node_id": "op_generate_image",
"to_port_id": "in_0",
"type": "text"
},
{
"id": "edge_4",
"from_node_id": "op_generate_image",
"from_port_id": "out_0",
"to_node_id": "subj_output_image",
"to_port_id": "in",
"type": "image"
},
{
"id": "edge_5",
"from_node_id": "ref_prompt",
"from_port_id": "out",
"to_node_id": "op_generate_z_image",
"to_port_id": "in_0",
"type": "text"
},
{
"id": "edge_6",
"from_node_id": "op_generate_z_image",
"from_port_id": "out_0",
"to_node_id": "subj_output_z_image",
"to_port_id": "in",
"type": "image"
},
{
"id": "edge_7",
"from_node_id": "op_generate_image",
"from_port_id": "out_0",
"to_node_id": "op_edit_image_flux",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "edge_8",
"from_node_id": "ref_edit_prompt",
"from_port_id": "out",
"to_node_id": "op_edit_image_flux",
"to_port_id": "in_1",
"type": "text"
},
{
"id": "edge_9",
"from_node_id": "op_edit_image_flux",
"from_port_id": "out_0",
"to_node_id": "subj_edited_image_flux",
"to_port_id": "in",
"type": "image"
},
{
"id": "edge_10",
"from_node_id": "op_generate_z_image",
"from_port_id": "out_0",
"to_node_id": "op_edit_image_z",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "edge_11",
"from_node_id": "ref_edit_prompt",
"from_port_id": "out",
"to_node_id": "op_edit_image_z",
"to_port_id": "in_1",
"type": "text"
},
{
"id": "edge_12",
"from_node_id": "op_edit_image_z",
"from_port_id": "out_0",
"to_node_id": "subj_edited_image_z",
"to_port_id": "in",
"type": "image"
},
{
"id": "edge_13",
"from_node_id": "ref_prompt",
"from_port_id": "out",
"to_node_id": "op_generate_ideogram_image",
"to_port_id": "in_0",
"type": "text"
},
{
"id": "edge_14",
"from_node_id": "op_generate_ideogram_image",
"from_port_id": "out_0",
"to_node_id": "subj_output_ideogram_image",
"to_port_id": "in",
"type": "image"
},
{
"id": "edge_15",
"from_node_id": "op_generate_ideogram_image",
"from_port_id": "out_0",
"to_node_id": "op_edit_image_ideogram",
"to_port_id": "in_0",
"type": "image"
},
{
"id": "edge_16",
"from_node_id": "ref_edit_prompt",
"from_port_id": "out",
"to_node_id": "op_edit_image_ideogram",
"to_port_id": "in_1",
"type": "text"
},
{
"id": "edge_17",
"from_node_id": "op_edit_image_ideogram",
"from_port_id": "out_0",
"to_node_id": "subj_edited_image_ideogram",
"to_port_id": "in",
"type": "image"
}
],
"view": {
"default": "canvas"
}
}