ComfyUI > Nodes > ComfyUI > Anthropic Claude

ComfyUI Node: Anthropic Claude

Class Name

ClaudeNode

Category
api node/text/Anthropic
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Anthropic Claude Description

Generate text responses using Anthropic's Claude models, with image integration for multimodal context.

Anthropic Claude:

ClaudeNode is a powerful tool designed to generate text responses using Anthropic's Claude models. This node is particularly beneficial for tasks that require text generation based on a given prompt, with the added capability of incorporating images for a multimodal context. By leveraging the advanced capabilities of Claude models, this node can produce coherent and contextually relevant text outputs, making it an essential component for AI artists and developers looking to enhance their projects with sophisticated text generation. The node's integration with Anthropic's API ensures that users can access state-of-the-art language models, providing flexibility and creativity in generating responses that are both meaningful and engaging.

Anthropic Claude Input Parameters:

prompt

The prompt parameter is a multiline text input that serves as the initial text input to the Claude model. It is the primary source of context for generating the text response. The prompt should be thoughtfully crafted to guide the model in producing the desired output. There is no default value, and it is essential to provide a meaningful prompt to achieve relevant results.

model

The model parameter allows you to select which Claude model to use for generating the response. Options include "Opus 4.7", "Opus 4.6", "Sonnet 4.6", "Sonnet 4.5", and "Haiku 4.5". Each model has its unique characteristics and may produce different styles or qualities of text. Selecting the appropriate model can significantly impact the tone and style of the generated text.

seed

The seed parameter is an integer input that controls whether the node should re-run. It ranges from 0 to 2147483647, with a default value of 0. While the results are non-deterministic regardless of the seed, changing the seed can lead to variations in the generated text, providing a way to explore different outputs from the same prompt.

images

The images parameter is an optional input that allows you to provide one or more images as context for the model. You can include up to 20 images, which can enhance the text generation by providing additional visual context. This parameter is particularly useful for multimodal applications where the text needs to relate to specific visual content.

max_tokens

The max_tokens parameter specifies the maximum number of tokens to generate before stopping. It ranges from 32 to 32000, with a default value of 16000. This parameter controls the length of the generated text, allowing you to tailor the output to your specific needs, whether you require a brief response or a more detailed narrative.

temperature

The temperature parameter is a float input that controls the randomness of the text generation. It ranges from 0.0 to 1.0, with a default value of 1.0. A lower temperature results in more deterministic outputs, while a higher temperature increases randomness, which can lead to more creative and diverse responses.

Anthropic Claude Output Parameters:

NodeOutput

The NodeOutput parameter provides the generated text response from the Claude model. This output is the culmination of the input parameters, including the prompt, selected model, and any provided images. The text is designed to be coherent and contextually relevant, offering a valuable resource for projects that require dynamic and engaging text content.

Anthropic Claude Usage Tips:

  • Experiment with different model options to find the one that best suits your project's tone and style requirements.
  • Use the temperature parameter to adjust the creativity of the output. Lower values for more predictable results, and higher values for more varied and creative responses.
  • Incorporate images using the images parameter to provide additional context and enhance the relevance of the generated text.
  • Adjust the max_tokens parameter to control the length of the output, ensuring it fits your specific needs.

Anthropic Claude Common Errors and Solutions:

"Up to 20 images are supported per request."

  • Explanation: This error occurs when you attempt to provide more than 20 images as input.
  • Solution: Reduce the number of images to 20 or fewer to comply with the node's limitations.

"Empty response from Claude model."

  • Explanation: This error indicates that the Claude model did not generate any text output.
  • Solution: Ensure that the prompt is meaningful and provides enough context for the model to generate a response. Adjusting the temperature or max_tokens parameters may also help in obtaining a valid output.

Anthropic Claude Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Anthropic Claude