ComfyUI Node

Claude Chat

A ComfyUI node in AI/Claude with 14 inputs and 8 outputs.

By lazniak·Created 2 years ago·Updated 10 months ago· 8
Claude Chat
  • image
  • response_text
  • usage_info
  • input_tokens
  • stop_reason
  • conversation_id
  • history_messages
  • cost_usd
  • model_info
api_key
modelclaude-3-5-sonnet-latest
promptHello, Claude!
system_promptYou are a helpful AI assistant in ComfyUI environment. Provide clear, accurate, and concise responses. When discussing code or technical concepts, use specific examples where helpful. If you're not sure about something, say so.
max_tokens1024
temperature0.70
new_sessionfalse
clear_historyno
summarizetrue
show_model_infofalse
buy_me_a_coffeefalse
image_promptWhat can you see in this image?
conversation_id
CategoryAI/Claude

Inputs (14)

NameTypeDefaultDescription
api_keySTRINGYour Anthropic API key. Can be set as ANTHROPIC_API_KEY environment variable.
modelCOMBOclaude-3-5-sonnet-latestSelect Claude model. Each has different capabilities and costs.
promptSTRINGHello, Claude!The message to send to Claude
system_promptSTRINGYou are a helpful AI assistant in ComfyUI environment. Provide clear, accurate, and concise responses. When discussing code or technical concepts, use specific examples where helpful. If you're not sure about something, say so.System prompt to set context and behavior for Claude
max_tokensINT10241–8192Maximum number of tokens in response
temperatureFLOAT0.700–1Controls randomness (0 = deterministic, 1 = creative)
new_sessionBOOLEANfalseStart a new conversation session
clear_historyCOMBOnoClear history options: no: Keep history yes: Clear current session all: Clear all saved conversations
summarizeBOOLEANtrueAutomatically summarize conversation history when approaching token limits
show_model_infoBOOLEANfalseDisplay detailed information about the selected model
buy_me_a_coffeeBOOLEANfalseSupport the development! ☕
imageoptIMAGEOptional image to analyze. Only supported by Claude 3 models (except Haiku).
image_promptoptSTRINGWhat can you see in this image?Specific question about the image. Used only when image is provided.
conversation_idoptSTRINGOptional conversation ID to continue specific conversation

Outputs (8)

NameTypeDescription
response_textSTRING
usage_infoSTRING
input_tokensINT
stop_reasonSTRING
conversation_idSTRING
history_messagesINT
cost_usdFLOAT
model_infoSTRING