Skip to content

[API Nodes] made Reve node price badges more precise#13154

Merged
Kosinkadink merged 1 commit intomasterfrom
fix/api-nodes/reve-price-badges
Mar 25, 2026
Merged

[API Nodes] made Reve node price badges more precise#13154
Kosinkadink merged 1 commit intomasterfrom
fix/api-nodes/reve-price-badges

Conversation

@bigcat88
Copy link
Copy Markdown
Contributor

@bigcat88 bigcat88 commented Mar 25, 2026

Added price accounting for the upscaler widget parameter.
The provider doesn't have any official, precise documentation on this, so I simply looked at the price and adjusted it based on testing.

Click to see images with badges Screenshot From 2026-03-25 18-14-43 Screenshot From 2026-03-25 18-10-25 Screenshot From 2026-03-25 17-59-52

API Node PR Checklist

Scope

  • Is API Node Change

Pricing & Billing

  • Need pricing update
  • No pricing update

If Need pricing update:

  • Metronome rate cards updated
  • Auto‑billing tests updated and passing

QA

  • QA done
  • QA not required

Comms

  • Informed Kosinkadink

Signed-off-by: bigcat88 <bigcat88@icloud.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

📝 Walkthrough

Walkthrough

Updated the IO.PriceBadge declarations in ReveImageCreateNode, ReveImageEditNode, and ReveImageRemixNode within comfy_api_nodes/nodes_reve.py. Each node's schema now includes dynamic dependencies on upscale widget settings and replaces fixed USD cost expressions with tiered pricing logic. When upscale is enabled, the cost calculation uses the selected upscale factor (4, 3, or other); when disabled, the logic falls back to base costs. For ReveImageEditNode and ReveImageRemixNode, the model-based cost differentiation is retained for the disabled-upscale case.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: making Reve node price badges more precise by adding upscale dependency logic.
Description check ✅ Passed The pull request description accurately relates to the changeset, explaining the addition of upscaler widget price accounting with supporting visual evidence.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@comfy_api_nodes/nodes_reve.py`:
- Around line 246-255: The current ternary uses $isFast before $enabled so fast
variants always return 0.01001 and never get enabled-upscale pricing; update the
expression around $isFast, $enabled and $factor so when $isFast is true you
still branch on $enabled and $factor (e.g. $isFast ? ($enabled ? {fast-enabled
USD rates by $factor} : {"type":"usd","usd":0.01001,"format":$fmt}) : ($enabled
? {regular-enabled USD rates by $factor} :
{"type":"usd","usd":0.0572,"format":$fmt})), ensuring $isFast, $enabled and
$factor are referenced exactly as in the diff.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 87d5d5c0-b7b9-4e44-98c0-3d2b83a1fc83

📥 Commits

Reviewing files that changed from the base of the PR and between b53b10e and f291cec.

📒 Files selected for processing (1)
  • comfy_api_nodes/nodes_reve.py

@Kosinkadink Kosinkadink merged commit a55835f into master Mar 25, 2026
17 checks passed
@bigcat88 bigcat88 deleted the fix/api-nodes/reve-price-badges branch March 28, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants