fal.ai 기반 텍스트-이미지 AI 생성기
중급
이것은자동화 워크플로우로, 12개의 노드를 포함합니다.주로 If, Wait, Webhook, HttpRequest, RespondToWebhook 등의 노드를 사용하며. fal.ai 플랫폼을 활용한 텍스트-이미지 AI 생성기
사전 요구사항
- •HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
- •대상 API의 인증 정보가 필요할 수 있음
- •OpenAI API Key
카테고리
-
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
},
"nodes": [
{
"id": "c5b7bac5-6e31-4338-af76-32a34be8ae4d",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-440,
280
],
"webhookId": "5cca11bb-eaea-4c3a-86f7-16d5802b6ac8",
"parameters": {
"path": "ai_text_to_image_generator",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "ba2850cc-3d2b-45d7-9c1d-87bff38d99c3",
"name": "상태 조회",
"type": "n8n-nodes-base.httpRequest",
"position": [
300,
280
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/flux/requests/{{ $json.request_id }}/status",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0qP44IHCmBfL54Vb",
"name": "Falai Polina"
}
},
"typeVersion": 4.2
},
{
"id": "44e08f96-e6b2-49a8-8077-571e07108d8d",
"name": "대기",
"type": "n8n-nodes-base.wait",
"position": [
680,
460
],
"webhookId": "150069ed-885b-497f-a32a-09e7088136e6",
"parameters": {
"amount": 1
},
"typeVersion": 1.1
},
{
"id": "a1455b63-eed2-4c6d-86dc-11bf0937892b",
"name": "준비 완료?",
"type": "n8n-nodes-base.if",
"position": [
480,
280
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "ac50759b-e2f3-4efd-a2af-f28b7d209b45",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "6b4446ef-0c5f-4d8b-839e-e7a9d6ae4773",
"name": "요청 제출",
"type": "n8n-nodes-base.httpRequest",
"position": [
100,
280
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/flux/schnell",
"method": "POST",
"options": {},
"jsonBody": "={\"prompt\": \"{{ $json.body.prompt }}\"}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "0qP44IHCmBfL54Vb",
"name": "Falai Polina"
}
},
"typeVersion": 4.2
},
{
"id": "3f1df77f-8576-4c32-a1c8-7e80f5bf572d",
"name": "결과 조회",
"type": "n8n-nodes-base.httpRequest",
"position": [
680,
280
],
"parameters": {
"url": "={{ $json.response_url }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0qP44IHCmBfL54Vb",
"name": "Falai Polina"
}
},
"typeVersion": 4.2
},
{
"id": "744b0b05-d1f7-4972-b16d-70328b7a36c9",
"name": "OpenAI 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-260,
440
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "QpFZ2EiM3WGl6Zr3",
"name": "Marketing OpenAI"
}
},
"typeVersion": 1.1
},
{
"id": "9ab24ceb-c1c1-42b8-88d9-249c2db60a8d",
"name": "400 오류",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
100,
640
],
"parameters": {
"options": {
"responseCode": 400
},
"respondWith": "json",
"responseBody": "={{\n{\n \"error\": \"Prompt is in violation of terms of use. Please try again.\",\n \"result\": []\n}\n}}"
},
"typeVersion": 1.1
},
{
"id": "c5ef424e-1fb5-44d5-9612-4c76c7d1d232",
"name": "성공",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
900,
280
],
"parameters": {
"options": {},
"respondWith": "json",
"responseBody": "={{\n{\n \"error\": null,\n \"result\": $json.images\n}\n}}"
},
"typeVersion": 1.1
},
{
"id": "eb43cc4a-4d15-47b9-9c81-840ecc9cfafa",
"name": "NSFW 필터",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-260,
280
],
"parameters": {
"options": {
"fallback": "other"
},
"inputText": "={{ $json.body.prompt }}",
"categories": {
"categories": [
{
"category": "NSFW",
"description": "text is NSFW"
},
{
"category": "SFW",
"description": "text is SFW"
}
]
}
},
"typeVersion": 1
},
{
"id": "db102cc6-b414-4187-b269-8f73158f0fb3",
"name": "메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
120
],
"parameters": {
"width": 540,
"height": 460,
"content": "## Receives text prompt through a webhook endpoint and filters the prompt for inappropriate content using AI moderation"
},
"typeVersion": 1
},
{
"id": "b2ff86e9-62cc-45d1-9f89-6a5d2010c976",
"name": "메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
0
],
"parameters": {
"width": 540,
"height": 580,
"content": "## Submits valid prompts to the Fal.ai and polls for completion status and retrieves the generated image when ready\n\nFal.ai is a model inference and finetuning service dedicated to AI image and video. It hosts many popular third party models including Flux by Black Forest Labs.\n\nSign up here - https://fal.ai - for an api key."
},
"typeVersion": 1
}
],
"pinData": {
"Webhook": [
{
"body": {
"prompt": "A person sitting under a moonlit sky",
"styleId": "1"
},
"query": {},
"params": {},
"headers": {
"host": "[insert your host]",
"accept": "*/*",
"origin": "http://localhost:3000",
"pragma": "no-cache",
"referer": "http://localhost:3000/",
"priority": "u=1, i",
"sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
"x-real-ip": "10.255.0.2",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
"content-type": "multipart/form-data; boundary=----WebKitFormBoundary6KvXTaJpPc6UJTId",
"cache-control": "no-cache",
"content-length": "268",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6,la;q=0.5,de;q=0.4,sk;q=0.3,nl;q=0.2,mt;q=0.1",
"x-forwarded-for": "10.255.0.2",
"sec-ch-ua-mobile": "?0",
"x-forwarded-host": "[insert your host]",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"sec-ch-ua-platform": "\"macOS\"",
"x-forwarded-server": "5f641c71d311"
},
"webhookUrl": "https://[insert your host]/webhook/ai_text_to_image_generator",
"executionMode": "production"
}
]
},
"connections": {
"44e08f96-e6b2-49a8-8077-571e07108d8d": {
"main": [
[
{
"node": "ba2850cc-3d2b-45d7-9c1d-87bff38d99c3",
"type": "main",
"index": 0
}
]
]
},
"c5b7bac5-6e31-4338-af76-32a34be8ae4d": {
"main": [
[
{
"node": "eb43cc4a-4d15-47b9-9c81-840ecc9cfafa",
"type": "main",
"index": 0
}
]
]
},
"a1455b63-eed2-4c6d-86dc-11bf0937892b": {
"main": [
[
{
"node": "3f1df77f-8576-4c32-a1c8-7e80f5bf572d",
"type": "main",
"index": 0
}
],
[
{
"node": "44e08f96-e6b2-49a8-8077-571e07108d8d",
"type": "main",
"index": 0
}
]
]
},
"eb43cc4a-4d15-47b9-9c81-840ecc9cfafa": {
"main": [
[
{
"node": "9ab24ceb-c1c1-42b8-88d9-249c2db60a8d",
"type": "main",
"index": 0
}
],
[
{
"node": "6b4446ef-0c5f-4d8b-839e-e7a9d6ae4773",
"type": "main",
"index": 0
}
],
[
{
"node": "9ab24ceb-c1c1-42b8-88d9-249c2db60a8d",
"type": "main",
"index": 0
}
]
]
},
"3f1df77f-8576-4c32-a1c8-7e80f5bf572d": {
"main": [
[
{
"node": "c5ef424e-1fb5-44d5-9612-4c76c7d1d232",
"type": "main",
"index": 0
}
]
]
},
"ba2850cc-3d2b-45d7-9c1d-87bff38d99c3": {
"main": [
[
{
"node": "a1455b63-eed2-4c6d-86dc-11bf0937892b",
"type": "main",
"index": 0
}
]
]
},
"6b4446ef-0c5f-4d8b-839e-e7a9d6ae4773": {
"main": [
[
{
"node": "ba2850cc-3d2b-45d7-9c1d-87bff38d99c3",
"type": "main",
"index": 0
}
]
]
},
"744b0b05-d1f7-4972-b16d-70328b7a36c9": {
"ai_languageModel": [
[
{
"node": "eb43cc4a-4d15-47b9-9c81-840ecc9cfafa",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
시각화 참조 라이브러리에서 n8n 노드를 탐색
可视化 참조 라이브러리에서 n8n 노드를 탐색
If
Ftp
Set
+
If
Ftp
Set
113 노드I versus AI
기타
CSV를 JSON으로 변환기 (에러 처리 및 Slack 알림)
에러 처리 및 Slack 알림 기능을 포함한 CSV에서 JSON 변환기
If
Set
Code
+
If
Set
Code
18 노드n8n Team
엔지니어링
리드 생성 및 이메일 워크플로
Google 지도, SendGrid 및 AI를 사용한 B2B 잠재 고객 개발 및 이메일 마케팅 자동화
If
Set
Code
+
If
Set
Code
141 노드Ezema Kingsley Chibuzo
리드 생성
반려동물 가게 4
🐶 펫 샵 예약 AI 대리자
If
Set
Code
+
If
Set
Code
187 노드Bruno Dias
인공지능
[템플릿] AI 반려동물 가게 v8
🐶 AI 펫 샵 어시스턴트 - GPT-4o, Google 캘린더 및 WhatsApp/Instagram/Facebook 통합
If
N8n
Set
+
If
N8n
Set
244 노드Amanda Benks
영업
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타
워크플로우 정보
난이도
중급
노드 수12
카테고리-
노드 유형8
저자
n8n Team
@n8n-teamMeet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유