kimi-3d-worlds / workflow.json
akhaliq's picture
akhaliq HF Staff
Add workflow graph: brief+style -> world -> remix chain
facbca9 verified
Raw History Blame Contribute Delete
3.97 kB
{
"schema_version": "2",
"name": "Kimi 3D Worlds — Workflow",
"references": [
{
"id": "ref_prompt",
"label": "World Brief",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 40,
"width": 300,
"height": 140,
"data": {
"out": "A bioluminescent coral reef city at night, drifting jellyfish, glowing spires"
}
},
{
"id": "ref_style",
"label": "Style Preset",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 220,
"width": 300,
"height": 110,
"data": {"out": "dreamlike"}
},
{
"id": "ref_remix_instruction",
"label": "Remix Instruction",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 720,
"y": 40,
"width": 300,
"height": 120,
"data": {"out": "make it dawn, warmer light, calmer motion"}
}
],
"operators": [
{
"id": "op_world",
"label": "Kimi World",
"role": "operator",
"kind": "fn",
"fn": "kimi_world",
"inputs": [
{"id": "prompt", "label": "World Brief", "type": "text", "required": true},
{"id": "style", "label": "Style", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "World HTML", "type": "text", "output_index": 0}],
"x": 420,
"y": 100,
"width": 240,
"height": 150,
"data": {}
},
{
"id": "op_remix",
"label": "Kimi Remix (chained)",
"role": "operator",
"kind": "fn",
"fn": "kimi_remix",
"inputs": [
{"id": "html_src", "label": "World HTML", "type": "text", "required": true},
{"id": "instruction", "label": "Change", "type": "text", "required": true}
],
"outputs": [{"id": "out_0", "label": "Remixed HTML", "type": "text", "output_index": 0}],
"x": 1080,
"y": 100,
"width": 240,
"height": 150,
"data": {}
}
],
"subjects": [
{
"id": "sub_world",
"label": "World HTML",
"role": "subject",
"asset_type": "text",
"inputs": [{"id": "in", "label": "HTML", "type": "text"}],
"outputs": [{"id": "out", "label": "HTML", "type": "text"}],
"x": 720,
"y": 300,
"width": 240,
"height": 110,
"data": {}
},
{
"id": "sub_remixed",
"label": "Final World HTML",
"role": "subject",
"asset_type": "text",
"inputs": [{"id": "in", "label": "HTML", "type": "text"}],
"outputs": [{"id": "out", "label": "HTML", "type": "text"}],
"x": 1380,
"y": 100,
"width": 240,
"height": 110,
"data": {}
}
],
"edges": [
{"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_world", "to_port_id": "prompt", "type": "text"},
{"id": "e_style", "from_node_id": "ref_style", "from_port_id": "out", "to_node_id": "op_world", "to_port_id": "style", "type": "text"},
{"id": "e_world_out", "from_node_id": "op_world", "from_port_id": "out_0", "to_node_id": "sub_world", "to_port_id": "in", "type": "text"},
{"id": "e_chain", "from_node_id": "op_world", "from_port_id": "out_0", "to_node_id": "op_remix", "to_port_id": "html_src", "type": "text"},
{"id": "e_remix_instruction", "from_node_id": "ref_remix_instruction", "from_port_id": "out", "to_node_id": "op_remix", "to_port_id": "instruction", "type": "text"},
{"id": "e_remix_out", "from_node_id": "op_remix", "from_port_id": "out_0", "to_node_id": "sub_remixed", "to_port_id": "in", "type": "text"}
]
}