> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Gemini 决策（选择图像） - ComfyUI Built-in Node Documentation

> 从一批图像中挑选最佳图像。将 index 连接到 Get Image from Batch 以保留所选图像，这样工作流的其余部分就只会针对选中的图像运行。

从一批图像中挑选最佳图像。将 `index` 连接到 Get Image from Batch 以保留所选图像，这样工作流的其余部分就只会针对选中的图像运行。

## 输入

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `model` | 要使用的模型（默认：`"gemini-decision-1"`）。 | COMBO | 是 | `"gemini-decision-1"` |
| `question` | 选择哪张图像（默认："Which image best matches the prompt in text? If there is no text, which image has the best quality?"）。 | STRING | 是 | 1 到 5000 个字符 |
| `images` | 可供选择的图像，可以是批次，也可以是单批帧。 | IMAGE | 是 | 2 到 64 张图像 |
| `text` | 问题所针对的文本，例如生成这些图像所用的提示词，最多 20000 个字符。 | STRING | 否 | 最多 20000 个字符 |

此节点需要 2 到 64 张图像，只有单张图像时会报错。当选择应以提示词为依据而非仅凭图像质量时，请连接 `text`。

## 输出

| 输出名 | 描述 | 数据类型 |
| - | - | - |
| `index` | 被选中图像在批次中的位置，从 0 开始。 | INT |
| `confidence` | 对该选择的置信度，介于 0 和 1 之间。 | FLOAT |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/GeminiDecisionPickImage/zh.md)

***

**Source fingerprint (SHA-256):** `55eb604923cb66b42f23f37d0c710a97033cc2c5d95880d45397bba10e44dab0`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.