n8n 自动化:单图生成六格联络表并转电影级视频发布
输入 Google Sheets 图片链接 → NanoBanana Ultra 生成 2×3 联络表 → Kling 逐帧生成三段视频 → FFmpeg 合并 → Blotato 自动发布 YouTube
- 给谁
- 已有 n8n、Google Workspace 使用经验的内容创作者、营销人员或自动化搭建者
- 你会得到
- 从一张图片自动产出六格联络表、三段 AI 视频片段、一段合并后的最终视频,并自动上传发布到 YouTube
- 你需要
- n8n · google-sheets · google-drive
硬约束
前置条件:n8n Cloud 或自托管实例;Google Sheets 与 Google Drive OAuth2 凭证;Blotato 账户;AtlasCloud API key(NanoBanana + Kling);Fal API key(FFmpeg 合并);tmpfiles 公共托管(无需额外凭证)。 已知费用:AtlasCloud 按调用计费,Kling 视频生成按秒/分辨率计费,Fal FFmpeg API 按调用计费,Blotato 按账户套餐计费。具体费率以各平台官网为准。 边界与限制:模板使用 3:2 比例、4K 分辨率;Kling 每段 5 秒,共 3 段;negative_prompt 当前为占位符 example_value,需替换为实际负面提示词;最终视频通过 Blotato 发布为 YouTube private 视频。
他们做了什么
模板作者 drfiras 在 n8n 中构建了一个 45 节点的自动化工作流。第一阶段通过 NanoBanana Ultra 将单张图片扩展为 2×3 的六格时尚联络表,保持人物身份、服装材质与光影一致;第二阶段将联络表裁剪为帧对,通过 Kling AI 的 start-end-frame 生成三段 5 秒电影级视频,经 Fal FFmpeg API 合并为最终 MP4,最后通过 Blotato 自动发布到 YouTube。整个流程由 Google Sheets 状态列(nanobanana_done → contact_done → video_done)驱动,可手动触发或定时运行。
效果如何
作者报告(author_report):从一张图片可自动获得高端编辑联络表、多段 AI 生成视频片段、一段合并后的专业视频,并自动上传发布,无需手动剪辑或时间线操作。实际效果取决于 AtlasCloud 与 Kling 的生成质量、源图分辨率以及提示词调优程度。
值得知道
1) 本站未实测该模板,reproduction=not_tested;2) 模板中 Kling 的 negative_prompt 为 example_value 占位符,实际使用前必须替换;3) Blotato 发布节点当前配置为 YouTube private 且标题/正文为 test,生产环境需修改;4) 仅使用了 6 格中的 4 格裁剪出 3 对相邻帧,如需 6 段视频需额外添加 crop 与 Kling 分支;5) AtlasCloud、Kling、Fal、Blotato 均为第三方付费 API,费用随调用量与分辨率变化;6) tmpfiles 为公共临时托管,敏感图片需注意隐私风险;7) 联络表生成后需等待 4 分钟轮询,视频生成后同样需等待,总耗时较长,不适合实时场景。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- Get url image 节点:绑定Google Sheets OAuth2 凭证。
- Download image 节点:绑定Google Drive OAuth2 凭证。
- Upload file to google drive 节点:绑定Google Drive OAuth2 凭证。
- Update with new image 节点:绑定Google Sheets OAuth2 凭证。
- Get row(s) in sheet 节点:绑定Google Sheets OAuth2 凭证。
- Update row in sheet 节点:绑定Google Sheets OAuth2 凭证。
- Upload media 节点:绑定blotatoApi 凭证。
- Create post 节点:绑定blotatoApi 凭证。
- 将 __UKH_BEARER_4__ 替换为实际密钥/令牌(原路径 /nodes/4/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_7__ 替换为实际密钥/令牌(原路径 /nodes/7/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_26__ 替换为实际密钥/令牌(原路径 /nodes/26/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_29__ 替换为实际密钥/令牌(原路径 /nodes/29/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_32__ 替换为实际密钥/令牌(原路径 /nodes/32/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_35__ 替换为实际密钥/令牌(原路径 /nodes/35/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_36__ 替换为实际密钥/令牌(原路径 /nodes/36/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_37__ 替换为实际密钥/令牌(原路径 /nodes/37/parameters/headerParameters/parameters/0/value;literal auth header)。
- 将 __UKH_BEARER_38__ 替换为实际密钥/令牌(原路径 /nodes/38/parameters/headerParameters/parameters/0/value;literal auth header)。
需要替换的配置
- 源模板来自 n8n 公开库 #12769(约 45 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。 另将 9 处字面量密钥替换为 __UKH_…__ 占位符。
模板获取日期: 2026-10-24
步骤
准备表格与凭证
在 Google Sheets 创建或复制模板表格,确保包含列:status、image_nanobanana、image_contactsheet、image_atlas、Final video。在 n8n 中连接 Google Sheets OAuth2、Google Drive OAuth2、Blotato 账户。在 AtlasCloud 获取 API key,在 Fal 获取 API key。
生成 2×3 联络表(NanoBanana Ultra)
触发工作流(手动或 Schedule Trigger)。n8n 从 Google Sheets 读取 status=nanobanana_done 的行,从 Google Drive 下载图片,上传到 tmpfiles 获取公共 URL(将返回 URL 中的 tmpfiles.org/ 替换为 tmpfiles.org/dl/ 以获得直链)。在 Edit Fields 节点设置 contactSheetPrompt(见下方提示词),调用 AtlasCloud NanoBanana Ultra (google/nano-banana-pro/edit-ultra) 生成 2×3 联络表。等待 4 分钟后轮询预测结果,下载 PNG,上传回 Google Drive,更新表格 status=contact_done 并保存 image_contactsheet 与 image_atlas。
运行提示词 · 来源原文。Edit Fields : contactSheetPrompt 节点的 value 字段
Analyze the input image and silently inventory all fashion-critical details: the subject(s), exact wardrobe pieces, materials, colors, textures, accessories, hair, makeup, body proportions, environment, set geometry, light direction, and shadow quality. All wardrobe, styling, hair, makeup, lighting, environment, and color grade must remain 100% unchanged across all frames. Do not add or remove anything. Do not reinterpret materials or colors. Do not output any reasoning. Perfectly replicate the exact facial features of the model. Face & Identity Preservation Rule Do NOT modify the face or head of the person in the original image. The subject must remain the exact same person, with no AI alteration to facial features, identity, proportions, or appearance. No face swap, no enhancement, no identity change. Your visible output must be: One 2×3 contact sheet image (6 frames). Then a keyframe breakdown for each frame. Each frame must represent a resting point after a dramatic camera move — only describe the final camera position and what the subject is doing, never the motion itself. The six frames must be spatially dynamic, non-linear, and visually distinct. Required 6-Frame Shot List High-Fashion Beauty Portrait (Close, Editorial, Intimate) Camera positioned very close to the subject's face, slightly above or slightly below eye level, using an elegant offset angle that enhances bone structure and highlights key wardrobe elements near the neckline. Shallow depth of field, flawless texture rendering, and a sculptural fashion-forward composition. High-Angle Three-Quarter Frame Camera positioned overhead but off-center, capturing the subject from a diagonal downward angle. This frame should create strong shape abstraction and reveal wardrobe details from above. Low-Angle Oblique Full-Body Frame Camera positioned low to the ground and angled obliquely toward the subject. This elongates the silhouette, emphasizes footwear, and creates a dramatic perspective distinct from Frames 1 and 2. Side-On Compression Frame (Long Lens) Camera placed far to one side of the subject, using a tighter focal length to compress space. The subject appears in clean profile or near-profile, showcasing garment structure in a flattened, editorial manner. Intimate Close Portrait From an Unexpected Height Camera positioned very close to the subject's face (or upper torso) but slightly above or below eye level. The angle should feel fashion-editorial, not conventional — offset, elegant, and expressive. Extreme Detail Frame From a Non-Intuitive Angle Camera positioned extremely close to a wardrobe detail, accessory, or texture, but from an unusual spatial direction (e.g., from below, from behind, from the side of a neckline). This must be a striking, abstract, editorial detail frame. Continuity & Technical Requirements Maintain perfect wardrobe fidelity in every frame: exact garment type, silhouette, material, color, texture, stitching, accessories, closures, jewelry, shoes, hair, and makeup. Environment, textures, and lighting must remain consistent. Depth of field shifts naturally with focal length (deep for distant shots, shallow for close/detail shots). Photoreal textures and physically plausible light behavior required. Frames must feel like different camera placements within the same scene, not different scenes. All keyframes must share the exact same dimensions and 3:2 aspect ratio, and exactly 6 keyframes must be produced. Maintain the exact visual style in all keyframes: shot on Fuji Velvia film with a hard flash, light concentrated on the subject and fading toward the edges. The image is overexposed, shows significant film grain, is oversaturated, with shiny (almost oily) skin and harsh white reflections on glasses frames. Output Format A) One mandatory 2×3 contact sheet image (6 frames)
裁剪联络表并生成视频片段(Kling)
当 status=contact_done 时,Schedule Trigger 触发第二阶段。下载联络表图片,使用 Edit Image 节点获取尺寸信息后,裁剪为 4 个区域(Top Left、Top Center、Top Right、Bottom Left),每个区域尺寸为 width/3 × height/2,对应 6 格中的 4 格(实际流程使用其中 3 组相邻帧对)。将裁剪后的帧上传到 tmpfiles 获取公共 URL。使用 AtlasCloud Kling start-end-frame (kwaivgi/kling-v2.1-i2v-pro/start-end-frame) 生成 3 段 5 秒视频,每段使用相邻两帧作为起止画面。每段调用后等待 4 分钟再轮询结果。
运行提示词 · 来源原文。Kling Generation / Kling Generation1 / Kling Generation2 节点的 prompt 字段(bodyParameters.prompt)
=The camera very slowly and smoothly lowers on a boom. The subject barely moves, and is extremely deliberate and thoughtful in movement
运行提示词 · 来源原文。NanoBanana ULTRA: Contact Sheet 节点的 JSON Body
={ "model": "google/nano-banana-pro/edit-ultra", "aspect_ratio": "3:2", "enable_base64_output": false, "enable_sync_mode": false, "images": ["{{ $('Build Public Image URL nano').item.json.data.url.replace(/tmpfiles\.org\//, 'tmpfiles.org/dl/') }}"], "output_format": "png", "prompt": "{{ $json.contactSheetPrompt }}", "resolution": "4k" }运行提示词 · 来源原文。Merge 3 Videos 节点的 JSON Body(Fal FFmpeg API)
={ "video_urls": [ "{{ $('download video kling').item.json.data.outputs[0] }}", "{{ $('download video kling1').item.json.data.outputs[0] }}", "{{ $('download video kling2').item.json.data.outputs[0] }}" ], "output": { "format": "mp4" } }合并视频并更新状态
将 3 段 Kling 视频通过 Fal FFmpeg API(https://fal.run/fal-ai/ffmpeg-api/merge-videos)合并为一段 MP4。等待 1 分钟后,更新 Google Sheets 行 status=video_done,并将合并后的视频 URL 写入 Final video 列。
自动发布到 YouTube(Blotato)
将最终视频 URL 传入 Blotato Upload media 节点,随后通过 Create post 节点发布到 YouTube。当前模板配置为:platform=youtube,privacyStatus=private,postContentText=test,postCreateYoutubeOptionTitle=test。发布成功后视频为私有状态,需手动调整为公开或按计划公开。
自定义与排期运行
可通过修改 Kling 节点的 prompt 调整镜头运动与情绪,修改 duration 参数调整单段时长,增减 crop + Kling 分支调整镜头数量,替换 Schedule Trigger 实现自动触发,或调整 NanoBanana 的 aspect_ratio 与裁剪数学公式适配不同画幅。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限
这一段是提示词,页面不会在这里插入广告。
你正在复现 n8n 模板 #12769:单图生成六格联络表并转电影级视频。请先确认以下事项再开始: 1) Google Sheets 表格已创建且含列:status、image_nanobanana、image_contactsheet、image_atlas、Final video; 2) n8n 已连接 Google Sheets OAuth2、Google Drive OAuth2、Blotato 账户; 3) 已获取 AtlasCloud API key(用于 NanoBanana + Kling)与 Fal API key(用于 FFmpeg 合并); 4) 理解 tmpfiles URL 需将 tmpfiles.org/ 替换为 tmpfiles.org/dl/ 以获得直链; 5) Kling negative_prompt 当前为 example_value,需替换为实际负面提示词; 6) Blotato 发布默认设为 YouTube private,如需公开请调整 postCreateYoutubeOptionPrivacyStatus。 确认后,按步骤 1-6 在 n8n 中导入 workflow.json 并配置占位符。
关键配置:Google Sheets 文档 ID 与工作表名称、Google Drive 文件夹 ID、AtlasCloud Bearer Token、Fal API Key、Blotato 账户。
来源
Turn an image into a cinematic video with NanoBanana Ultra, Kling, Blotato · drfiras · n8n.io · 2026-01-16
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。