> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ClaudeNode - ComfyUI Built-in Node Documentation

> Complete documentation for the ClaudeNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

## 概述

从 Anthropic Claude 模型生成文本响应。此节点将文本提示和可选图像发送至 Claude 模型，并返回生成的文本响应。

## 输入

| 参数              | 描述                                   | 数据类型   | 是否必需 | 取值范围                                                                                      |
| --------------- | ------------------------------------ | ------ | ---- | ----------------------------------------------------------------------------------------- |
| `prompt`        | 输入到模型的文本。（默认值：空字符串）                  | STRING | 是    | 不适用                                                                                       |
| `model`         | 用于生成响应的 Claude 模型。                   | COMBO  | 是    | `"Opus 4.7"`<br />`"Opus 4.6"`<br />`"Sonnet 4.6"`<br />`"Sonnet 4.5"`<br />`"Haiku 4.5"` |
| `seed`          | 种子控制节点是否应重新运行；无论种子如何，结果均非确定性。（默认值：0） | INT    | 是    | 0 至 2147483647                                                                            |
| `images`        | 用作模型上下文的可选图像。最多 20 张图像。              | IMAGE  | 否    | 0 至 20 张图像                                                                                |
| `system_prompt` | 规定模型行为的基础指令。（默认值：空字符串）               | STRING | 否    | 不适用                                                                                       |

### 参数约束

* **图像限制**：每次请求最多可提供 20 张图像。
* **温度处理**：当启用思考功能或使用 "Opus 4.7" 模型时，根据 Anthropic API 的要求，温度参数将自动取消设置（默认为 1.0）。对于其他模型，可通过模型配置设置温度。
* **思考/推理**：模型配置包含一个 `reasoning_effort` 设置，用于控制是否启用思考功能。启用后，节点会根据所选模型自动配置适当的思考模式（自适应或基于预算）。

## 输出

| 输出名称     | 描述                                                                  | 数据类型   |
| -------- | ------------------------------------------------------------------- | ------ |
| `output` | 从 Claude 模型生成的文本响应。如果未生成文本，则返回 "Empty response from Claude model."。 | STRING |

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

***

**Source fingerprint (SHA-256):** `e3bab004535d4d406582aa42f28bb64a2988f8331788d51ec1fa4e943d8d4382`
