图像转3D
高级
这是一个Design, AI领域的自动化工作流,包含 17 个节点。主要使用 If, Set, Wait, GoogleDrive, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用Fal.ai Trellis将图像转换为3D模型并存储到Google Drive
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "XiwLd0JwGmDoY0mr",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "图像转3D",
"tags": [],
"nodes": [
{
"id": "8cc77575-854f-4359-8faa-fc78b8c23b65",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-220,
400
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0dc7e6b8-43b8-4b9a-aa7a-4a100598162f",
"name": "获取状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
840,
400
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/trellis/requests/{{ $('Create 3D Image').item.json.request_id }}/status ",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "7540df1c-35e2-4ac5-871d-4d8410217979",
"name": "等待 60 秒",
"type": "n8n-nodes-base.wait",
"position": [
660,
400
],
"webhookId": "e10e9912-38e7-4e1f-ad7e-52b1e6a65d79",
"parameters": {
"amount": 60
},
"typeVersion": 1.1
},
{
"id": "44c4b506-2a14-40ca-a75f-7af86ef5a9af",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-220,
260
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "ca8b3bcd-3eb6-4723-b2ea-a973582d46af",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-860
],
"parameters": {
"color": 3,
"width": 740,
"height": 520,
"content": "# 图像转3D"
},
"typeVersion": 1
},
{
"id": "2230e7a5-225d-4538-b091-a9fbeedb1323",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-300
],
"parameters": {
"width": 740,
"height": 200,
"content": "## 步骤 1 - GOOGLE SHEET"
},
"typeVersion": 1
},
{
"id": "3aad3211-e6fc-4e4b-9c59-7dd82827a43b",
"name": "完成?",
"type": "n8n-nodes-base.if",
"position": [
1020,
400
],
"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": "6ad70838-dbf4-4cb1-9b61-4cf6e1fcdf6a",
"name": "更新结果",
"type": "n8n-nodes-base.googleSheets",
"position": [
440,
780
],
"parameters": {
"columns": {
"value": {
"row_number": "={{ $('Get new image').item.json.row_number }}",
"IMAGE RESULT": "={{ $('Get Url 3D image').item.json.model_mesh.url }}"
},
"schema": [
{
"id": "IMAGE MODEL",
"type": "string",
"display": true,
"required": false,
"displayName": "IMAGE MODEL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "IMAGE PRODUCT",
"type": "string",
"display": true,
"required": false,
"displayName": "IMAGE PRODUCT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PRODUCT ID",
"type": "string",
"display": true,
"required": false,
"displayName": "PRODUCT ID",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "IMAGE RESULT",
"type": "string",
"display": true,
"required": false,
"displayName": "IMAGE RESULT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/11ebWJvwwXHgvQld9kxywKQUvIoBw6xMa0g0BuIqHDxE/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1C0Et6X3Zwr_6CxeNjhLpDwjAfIGeUvLGFawckKb0utY",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1C0Et6X3Zwr_6CxeNjhLpDwjAfIGeUvLGFawckKb0utY/edit?usp=drivesdk",
"cachedResultName": "Image to 3D"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "239b45b3-94cc-43a9-aa2e-2c85725f4cc0",
"name": "设置数据",
"type": "n8n-nodes-base.set",
"position": [
220,
400
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c713d31f-9abd-496a-ac79-e8e2efe60aa0",
"name": "image",
"type": "string",
"value": "={{ $json['IMAGE'] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "70908a7d-72a5-4131-a82b-ed455a453fd5",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
120
],
"parameters": {
"width": 740,
"height": 100,
"content": "## 步骤 3 - 主流程"
},
"typeVersion": 1
},
{
"id": "d81f8aa0-3302-4a26-9425-aeb2a87674e7",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-60
],
"parameters": {
"width": 740,
"height": 140,
"content": "## 步骤2 - 获取API密钥(您的API密钥)"
},
"typeVersion": 1
},
{
"id": "484d029d-b88f-48bb-b487-e7a50b47eb7d",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
340
],
"parameters": {
"width": 180,
"height": 200,
"content": "设置步骤 2 中创建的 API 密钥"
},
"typeVersion": 1
},
{
"id": "7061d7c1-7da8-473c-98a3-57dc15def557",
"name": "获取新图像",
"type": "n8n-nodes-base.googleSheets",
"position": [
0,
400
],
"parameters": {
"options": {},
"filtersUI": {
"values": [
{
"lookupColumn": "3D RESULT"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1C0Et6X3Zwr_6CxeNjhLpDwjAfIGeUvLGFawckKb0utY/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1C0Et6X3Zwr_6CxeNjhLpDwjAfIGeUvLGFawckKb0utY",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1C0Et6X3Zwr_6CxeNjhLpDwjAfIGeUvLGFawckKb0utY/edit?usp=drivesdk",
"cachedResultName": "Image to 3D"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "edcdc4f0-4e7f-4fec-af9c-bbe8bf6bd8e6",
"name": "创建3D图像",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
400
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/trellis",
"method": "POST",
"options": {},
"jsonBody": "={\n \"image_url\": \"{{ $json.image }}\",\n \"ss_guidance_strength\": 7.5,\n \"ss_sampling_steps\": 12,\n \"slat_guidance_strength\": 3,\n \"slat_sampling_steps\": 12,\n \"mesh_simplify\": 0.95,\n \"texture_size\": 1024\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": "9ac6f843-090f-4c15-88e7-46ee494ed1b9",
"name": "获取3D图像URL",
"type": "n8n-nodes-base.httpRequest",
"position": [
-220,
780
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/trellis/requests/{{ $json.request_id }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "a02ac260-c88a-4c5a-9fc6-7230b95c462b",
"name": "获取3D图像文件",
"type": "n8n-nodes-base.httpRequest",
"position": [
0,
780
],
"parameters": {
"url": "={{ $json.model_mesh.url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "311be624-4707-4361-a58a-ee90ff42490c",
"name": "上传3D图像",
"type": "n8n-nodes-base.googleDrive",
"position": [
220,
780
],
"parameters": {
"name": "={{ $now.format('yyyyLLddHHmmss') }}-{{ $('Get Url 3D image').item.json.model_mesh.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
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "2f0d3488-25ac-4332-a8e3-62d7b34b96ae",
"connections": {
"Set data": {
"main": [
[
{
"node": "Create 3D Image",
"type": "main",
"index": 0
}
]
]
},
"Completed?": {
"main": [
[
{
"node": "Get Url 3D image",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 60 sec.",
"type": "main",
"index": 0
}
]
]
},
"Get status": {
"main": [
[
{
"node": "Completed?",
"type": "main",
"index": 0
}
]
]
},
"Wait 60 sec.": {
"main": [
[
{
"node": "Get status",
"type": "main",
"index": 0
}
]
]
},
"Get new image": {
"main": [
[
{
"node": "Set data",
"type": "main",
"index": 0
}
]
]
},
"Update result": {
"main": [
[]
]
},
"Create 3D Image": {
"main": [
[
{
"node": "Wait 60 sec.",
"type": "main",
"index": 0
}
]
]
},
"Upload 3D Image": {
"main": [
[
{
"node": "Update result",
"type": "main",
"index": 0
}
]
]
},
"Get Url 3D image": {
"main": [
[
{
"node": "Get File 3D image",
"type": "main",
"index": 0
}
]
]
},
"Get File 3D image": {
"main": [
[
{
"node": "Upload 3D Image",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Get new image",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 设计, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
在GIF上交换面孔
使用Fal.run AI和Google服务自动化GIF人脸交换
If
Set
Wait
+6
19 节点Davide
设计
使用 FLUX Kontext 生成 AI 情境化图像
使用 FLUX Kontext、Google Sheets 和 Drive 通过 AI 提示词变换图像
If
Wait
Google Drive
+5
17 节点Davide
设计
WooCommerce服装目录的AI虚拟试穿
WooCommerce服装目录的AI虚拟试穿自动生成
If
Set
Wait
+7
21 节点Davide
销售
使用Google Veo3创建视频并上传到YouTube
使用Google Veo3生成AI视频,保存到Google云端硬盘并上传到YouTube
If
Set
Wait
+7
22 节点Davide
人工智能
使用Google Veo3 Fast创建更便宜的视频并上传到社交媒体
使用Veo3 Fast创建低成本AI视频并上传至YouTube和TikTok
If
Set
Wait
+7
23 节点Davide
内容创作
使用Sora2 Pro创建视频并上传到YouTube
使用Sora2 Pro生成AI视频,保存到Google云端硬盘并上传到YouTube
If
Set
Wait
+7
22 节点Davide
工作流信息
难度等级
高级
节点数量17
分类2
节点类型9
作者
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 查看 →
分享此工作流