Spaces:
Running
Running
| { | |
| "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" } | |
| ] | |
| } |