workflow-test / workflow.json
akhaliq's picture
akhaliq HF Staff
Add Z-Image-Turbo text-to-image workflow
f5c7479
Raw
History Blame Contribute Delete
1.98 kB
{
"schema_version": "2",
"name": "Z-Image-Turbo Text-to-Image",
"runtime": {"default": "client"},
"references": [
{
"id": "ref_prompt",
"label": "Prompt",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}]
}
],
"operators": [
{
"id": "op_zimage",
"label": "Z-Image-Turbo",
"role": "operator",
"kind": "space",
"space_id": "mrfakename/Z-Image-Turbo",
"endpoint": "/generate_image",
"inputs": [
{"id": "prompt", "label": "Prompt", "type": "text", "required": true},
{"id": "height", "label": "Height", "type": "number", "default": 1024},
{"id": "width", "label": "Width", "type": "number", "default": 1024},
{"id": "num_inference_steps", "label": "Inference Steps", "type": "number", "default": 9},
{"id": "seed", "label": "Seed", "type": "number", "default": 42},
{"id": "randomize_seed", "label": "Randomize Seed", "type": "boolean", "default": true}
],
"outputs": [
{"id": "out_0", "label": "Image", "type": "image", "output_index": 0},
{"id": "out_1", "label": "Seed Used", "type": "number", "output_index": 1}
]
}
],
"subjects": [
{
"id": "sub_image",
"label": "Output Image",
"role": "subject",
"asset_type": "image",
"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_zimage", "to_port_id": "prompt",
"type": "text"
},
{
"id": "e2",
"from_node_id": "op_zimage", "from_port_id": "out_0",
"to_node_id": "sub_image", "to_port_id": "in",
"type": "image"
}
],
"view": {"default": "canvas"}
}