{
  "id": "da71007a-66cc-4f14-b9e1-b3891aa69966",
  "revision": 0,
  "last_node_id": 5,
  "last_link_id": 3,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        30,
        100
      ],
      "size": [
        330,
        350
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "1 \u00b7 Starting image",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 2,
      "type": "SpicyAPI_LoRA",
      "pos": [
        30,
        500
      ],
      "size": [
        330,
        180
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [
        {
          "name": "loras",
          "shape": 7,
          "type": "SPICY_LORAS",
          "link": null
        },
        {
          "name": "url",
          "type": "STRING",
          "widget": {
            "name": "url"
          },
          "link": null
        },
        {
          "name": "scale",
          "type": "FLOAT",
          "widget": {
            "name": "scale"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "loras",
          "type": "SPICY_LORAS",
          "links": [
            2
          ]
        }
      ],
      "title": "2 \u00b7 Optional H3-compatible LoRA",
      "properties": {
        "Node name for S&R": "SpicyAPI_LoRA"
      },
      "widgets_values": [
        "",
        1
      ],
      "widgets_values_named": {
        "url": "",
        "scale": 1
      }
    },
    {
      "id": 3,
      "type": "SpicyAPI_minimax_h3_lora_image_to_video",
      "pos": [
        430,
        100
      ],
      "size": [
        420,
        560
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "prompt",
          "type": "STRING",
          "link": null,
          "widget": {
            "name": "prompt"
          }
        },
        {
          "name": "image_url",
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "last_image_url",
          "type": "IMAGE",
          "link": null,
          "shape": 7
        },
        {
          "name": "resolution",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "resolution"
          }
        },
        {
          "name": "duration_seconds",
          "type": "INT",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "duration_seconds"
          }
        },
        {
          "name": "loras",
          "type": "SPICY_LORAS",
          "link": 2,
          "shape": 7
        },
        {
          "name": "seed",
          "type": "INT",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "seed"
          }
        }
      ],
      "outputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "links": [
            3
          ]
        },
        {
          "name": "task_id",
          "type": "STRING",
          "links": null
        }
      ],
      "title": "H3 LoRA \u00b7 image to video",
      "properties": {
        "Node name for S&R": "SpicyAPI_minimax_h3_lora_image_to_video"
      },
      "widgets_values": [
        "",
        "480p",
        5,
        42,
        "fixed"
      ],
      "widgets_values_named": {
        "prompt": "",
        "resolution": "480p",
        "duration_seconds": 5,
        "seed": 42,
        "control_after_generate": "fixed"
      }
    },
    {
      "id": 4,
      "type": "SaveVideo",
      "pos": [
        910,
        100
      ],
      "size": [
        350,
        230
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "links": null
        }
      ],
      "title": "Save the clip",
      "properties": {
        "Node name for S&R": "SaveVideo"
      },
      "widgets_values": [
        "spicyapi/h3-lora",
        "auto",
        "auto"
      ],
      "widgets_values_named": {
        "filename_prefix": "spicyapi/h3-lora",
        "format": "auto",
        "codec": "auto"
      }
    },
    {
      "id": 5,
      "type": "Note",
      "pos": [
        430,
        720
      ],
      "size": [
        430,
        300
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Setup before running",
      "properties": {
        "Node name for S&R": "Note"
      },
      "widgets_values": [
        "Install the SpicyAPI custom nodes and restart ComfyUI. Set your key in Settings > SpicyAPI; do not put keys in this shared file. Load authorized source images and fill the blank prompt before queuing. One hosted model task per execution. Set Max Cost Per Run in settings. Stopping the local wait does not cancel an accepted task: keep its task ID and check the console before resubmitting. Optional LoRA URL is blank for a baseline clip; use only a direct public H3-compatible weights file."
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      3,
      1,
      "IMAGE"
    ],
    [
      2,
      2,
      0,
      3,
      5,
      "SPICY_LORAS"
    ],
    [
      3,
      3,
      0,
      4,
      0,
      "VIDEO"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.8,
      "offset": [
        60,
        30
      ]
    },
    "spicyapi": {
      "models": [
        "minimax/h3-lora/image-to-video"
      ],
      "plugin": "comfyui-spicyapi",
      "setup": "https://spicyapi.ai/comfyui",
      "template_version": 1,
      "save_node_source": "https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/video_minimax_h3_i2v.json"
    }
  },
  "version": 0.4
}
