批量AI视频生成 - Freepik Minimax Hailuo与Google套件集成
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Code, Wait, Switch, GoogleDrive, HttpRequest 等节点。 批量AI视频生成 - Freepik Minimax Hailuo与Google套件集成
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "39cea19d-02e6-4431-9d8e-0dc76646d6cd",
"name": "将视频下载为 Base64",
"type": "n8n-nodes-base.httpRequest",
"position": [
128,
1904
],
"parameters": {
"url": "={{ $json.data.generated[0] }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "78fa05c7-f18f-4d91-a425-d3760106016e",
"name": "上传到 Google Drive1",
"type": "n8n-nodes-base.googleDrive",
"position": [
256,
2048
],
"parameters": {
"name": "=video - {{ $('Get prompt from google sheet').item.json.Name }} - {{ $('Duplicate Rows2').item.json.run }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive",
"cachedResultUrl": "https://drive.google.com/drive/my-drive",
"cachedResultName": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "1TnDibwPPPUm3VbmETiqWDVhtaUTLJ6mn",
"cachedResultUrl": "https://drive.google.com/drive/folders/1TnDibwPPPUm3VbmETiqWDVhtaUTLJ6mn",
"cachedResultName": "n8n workflows"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "pl7bkYVKthXr65dR",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "ed922804-f614-4dc4-be98-263c803e8382",
"name": "创建视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
-720,
1952
],
"parameters": {
"url": "https://api.freepik.com/v1/ai/image-to-video/minimax-hailuo-02-768p",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $json.Prompt }} "
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "MBOXm1HI3OHfvpZ7",
"name": "Header Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "4a77b1d7-8e1f-49c0-899c-182ab2866d6f",
"name": "获取视频 URL",
"type": "n8n-nodes-base.httpRequest",
"notes": "If the previous node isn't SUCCEEDED yet, re-run \"Get Task Status\" after a short wait.",
"position": [
-496,
1936
],
"parameters": {
"url": "=\nhttps://api.freepik.com/v1/ai/image-to-video/minimax-hailuo-02-768p/{{ $json.data.task_id }}\n\n",
"options": {
"timeout": 120000
},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "MBOXm1HI3OHfvpZ7",
"name": "Header Auth account"
}
},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "1a4468a7-753e-4caf-956d-6d07121e0da5",
"name": "分支",
"type": "n8n-nodes-base.switch",
"position": [
-208,
1968
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Completed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "43a3872d-1597-4265-92df-cb055a049d10",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "COMPLETED"
}
]
},
"renameOutput": true
},
{
"outputKey": "Failed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "d54580f5-e892-475d-b2eb-19dcf216e1e2",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "FAILED"
}
]
},
"renameOutput": true
},
{
"outputKey": "Created",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "089f70ab-b693-44c4-bca7-dfee87bd6fee",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "CREATED"
}
]
},
"renameOutput": true
},
{
"outputKey": "In Progress",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "d3086f63-8dd7-421d-a880-877f318c5366",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "IN_PROGRESS"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "25e5774c-ea6d-47bd-bb32-93136982ee16",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
32,
2032
],
"webhookId": "a042360e-97f5-49cc-9173-447db7d07ba8",
"parameters": {
"amount": 30
},
"typeVersion": 1.1
},
{
"id": "714ea29e-4834-4da7-aab2-68e2dae8e0a1",
"name": "复制行2",
"type": "n8n-nodes-base.code",
"position": [
-1296,
2080
],
"parameters": {
"jsCode": "const original = items[0].json;\n\nreturn [\n { json: { ...original, run: 1 } },\n { json: { ...original, run: 2 } },\n];\n"
},
"typeVersion": 2
},
{
"id": "4c240d7f-5497-4165-b485-3fcb8c0a0baa",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-944,
1952
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "34f8f236-4efb-44c8-aead-4dc19d7e2381",
"name": "从 Google 表格获取提示",
"type": "n8n-nodes-base.googleSheets",
"position": [
-1504,
2016
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1_u9IxEZINcwKQB15Rfx7C1hM71zeDST58Fz3nRHTCUY/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1_u9IxEZINcwKQB15Rfx7C1hM71zeDST58Fz3nRHTCUY",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1_u9IxEZINcwKQB15Rfx7C1hM71zeDST58Fz3nRHTCUY/edit?usp=drivesdk",
"cachedResultName": "freepik prompts"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "HlBW2puZbuCCq8jJ",
"name": "Google Sheets account 3"
}
},
"typeVersion": 4.7
},
{
"id": "3d4d077f-4988-4b70-b3a5-358ecbab19f4",
"name": "便签17",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1616,
1200
],
"parameters": {
"width": 2032,
"content": "## 📬 需要帮助或想要自定义此工作流?"
},
"typeVersion": 1
},
{
"id": "a310dde0-0eb9-4a18-8e0a-cb9519fd2b9f",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1616,
1376
],
"parameters": {
"color": 5,
"width": 600,
"height": 860,
"content": ""
},
"typeVersion": 1
},
{
"id": "c7610191-4c24-4701-9c3f-bce9feb9e167",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-992,
1376
],
"parameters": {
"color": 6,
"width": 712,
"height": 860,
"content": ""
},
"typeVersion": 1
},
{
"id": "6b1c2572-5143-402b-9bdd-8225b187ee4e",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-256,
1376
],
"parameters": {
"color": 3,
"width": 664,
"height": 860,
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait": {
"main": [
[
{
"node": "Get Video URL",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Download Video as Base64",
"type": "main",
"index": 0
}
],
[],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Create Video": {
"main": [
[
{
"node": "Get Video URL",
"type": "main",
"index": 0
}
]
]
},
"Get Video URL": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Duplicate Rows2": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Create Video",
"type": "main",
"index": 0
}
]
]
},
"Upload to Google Drive1": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Download Video as Base64": {
"main": [
[
{
"node": "Upload to Google Drive1",
"type": "main",
"index": 0
}
]
]
},
"Get prompt from google sheet": {
"main": [
[
{
"node": "Duplicate Rows2",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 Freepik、Google Sheets 和 Drive 批量生成 AI 图像
使用 Freepik、Google Sheets 和 Drive 批量生成 AI 图像
Code
Split Out
Google Drive
+6
11 节点Robert Breen
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
批量SEO内容生成与带AI图片的Webflow草稿创建(模板)
使用GPT、Gemini图片和Webflow草稿创建进行批量SEO内容生成
If
Set
Code
+18
54 节点Dahiana
内容创作
自动化视频生成器
使用 DeepSeek、TTS 和 Together.ai 从脚本生成 AI 视频
Set
Code
Wait
+15
81 节点Lakindu Siriwardana
内容创作
使用Replicate和OpenAI制作无面孔恐怖短片
通过OpenAI TTS、Replicate视频生成和YouTube上传制作无面孔恐怖短片
If
Code
Wait
+13
50 节点Deb Mukherjee
内容创作
Gemini_NanoBanana_模板
使用 Fal.ai 模型(nano-banana、WAN2.2、Veo3)从 Google Sheets 生成 UGC 广告
If
Set
Code
+13
36 节点Jaruphat J.
内容创作
工作流信息
难度等级
中级
节点数量13
分类2
节点类型8
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流