提示词|Grok 多图剧本重构
Turn a video breakdown into a Grok-ready multi-image prompt without writing it yourself
- 🎯_Grok3专属提示词
- 🧠_GPT重构思考日志
This is the pack's "video remix" glue node, and it's genuinely clever. Grok video models can reference up to seven images via @img1–@img7 anchors in the prompt - the hard part is authoring a prompt that actually wires those anchors to specific images. This node does it for you: it takes a video breakdown report (from the pack's Gemini video-analysis node), plus a description of the new product you want to insert, and hands back a rewritten prompt that's ready to paste into a Grok video node. The use case the README is built around is TikTok-style second-creation: take an existing video's shot-by-shot breakdown, replace the product with yours, keep the motion.
Unlike every other node in this pack, it doesn't generate pixels - it generates text, using an LLM of its own. That means it's the cheapest node here by a mile, since you're paying for a chat completion (default gpt-5.4-mini, which the tooltip calls out as best value) rather than per second of video. You still need the same sk- key, because the rewrite happens on Tikpan's relay too.
How it works
Three inputs go in:
Gemini原片拆解报告- paste the output of a Gemini video-analysis node here. This is your source material: what happens, shot by shot.核心产品与植入场景- describe your product and where it should appear. The default template walks you through it: product name, key selling points, the specific scene to insert into (e.g. "replace the water bottle in the protagonist's hand with my @img1 perfume, with shimmering light on the spray").氛围与运镜微调- optional extra instructions about tone, grading, camera moves.
Then the node calls the chosen text model to rewrite all of that into a Grok-3-format prompt. The clever part is the anchor system: each optional 图N_对应的主体描述 field tells the LLM what @imgN actually is ("a silver laptop", "a red sneaker"), so the generated prompt names each image correctly instead of guessing. Leave them empty and the LLM will still write anchors, but it'll be guessing what they show.
Outputs are 🎯_Grok3专属提示词 (the finished prompt, wired into your Grok video node's prompt input) and 🧠_GPT重构思考日志 (the model's reasoning, handy when the result misses).
Getting it right
The quality of the output tracks the quality of the report and the product description - garbage in, prettier garbage out. Be concrete in 核心产品与植入场景; vague templates produce vague inserts. And when the report references shots, mention which ones matter. It's a text node, so iterate freely: rerunning it costs almost nothing, which is exactly why it's worth tuning here before you spend the video credits.
Install and first run
cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
Restart, or search "Tikpan" in ComfyUI Manager. Paste your key into Tikpan_API密钥, drop the report in, fill the product block, run, and read the output - it's a string, so you can eyeball it before it ever touches a video node. Note this node's 校验HTTPS证书 defaults to on (the video nodes default it off), so if you hit an SSL error here, that toggle is the first thing to check.
Common issues
It's an LLM call, so the failure modes are the boring network ones: 401/402/429 on the key and balance, and a slow or failed completion if the relay is having a moment. The interesting failure is semantic - the prompt comes back but doesn't actually use your product description. When that happens, re-read what you put in 核心产品与植入场景 and the anchor descriptions; the model can only remix what you gave it.
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| 获取密钥地址 | COMBO | 1 options: 👉 https://tikpan.com (官方授权Key获取点) | |
| Tikpan_API密钥 | STRING | sk- | Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取 |
| 文本处理模型 | COMBO | gpt-5.4-mini | 用于重写提示词的语言模型;gpt-5.4-mini 性价比最高 |
| Gemini原片拆解报告 | STRING | 连接Gemini视频分析节点的输出 | |
| 核心产品与植入场景 | STRING | 【产品名称】: 【核心功能/卖点】: 【期望植入的场景或动作】: (例如:将原片中主角手里拿的水杯,替换成我的 @img1 某某香水,喷洒时要有闪耀的光影) | 你想要植入到原视频中的新产品/新主体描述,越具体越好 |
| 氛围与运镜微调 | STRING | 保留原片的丝滑运镜,将背景的色调改为具有未来科技感的赛博朋克风。 | 想要调整的氛围、色调、运镜等额外要求(可选) |
| 中转站地址opt | COMBO | https://tikpan.com | Tikpan 中转站地址,一般保持默认即可 |
| 校验HTTPS证书opt | BOOLEAN | true | 默认开启;遇到本地证书问题再关闭(不推荐关闭) |
| 图1_对应的主体描述opt | STRING | 告诉GPT,@img1 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图2_对应的主体描述opt | STRING | 告诉GPT,@img2 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图3_对应的主体描述opt | STRING | 告诉GPT,@img3 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图4_对应的主体描述opt | STRING | 告诉GPT,@img4 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图5_对应的主体描述opt | STRING | 告诉GPT,@img5 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图6_对应的主体描述opt | STRING | 告诉GPT,@img6 到底是个什么东西?比如:一台银色的笔记本电脑 | |
| 图7_对应的主体描述opt | STRING | 告诉GPT,@img7 到底是个什么东西?比如:一台银色的笔记本电脑 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| 🎯_Grok3专属提示词 | STRING | — |
| 🧠_GPT重构思考日志 | STRING | — |