ComfyUI Node
Claude API Client
Initialize a Claude API client with model and settings.
Claude API Client
- client
◄modelclaude-sonnet-5►
◄api_key►
◄enable_streamingfalse►
◄enable_cachingtrue►
CategoryERPK/Claude
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| model | COMBO | claude-sonnet-5 | Claude model to use. Sonnet 5 offers the best balance of performance and cost. |
| api_keyopt | STRING | Anthropic API key. If empty, will use ComfyUI Settings or config.ini. | |
| enable_streamingopt | BOOLEAN | false | Enable streaming responses. Note: ComfyUI may not display streaming in real-time. |
| enable_cachingopt | BOOLEAN | true | Enable prompt caching for cost optimization (up to 90% savings on repeated prompts). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| client | CLAUDE_API_CLIENT | — |