Spaces:
Running
Running
File size: 5,758 Bytes
4d40c75 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | {
"schema_version": "2",
"name": "Z-Image-Turbo",
"description": "Two-Space architecture: this Space is a gr.Workflow frontend that calls the akhaliq/Z-Image-Turbo Blocks backend via its /generate_image endpoint. The canvas forwards the visitor's HF OAuth token through gradio_client's call_space path, so signed-in PRO users get their proper quota metered against the backend Space.",
"runtime": { "default": "client" },
"view": { "default": "canvas" },
"references": [
{
"id": "ref_prompt",
"label": "Prompt",
"role": "reference",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Prompt", "type": "text" }],
"outputs": [{ "id": "out", "label": "Prompt", "type": "text" }],
"x": 60,
"y": 160,
"width": 240,
"height": 120,
"data": {
"out": "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
}
},
{
"id": "ref_height",
"label": "Height",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Height", "type": "number" }],
"outputs": [{ "id": "out", "label": "Height", "type": "number" }],
"x": 60,
"y": 300,
"width": 200,
"height": 90,
"data": { "out": 1024 }
},
{
"id": "ref_width",
"label": "Width",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Width", "type": "number" }],
"outputs": [{ "id": "out", "label": "Width", "type": "number" }],
"x": 60,
"y": 410,
"width": 200,
"height": 90,
"data": { "out": 1024 }
},
{
"id": "ref_steps",
"label": "Inference Steps",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Steps", "type": "number" }],
"outputs": [{ "id": "out", "label": "Steps", "type": "number" }],
"x": 60,
"y": 520,
"width": 200,
"height": 90,
"data": { "out": 9 }
},
{
"id": "ref_seed",
"label": "Seed",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Seed", "type": "number" }],
"outputs": [{ "id": "out", "label": "Seed", "type": "number" }],
"x": 60,
"y": 630,
"width": 200,
"height": 90,
"data": { "out": 42 }
},
{
"id": "ref_randomize",
"label": "Randomize Seed",
"role": "reference",
"asset_type": "boolean",
"inputs": [{ "id": "in", "label": "Randomize", "type": "boolean" }],
"outputs": [{ "id": "out", "label": "Randomize", "type": "boolean" }],
"x": 60,
"y": 740,
"width": 200,
"height": 90,
"data": { "out": true }
}
],
"operators": [
{
"id": "op_generate",
"label": "Z-Image-Turbo (backend)",
"role": "operator",
"kind": "space",
"source": "hf://spaces/akhaliq/Z-Image-Turbo",
"space_id": "akhaliq/Z-Image-Turbo",
"endpoint": "/generate_image",
"inputs": [
{ "id": "in_0", "label": "prompt", "type": "text", "required": true },
{ "id": "in_1", "label": "height", "type": "number" },
{ "id": "in_2", "label": "width", "type": "number" },
{ "id": "in_3", "label": "num_inference_steps", "type": "number" },
{ "id": "in_4", "label": "seed", "type": "number" },
{ "id": "in_5", "label": "randomize_seed", "type": "boolean" }
],
"outputs": [
{ "id": "out_0", "label": "image", "type": "image", "output_index": 0 },
{ "id": "out_1", "label": "seed_used", "type": "number", "output_index": 1 }
],
"x": 420,
"y": 320,
"width": 280,
"height": 220,
"data": {}
}
],
"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" }],
"x": 820,
"y": 280,
"width": 240,
"height": 130,
"data": {}
},
{
"id": "sub_seed",
"label": "Seed Used",
"role": "subject",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Seed", "type": "number" }],
"outputs": [{ "id": "out", "label": "Seed", "type": "number" }],
"x": 820,
"y": 460,
"width": 240,
"height": 100,
"data": {}
}
],
"edges": [
{ "id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_0", "type": "text" },
{ "id": "e_height", "from_node_id": "ref_height", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_1", "type": "number" },
{ "id": "e_width", "from_node_id": "ref_width", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_2", "type": "number" },
{ "id": "e_steps", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_3", "type": "number" },
{ "id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_4", "type": "number" },
{ "id": "e_randomize", "from_node_id": "ref_randomize", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "in_5", "type": "boolean" },
{ "id": "e_image_out", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_image", "to_port_id": "in", "type": "image" },
{ "id": "e_seed_out", "from_node_id": "op_generate", "from_port_id": "out_1", "to_node_id": "sub_seed", "to_port_id": "in", "type": "number" }
]
} |