ComfyUI Node
Anthropic Claude
Calls the Anthropic Claude API with text and optional image inputs. Features: vision, extended thinking, seed-based caching. Setup: set CLAUDE_API_KEY env var. Install: pip install anthropic>=0.122.0
Anthropic Claude
- images
- response
- thinking
◄prompt►
◄modelSonnet 4.6►
◄seed739204185613097►
◄templateNone►
◄instructions►
◄temperature1.00►
◄max_tokens4096►
◄extended_thinkingfalse►
◄thinking_budget4096►
◄max_image_size1024►
CategoryLLM/Anthropic
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | The text prompt to send to Claude. | |
| model | COMBO | Sonnet 4.6 | Claude model to use. Fetched from the Anthropic API at startup; falls back to a built-in list if unavailable. |
| seed | INT | 7392041856130970–1125899906842624 | Controls caching. Fixed = reuse cached result (no API call). Randomize = new API call each run. |
| imagesopt | IMAGE | Optional images for Claude's vision. Accepts batched images. Each is converted to JPEG before sending. | |
| templateopt | COMBO | None | Pre-built instructions for optimizing prompts for specific AI models. Overridden when instructions input is connected. |
| instructionsopt | STRING | System-level instructions that guide Claude's behavior and response style. | |
| temperatureopt | FLOAT | 1.000–1 | Controls randomness. 0.0 = deterministic, 1.0 = most creative. Forced to 1.0 when extended thinking is enabled. |
| max_tokensopt | INT | 40961–128000 | Maximum number of tokens in Claude's response. Higher = longer responses, more cost. |
| extended_thinkingopt | BOOLEAN | false | Enable Claude's extended thinking for complex reasoning. Forces temperature to 1.0. |
| thinking_budgetopt | INT | 40961024–128000 | Max tokens for the thinking process. Only used when extended thinking is enabled. |
| max_image_sizeopt | INT | 102464–1568 | Max pixel dimension for images. Images are resized to fit. API max is 1568px. Lower = fewer tokens, lower cost. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| response | STRING | Claude's text response to the prompt. |
| thinking | STRING | Claude's internal reasoning when extended thinking is enabled. Empty otherwise. |