{
  "$schema": "https://openworkflowgraph.org/schemas/core/v0.92.json",
  "owg_version": "0.92",
  "id": "comfyui-text-to-image",
  "project_id": "comfyui-text-to-image",
  "profiles": [
    "core",
    "generative-ai"
  ],
  "description": "ComfyUI binding — one ComfyUI text-to-image run recorded as an OWG document: a comfyui_graph task whose interior is the executed graph, the checkpoint as a used asset, and an output labelled with IPTC Digital Source Type and AI properties. Read from a PNG written by ComfyUI 0.37.0's Save Image node (synthetic run: the pixels are a placeholder).",
  "participants": [
    {
      "id": "comfyui",
      "kind": "agent",
      "name": "ComfyUI",
      "operated_by": "operator"
    },
    {
      "id": "operator",
      "kind": "human",
      "name": "Dana Ortiz",
      "metadata": {
        "asserted_by": "dana.ortiz@example.com"
      }
    }
  ],
  "assets": [
    {
      "id": "cui_checkpoint_sd_xl_base_1_0_safetensors",
      "role": "checkpoint",
      "type": "model",
      "description": "sd_xl_base_1.0.safetensors",
      "identifiers": [
        {
          "scope": "comfyui.model",
          "id": "sd_xl_base_1.0.safetensors"
        }
      ],
      "metadata": {
        "comfyui": {
          "loader": "CheckpointLoaderSimple",
          "identified_by": "file_name"
        }
      }
    },
    {
      "id": "cui_out_lighthouse_00001_png",
      "role": "output",
      "type": "image",
      "content_type": "image/png",
      "description": "lighthouse_00001_.png",
      "produced_by": "generate",
      "state": "draft",
      "assurance": "asserted",
      "identifiers": [
        {
          "scope": "filename",
          "id": "lighthouse_00001_.png"
        }
      ],
      "metadata": {
        "iptc": {
          "DigitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia",
          "AISystemUsed": "ComfyUI (sd_xl_base_1.0.safetensors)",
          "AIPromptInformation": "a lighthouse on a sea cliff at golden hour, 35mm film, cinematic\nNegative: blurry, text, watermark",
          "AIPromptWriterName": "Dana Ortiz"
        }
      }
    }
  ],
  "tasks": [
    {
      "id": "generate",
      "label": "ComfyUI generation",
      "type": "work",
      "tool": "comfyui_graph",
      "executor": {
        "type": "comfyui_graph",
        "ref": "comfyui:prompt/sha256:f61f0cb64689e8cf673fbb5de899c9bc556c8669f59aab450e178f724fe0524e"
      },
      "ai_role": "generative",
      "performed_by": "comfyui",
      "used": [
        "cui_checkpoint_sd_xl_base_1_0_safetensors"
      ],
      "produced": [
        "cui_out_lighthouse_00001_png"
      ],
      "inputs": {
        "graph_ref": "comfyui:prompt/sha256:f61f0cb64689e8cf673fbb5de899c9bc556c8669f59aab450e178f724fe0524e",
        "prompt": "a lighthouse on a sea cliff at golden hour, 35mm film, cinematic",
        "negative_prompt": "blurry, text, watermark",
        "seed": 156680208700286,
        "model": "sd_xl_base_1.0.safetensors",
        "passes": [
          {
            "node": "3",
            "class_type": "KSampler",
            "seed": 156680208700286,
            "steps": 25,
            "cfg": 7,
            "sampler": "dpmpp_2m",
            "scheduler": "karras",
            "denoise": 1,
            "latent": "empty"
          }
        ],
        "size": {
          "width": 1024,
          "height": 1024,
          "batch": 1
        }
      },
      "subgraph": {
        "ref": "comfyui:prompt/sha256:f61f0cb64689e8cf673fbb5de899c9bc556c8669f59aab450e178f724fe0524e",
        "format": "comfyui.api_prompt",
        "graph": {
          "3": {
            "class_type": "KSampler",
            "inputs": {
              "seed": 156680208700286,
              "steps": 25,
              "cfg": 7,
              "sampler_name": "dpmpp_2m",
              "scheduler": "karras",
              "denoise": 1,
              "model": [
                "4",
                0
              ],
              "positive": [
                "6",
                0
              ],
              "negative": [
                "7",
                0
              ],
              "latent_image": [
                "5",
                0
              ]
            },
            "_meta": {
              "title": "KSampler"
            }
          },
          "4": {
            "class_type": "CheckpointLoaderSimple",
            "inputs": {
              "ckpt_name": "sd_xl_base_1.0.safetensors"
            },
            "_meta": {
              "title": "Load Checkpoint"
            }
          },
          "5": {
            "class_type": "EmptyLatentImage",
            "inputs": {
              "width": 1024,
              "height": 1024,
              "batch_size": 1
            },
            "_meta": {
              "title": "Empty Latent Image"
            }
          },
          "6": {
            "class_type": "CLIPTextEncode",
            "inputs": {
              "text": "a lighthouse on a sea cliff at golden hour, 35mm film, cinematic",
              "clip": [
                "4",
                1
              ]
            },
            "_meta": {
              "title": "CLIP Text Encode (Prompt)"
            }
          },
          "7": {
            "class_type": "CLIPTextEncode",
            "inputs": {
              "text": "blurry, text, watermark",
              "clip": [
                "4",
                1
              ]
            },
            "_meta": {
              "title": "CLIP Text Encode (Prompt)"
            }
          },
          "8": {
            "class_type": "VAEDecode",
            "inputs": {
              "samples": [
                "3",
                0
              ],
              "vae": [
                "4",
                2
              ]
            },
            "_meta": {
              "title": "VAE Decode"
            }
          },
          "9": {
            "class_type": "SaveImage",
            "inputs": {
              "filename_prefix": "lighthouse",
              "images": [
                "8",
                0
              ]
            },
            "_meta": {
              "title": "Save Image"
            }
          }
        }
      },
      "metadata": {
        "comfyui": {
          "graph_hash": "sha256:f61f0cb64689e8cf673fbb5de899c9bc556c8669f59aab450e178f724fe0524e",
          "node_count": 7,
          "contributing_nodes": 7,
          "packages": [
            {
              "id": "comfy-core",
              "version": "0.37.0"
            }
          ],
          "frontend_version": "1.53.6",
          "workflow": {
            "id": "1ae4ff0c-3203-45f0-b5b7-98c97a6bd968",
            "revision": 0,
            "last_node_id": 9,
            "last_link_id": 9,
            "nodes": [
              {
                "id": 4,
                "type": "CheckpointLoaderSimple",
                "pos": [
                  0,
                  0
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 0,
                "mode": 0,
                "inputs": [],
                "outputs": [
                  {
                    "name": "MODEL",
                    "type": "MODEL",
                    "links": [
                      3
                    ]
                  },
                  {
                    "name": "CLIP",
                    "type": "CLIP",
                    "links": [
                      1,
                      2
                    ]
                  },
                  {
                    "name": "VAE",
                    "type": "VAE",
                    "links": [
                      8
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "CheckpointLoaderSimple"
                },
                "widgets_values": [
                  "sd_xl_base_1.0.safetensors"
                ]
              },
              {
                "id": 5,
                "type": "EmptyLatentImage",
                "pos": [
                  0,
                  200
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 1,
                "mode": 0,
                "inputs": [],
                "outputs": [
                  {
                    "name": "LATENT",
                    "type": "LATENT",
                    "links": [
                      6
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "EmptyLatentImage"
                },
                "widgets_values": [
                  1024,
                  1024,
                  1
                ]
              },
              {
                "id": 6,
                "type": "CLIPTextEncode",
                "pos": [
                  360,
                  0
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 2,
                "mode": 0,
                "inputs": [
                  {
                    "name": "clip",
                    "type": "CLIP",
                    "link": 1
                  }
                ],
                "outputs": [
                  {
                    "name": "CONDITIONING",
                    "type": "CONDITIONING",
                    "links": [
                      4
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "CLIPTextEncode"
                },
                "widgets_values": [
                  "a lighthouse on a sea cliff at golden hour, 35mm film, cinematic"
                ]
              },
              {
                "id": 7,
                "type": "CLIPTextEncode",
                "pos": [
                  360,
                  200
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 3,
                "mode": 0,
                "inputs": [
                  {
                    "name": "clip",
                    "type": "CLIP",
                    "link": 2
                  }
                ],
                "outputs": [
                  {
                    "name": "CONDITIONING",
                    "type": "CONDITIONING",
                    "links": [
                      5
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "CLIPTextEncode"
                },
                "widgets_values": [
                  "blurry, text, watermark"
                ]
              },
              {
                "id": 3,
                "type": "KSampler",
                "pos": [
                  720,
                  0
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 4,
                "mode": 0,
                "inputs": [
                  {
                    "name": "model",
                    "type": "MODEL",
                    "link": 3
                  },
                  {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "link": 4
                  },
                  {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "link": 5
                  },
                  {
                    "name": "latent_image",
                    "type": "LATENT",
                    "link": 6
                  }
                ],
                "outputs": [
                  {
                    "name": "LATENT",
                    "type": "LATENT",
                    "links": [
                      7
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "KSampler"
                },
                "widgets_values": [
                  156680208700286,
                  "fixed",
                  25,
                  7,
                  "dpmpp_2m",
                  "karras",
                  1
                ]
              },
              {
                "id": 8,
                "type": "VAEDecode",
                "pos": [
                  1080,
                  0
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 5,
                "mode": 0,
                "inputs": [
                  {
                    "name": "samples",
                    "type": "LATENT",
                    "link": 7
                  },
                  {
                    "name": "vae",
                    "type": "VAE",
                    "link": 8
                  }
                ],
                "outputs": [
                  {
                    "name": "IMAGE",
                    "type": "IMAGE",
                    "links": [
                      9
                    ]
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "VAEDecode"
                },
                "widgets_values": []
              },
              {
                "id": 9,
                "type": "SaveImage",
                "pos": [
                  1440,
                  0
                ],
                "size": [
                  320,
                  160
                ],
                "flags": {},
                "order": 6,
                "mode": 0,
                "inputs": [
                  {
                    "name": "images",
                    "type": "IMAGE",
                    "link": 9
                  }
                ],
                "outputs": [
                  {
                    "name": "images",
                    "type": "IMAGE",
                    "links": []
                  }
                ],
                "properties": {
                  "cnr_id": "comfy-core",
                  "ver": "0.37.0",
                  "Node name for S&R": "SaveImage"
                },
                "widgets_values": [
                  "lighthouse"
                ]
              }
            ],
            "links": [
              [
                1,
                4,
                1,
                6,
                0,
                "CLIP"
              ],
              [
                2,
                4,
                1,
                7,
                0,
                "CLIP"
              ],
              [
                3,
                4,
                0,
                3,
                0,
                "MODEL"
              ],
              [
                4,
                6,
                0,
                3,
                1,
                "CONDITIONING"
              ],
              [
                5,
                7,
                0,
                3,
                2,
                "CONDITIONING"
              ],
              [
                6,
                5,
                0,
                3,
                3,
                "LATENT"
              ],
              [
                7,
                3,
                0,
                8,
                0,
                "LATENT"
              ],
              [
                8,
                4,
                2,
                8,
                1,
                "VAE"
              ],
              [
                9,
                8,
                0,
                9,
                0,
                "IMAGE"
              ]
            ],
            "groups": [],
            "config": {},
            "extra": {
              "ds": {
                "scale": 0.7,
                "offset": [
                  0,
                  0
                ]
              },
              "frontendVersion": "1.53.6"
            },
            "version": 0.4
          },
          "workflow_hash": "sha256:ff86a2f8d6af743b1e276cea682fa3284c345a6452b5333149e2d5d2192fbc1e"
        },
        "imported": {
          "by": "dana.ortiz@example.com",
          "at": "2026-10-27T19:13:10.221Z",
          "from": "lighthouse_00001_.png"
        }
      }
    }
  ]
}
