Kling API를 사용하여 의복에 360° 가상 시험 착용 영상 생성
고급
이것은Design, AI, Marketing분야의자동화 워크플로우로, 16개의 노드를 포함합니다.주로 If, Set, Wait, Switch, HttpRequest 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Kling API를 사용하여 의류를 위해 360° 가상 시험 착용 비디오 생성(비공식)
사전 요구사항
- •대상 API의 인증 정보가 필요할 수 있음
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "xQ0xqhNzFeEdBpFK",
"meta": {
"instanceId": "1e003a7ea4715b6b35e9947791386a7d07edf3b5bf8d4c9b7ee4fdcbec0447d7"
},
"name": "Generate 360° Virtual Try-on Videos for Clothing with Kling API",
"tags": [],
"nodes": [
{
"id": "978b4ac4-0357-4d2b-8a02-7da04e6f3f1f",
"name": "'워크플로 테스트' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
160,
140
],
"parameters": {},
"typeVersion": 1
},
{
"id": "54d1c23f-3a13-4ec0-9b3b-3806e5faae18",
"name": "Kling 가상 피팅 작업",
"type": "n8n-nodes-base.httpRequest",
"position": [
620,
140
],
"parameters": {
"url": "https://api.piapi.ai/api/v1/task",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"kling\",\n \"task_type\": \"ai_try_on\",\n \"input\": {\n \"model_input\": \"{{ $json.model_input }}\",\n \"dress_input\": \"{{ $json.dress_input }}\",\n \"upper_input\": \"{{ $json.upper_input }}\",\n \"lower_input\": \"{{ $json.lower_input }}\",\n \"batch_size\": 1\n }\n} ",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $json['x-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "5be9d932-c102-4a7e-b995-09c6bf17026c",
"name": "스위치",
"type": "n8n-nodes-base.switch",
"position": [
960,
200
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5f61ee56-4ebe-411f-95e6-b47d9741e7a2",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "cdda4f40-1580-4a5a-a7f4-f1e4fbf7ceb4",
"name": "Kling 비디오 작업 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
1180,
440
],
"parameters": {
"url": "=https://api.piapi.ai/api/v1/task/{{ $json.data.task_id }}",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $('Preset Parameters').item.json['x-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "3e794d14-b55f-4936-90af-8237977d6635",
"name": "Kling 비디오 생성",
"type": "n8n-nodes-base.httpRequest",
"position": [
1140,
200
],
"parameters": {
"url": "https://api.piapi.ai/api/v1/task",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"kling\",\n \"task_type\": \"video_generation\",\n \"input\": {\n \"version\": \"1.6\",\n \"image_url\": \"{{ $json.data.output.works[0].image.resource }}\",\n \"prompt\": \"{{ $('Preset Parameters').item.json.generate_video_prompt }}\"\n }\n} ",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $('Preset Parameters').item.json['x-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "3ae849b2-4bd4-454f-a759-e44a9736100d",
"name": "프리셋 매개변수",
"type": "n8n-nodes-base.set",
"position": [
380,
140
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "{\n \"x-api-key\":\"\",\n \"model_input\": \"\",\n \"dress_input\": \"\",\n \"upper_input\":\"\",\n \"lower_input\":\"\",\n \"generate_video_prompt\": \"Walk on the catwalk, turn around, and finally stand still and pose\"\n}\n"
},
"typeVersion": 3.4
},
{
"id": "18c606e3-82e2-4c09-a87e-6bbc71363c1c",
"name": "Kling 가상 피팅 작업 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
420,
460
],
"parameters": {
"url": "=https://api.piapi.ai/api/v1/task/{{ $json.data.task_id }}",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $('Preset Parameters').item.json['x-api-key'] }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "becf3d7b-d468-4b4a-b22f-d6d747e52664",
"name": "데이터 상태 확인",
"type": "n8n-nodes-base.if",
"position": [
640,
460
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "e97a02cc-8d1d-4500-bce5-0a296c792b76",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
},
{
"id": "50b63a7a-52b5-4766-a859-96ac1ff949ec",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "failed"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "d8ec251d-d47c-4341-909d-abdea385c1f9",
"name": "이미지 생성 대기",
"type": "n8n-nodes-base.wait",
"position": [
160,
460
],
"webhookId": "af79053d-1291-4dd2-889e-4593dbbb2512",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "88e3067f-0b1f-472a-937b-926c6d208453",
"name": "비디오 생성 대기",
"type": "n8n-nodes-base.wait",
"position": [
920,
440
],
"webhookId": "af79053d-1291-4dd2-889e-4593dbbb2512",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "36d75678-918f-42c5-97a7-7a13d1eacbd4",
"name": "비디오 데이터 상태 확인",
"type": "n8n-nodes-base.switch",
"position": [
1560,
180
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5f61ee56-4ebe-411f-95e6-b47d9741e7a2",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "7356d963-83c0-47a1-a728-9191f66d2f57",
"name": "비디오 데이터 상태 가져오기",
"type": "n8n-nodes-base.if",
"position": [
1400,
440
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "e97a02cc-8d1d-4500-bce5-0a296c792b76",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "completed"
},
{
"id": "50b63a7a-52b5-4766-a859-96ac1ff949ec",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.status }}",
"rightValue": "failed"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "9ef52637-ccc9-4817-8c14-5c54fa0af178",
"name": "최종 비디오 URL 가져오기",
"type": "n8n-nodes-base.set",
"position": [
1760,
180
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"video_url\": \"{{ $json.data.output.video_url }}\"\n}\n "
},
"typeVersion": 3.4
},
{
"id": "9a0194bd-59a5-45b1-a6e2-db0605eb4d7a",
"name": "스티키 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-120
],
"parameters": {
"width": 460,
"height": 220,
"content": "## Generate 360° Virtual Try-on Videos for Clothing with Kling API (unofficial)\nThis tool is designed for e-commerce platforms, fashion brands, content creators, and content influencers. By uploading model and clothing images and linking your PiAPI account, you can swiftly generate a realistic video of the model sporting the outfit with a 360° turn, offering an immersive viewing experience."
},
"typeVersion": 1
},
{
"id": "629697ae-cd49-4e8e-953d-a2f091ed9202",
"name": "스티키 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
700
],
"parameters": {
"width": 340,
"height": 200,
"content": "## Generate Virtual Try-on Image\nUpload model url, users have two solutions to upload clothing url: \n1. Upload `dress_input`\n2. Upload 'upper_input` and 'lower_input`"
},
"typeVersion": 1
},
{
"id": "710bd0f0-8b5a-469a-8b31-b6f738dc7f79",
"name": "스티키 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1640,
460
],
"parameters": {
"width": 340,
"content": "## Generate Final Video \nWait for generation and get the output url in the final node."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "97ee31dd-b8be-4b37-bbed-363ac35d5268",
"connections": {
"5be9d932-c102-4a7e-b995-09c6bf17026c": {
"main": [
[
{
"node": "3e794d14-b55f-4936-90af-8237977d6635",
"type": "main",
"index": 0
}
]
]
},
"becf3d7b-d468-4b4a-b22f-d6d747e52664": {
"main": [
[
{
"node": "5be9d932-c102-4a7e-b995-09c6bf17026c",
"type": "main",
"index": 0
}
],
[
{
"node": "d8ec251d-d47c-4341-909d-abdea385c1f9",
"type": "main",
"index": 0
}
]
]
},
"3ae849b2-4bd4-454f-a759-e44a9736100d": {
"main": [
[
{
"node": "54d1c23f-3a13-4ec0-9b3b-3806e5faae18",
"type": "main",
"index": 0
}
]
]
},
"3e794d14-b55f-4936-90af-8237977d6635": {
"main": [
[
{
"node": "88e3067f-0b1f-472a-937b-926c6d208453",
"type": "main",
"index": 0
}
]
]
},
"cdda4f40-1580-4a5a-a7f4-f1e4fbf7ceb4": {
"main": [
[
{
"node": "7356d963-83c0-47a1-a728-9191f66d2f57",
"type": "main",
"index": 0
}
]
]
},
"7356d963-83c0-47a1-a728-9191f66d2f57": {
"main": [
[
{
"node": "36d75678-918f-42c5-97a7-7a13d1eacbd4",
"type": "main",
"index": 0
}
],
[
{
"node": "88e3067f-0b1f-472a-937b-926c6d208453",
"type": "main",
"index": 0
}
]
]
},
"36d75678-918f-42c5-97a7-7a13d1eacbd4": {
"main": [
[
{
"node": "9ef52637-ccc9-4817-8c14-5c54fa0af178",
"type": "main",
"index": 0
}
]
]
},
"54d1c23f-3a13-4ec0-9b3b-3806e5faae18": {
"main": [
[
{
"node": "d8ec251d-d47c-4341-909d-abdea385c1f9",
"type": "main",
"index": 0
}
]
]
},
"d8ec251d-d47c-4341-909d-abdea385c1f9": {
"main": [
[
{
"node": "18c606e3-82e2-4c09-a87e-6bbc71363c1c",
"type": "main",
"index": 0
}
]
]
},
"88e3067f-0b1f-472a-937b-926c6d208453": {
"main": [
[
{
"node": "cdda4f40-1580-4a5a-a7f4-f1e4fbf7ceb4",
"type": "main",
"index": 0
}
]
]
},
"18c606e3-82e2-4c09-a87e-6bbc71363c1c": {
"main": [
[
{
"node": "becf3d7b-d468-4b4a-b22f-d6d747e52664",
"type": "main",
"index": 0
}
]
]
},
"978b4ac4-0357-4d2b-8a02-7da04e6f3f1f": {
"main": [
[
{
"node": "3ae849b2-4bd4-454f-a759-e44a9736100d",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 디자인, 인공지능, 마케팅
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
GPT-4o-mini, Midjourney, Kling, Creatomate API를 사용하여 애니메이션 이야기 생성
GPT-4o-mini, Midjourney, Kling, Creatomate API로 애니메이션 이야기 생성
If
Set
Code
+
If
Set
Code
51 노드PiAPI
엔지니어링
Midjourney, GPT-4o-mini, Canvas API를 사용하여 그래픽 배경 이미지 생성
사용하여 Midjourney, GPT-4o-mini 및 Canvas API로 그래픽 배경화면 생성
If
Set
Code
+
If
Set
Code
14 노드PiAPI
디자인
Midjourney와 Kling API를 사용하여 운동 일러스트 작업 플로우 생성
Midjourney와 Kling API를 통해 텍스트 힌트로 애니메이션 일러스트 생성
If
Code
Wait
+
If
Code
Wait
13 노드PiAPI
디자인
(미출시) 세视图 정교한 투영을 동적 비디오 변환으로
GPT-4o-Image 및 Kling API를 사용하여 3면视图를 360° 비디오로 변환
If
Set
Code
+
If
Set
Code
13 노드PiAPI
디자인
AI, ElevenLabs, 다중 플랫폼을 사용하여 POV 비디오를 생성하고 승인
AI, ElevenLabs, 및 다중 플랫폼에서 POV 비디오를 생성하고 승인하기 (TikTok/IG/YT)
If
Set
Code
+
If
Set
Code
60 노드Immanuel
디자인
OpenAI 스크립트, Leonardo 이미지, HeyGen 가상 인물로 AI 비디오 생성
OpenAI 스크립트, Leonardo 이미지, HeyGen 가상 인물로 AI 비디오 생성
If
Set
Code
+
If
Set
Code
68 노드Adam Crafts
디자인