File size: 2,064 Bytes
218177b
 
a5fc622
218177b
 
 
a5fc622
218177b
 
a5fc622
218177b
 
 
 
a5fc622
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218177b
 
 
 
a5fc622
 
 
 
218177b
 
 
a5fc622
 
218177b
 
 
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
{
  "schema_version": "2",
  "name": "Model Endpoint Test",
  "runtime": { "default": "client" },
  "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": 80, "y": 140, "width": 220, "height": 120, "data": { "in": null }
    }
  ],
  "operators": [
    {
      "id": "op_model", "label": "Generate Image", "role": "operator",
      "kind": "model", "model_id": "black-forest-labs/FLUX.1-schnell",
      "endpoint": "text_to_image", "pipeline_tag": "text-to-image",
      "inputs": [
        { "id": "prompt", "label": "Prompt", "type": "text" },
        { "id": "negative_prompt", "label": "Negative Prompt", "type": "text" },
        { "id": "height", "label": "Height", "type": "number" },
        { "id": "width", "label": "Width", "type": "number" },
        { "id": "num_inference_steps", "label": "Steps", "type": "number" },
        { "id": "guidance_scale", "label": "Guidance Scale", "type": "number" },
        { "id": "seed", "label": "Seed", "type": "number" }
      ],
      "outputs": [{ "id": "out_0", "label": "Image", "type": "image", "output_index": 0 }],
      "x": 380, "y": 80, "width": 280, "height": 180,
      "data": { "height": 512, "width": 512, "num_inference_steps": 4 }
    }
  ],
  "subjects": [
    {
      "id": "subj_out", "label": "Image", "role": "subject", "asset_type": "image",
      "inputs": [{ "id": "in", "label": "Image", "type": "image" }],
      "outputs": [{ "id": "out", "label": "Image", "type": "image" }],
      "x": 740, "y": 140, "width": 220, "height": 140, "data": {}
    }
  ],
  "edges": [
    { "id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_model", "to_port_id": "prompt", "type": "text" },
    { "id": "e2", "from_node_id": "op_model", "from_port_id": "out_0", "to_node_id": "subj_out", "to_port_id": "in", "type": "image" }
  ],
  "view": { "default": "canvas" }
}