8
n8n 中文网amn8n.com

基于图像的 AI 生成视频

中级

这是一个AI领域的自动化工作流,包含 13 个节点。主要使用 If, Set, Wait, FormTrigger, GoogleDrive 等节点,结合人工智能技术实现智能自动化。 从图像生成 🤖🧠 AI 驱动视频 🎥 并上传到 Google Drive

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "WSYhLeH2uNrR9C20",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
    "templateCredsSetupCompleted": true
  },
  "name": "基于图像的 AI 生成视频",
  "tags": [],
  "nodes": [
    {
      "id": "0b38123a-0134-4bf6-abb8-6a454212d2b4",
      "name": "从视频和音频文件生成说话头像视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        400
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1900f2e8-310c-4c0b-914b-0c7a9890fb05",
      "name": "获取状态",
      "type": "n8n-nodes-base.wait",
      "position": [
        660,
        400
      ],
      "webhookId": "ba8dcc65-c1aa-427b-9ba0-d083c6af79dc",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c6c8ff96-b7f0-49d4-ba12-b086f1c07265",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "237e03ad-72d2-4ddd-8baf-33c6f88b7c88",
      "name": "# 从视频和音频文件生成说话头像视频",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        400
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "301f51c7-b3eb-4001-b4ad-b504af7085fb",
      "name": "设置数据",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        400
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "95c13de7-b11a-4472-9176-68b4c69078d8",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fc2b9d60-3c3d-4336-805e-94835fe7155c",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "df0555de-85e4-45ea-bdb2-e330237bd876",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9d2ab380-a3d4-4745-93d4-dc0040915977",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -40,
        400
      ],
      "webhookId": "621b572f-3b5a-4b8c-b0f6-f5c8486d08d6",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "43d68c4e-adaf-4b9b-84b8-db476b35a5f3",
      "name": "创建视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        440,
        400
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "67ecd974-6a94-491a-853b-8c99cc5caad8",
      "name": "设置在步骤1中创建的API密钥",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "79abf65b-6c38-4108-ba65-d06428d18951",
      "name": "获取视频URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        200,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ec0da2e6-70e3-4ee1-abba-5e7157e6fe2e",
      "name": "上传视频",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        420,
        720
      ],
      "parameters": {},
      "typeVersion": 3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "577f731c-07f5-4708-9afa-90357393e4d9",
  "connections": {
    "Set data": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?": {
      "main": [
        [
          {
            "node": "Get Url Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status": {
      "main": [
        [
          {
            "node": "Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Video": {
      "main": [
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video": {
      "main": [
        []
      ]
    },
    "Wait 60 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Url Video": {
      "main": [
        [
          {
            "node": "Get File Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File Video": {
      "main": [
        [
          {
            "node": "Upload Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Set data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能

需要付费吗?

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

工作流信息
难度等级
中级
节点数量13
分类1
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

外部链接
在 n8n.io 查看

分享此工作流