多模态|Gemini 3.5 Flash 推理
Gemini 3.5 Flash reasoning with images, video, audio, and PDFs
- 图片1
- 图片2
- 图片3
- 图片4
- 图片5
- 图片6
- 回答文本
- 优化提示词
- 结构化JSON
- 用量
- 状态日志
ComfyUI has a whole genre of "the LLM as a node" plumbing - captioning, prompt enhancement, workflow decision-making - and this is the closed-model API end of that spectrum, which the KB's LLM-in-ComfyUI doc covers as its §3 local-vs-API decision. TikpanGemini35FlashNode wraps gemini-3.5-flash (a long-document / complex-reasoning tier) through the Tikpan relay, and it's the most input-rich reasoning node in the pack: six image slots, plus URL lists for images, video, audio, and files, plus local file paths, plus web search and sandboxed code execution. If your graph needs "look at this video and these PDFs and tell me what to do next," this is the node.
How it works
The node builds a Gemini request (/v1beta/models/{model}:generateContent native, or OpenAI-compatible /v1/chat/completions if you flip 接口模式), attaches whatever media you supplied, POSTs to the relay, and returns the model's answer. Outputs: 回答文本 (the answer), 优化提示词 (a prompt-optimization pass), 结构化JSON, 用量 (usage - your billing receipt), and 状态日志. Small local files get base64-inlined; big ones should go on a CDN first and be passed by URL, per the tooltip.
The inputs that actually matter
- API_密钥 - sk- from tikpan.com.
- 用户问题 - your question, combined with any attached media.
- 任务类型 - nine presets (通用问答, 图片理解分析, 视频/音频理解, 长文档/PDF总结, 代码与架构审查, 复杂任务规划, 提示词优化, 结构化JSON提取, 自定义) that swap the system-prompt template for you. This is the biggest time-saver in the UI.
- 思考预算 - the thinking depth: auto / off / 1024 / 4096 / 8192. Deeper = better at complex reasoning, slower and pricier. The README highlights the 8192 budget as the selling point.
- 最大输出Token - 8192 default, up to 65536.
- 创意温度 - 0.4 default; lower for fact work, higher for writing.
- 启用搜索工具 / 启用代码执行 / 启用URL上下文 - three booleans that unlock live web lookup, sandboxed Python, and URL reading. All off by default, all billable when on.
Optional: 图片1–6, 图片/视频/音频/文件 URL lists (one per line), 本地文件路径, and 高级自定义JSON - a deep-merge escape hatch that injects extra fields into the payload for relay/upstream features that haven't been surfaced in the UI yet.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
restart (or Manager → "Tikpan"). Pure network client; no local models.
Where people get burned
- Tool toggles are spend toggles. Web search, code execution, and URL context each add tokens and latency. Flip them on only when the task needs them.
- URL errors kill the run by default.
URL错误处理defaults to 严格报错 - one dead link aborts. Switch to 跳过坏链接并写日志 for batch robustness. - Thinking budget is a cost knob. 8192-depth on every question is the fastest way to watch relay credits evaporate. Let auto handle most calls.
- Big local files. The inline path is for small files; the tooltip's advice (upload to OSS/CDN, pass the URL) is there because giant base64 payloads time out.
It's the workhorse multimodal-reasoning node of the pack - if your pipeline analyzes anything more complex than a single image, this is the one to start from. Just treat the power toggles as what they are: a meter with extra buttons.
Inputs (33)
| Name | Type | Default | Description |
|---|---|---|---|
| 💰_福利_💰 | COMBO | 1 options: 🔥 0.6元≈1美金余额 | 全网底价 👉 https://tikpan.com | |
| 获取密钥请访问 | COMBO | 1 options: 👉 https://tikpan.com (官方授权 Key 获取地址) | |
| API_密钥 | STRING | sk- | Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取 |
| 模型 | COMBO | gemini-3.5-flash | 选择对应版本的 Gemini 模型 |
| 接口模式 | COMBO | Gemini 原生|/v1beta/models/{model}:generateContent | 走 Gemini 原生接口(更稳)或 OpenAI 兼容接口(更通用) |
| 任务类型 | COMBO | 通用问答 | 预设场景,会自动调整 system prompt 模板 |
| 用户问题 | STRING | 请根据输入内容,给出清晰、准确、可执行的中文回答。 | 本次对话的提问内容;可结合上方的图片/视频/URL 输入 |
| 系统指令 | STRING | 你是 Tikpan 的商业级多模态 AI 助手。回答要准确、结构化、可执行;不确定的信息要说明不确定,不要编造。 | system prompt:约束 AI 的角色、口吻和回答风格 |
| 输出格式 | COMBO | Markdown结构化 | 回答的呈现形式:自由文本 / Markdown / JSON 等 |
| 思考预算 | COMBO | 自动|auto | 思考链长度:auto 自适应;预算越大越擅长复杂推理但更慢更贵 |
| 最大输出Token | INT | 8192256–65536 | 回答最长字数上限(约 1 token≈0.7 个汉字) |
| 创意温度 | FLOAT | 0.400–2 | 0=最稳,1=均衡,>1=更发散;写作可调高,事实问答调低 |
| Top_P | FLOAT | 0.950–1 | 核采样概率,一般保持默认 0.95 |
| 启用搜索工具 | BOOLEAN | false | 开启后允许模型联网检索最新信息(部分模型支持) |
| 启用代码执行 | BOOLEAN | false | 开启后允许模型在沙箱里跑 Python 验证答案 |
| 启用URL上下文 | BOOLEAN | false | 开启后模型会读取你提供的网页 URL 内容 |
| POST重试策略 | COMBO | 幂等键轻重试 | 网络异常时的重试方式;带幂等键更安全 |
| 跳过错误 | BOOLEAN | false | 开启后异常时返回空,不打断后续工作流 |
| 校验HTTPS证书 | BOOLEAN | true | 默认开启;遇到本地证书问题再关闭(不推荐关闭) |
| 中转站地址opt | COMBO | https://tikpan.com | Tikpan 中转站地址,一般保持默认即可 |
| 图片1opt | IMAGE | 可选输入图 1,用于图文混合提问 | |
| 图片2opt | IMAGE | 可选输入图 2 | |
| 图片3opt | IMAGE | 可选输入图 3 | |
| 图片4opt | IMAGE | 可选输入图 4 | |
| 图片5opt | IMAGE | 可选输入图 5 | |
| 图片6opt | IMAGE | 可选输入图 6 | |
| 图片URL列表opt | STRING | 每行一个公网图片 URL。Gemini 原生会作为 file_data,OpenAI 兼容会作为 image_url。 | |
| 视频URL列表opt | STRING | 每行一个公网视频 URL,用于视频理解、分镜分析、广告素材分析等。 | |
| 音频URL列表opt | STRING | 每行一个公网音频 URL,用于口播、音乐、音效、会议录音等理解任务。 | |
| 文件URL列表opt | STRING | 每行一个公网文件 URL,适合 PDF/TXT/CSV/JSON 等长文档理解。 | |
| 本地文件路径opt | STRING | 每行一个本地文件路径;小文件会 base64 内联上传,大文件建议先上传 OSS/CDN 后填 URL。 | |
| URL错误处理opt | COMBO | 严格报错 | URL 拉取失败时的策略:严格报错=立即中断;其它=跳过失败项继续 |
| 高级自定义JSONopt | STRING | 会深度合并到最终请求 payload,用于 Tikpan/上游新增参数。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 回答文本 | STRING | — |
| 优化提示词 | STRING | — |
| 结构化JSON | STRING | — |
| 用量 | STRING | — |
| 状态日志 | STRING | — |