ComfyUI Node
Claude Chat
A ComfyUI node in AI/Claude with 14 inputs and 8 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | Your Anthropic API key. Can be set as ANTHROPIC_API_KEY environment variable. | |
| model | COMBO | claude-3-5-sonnet-latest | Select Claude model. Each has different capabilities and costs. |
| prompt | STRING | Hello, Claude! | The message to send to Claude |
| system_prompt | STRING | You 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_tokens | INT | 10241–8192 | Maximum number of tokens in response |
| temperature | FLOAT | 0.700–1 | Controls randomness (0 = deterministic, 1 = creative) |
| new_session | BOOLEAN | false | Start a new conversation session |
| clear_history | COMBO | no | Clear history options: no: Keep history yes: Clear current session all: Clear all saved conversations |
| summarize | BOOLEAN | true | Automatically summarize conversation history when approaching token limits |
| show_model_info | BOOLEAN | false | Display detailed information about the selected model |
| buy_me_a_coffee | BOOLEAN | false | Support the development! ☕ |
| imageopt | IMAGE | Optional image to analyze. Only supported by Claude 3 models (except Haiku). | |
| image_promptopt | STRING | What can you see in this image? | Specific question about the image. Used only when image is provided. |
| conversation_idopt | STRING | Optional conversation ID to continue specific conversation |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| response_text | STRING | — |
| usage_info | STRING | — |
| input_tokens | INT | — |
| stop_reason | STRING | — |
| conversation_id | STRING | — |
| history_messages | INT | — |
| cost_usd | FLOAT | — |
| model_info | STRING | — |