akhaliq HF Staff commited on
Commit
f5c7479
·
1 Parent(s): e4c7cd0

Add Z-Image-Turbo text-to-image workflow

Browse files
Files changed (1) hide show
  1. workflow.json +62 -1
workflow.json CHANGED
@@ -1 +1,62 @@
1
- {"schema_version":"2","name":"My Workflow","runtime":{"default":"client"},"references":[],"operators":[],"subjects":[],"edges":[],"view":{"default":"canvas"}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "2",
3
+ "name": "Z-Image-Turbo Text-to-Image",
4
+ "runtime": {"default": "client"},
5
+ "references": [
6
+ {
7
+ "id": "ref_prompt",
8
+ "label": "Prompt",
9
+ "role": "reference",
10
+ "asset_type": "text",
11
+ "inputs": [{"id": "in", "label": "Text", "type": "text"}],
12
+ "outputs": [{"id": "out", "label": "Text", "type": "text"}]
13
+ }
14
+ ],
15
+ "operators": [
16
+ {
17
+ "id": "op_zimage",
18
+ "label": "Z-Image-Turbo",
19
+ "role": "operator",
20
+ "kind": "space",
21
+ "space_id": "mrfakename/Z-Image-Turbo",
22
+ "endpoint": "/generate_image",
23
+ "inputs": [
24
+ {"id": "prompt", "label": "Prompt", "type": "text", "required": true},
25
+ {"id": "height", "label": "Height", "type": "number", "default": 1024},
26
+ {"id": "width", "label": "Width", "type": "number", "default": 1024},
27
+ {"id": "num_inference_steps", "label": "Inference Steps", "type": "number", "default": 9},
28
+ {"id": "seed", "label": "Seed", "type": "number", "default": 42},
29
+ {"id": "randomize_seed", "label": "Randomize Seed", "type": "boolean", "default": true}
30
+ ],
31
+ "outputs": [
32
+ {"id": "out_0", "label": "Image", "type": "image", "output_index": 0},
33
+ {"id": "out_1", "label": "Seed Used", "type": "number", "output_index": 1}
34
+ ]
35
+ }
36
+ ],
37
+ "subjects": [
38
+ {
39
+ "id": "sub_image",
40
+ "label": "Output Image",
41
+ "role": "subject",
42
+ "asset_type": "image",
43
+ "inputs": [{"id": "in", "label": "Image", "type": "image"}],
44
+ "outputs": [{"id": "out", "label": "Image", "type": "image"}]
45
+ }
46
+ ],
47
+ "edges": [
48
+ {
49
+ "id": "e1",
50
+ "from_node_id": "ref_prompt", "from_port_id": "out",
51
+ "to_node_id": "op_zimage", "to_port_id": "prompt",
52
+ "type": "text"
53
+ },
54
+ {
55
+ "id": "e2",
56
+ "from_node_id": "op_zimage", "from_port_id": "out_0",
57
+ "to_node_id": "sub_image", "to_port_id": "in",
58
+ "type": "image"
59
+ }
60
+ ],
61
+ "view": {"default": "canvas"}
62
+ }