Spaces:
Running
Running
| { | |
| "schema_version": "2", | |
| "name": "Ideogram 4 Pipeline", | |
| "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" }], | |
| "x": 60, | |
| "y": 180, | |
| "width": 240, | |
| "height": 124, | |
| "data": { "value": "a ginger cat wearing a tiny wizard hat reading a spellbook" } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_ideogram4", | |
| "label": "Ideogram 4", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "ideogram-ai/ideogram4", | |
| "endpoint": "/generate", | |
| "inputs": [ | |
| { "id": "in_prompt", "label": "prompt", "type": "text", "required": true }, | |
| { "id": "in_mode", "label": "mode", "type": "text", "choices": ["Turbo 路 12 steps", "Default 路 20 steps", "Quality 路 48 steps"] }, | |
| { "id": "in_upsampler", "label": "upsampler", "type": "text", "choices": ["Ideogram (remote)", "Qwen (local)"] }, | |
| { "id": "in_width", "label": "width", "type": "number" }, | |
| { "id": "in_height", "label": "height", "type": "number" }, | |
| { "id": "in_seed", "label": "seed", "type": "number" }, | |
| { "id": "in_randomize_seed", "label": "randomize_seed", "type": "boolean" } | |
| ], | |
| "outputs": [ | |
| { "id": "out_image", "label": "Image", "type": "image", "output_index": 0 }, | |
| { "id": "out_seed", "label": "Seed", "type": "number", "output_index": 1 }, | |
| { "id": "out_caption", "label": "Caption", "type": "json", "output_index": 2 } | |
| ], | |
| "x": 380, | |
| "y": 80, | |
| "width": 280, | |
| "height": 460, | |
| "data": { | |
| "in_mode": "Default 路 20 steps", | |
| "in_upsampler": "Ideogram (remote)", | |
| "in_width": 1024, | |
| "in_height": 1024, | |
| "in_seed": 0, | |
| "in_randomize_seed": true | |
| } | |
| } | |
| ], | |
| "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": 740, | |
| "y": 60, | |
| "width": 240, | |
| "height": 107, | |
| "data": {} | |
| }, | |
| { | |
| "id": "sub_seed", | |
| "label": "Seed", | |
| "role": "subject", | |
| "asset_type": "number", | |
| "inputs": [{ "id": "in", "label": "Number", "type": "number" }], | |
| "outputs": [{ "id": "out", "label": "Number", "type": "number" }], | |
| "x": 740, | |
| "y": 200, | |
| "width": 240, | |
| "height": 107, | |
| "data": {} | |
| }, | |
| { | |
| "id": "sub_caption", | |
| "label": "Caption", | |
| "role": "subject", | |
| "asset_type": "json", | |
| "inputs": [{ "id": "in", "label": "JSON", "type": "json" }], | |
| "outputs": [{ "id": "out", "label": "JSON", "type": "json" }], | |
| "x": 740, | |
| "y": 340, | |
| "width": 240, | |
| "height": 107, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e_prompt", | |
| "from_node_id": "ref_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "op_ideogram4", | |
| "to_port_id": "in_prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_image", | |
| "from_node_id": "op_ideogram4", | |
| "from_port_id": "out_image", | |
| "to_node_id": "sub_image", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e_seed", | |
| "from_node_id": "op_ideogram4", | |
| "from_port_id": "out_seed", | |
| "to_node_id": "sub_seed", | |
| "to_port_id": "in", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_caption", | |
| "from_node_id": "op_ideogram4", | |
| "from_port_id": "out_caption", | |
| "to_node_id": "sub_caption", | |
| "to_port_id": "in", | |
| "type": "json" | |
| } | |
| ] | |
| } |