|网创项目|AI视频|AI语音|AI文字工具收录

AI漫剧-生成分镜图片-批量

批量872026-01-16

{

  "name": "AI漫剧-生成分镜图片-批量",

  "nodes": [

    {

      "parameters": {

        "fieldToSplitOut": "image_storyboards",

        "include": "allOtherFields",

        "options": {}

      },

      "type": "n8n-nodes-base.splitOut",

      "typeVersion": 1,

      "position": [

        6240,

        352

      ],

      "id": "dbe77be6-7a92-41ae-8194-f94e8d1c3fae",

      "name": "Split Out5"

    },

    {

      "parameters": {

        "jsCode": "const image_paths = []\nimage_paths.push(...$input.first().json.image_storyboards.character_image_url)\nimage_paths.push($input.first().json.image_storyboards.scene_image_url)\n\nreturn {\n  \"prompt\": $input.first().json.image_storyboards.prompt,\n  \"image_paths\": image_paths\n};"

      },

      "type": "n8n-nodes-base.code",

      "typeVersion": 2,

      "position": [

        6720,

        400

      ],

      "id": "da3baacd-92e8-45dc-a531-8da21321d869",

      "name": "Code in JavaScript10"

    },

    {

      "parameters": {

        "aggregate": "aggregateAllItemData",

        "options": {}

      },

      "type": "n8n-nodes-base.aggregate",

      "typeVersion": 1,

      "position": [

        7248,

        272

      ],

      "id": "26de0c6c-a89f-4f90-85d4-9b4a27a6ed2f",

      "name": "Aggregate6"

    },

    {

      "parameters": {

        "options": {

          "reset": "={{ $json.image_storyboards && $json.image_storyboards.index === 0 }}"

        }

      },

      "type": "n8n-nodes-base.splitInBatches",

      "typeVersion": 3,

      "position": [

        6448,

        352

      ],

      "id": "378ba50d-1fd3-4664-9587-5e7c07b47fb4",

      "name": "Loop Over Items4",

      "notesInFlow": false

    },

    {

      "parameters": {

        "workflowInputs": {

          "values": [

            {

              "name": "image_storyboards",

              "type": "any"

            },

            {

              "name": "child_workflow_id"

            }

          ]

        }

      },

      "id": "14839402-9b69-42e5-b043-e15a450726b4",

      "typeVersion": 1.1,

      "name": "Start",

      "type": "n8n-nodes-base.executeWorkflowTrigger",

      "position": [

        5728,

        352

      ]

    },

    {

      "parameters": {

        "workflowId": {

          "__rl": true,

          "value": "={{ $('Edit Fields').first().json.child_workflow_id }}",

          "mode": "id",

          "cachedResultUrl": "/workflow/=%7B%7B%20$('Edit%20Fields').first().json.child_workflow_id%20%7D%7D"

        },

        "workflowInputs": {

          "mappingMode": "defineBelow",

          "value": {

            "prompt": "={{ $json.prompt }}",

            "image_urls": "={{ $json.image_paths }}",

            "image_size": "9x16"

          },

          "matchingColumns": [],

          "schema": [

            {

              "id": "prompt",

              "displayName": "prompt",

              "required": false,

              "defaultMatch": false,

              "display": true,

              "canBeUsedToMatch": true,

              "type": "string",

              "removed": false

            },

            {

              "id": "image_urls",

              "displayName": "image_urls",

              "required": false,

              "defaultMatch": false,

              "display": true,

              "canBeUsedToMatch": true,

              "type": "array",

              "removed": false

            },

            {

              "id": "image_size",

              "displayName": "image_size",

              "required": false,

              "defaultMatch": false,

              "display": true,

              "canBeUsedToMatch": true,

              "type": "string",

              "removed": false

            }

          ],

          "attemptToConvertTypes": false,

          "convertFieldsToString": true

        },

        "options": {}

      },

      "type": "n8n-nodes-base.executeWorkflow",

      "typeVersion": 1.3,

      "position": [

        6976,

        400

      ],

      "id": "a3c9ccce-15ec-4121-a4a2-88a7214c2d8f",

      "name": "Call 'AI漫剧-生成分镜图片'"

    },

    {

      "parameters": {

        "assignments": {

          "assignments": [

            {

              "id": "6380193a-2a93-46b6-aef1-160dc3fbc700",

              "name": "image_storyboards",

              "value": "={{ $json.image_storyboards }}",

              "type": "array"

            },

            {

              "id": "5f281d11-537b-4e2c-b96d-5457a4543ff7",

              "name": "child_workflow_id",

              "value": "={{ $json.child_workflow_id }}",

              "type": "string"

            }

          ]

        },

        "options": {}

      },

      "type": "n8n-nodes-base.set",

      "typeVersion": 3.4,

      "position": [

        5968,

        352

      ],

      "id": "3f1fa6e7-4d1f-426b-8d12-27a690c0d0eb",

      "name": "Edit Fields"

    }

  ],

  "pinData": {},

  "connections": {

    "Split Out5": {

      "main": [

        [

          {

            "node": "Loop Over Items4",

            "type": "main",

            "index": 0

          }

        ]

      ]

    },

    "Code in JavaScript10": {

      "main": [

        [

          {

            "node": "Call 'AI漫剧-生成分镜图片'",

            "type": "main",

            "index": 0

          }

        ]

      ]

    },

    "Loop Over Items4": {

      "main": [

        [

          {

            "node": "Aggregate6",

            "type": "main",

            "index": 0

          }

        ],

        [

          {

            "node": "Code in JavaScript10",

            "type": "main",

            "index": 0

          }

        ]

      ]

    },

    "Start": {

      "main": [

        [

          {

            "node": "Edit Fields",

            "type": "main",

            "index": 0

          }

        ]

      ]

    },

    "Call 'AI漫剧-生成分镜图片'": {

      "main": [

        [

          {

            "node": "Loop Over Items4",

            "type": "main",

            "index": 0

          }

        ]

      ]

    },

    "Edit Fields": {

      "main": [

        [

          {

            "node": "Split Out5",

            "type": "main",

            "index": 0

          }

        ]

      ]

    }

  },

  "active": false,

  "settings": {

    "executionOrder": "v1"

  },

  "versionId": "059f9c33-ca61-4852-b9e9-80ab65d6c60f",

  "meta": {

    "instanceId": "7cbe32103a6ff2d8c5a91f9da918c4e038e89cf9d0ca43bf8f0b67f262cbf12c"

  },

  "id": "jEidyO0FErWfG5Rg",

  "tags": [

    {

      "updatedAt": "2025-12-26T08:37:31.987Z",

      "createdAt": "2025-12-26T08:37:31.987Z",

      "id": "gZ4Yf1CKJAPGykEi",

      "name": "ai漫剧"

    }

  ]

}


文章下方广告位