Z-Image-Turbo / workflow.json
akhaliq's picture
akhaliq HF Staff
Use schema_version 2 workflow.json with references/operators/subjects for proper image display
d3f0474
Raw
History Blame Contribute Delete
3.61 kB
{
"schema_version": "2",
"name": "Z-Image-Turbo Workflow",
"runtime": {
"default": "client"
},
"references": [
{
"id": "ref_concept",
"label": "Concept",
"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": 150
},
{
"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": 680,
"y": 150
}
],
"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": 150,
"width": 220,
"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": 980,
"y": 150,
"width": 220,
"height": 124
}
],
"subjects": [
{
"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": 1280,
"y": 150,
"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_z_image",
"to_port_id": "in_0",
"type": "text"
},
{
"id": "edge_4",
"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"
}
],
"view": {
"default": "canvas"
}
}