使用Seedream和Seedance在fal.ai上从文本生成ASMR雨林视频

高级

这是一个Content Creation、Multimodal AI领域的自动化工作流,包含 19 个节点。主要使用 If、Set、Wait、HttpRequest、ManualTrigger 等节点。 使用Seedream和Seedance在fal.ai上从文本生成ASMR雨林视频

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "bc95949f58a56beb7b32f57b210ee8cff6fe240b0a7d3911bdfc0024eb3104db"
  },
  "nodes": [
    {
      "id": "ea1aaf76-ead9-4177-af76-c0a0161eb393",
      "name": "手动工作流",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -272,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d6947759-3177-4dfc-a069-858b6bbebd41",
      "name": "创建图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        208
      ],
      "parameters": {
        "url": "https://queue.fal.run/fal-ai/bytedance/seedream/v4/text-to-image",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json[\"prompt-teks-image\"] }}"
            },
            {
              "name": "image_size",
              "value": "portrait_16_9"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "fff51c32-2466-43a2-9d77-bc7f4829c8ba",
      "name": "等待 10 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        432,
        208
      ],
      "webhookId": "3694e296-a7f5-4ce7-88a3-5ad51ec0abeb",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "c3c36c3d-3a65-462a-ba02-64e69f4323ba",
      "name": "获取图像状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        208
      ],
      "parameters": {
        "url": "={{ $json.status_url }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "072a4c43-dc03-41cd-aa5a-be35a4e91b37",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        96
      ],
      "parameters": {
        "color": 5,
        "width": 1216,
        "height": 368,
        "content": "## 创建图像"
      },
      "typeVersion": 1
    },
    {
      "id": "bc689889-07c0-40d4-ba8f-39adeea36e16",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        96
      ],
      "parameters": {
        "color": 4,
        "width": 464,
        "height": 304,
        "content": "## 启动器"
      },
      "typeVersion": 1
    },
    {
      "id": "8f0d8ea7-4972-44a9-8b1e-1d83f064d4ad",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        496
      ],
      "parameters": {
        "color": 3,
        "width": 1472,
        "height": 336,
        "content": "## 创建视频"
      },
      "typeVersion": 1
    },
    {
      "id": "cbf76962-1f0e-4fca-8ede-a1825d56903b",
      "name": "图像是否完成",
      "type": "n8n-nodes-base.if",
      "position": [
        864,
        208
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2961ea56-cb92-440a-bb71-f22292992b02",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "=COMPLETED"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "2f593c89-8f8c-4a05-bece-25a948eb433b",
      "name": "创建视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -272,
        624
      ],
      "parameters": {
        "url": "=https://queue.fal.run/fal-ai/bytedance/seedance/v1/pro/image-to-video",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $('prompt').item.json['prompt-image-video'] }}"
            },
            {
              "name": "=image_url",
              "value": "={{ $json.images[0].url }}"
            },
            {
              "name": "aspect_ratio",
              "value": "9:16"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b4b17416-0470-4654-a90a-cd7d1a180fac",
      "name": "等待 30 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        -48,
        624
      ],
      "webhookId": "3694e296-a7f5-4ce7-88a3-5ad51ec0abeb",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "542dd649-d375-459c-87eb-f5aeaa6215d0",
      "name": "获取视频状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        176,
        624
      ],
      "parameters": {
        "url": "={{ $json.status_url }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "64e48d64-e9e6-4f0a-a38b-c07239f2bb00",
      "name": "视频是否完成",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        624
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2961ea56-cb92-440a-bb71-f22292992b02",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "=COMPLETED"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "adbdd764-a51a-497c-9533-8515b384338e",
      "name": "链接视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        608
      ],
      "parameters": {
        "url": "={{ $json.response_url }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "6e35939c-2a65-4765-9c01-91914e986cbe",
      "name": "提示词",
      "type": "n8n-nodes-base.set",
      "position": [
        -48,
        208
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a41dcc7f-3766-46b6-92d0-ceb2a7f77334",
              "name": "prompt-teks-image",
              "type": "string",
              "value": "=Static camera shot: A dense, dark forest during a heavy thunderstorm. Torrential rain pours down relentlessly, creating visible sheets of water cascading through the thick canopy. Lightning strikes illuminate the entire forest in brilliant white flashes, revealing the intricate details of gnarled trees and dense foliage for split seconds before plunging back into darkness. Thunder rumbles ominously in the distance. The forest floor is soaked and muddy, with small streams forming from the heavy downpour. Branches sway violently in the storm wind. Shot with a fixed, wide-angle camera position that captures the full scope of the tempest, dramatic chiaroscuro lighting from lightning strikes, deep shadows contrasted with intense white light, cinematic composition with rich blacks and stark highlights, moody atmosphere of nature's raw power and fury."
            },
            {
              "id": "f5e50a1f-b630-480f-9764-b0374a8db675",
              "name": "prompt-image-video",
              "type": "string",
              "value": "animate this"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "5ee32048-ed82-424d-91fe-ca4a6ac84f26",
      "name": "下载视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        608
      ],
      "parameters": {
        "url": "={{ $json.video.url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "33b44ac0-e757-4877-a0ef-effcc992a37d",
      "name": "链接图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1136,
        192
      ],
      "parameters": {
        "url": "={{ $json.response_url }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "xSwMnm3OFH6znkts",
          "name": "header-fal-ai"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "ece9754c-dece-4a30-96c7-d02035dba244",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        96
      ],
      "parameters": {
        "color": 6,
        "width": 256,
        "height": 112,
        "content": "## 要求密钥"
      },
      "typeVersion": 1
    },
    {
      "id": "353b1343-bb30-48ea-a136-7c293a94acdb",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1664,
        240
      ],
      "parameters": {
        "color": 6,
        "width": 688,
        "height": 400,
        "content": "## 分步设置"
      },
      "typeVersion": 1
    },
    {
      "id": "bd15ef23-54cd-45fd-9f93-58a437a46e68",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        96
      ],
      "parameters": {
        "color": 6,
        "width": 544,
        "height": 544,
        "content": "## 自动化视觉:从提示词到视频"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "prompt": {
      "main": [
        [
          {
            "node": "create-image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "wait-10s": {
      "main": [
        [
          {
            "node": "get-status-image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "wait-30s": {
      "main": [
        [
          {
            "node": "get-status-video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "link-image": {
      "main": [
        [
          {
            "node": "create-video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "link-video": {
      "main": [
        [
          {
            "node": "download-video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "create-image": {
      "main": [
        [
          {
            "node": "wait-10s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "create-video": {
      "main": [
        [
          {
            "node": "wait-30s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "manual-workflow": {
      "main": [
        [
          {
            "node": "prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-status-image": {
      "main": [
        [
          {
            "node": "is-image-complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get-status-video": {
      "main": [
        [
          {
            "node": "is-video-complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "is-image-complete": {
      "main": [
        [
          {
            "node": "link-image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "wait-10s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "is-video-complete": {
      "main": [
        [
          {
            "node": "link-video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "wait-30s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

这是一个高级难度的工作流,适用于Content Creation、Multimodal AI等场景。适合高级用户,包含 16+ 个节点的复杂工作流

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量19
分类2
节点类型6
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 上查看 →

分享此工作流