多模态|Gemini 3 Flash 图片/视频分析
Gemini 3 Flash as an image/video analyst node with real frame extraction
- 图片1
- 图片2
- 图片3
- 图片4
- 视频帧_IMAGE
- 本地视频
- 分析报告
- 反推提示词
- 结构化JSON
- 用量
- 状态日志
This is the "look at my content and tell me what's wrong with it" node. TikpanGemini3FlashPreviewAnalystNode wraps gemini-3-flash-preview as a specialized analyst: product/ad diagnosis, video shot-by-shot breakdown, prompt reverse-engineering, and compliance checks. It's the deeper cousin of the pack's generic Gemini 3.5 Flash node - fewer raw capabilities, but purpose-built presets and, crucially, a frame-extraction engine so you can feed it videos without paying to upload whole files.
How it works
Media goes in, a structured report comes out. The node accepts up to 12 images, image URL lists, a 视频帧_IMAGE input (video frames from a LoadVideo-style node - it auto-samples and compresses them), local video under ~18MB (inlined), or a public/YouTube URL. It then calls Gemini with your 分析任务 preset and returns 分析报告, 反推提示词 (reverse-engineered generation prompt), 结构化JSON, 用量, and 状态日志.
The inputs that actually matter
- API_密钥 - sk- from tikpan.com.
- 分析任务 - seven presets: 通用分析, 视频分镜拆解, 商品卖点分析, 广告素材诊断, 画面提示词反推, 安全与合规检查, 自定义. Pick the job, the node loads the template.
- 分析要求 - your focus areas on top of the preset (default asks for subject, scene, motion, lens, light, color, text, issues, and a reusable prompt).
- 抽帧策略 - how video becomes frames: 均匀覆盖, 按秒抽帧, 首尾加密, 运动变化优先, 混合智能 (default). For action analysis, 运动变化优先 is the one you want.
- 最大抽帧数 - up to 48 (default 24); more frames = more accurate, more expensive.
- 媒体解析度 - default / low / medium / high. Resolution is a token-cost lever; high detail on a long video is spendy.
- 视频输入策略 - 自动优先抽帧 (default, cheapest), 只用抽帧, 只用视频原件, or both (highest cost). Frames are the budget move.
Optional: 本地视频 (≤18MB inline; bigger → use URL or frames), 视频URL (accepts YouTube links), and the 高级自定义JSON payload deep-merge.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
restart (or Manager → "Tikpan"). No models to download; this is relay + frame handling.
Where people get burned
- Frame strategy is a cost dial. 混合智能 at 48 frames on a long video is the expensive combo. Start with 均匀覆盖 at a modest frame count, then raise detail where it matters.
- Video inputs have size rules. Local video inline is capped around 18MB per the tooltip; past that it falls back to URL or pre-extracted frames. A 1080p 60fps file will blow the cap instantly - extract frames first.
- URL errors abort by default.
URL错误处理is 严格报错; switch to skip-bad-links for batch runs. - Cache on.
复用本地缓存defaults on and saves bandwidth/time on repeat analysis of the same file. Leave it.
Honest take: if you're doing "watch this ad and tell me why it converts / what to change," the preset templates plus the motion-aware frame strategy make this the pack's best content-diagnosis tool. It's a specialist - use it for analysis, not general reasoning, where the 3.5 Flash node is the better default.
Inputs (30)
| Name | Type | Default | Description |
|---|---|---|---|
| 福利说明 | COMBO | 1 options: gemini-3-flash-preview 图片/视频理解分析 | 按输入/输出 Tokens 计费 | |
| 获取密钥地址 | COMBO | 1 options: 👉 https://tikpan.com 获取 Tikpan API Key | |
| API_密钥 | STRING | sk- | Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取 |
| 模型 | COMBO | gemini-3-flash-preview | 选择对应版本的 Gemini 图像/视频理解模型 |
| 分析任务 | COMBO | 通用分析 | 预设场景,会自动加载对应的分析模板 |
| 分析要求 | STRING | 请分析画面主体、场景、动作、镜头、光线、色彩、文字信息、潜在问题,并给出可复用的生成提示词。 | 具体想让 AI 关注/输出的内容,可在预设模板基础上微调 |
| 输出格式 | COMBO | Markdown结构化 | 回答形式:报告/Markdown/JSON/直接产出提示词 |
| 最大输出Token | INT | 4096256–32768 | 回答最长字数上限(约 1 token≈0.7 个汉字) |
| 创意温度 | FLOAT | 0.300–2 | 0=最稳,1=均衡,>1=更发散;事实分析建议低 |
| 媒体解析度 | COMBO | 默认 | 上传图像/视频帧的清晰度:越高越精细但 token 消耗越大 |
| 抽帧策略 | COMBO | 混合智能 | 视频抽帧的算法:混合智能=综合最佳;运动变化优先适合动作分析 |
| 视频帧率FPS | INT | 241–120 | 源视频的帧率(影响抽帧时长换算) |
| 最大抽帧数 | INT | 241–48 | 最多抽几帧用于分析;越多越准但更贵 |
| 视频输入策略 | COMBO | 自动优先抽帧 | 怎么把视频喂给模型:抽帧便宜;视频原件适合长视频但贵 |
| URL错误处理 | COMBO | 严格报错 | URL 拉取失败时的策略 |
| POST重试策略 | COMBO | 幂等键轻重试 | 网络异常重试方式;带幂等键更安全 |
| 复用本地缓存 | BOOLEAN | true | 开启后同一文件复用本地缓存,省带宽和时间 |
| 跳过错误 | BOOLEAN | false | 开启后异常时返回空,不打断后续工作流 |
| 校验HTTPS证书 | BOOLEAN | true | 默认开启;遇到本地证书问题再关闭(不推荐关闭) |
| 中转站地址opt | COMBO | https://tikpan.com | Tikpan 中转站地址,一般保持默认即可 |
| 图片1opt | IMAGE | 可选输入图 1(最多 12 张图片) | |
| 图片2opt | IMAGE | 可选输入图 2 | |
| 图片3opt | IMAGE | 可选输入图 3 | |
| 图片4opt | IMAGE | 可选输入图 4 | |
| 图片URL列表opt | STRING | 每行一个公开图片 URL。会作为 file_data 传给 Gemini。 | |
| 视频帧_IMAGEopt | IMAGE | LoadVideo 等节点输出的视频帧 IMAGE。节点会自动抽帧压缩后作为多张图片分析。 | |
| 本地视频opt | VIDEO | 小于约 18MB 时 inline 直传。更大的视频建议用 视频URL 或 视频帧_IMAGE。 | |
| 本地视频路径opt | STRING | 可选,直接填 mp4/mov/webm 等本地路径。 | |
| 视频URLopt | STRING | 公开视频 URL 或 YouTube URL。会作为 file_data.file_uri 传给 Gemini。 | |
| 高级自定义JSONopt | STRING | 可选,会深度合并到 generateContent payload,用于后续 Tikpan/上游扩展参数。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 分析报告 | STRING | — |
| 反推提示词 | STRING | — |
| 结构化JSON | STRING | — |
| 用量 | STRING | — |
| 状态日志 | STRING | — |