From 1b0cde824f8f4e797a83369f790137fdefdbb462 Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Wed, 13 May 2026 19:13:55 +0300 Subject: [PATCH] [Partner Nodes] fixed pricing for the claude 4.7 Signed-off-by: bigcat88 --- comfy_api_nodes/nodes_anthropic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comfy_api_nodes/nodes_anthropic.py b/comfy_api_nodes/nodes_anthropic.py index c78fcc563..60e1624f7 100644 --- a/comfy_api_nodes/nodes_anthropic.py +++ b/comfy_api_nodes/nodes_anthropic.py @@ -57,8 +57,8 @@ def _claude_model_inputs(): def _model_price_per_million(model: str) -> tuple[float, float] | None: """Return (input_per_1M, output_per_1M) USD for a Claude model, or None if unknown.""" - if "opus-4" in model: - return 15.0, 75.0 + if "opus-4-7" in model or "opus-4-6" in model or "opus-4-5" in model: + return 5.0, 25.0 if "sonnet-4" in model: return 3.0, 15.0 if "haiku-4-5" in model: @@ -177,7 +177,7 @@ class ClaudeNode(IO.ComfyNode): $m := widgets.model; $contains($m, "opus") ? { "type": "list_usd", - "usd": [0.015, 0.075], + "usd": [0.005, 0.025], "format": { "approximate": true, "separator": "-", "suffix": " per 1K tokens" } } : $contains($m, "sonnet") ? {