口型同步视频生成
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 18 个节点。主要使用 If, Set, Wait, FormTrigger, GoogleDrive 等节点。 使用Infinitalk AI创建并分享口型同步虚拟形象视频,并上传至TikTok/YouTube
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "zM0fxJvPvaZkDzxW",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "Flow",
"tags": [],
"nodes": [
{
"id": "168e2c77-bb94-4221-9c02-4e3bad48b1c3",
"name": "从视频和音频文件生成说话头像视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
848,
848
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/infinitalk/requests/{{ $('Create Video').item.json.request_id }}/status ",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "d7db81ba-eee8-4d55-b651-e5c1b69da1a9",
"name": "获取状态",
"type": "n8n-nodes-base.wait",
"position": [
672,
848
],
"webhookId": "c435264b-c4e7-4a19-bf4d-79975b92d16d",
"parameters": {
"amount": 60
},
"typeVersion": 1.1
},
{
"id": "71590a73-4289-47d0-ad80-6513f4b11e67",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
-384
],
"parameters": {
"color": 3,
"width": 740,
"height": 360,
"content": "等待60秒"
},
"typeVersion": 1
},
{
"id": "1eb1de62-2d7a-40a7-836f-6d160d0ff7ff",
"name": "# 从视频和音频文件生成说话头像视频",
"type": "n8n-nodes-base.if",
"position": [
1024,
848
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "383d112e-2cc6-4dd4-8985-f09ce0bd1781",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "7ae6c1ed-7ebf-4904-9576-e8ac5dd8d236",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
16
],
"parameters": {
"width": 740,
"height": 140,
"content": "完成?"
},
"typeVersion": 1
},
{
"id": "5b8f0f56-3c8e-442c-b448-df7238b74f9a",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
256,
784
],
"parameters": {
"width": 180,
"height": 200,
"content": "## 步骤1 - 获取API密钥(您的API密钥)"
},
"typeVersion": 1
},
{
"id": "1e90ad13-a5d5-446a-847c-b84884b5ad63",
"name": "设置在步骤1中创建的API密钥",
"type": "n8n-nodes-base.httpRequest",
"position": [
-224,
1232
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/infinitalk/requests/{{ $json.request_id }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "8f5dfa2e-b463-448c-b2e4-8cf5c4ac30ff",
"name": "获取视频URL",
"type": "n8n-nodes-base.httpRequest",
"position": [
400,
1232
],
"parameters": {
"url": "={{ $('Get Url Video').item.json.video.url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "36331aa1-77a7-4f36-83f0-79ef138ad17b",
"name": "上传视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
688,
1104
],
"parameters": {
"name": "={{ $now.format('yyyyLLddHHmmss') }}-{{ $('Get Url Video').item.json.video.file_name }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
"cachedResultUrl": "https://drive.google.com/drive/folders/1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
"cachedResultName": "Fal.run"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "HEy5EuZkgPZVEa9w",
"name": "Google Drive account (n3w.it)"
}
},
"typeVersion": 3
},
{
"id": "faf2336b-611b-4edd-8710-252a482d877a",
"name": "获取视频文件",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
32,
1232
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-5-mini",
"cachedResultName": "GPT-5-MINI"
},
"options": {},
"messages": {
"values": [
{
"content": "=Input: {{ $('Set data').item.json.prompt }}"
},
{
"role": "system",
"content": "You are a YouTube SEO expert specialized in creating engaging and optimized titles.\n\nYour task is to generate an effective title for a YouTube video based on the user's video description.\n\nGUIDELINES:\n- Maximum 60 characters to avoid truncation\n- Use relevant keywords for SEO\n- Make the title catchy and clickable\n- Avoid excessive or misleading clickbait\n- Consider the target audience of the content\n- Use numbers, questions, or power words when appropriate\n- IMPORTANT: Generate the title in the same language as the input description\n\nOUTPUT FORMAT:\nProvide only the title, without additional explanations.\n\nEXAMPLE:\nInput: \"Tutorial video on how to cook perfect pasta carbonara\"\nOutput: \"PERFECT Carbonara in 10 Minutes - Chef's Secrets\""
}
]
}
},
"credentials": {
"openAiApi": {
"id": "TefveNaDaMERl1hY",
"name": "OpenAi account (Eure)"
}
},
"typeVersion": 1.8
},
{
"id": "e0126877-c633-4a20-a01e-e22eab75a2ec",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
672,
1264
],
"parameters": {
"width": 180,
"height": 408,
"content": "生成标题"
},
"typeVersion": 1
},
{
"id": "1cae72a1-48ad-43e3-a139-e37b39633f0b",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
192
],
"parameters": {
"width": 740,
"height": 232,
"content": "在步骤2中设置您的用户名"
},
"typeVersion": 1
},
{
"id": "0e8e3e1e-e5f5-4bb7-895b-3b819b2bda5d",
"name": "## 步骤2 - 上传视频到YouTube和TikTok",
"type": "n8n-nodes-base.httpRequest",
"position": [
688,
1520
],
"parameters": {
"url": "https://api.upload-post.com/api/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "title",
"value": "={{ $('Generate title').item.json.message.content }}"
},
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "platform[]",
"value": "tiktok"
},
{
"name": "video",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "DEE2XGvhGodgbAJh",
"name": "Upload-post.com API"
}
},
"typeVersion": 4.2
},
{
"id": "549b8aff-9a5f-4ef5-8c77-0240c3469896",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
464
],
"parameters": {
"color": 4,
"width": 736,
"height": 272,
"content": "上传到TikTok"
},
"typeVersion": 1
},
{
"id": "b8974e0c-ae8f-4cf4-8384-ae4f09becf2d",
"name": "## 表单提交示例",
"type": "n8n-nodes-base.httpRequest",
"position": [
688,
1328
],
"parameters": {
"url": "https://api.upload-post.com/api/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "title",
"value": "={{ $('Generate title').item.json.message.content }}"
},
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "platform[]",
"value": "youtube"
},
{
"name": "video",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RfHIslxMFRjQZ043",
"name": "Youtube Transcript Extractor API 1"
}
},
"typeVersion": 4.2
},
{
"id": "d9c702c8-cfe0-4c2d-b4c6-3cddc68f4a7f",
"name": "上传到YouTube",
"type": "n8n-nodes-base.formTrigger",
"position": [
-224,
848
],
"webhookId": "3e1755d7-4963-4891-838a-46d301429da3",
"parameters": {
"options": {},
"formTitle": "Video to Video",
"formFields": {
"values": [
{
"fieldLabel": "Video url",
"requiredField": true
},
{
"fieldLabel": "Audio url",
"requiredField": true
},
{
"fieldLabel": "Prompt",
"requiredField": true
}
]
},
"formDescription": "Infinitalk model generates a talking avatar video from a video and audio file. The avatar lip-syncs to the provided audio with natural facial expressions."
},
"typeVersion": 2.2
},
{
"id": "0317f480-3e59-49b3-890c-7ad2ecbd806b",
"name": "创建视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
304,
848
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/infinitalk/video-to-video",
"method": "POST",
"options": {},
"jsonBody": "={\n \"video_url\": \"{{ $json.video_url }}\",\n \"audio_url\": \"{{ $json.audio_url }}\",\n \"prompt\": \"{{ $json.prompt }}\",\n \"num_frames\": 145,\n \"resolution\": \"480p\",\n \"seed\": 42,\n \"acceleration\": \"regular\"\n }",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "016f2fc7-3c3e-443f-ab67-962fc97a1ff5",
"name": "设置数据",
"type": "n8n-nodes-base.set",
"position": [
48,
848
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c713d31f-9abd-496a-ac79-e8e2efe60aa0",
"name": "prompt",
"type": "string",
"value": "={{ $('On form submission1').item.json.Prompt }}"
},
{
"id": "2308096c-702f-4ed1-9de3-c77d9685609e",
"name": "video_url",
"type": "string",
"value": "={{ $json['Video url'] }}"
},
{
"id": "f5ccbf09-be9f-4132-8bed-5f492bcd7e65",
"name": "audio_url",
"type": "string",
"value": "={{ $json['Audio url'] }}"
}
]
}
},
"typeVersion": 3.4
}
],
"active": false,
"pinData": {
"On form submission1": [
{
"json": {
"Prompt": "A woman with colorful hair talking on a podcast.",
"formMode": "test",
"Audio url": "https://v3.fal.media/files/penguin/PtiCYda53E9Dav25QmQYI_output.mp3",
"Video url": "https://storage.googleapis.com/falserverless/model_tests/video_models/ref_video.mp4",
"submittedAt": "2025-09-23T05:34:42.137-04:00"
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "f6af2662-cc1b-4be3-b3f3-b1c1f515076f",
"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": "Generate title",
"type": "main",
"index": 0
}
]
]
},
"Generate title": {
"main": [
[
{
"node": "Get File Video",
"type": "main",
"index": 0
}
]
]
},
"Get File Video": {
"main": [
[
{
"node": "Upload Video",
"type": "main",
"index": 0
},
{
"node": "Upload to Youtube",
"type": "main",
"index": 0
},
{
"node": "Upload on TikTok",
"type": "main",
"index": 0
}
]
]
},
"Upload to Youtube": {
"main": [
[]
]
},
"On form submission1": {
"main": [
[
{
"node": "Set data",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
从您的多个参考图像生成视频片段
使用 Fal.ai VIDU 从参考图像创建病毒式视频并上传到 YouTube/TikTok
If
Set
Code
+6
20 节点Davide
内容创作
使用Google Veo3 Fast创建更便宜的视频并上传到社交媒体
使用Veo3 Fast创建低成本AI视频并上传至YouTube和TikTok
If
Set
Wait
+7
23 节点Davide
内容创作
使用 Google Veo3 Fast 创建视频并通过 Postiz 上传到 TikTok
使用 Google Veo3 Fast 和 Postiz 生成低成本病毒式 AI 视频到 TikTok
If
Set
Wait
+8
22 节点Davide
内容创作
使用 MiniMax 海螺 02 将图像转换为视频并上传到 YouTube 和 TikTok
使用 MiniMax 海螺 02 将图像转换为 AI 视频并上传到 YouTube/TikTok
If
Set
Wait
+7
25 节点Davide
内容创作
从您的多个参考图像生成创意广告图像
使用Seedream v4从参考图像为Instagram和Facebook生成创意广告图像
If
Set
Code
+6
20 节点Davide
杂项
适用于WooCommerce Nano Banana的AI虚拟试穿
使用Fal.ai Nano Banana为WooCommerce自动生成虚拟AI试穿图像
If
Set
Wait
+7
20 节点Davide
内容创作
工作流信息
难度等级
高级
节点数量18
分类2
节点类型8
作者
Davide
@n3witaliaFull-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 查看 →
分享此工作流