使用Flux AI和Fal AI生成动漫壁纸并发布至TikTok
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 20 个节点。主要使用 If, Set, Wait, FormTrigger, HttpRequest 等节点。 使用Flux AI和Fal AI生成动态动漫壁纸并发布至TikTok
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "90587241b61f532dbe71be441310f86b24bd62a247fd87ce3f4b074464fa220d",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "53e29fe4-13de-4a1b-b443-1979ebb40226",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
768,
-32
],
"webhookId": "219852ef-75c0-484a-9632-40063a333cad",
"parameters": {
"options": {},
"formTitle": "Wallpaper Poster",
"formFields": {
"values": [
{
"fieldLabel": "Topic",
"requiredField": true
},
{
"fieldType": "dropdown",
"fieldLabel": "Style Anime",
"fieldOptions": {
"values": [
{
"option": "Studio Ghibli"
},
{
"option": "Hayao Miyazaki"
},
{
"option": "Makoto Shinkai"
},
{
"option": "Yoshitaka Amano"
},
{
"option": "Akira Toriyama"
}
]
}
}
]
}
},
"typeVersion": 2.3
},
{
"id": "41dc894d-ac9a-4b8b-ac60-2016294d050a",
"name": "设置 URL",
"type": "n8n-nodes-base.set",
"position": [
1488,
-32
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9d00e8b4-24cb-48bf-ad0d-d33a021453bf",
"name": "prompt_url",
"type": "string",
"value": "=https://image.pollinations.ai/prompt/{{ $('Prompt Generator').item.json.text }}.jpg?width=720&height=1280&model=flux&nologo=true"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "e6f9f829-6a75-4b02-9300-046cd5b4bdf4",
"name": "生成图像",
"type": "n8n-nodes-base.httpRequest",
"position": [
1664,
-32
],
"parameters": {
"url": "={{ $json.prompt_url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "55e74bb7-0680-4aa2-96e1-05a37715df76",
"name": "上传图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
1840,
-32
],
"parameters": {
"url": "https://getlate.dev/api/v1/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "files",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "6L6krjDWwxC9hB3i",
"name": "Late Dev"
}
},
"typeVersion": 4.2
},
{
"id": "5ad5da87-1d34-4ccd-86c1-b56d5f9053ff",
"name": "创建视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
720,
336
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/minimax/hailuo-02-fast/image-to-video",
"method": "POST",
"options": {},
"jsonBody": "={\n \"prompt\": \"seamless looping video with gentle, ambient motion. Add slow, continuous effects such as drifting particles, subtle light flicker, soft haze, floating dust, rippling water, moving clouds, or faint color shifts. The motion should be cyclical and loopable, with no clear start or end, maintaining a calm and dreamy Lofi vibe suitable for a background visual. Camera movement is static.\",\n \"image_url\": \"{{ $json.files[0].url }}\",\n \"prompt_optimizer\": false\n }",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "Ynx6pfNxK2MWOyHa",
"name": "Together API"
},
"httpHeaderAuth": {
"id": "Eh1sqIEM3DqrvmoW",
"name": "Fal AI 1"
}
},
"typeVersion": 4.2
},
{
"id": "669828e6-a7c9-4cef-8e4e-3350745c4983",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
880,
336
],
"webhookId": "965dfc5d-bf13-4b77-b93d-2f0cd6d91fb1",
"parameters": {
"amount": 10
},
"typeVersion": 1.1
},
{
"id": "18c79d61-05ed-4a1e-abfe-465ace7d42c5",
"name": "条件判断",
"type": "n8n-nodes-base.if",
"position": [
1200,
336
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "f281e5e7-0bbb-4b46-b795-c1365177a813",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "909184ed-dad3-43d9-a8cc-3084a728246d",
"name": "获取状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
1040,
336
],
"parameters": {
"url": "={{ $json.status_url }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "Eh1sqIEM3DqrvmoW",
"name": "Fal AI 1"
}
},
"typeVersion": 4.2
},
{
"id": "cda825da-a458-4130-9247-7bc06dcc87c2",
"name": "获取视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
1360,
336
],
"parameters": {
"url": "={{ $('Create Video').first().json.response_url }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "Eh1sqIEM3DqrvmoW",
"name": "Fal AI 1"
}
},
"typeVersion": 4.2
},
{
"id": "de43537f-caa1-4dc1-a30d-bc2f74461cdf",
"name": "标签生成器",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
1568,
336
],
"parameters": {
"text": "=Generate exactly 5 related keywords for the topic: {{ $('On form submission').item.json.Topic }}. \nFormat them in a single line, styled as Twitter hashtags, separated by commas. \nOutput only in the format shown below, with no extra text or explanation. \nExample output: #keyword1, #keyword2, #keyword3, #keyword4, #keyword5",
"batching": {},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "f863f307-5ae8-403f-8782-4164ad278783",
"name": "提示词生成器",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
1184,
-32
],
"parameters": {
"text": "=Topic:\n{{ $json.Topic }}\n\nAnime style artist: {{ $json['Style Anime'] }}",
"batching": {},
"messages": {
"messageValues": [
{
"message": "=Role & Purpose \nYou are an AI Agent specialized in generating one high-quality text-to-image prompt for anime wallpaper creation. Your role is to craft one visually rich, stylistically accurate, and detailed prompt descriptions that guide image generation models toward stunning anime-style backgrounds, based on any given topics.\n\nCapabilities \n- Generate a descriptive prompt for anime wallpapers.\n- Specify style details such as lighting, mood, perspective, and color palette, and in the style of defined anime artist. \n- Include environmental and character elements that enhance anime aesthetics. \n- Ensure consistency in anime art styles (studio-inspired, cel-shaded, soft painting). \n- Each prompt must be in one line of paragraph, no extra characters like quotes, dash, or hypens. \n\nInteraction Style \n- Be concise but vivid; balance brevity with detailed imagery. \n- Use structured descriptions (setting → style → mood → details). \n- Maintain a creative, aesthetic-driven tone. \n- Always ensure clarity.\n- Never include image aspect ratio or size.\n\nNotes \n- Avoid generic phrases; focus on unique scene-building details. \n- Ensure the prompt highlights \"anime style\" explicitly. \n- Always include atmosphere or mood keywords (e.g., serene, dramatic, dreamy). \n"
}
]
},
"promptType": "define"
},
"typeVersion": 1.7
},
{
"id": "f1b46418-2b1d-4c9a-b066-0063030526cb",
"name": "TikTok 发布",
"type": "n8n-nodes-base.httpRequest",
"position": [
1856,
336
],
"parameters": {
"url": "https://getlate.dev/api/v1/posts",
"method": "POST",
"options": {},
"jsonBody": "={\n \"content\": \"{{ $('Tag Generator').item.json.text }} Epic Anime Wallpaper\",\n \"publishNow\": true,\n \"platforms\": [\n {\n \"platform\": \"tiktok\",\n \"accountId\": \"xxxxxxxxxxxxxxxxxxxxx\",\n \"platformSpecificData\": {\n \"tiktokSettings\": {\n \"privacy_level\": \"PUBLIC_TO_EVERYONE\",\n \"video_made_with_ai\": true,\n \"allow_comment\": true,\n \"allow_duet\": false,\n \"allow_stitch\": false,\n \"commercial_content_type\": \"none\",\n \"content_preview_confirmed\": true,\n \"express_consent_given\": true\n }\n }\n }\n ],\n \"mediaItems\": [\n { \"type\": \"video\", \"url\": \"{{ $('Get Video').first().json.video.url }}\" }\n ]\n}\n",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth"
},
"credentials": {
"httpBearerAuth": {
"id": "6L6krjDWwxC9hB3i",
"name": "Late Dev"
}
},
"typeVersion": 4.2
},
{
"id": "e3e9456a-177e-418a-a88a-42c26f943911",
"name": "Groq 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGroq",
"position": [
1184,
64
],
"parameters": {
"model": "openai/gpt-oss-120b",
"options": {}
},
"credentials": {
"groqApi": {
"id": "g20vlWa5IUn8BaKl",
"name": "Groq account"
}
},
"typeVersion": 1
},
{
"id": "827d2bd5-6880-43bd-9a2c-cd38c74ec278",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
672,
240
],
"parameters": {
"color": 5,
"width": 832,
"height": 304,
"content": "## 2. 动画视频生成器"
},
"typeVersion": 1
},
{
"id": "8f617a95-ac58-4051-b29a-a0ce9d8aa502",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1040,
-144
],
"parameters": {
"color": 5,
"width": 992,
"height": 336,
"content": "## 1. 图像生成器"
},
"typeVersion": 1
},
{
"id": "1f23b989-ccc6-4875-93ee-416f716c4d69",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1520,
240
],
"parameters": {
"color": 5,
"width": 512,
"height": 304,
"content": "## 3. 发布到 TikTok"
},
"typeVersion": 1
},
{
"id": "0fb96474-bf17-42fa-8c3a-4552d4a83d8e",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
672,
-144
],
"parameters": {
"color": 5,
"width": 336,
"height": 336,
"content": "## 从这里开始"
},
"typeVersion": 1
},
{
"id": "eda1ad07-ba9e-434e-87a3-c6d653bd3c7f",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
128,
-144
],
"parameters": {
"width": 512,
"height": 688,
"content": "## 动漫动态壁纸 TikTok 发布"
},
"typeVersion": 1
},
{
"id": "eb8ce4dc-0e9a-409e-b4fe-d07ece793330",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2064,
-144
],
"parameters": {
"color": 7,
"width": 576,
"height": 336,
"content": "## 使用方法"
},
"typeVersion": 1
},
{
"id": "55052995-06fe-4f64-8306-e65a3541d299",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2064,
240
],
"parameters": {
"color": 7,
"width": 576,
"height": 304,
"content": "## 文档"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"If": {
"main": [
[
{
"node": "Get Video",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Get Status",
"type": "main",
"index": 0
}
]
]
},
"Set URL": {
"main": [
[
{
"node": "Generate Image",
"type": "main",
"index": 0
}
]
]
},
"Get Video": {
"main": [
[
{
"node": "Tag Generator",
"type": "main",
"index": 0
}
]
]
},
"Get Status": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Upload IMG": {
"main": [
[
{
"node": "Create Video",
"type": "main",
"index": 0
}
]
]
},
"Create Video": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Tag Generator": {
"main": [
[
{
"node": "Tiktok Post",
"type": "main",
"index": 0
}
]
]
},
"Generate Image": {
"main": [
[
{
"node": "Upload IMG",
"type": "main",
"index": 0
}
]
]
},
"Groq Chat Model": {
"ai_languageModel": [
[
{
"node": "Prompt Generator",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Tag Generator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Prompt Generator": {
"main": [
[
{
"node": "Set URL",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Prompt Generator",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用Groq、Gemini和Slack审批系统自动化RSS到Medium发布
通过Groq、Gemini和Slack审批系统实现RSS到Medium发布的自动化流程
If
Set
Code
+16
41 节点ObisDev
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
使用OpenAI和Firecrawl从产品URL创建AI生成的Meta广告活动
使用OpenAI和Firecrawl从产品URL创建AI生成的Meta广告活动
If
Set
Code
+15
40 节点Adam Crafts
内容创作
Recap AI - Veo 3.1 电商产品动画生成器
基于Veo 3.1的电商产品目录AI视频生成器
If
Set
Wait
+10
18 节点Lucas Walter
内容创作
Apollo 数据抓取与触达流程 1 ✅
使用 Apollo、AI 解析和定时邮件跟进自动生成潜在客户
If
Code
Wait
+13
39 节点Deniz
内容创作
自动化本地线索查找与冷邮件发送
使用 Apify、AI 和 Gmail 自动查找本地线索并发送冷邮件
If
Set
Wait
+10
18 节点Meak
内容创作