多模态|GPT-5.4 Mini 推理
GPT-5.4 Mini reasoning in your graph, the Responses API way
- 图片1
- 图片2
- 图片3
- 图片4
- 视频帧_IMAGE
- 回答文本
- 优化提示词
- 结构化JSON
- 用量
- 状态日志
If you want OpenAI's current reasoning model inside a ComfyUI workflow without your own OpenAI key, TikpanGPT5MiniResponsesNode is the relay wrapper for it: it calls gpt-5.4-mini through Tikpan's /v1/responses endpoint. The "Responses" part matters - this is OpenAI's newer unified API (the one that fuses chat, tools, and file inputs into a single response object), not the older chat/completions shape. The node's job is to surface the core parameters as ComfyUI fields and hide the fixed host, so you get image inputs, video frame analysis, file reading, web search, and a reasoning-strength dial without touching the API.
How it works
You supply a question, optionally images (图片1–4, up to 16 per the tooltip), image URLs, video frames (视频帧_IMAGE - it analyzes by frame-sampling), or file URLs/local file paths (small files inline as input_file). The node builds a Responses payload with your system prompt, reasoning strength, and detail settings, POSTs to the relay, and returns the usual five outputs: 回答文本, 优化提示词, 结构化JSON, 用量, and 状态日志. The 任务类型 presets (9 of them - 通用问答 through 安全合规检查) swap system-prompt templates so you don't write one from scratch.
The inputs that actually matter
- API_密钥 - sk- from tikpan.com.
- 用户问题 - the question, combined with any media.
- 推理强度 -
minimal/low/medium/highreasoning effort. This is the cost lever: higher = better at hard reasoning, slower, pricier. - 回答详细度 - low / medium / high (default), a separate knob for answer length.
- 最大输出Token - 4096 default, up to 32768.
- 图片细节 - auto / low / high; resolution detail is a token cost.
- 抽帧策略 and 最大抽帧数 - the video-analysis controls (mixed-smart default, 12 frames max default), same family as the Gemini analyst node.
- 启用联网搜索 - off by default; flipping it on lets the model fetch current info, at extra cost.
Optional: 图片1–4, 图片URL列表, 视频帧_IMAGE, 文件URL列表, 本地文件路径.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro
restart (or Manager → "Tikpan"). No models to download - pure relay client.
Where people get burned
- Reasoning strength is where the bill hides. Every "high" run on long input is a noticeably bigger charge. The
用量output is there so you can actually watch it - check it after a few runs and calibrate. - File size rules. Small files inline; the tooltip explicitly says big files should go on a CDN/OSS first and be passed by URL. Huge base64 payloads will time out.
- URL errors abort by default.
URL错误处理defaults to 严格报错 - switch to skip-bad-links for batch. - Cache and retries.
复用本地缓存(default on) avoids re-billing the same analysis;POST重试策略(幂等键轻重试 by default) is the network-resilience knob.
If your pipeline wants OpenAI-grade reasoning on documents, images, and video frames with a per-call meter, this is the node - just treat 推理强度 like a budget slider rather than a quality slider, because that's what it economically is.
Inputs (30)
| Name | Type | Default | Description |
|---|---|---|---|
| 福利说明 | COMBO | 1 options: gpt-5.4-mini 多模态文本/图片推理 | /v1/responses | 按输入/输出/缓存命中 Tokens 计费 | |
| 获取密钥地址 | COMBO | 1 options: 👉 https://tikpan.com 获取 Tikpan API Key | |
| API_密钥 | STRING | sk- | Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取 |
| 模型 | COMBO | gpt-5.4-mini | 选择 GPT-5 系列模型 |
| 任务类型 | COMBO | 通用问答 | 预设场景,会自动调整 system prompt 模板 |
| 用户问题 | STRING | 请分析输入内容,给出清晰、可执行、适合商业使用的中文结论。 | 本次对话的提问内容;可结合下方的图片/视频/文件输入 |
| 系统指令 | STRING | 你是 Tikpan 的商业级 AI 助手,回答要准确、结构化、可执行。信息不足时说明不确定性,不要编造。 | system prompt:约束 AI 的角色、口吻和回答风格 |
| 输出格式 | COMBO | Markdown结构化 | 回答形式:报告 / Markdown / JSON / 直接产出提示词 |
| 推理强度 | COMBO | 低|low | 思考链长度:越高越擅长复杂推理但更慢更贵 |
| 回答详细度 | COMBO | 适中|medium | 控制最终回答的长度与展开程度 |
| 最大输出Token | INT | 4096256–32768 | 回答最长字数上限 |
| 创意温度 | FLOAT | 1.000–2 | 0=最稳,1=均衡,>1=更发散 |
| 图片细节 | COMBO | 自动|auto | 图片解析清晰度:高清更准但 token 消耗大 |
| 抽帧策略 | COMBO | 混合智能 | 视频抽帧算法:混合智能=综合最佳 |
| 视频帧率FPS | INT | 241–120 | 源视频帧率 |
| 最大抽帧数 | INT | 121–48 | 最多抽几帧用于分析;越多越准但更贵 |
| 启用联网搜索 | BOOLEAN | false | 开启后允许模型联网检索最新信息 |
| URL错误处理 | COMBO | 严格报错 | URL 拉取失败时的策略 |
| POST重试策略 | COMBO | 幂等键轻重试 | 网络异常重试方式;带幂等键更安全 |
| 复用本地缓存 | BOOLEAN | true | 开启后同一文件复用本地缓存,省带宽和时间 |
| 跳过错误 | BOOLEAN | false | 开启后异常时返回空,不打断后续工作流 |
| 校验HTTPS证书 | BOOLEAN | true | 默认开启;遇到本地证书问题再关闭(不推荐关闭) |
| 图片1opt | IMAGE | 可选输入图 1,用于图文混合提问(最多 16 张) | |
| 图片2opt | IMAGE | 可选输入图 2 | |
| 图片3opt | IMAGE | 可选输入图 3 | |
| 图片4opt | IMAGE | 可选输入图 4 | |
| 图片URL列表opt | STRING | 每行一个公开图片 URL。Responses API 会作为 input_image.image_url 传递。 | |
| 视频帧_IMAGEopt | IMAGE | LoadVideo 等节点输出的视频帧 IMAGE。gpt-5.4-mini 会按抽帧图片进行视频内容分析。 | |
| 文件URL列表opt | STRING | 每行一个公开文件 URL。适合 PDF、文本、CSV 等可由上游读取的文件。 | |
| 本地文件路径opt | STRING | 每行一个本地文件路径。小文件会 inline 为 input_file,适合 PDF/TXT/CSV/JSON。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 回答文本 | STRING | — |
| 优化提示词 | STRING | — |
| 结构化JSON | STRING | — |
| 用量 | STRING | — |
| 状态日志 | STRING | — |