{
  "id": "08434a0f-24c8-536f-b78e-88a0669d41ad",
  "revision": 0,
  "last_node_id": 16,
  "last_link_id": 16,
  "nodes": [
    {
      "id": 1,
      "type": "HeyGenAvatar6IdentityToVideoNode",
      "pos": [
        24.81649597215437,
        729.5895744367008
      ],
      "size": [
        430,
        406
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "VIDEO",
          "nameLocked": null,
          "removable": null,
          "type": "VIDEO",
          "pos": null,
          "slot_index": null,
          "links": [
            1
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "HeyGenAvatar6IdentityToVideoNode"
      },
      "widgets_values": [
        "heygen-avatar-6",
        "Yara Modern Lecture Hall",
        "script",
        "Hi, I am Yara. This clip was rendered from a script by Avatar Six.",
        "(avatar's default voice)",
        "",
        1,
        "1080p",
        "16:9",
        "Warm, confident delivery straight to camera with small open-handed gestures and a slight nod on the key word.",
        "default",
        42,
        "fixed"
      ],
      "widgets_values_named": {
        "model": "heygen-avatar-6",
        "avatar": "Yara Modern Lecture Hall",
        "speech": "script",
        "speech.text": "Hi, I am Yara. This clip was rendered from a script by Avatar Six.",
        "speech.voice": "(avatar's default voice)",
        "speech.custom_voice_id": "",
        "speech.voice_speed": 1,
        "resolution": "1080p",
        "aspect_ratio": "16:9",
        "motion_prompt": "Warm, confident delivery straight to camera with small open-handed gestures and a slight nod on the key word.",
        "motion_expressiveness": "default",
        "seed": 42,
        "control_after_generate": "fixed"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 2,
      "type": "SaveVideo",
      "pos": [
        495.1729608159043,
        730.6739299054508
      ],
      "size": [
        634.1266142578127,
        662.673534011841
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "video",
          "nameLocked": null,
          "removable": null,
          "type": "VIDEO",
          "pos": null,
          "link": 1
        }
      ],
      "outputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "video",
          "nameLocked": null,
          "removable": null,
          "type": "VIDEO",
          "pos": null,
          "slot_index": null,
          "links": null
        }
      ],
      "properties": {},
      "widgets_values": [
        "api_heygen_avatar_6_id2v",
        "auto",
        "auto",
        "auto"
      ],
      "widgets_values_named": {
        "filename_prefix": "api_heygen_avatar_6_id2v",
        "format": "auto",
        "format.codec": "auto",
        "codec": "auto"
      }
    },
    {
      "id": 3,
      "type": "MarkdownNote",
      "pos": [
        -2096.9559016652083,
        735.4762753552203
      ],
      "size": [
        600,
        520
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## HeyGen Avatar 6: Identity to Video\n\nA talking presenter from a stock look — no photo, no audio file. Pick one of the Avatar 6 looks,\nwrite what they should say, and the node voices it and performs it.\n\n## Input Assets\n\nThe default run needs no files. The two optional flows above use:\n\n- [pink_hair_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/pink_hair_portrait.png) - photo for `Create your own avatar`\n- [avatar6_voice_sample.mp3](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/avatar6_voice_sample.mp3) - 17.8 s single-speaker speech for `Create your own voice`\n\n### How to use\n\n1. Sign in with your ComfyUI account. This is an API node, it bills per render.\n2. `model` picks the engine: `heygen-avatar-6` (default, higher quality) or `heygen-avatar-6-turbo`\n   (cheaper, faster). Switching the engine reveals the same inputs.\n3. `avatar` picks a stock look. `custom_avatar_id` overrides it with a look you made in\n   HeyGen Create Avatar that supports Avatar 6.\n4. `speech` has two modes. **script** writes the line into `text`, picks a `voice` and an optional\n   `voice_speed`; **audio** takes your own AUDIO clip instead, and the clip length becomes the\n   render length.\n5. `resolution` (1080p or 2k) and `aspect_ratio` set the frame: at 1080p, 16:9 renders 1920x1080,\n   `auto` follows the look's source footage.\n6. `motion_prompt` directs gestures, expression, posture and camera movement (up to 1200\n   characters). `motion_expressiveness` = `less` damps the gestures.\n7. `seed` only decides whether the node re-runs; renders are non-deterministic anyway.\n\n### What to expect\n\n- The script length is the clip length: this one-sentence script is a 4.5 s read.\n- One look + one script renders a single clip. Re-run with a new seed for a different take.\n"
      ],
      "widgets_values_named": {
        "text": "## HeyGen Avatar 6: Identity to Video\n\nA talking presenter from a stock look — no photo, no audio file. Pick one of the Avatar 6 looks,\nwrite what they should say, and the node voices it and performs it.\n\n## Input Assets\n\nThe default run needs no files. The two optional flows above use:\n\n- [pink_hair_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/pink_hair_portrait.png) - photo for `Create your own avatar`\n- [avatar6_voice_sample.mp3](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/avatar6_voice_sample.mp3) - 17.8 s single-speaker speech for `Create your own voice`\n\n### How to use\n\n1. Sign in with your ComfyUI account. This is an API node, it bills per render.\n2. `model` picks the engine: `heygen-avatar-6` (default, higher quality) or `heygen-avatar-6-turbo`\n   (cheaper, faster). Switching the engine reveals the same inputs.\n3. `avatar` picks a stock look. `custom_avatar_id` overrides it with a look you made in\n   HeyGen Create Avatar that supports Avatar 6.\n4. `speech` has two modes. **script** writes the line into `text`, picks a `voice` and an optional\n   `voice_speed`; **audio** takes your own AUDIO clip instead, and the clip length becomes the\n   render length.\n5. `resolution` (1080p or 2k) and `aspect_ratio` set the frame: at 1080p, 16:9 renders 1920x1080,\n   `auto` follows the look's source footage.\n6. `motion_prompt` directs gestures, expression, posture and camera movement (up to 1200\n   characters). `motion_expressiveness` = `less` damps the gestures.\n7. `seed` only decides whether the node re-runs; renders are non-deterministic anyway.\n\n### What to expect\n\n- The script length is the clip length: this one-sentence script is a 4.5 s read.\n- One look + one script renders a single clip. Re-run with a new seed for a different take.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 4,
      "type": "HeyGenCreateAvatarNode",
      "pos": [
        -1299.43883314969,
        1259.5755076296036
      ],
      "size": [
        400.8035084533691,
        78
      ],
      "flags": {},
      "order": 6,
      "mode": 4,
      "inputs": [
        {
          "name": "source.identity_photo",
          "type": "IMAGE",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "avatar_id",
          "type": "STRING",
          "links": [
            9
          ]
        },
        {
          "name": "preview",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "HeyGenCreateAvatarNode"
      },
      "widgets_values": [
        "photo"
      ],
      "widgets_values_named": {
        "source": "photo"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 7,
      "type": "LoadImage",
      "pos": [
        -1299.43883314969,
        794.9980704958145
      ],
      "size": [
        400.8035084533691,
        402.577437133789
      ],
      "flags": {},
      "order": 2,
      "mode": 4,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            16
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "pink_hair_portrait.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "pink_hair_portrait.png",
        "upload": "image"
      }
    },
    {
      "id": 8,
      "type": "SaveText",
      "pos": [
        -1299.43883314969,
        1665.5755076296036
      ],
      "size": [
        400.8035084533691,
        202.00009765625
      ],
      "flags": {},
      "order": 10,
      "mode": 4,
      "inputs": [
        {
          "name": "text",
          "type": "STRING",
          "link": 10
        }
      ],
      "outputs": [
        {
          "name": "text",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "SaveText"
      },
      "widgets_values": [
        "HeyGen_Avatar",
        "txt"
      ],
      "widgets_values_named": {
        "filename_prefix": "HeyGen_Avatar",
        "format": "txt"
      }
    },
    {
      "id": 9,
      "type": "StringConcatenate",
      "pos": [
        -1299.43883314969,
        1403.5755076296036
      ],
      "size": [
        400.8035084533691,
        200
      ],
      "flags": {},
      "order": 8,
      "mode": 4,
      "inputs": [
        {
          "name": "string_b",
          "type": "STRING",
          "widget": {
            "name": "string_b"
          },
          "link": 9
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            10
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "StringConcatenate"
      },
      "widgets_values": [
        "YOU CUSTOMIZE AVATAR NAME HERE",
        "",
        ""
      ],
      "widgets_values_named": {
        "string_a": "YOU CUSTOMIZE AVATAR NAME HERE",
        "string_b": "",
        "delimiter": ""
      }
    },
    {
      "id": 11,
      "type": "HeyGenVoiceCloneNode",
      "pos": [
        -643.1487816176542,
        1055.3950727246431
      ],
      "size": [
        400,
        154
      ],
      "flags": {},
      "order": 7,
      "mode": 4,
      "inputs": [
        {
          "name": "audio",
          "type": "AUDIO",
          "link": 12
        }
      ],
      "outputs": [
        {
          "name": "voice_id",
          "type": "STRING",
          "links": [
            15
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "HeyGenVoiceCloneNode"
      },
      "widgets_values": [
        "auto",
        "max",
        true,
        42,
        "fixed"
      ],
      "widgets_values_named": {
        "language": "auto",
        "similarity": "max",
        "remove_background_noise": true,
        "seed": 42,
        "control_after_generate": "fixed"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 13,
      "type": "LoadAudio",
      "pos": [
        -643.1487816176542,
        855.3950727246431
      ],
      "size": [
        400,
        136
      ],
      "flags": {},
      "order": 3,
      "mode": 4,
      "inputs": [],
      "outputs": [
        {
          "name": "AUDIO",
          "type": "AUDIO",
          "links": [
            12
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "LoadAudio"
      },
      "widgets_values": [
        "avatar6_voice_sample.mp3",
        ""
      ],
      "widgets_values_named": {
        "audio": "avatar6_voice_sample.mp3",
        "upload": ""
      }
    },
    {
      "id": 14,
      "type": "SaveText",
      "pos": [
        -643.1487816176542,
        1533.3950727246431
      ],
      "size": [
        400,
        202.00009765625
      ],
      "flags": {},
      "order": 11,
      "mode": 4,
      "inputs": [
        {
          "name": "text",
          "type": "STRING",
          "link": 13
        }
      ],
      "outputs": [
        {
          "name": "text",
          "type": "STRING",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "SaveText"
      },
      "widgets_values": [
        "HeyGen_Avatar",
        "txt"
      ],
      "widgets_values_named": {
        "filename_prefix": "HeyGen_Avatar",
        "format": "txt"
      }
    },
    {
      "id": 15,
      "type": "StringConcatenate",
      "pos": [
        -643.1487816176542,
        1271.3950727246431
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 9,
      "mode": 4,
      "inputs": [
        {
          "name": "string_b",
          "type": "STRING",
          "widget": {
            "name": "string_b"
          },
          "link": 15
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            13
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "StringConcatenate"
      },
      "widgets_values": [
        "YOU CUSTOMIZE AVATAR NAME HERE",
        "",
        ""
      ],
      "widgets_values_named": {
        "string_a": "YOU CUSTOMIZE AVATAR NAME HERE",
        "string_b": "",
        "delimiter": ""
      }
    },
    {
      "id": 16,
      "type": "MarkdownNote",
      "pos": [
        -716.6071180728079,
        2061.8321297074554
      ],
      "size": [
        587.5117195906588,
        203.78408715906778
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Note: voice_id and avatar_id",
      "properties": {},
      "widgets_values": [
        "## Reuse your own avatar and voice\n\nThe two groups above are parked, bypassed, so the default prompt stays one cheap render.\nSelect a group and press **Ctrl+B** to enable it.\n\n### Where the two IDs come from\n\n**Avatar ID** (`avatar_id`)\n1. Enable `Create your own avatar for reuse` and load a photo into `Load Image`: head and\n   shoulders, face clearly visible, hands out of frame. `pink_hair_portrait.png` ships with\n   this template.\n2. `HeyGen Create Avatar` with `source = photo` returns the new look's ID on its `avatar_id`\n   STRING output, plus a preview frame.\n3. `Concatenate Text` prefixes the name you type with the ID and `Save Text` writes it to\n   `output/HeyGen_Avatar_*.txt`. Keep that string: it is the ID.\n\n**Voice ID** (`voice_id`)\n1. Enable `Create your own voice for reuse` and load at least 10 seconds of one speaker,\n   clean and continuous, into `Load Audio`. `avatar6_voice_sample.mp3` ships with this\n   template (17.8 s, single speaker).\n2. `HeyGen Voice 1.0 Instant Clone` returns the cloned `voice_id` STRING; `Concatenate Text`\n   and `Save Text` save it the same way.\n\n### How to use them\n\n- **Avatar**: on `HeyGen Avatar 6 Identity to Video` set `avatar` to `custom avatar`, then\n  paste the saved ID into the `custom_avatar_id` field that appears underneath.\n- **Voice**: keep `speech` = `script` and paste the saved ID into the optional\n  `custom_voice_id` field. It wins over the `voice` dropdown whenever it is non-empty, so\n  leave it empty to fall back to a stock voice.\n- Or route the cloned voice through `HeyGen Voice 1.0 Text to Speech` (`voice_id` + `text`)\n  and switch `speech` to `audio` with that AUDIO plugged in.\n- Both IDs are scoped to the HeyGen workspace behind the Comfy account you are signed in\n  with: an ID made in one workspace will not resolve in another."
      ],
      "widgets_values_named": {
        "text": "## Reuse your own avatar and voice\n\nThe two groups above are parked, bypassed, so the default prompt stays one cheap render.\nSelect a group and press **Ctrl+B** to enable it.\n\n### Where the two IDs come from\n\n**Avatar ID** (`avatar_id`)\n1. Enable `Create your own avatar for reuse` and load a photo into `Load Image`: head and\n   shoulders, face clearly visible, hands out of frame. `pink_hair_portrait.png` ships with\n   this template.\n2. `HeyGen Create Avatar` with `source = photo` returns the new look's ID on its `avatar_id`\n   STRING output, plus a preview frame.\n3. `Concatenate Text` prefixes the name you type with the ID and `Save Text` writes it to\n   `output/HeyGen_Avatar_*.txt`. Keep that string: it is the ID.\n\n**Voice ID** (`voice_id`)\n1. Enable `Create your own voice for reuse` and load at least 10 seconds of one speaker,\n   clean and continuous, into `Load Audio`. `avatar6_voice_sample.mp3` ships with this\n   template (17.8 s, single speaker).\n2. `HeyGen Voice 1.0 Instant Clone` returns the cloned `voice_id` STRING; `Concatenate Text`\n   and `Save Text` save it the same way.\n\n### How to use them\n\n- **Avatar**: on `HeyGen Avatar 6 Identity to Video` set `avatar` to `custom avatar`, then\n  paste the saved ID into the `custom_avatar_id` field that appears underneath.\n- **Voice**: keep `speech` = `script` and paste the saved ID into the optional\n  `custom_voice_id` field. It wins over the `voice` dropdown whenever it is non-empty, so\n  leave it empty to fall back to a stock voice.\n- Or route the cloned voice through `HeyGen Voice 1.0 Text to Speech` (`voice_id` + `text`)\n  and switch `speech` to `audio` with that AUDIO plugged in.\n- Both IDs are scoped to the HeyGen workspace behind the Comfy account you are signed in\n  with: an ID made in one workspace will not resolve in another."
      },
      "color": "#222",
      "bgcolor": "#000"
    }
  ],
  "links": [
    [
      9,
      4,
      0,
      9,
      0,
      "STRING"
    ],
    [
      10,
      9,
      0,
      8,
      0,
      "STRING"
    ],
    [
      12,
      13,
      0,
      11,
      0,
      "AUDIO"
    ],
    [
      13,
      15,
      0,
      14,
      0,
      "STRING"
    ],
    [
      15,
      11,
      0,
      15,
      0,
      "STRING"
    ],
    [
      1,
      1,
      0,
      2,
      0,
      "VIDEO"
    ],
    [
      16,
      7,
      0,
      4,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Create your own avatar for reuse (Select and Ctrl-B to enable)",
      "bounding": [
        -1406.0447803133666,
        694.1479965192523,
        638.9759090818893,
        1292.148500074218
      ],
      "color": "#444",
      "flags": {}
    },
    {
      "id": 2,
      "title": "Create your own voice for reuse (Select and Ctrl-B to enable)",
      "bounding": [
        -718.9114527786803,
        694.5828552136252,
        590.1675990406573,
        1292.7607453525936
      ],
      "color": "#444",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.47552990896233355,
      "offset": [
        1743.1839085137574,
        -372.5352733056179
      ]
    },
    "frontendVersion": "1.59.1"
  },
  "extensions": {
    "extra_pnginfo": {
      "workflow": {
        "id": "08434a0f-24c8-536f-b78e-88a0669d41ad",
        "revision": 0
      }
    }
  },
  "version": 0.4
}
