Skip to content

[feat] Add dynamic pricing for API nodes with real-time updates#3963

Merged
christian-byrne merged 5 commits intomainfrom
dyanmic-node-cost
Jun 4, 2025
Merged

[feat] Add dynamic pricing for API nodes with real-time updates#3963
christian-byrne merged 5 commits intomainfrom
dyanmic-node-cost

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented May 22, 2025

Summary

Enhanced API node pricing to dynamically calculate costs based on widget values and update in real-time when users change parameters like model, duration, resolution, etc.

Test plan

  • Verify pricing badges update correctly when changing widget values on API nodes
  • Ensure performance remains smooth with reactive pricing updates
  • Test all existing API nodes

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne requested review from a team as code owners May 22, 2025 04:25
Enhanced API node pricing to dynamically calculate costs based on widget values and update in real-time when users change parameters like model, duration, resolution, etc.
…namic pricing

- Create useComputedWithWidgetWatch composable for reactive widget-based computeds
- Refactor useNodeBadge to use new composable for dynamic pricing nodes
- Convert 4 Recraft nodes to dynamic pricing based on 'n' parameter
- Add comprehensive tests for widget observation and Recraft pricing
christian-byrne and others added 2 commits June 3, 2025 23:01
@webfiltered's IIFE concern

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…resses @webfiltered's nit

Replace 'as string' with String() for safer type conversion.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@christian-byrne christian-byrne merged commit 398dc6d into main Jun 4, 2025
10 checks passed
@christian-byrne christian-byrne deleted the dyanmic-node-cost branch June 4, 2025 09:04
lordTyrion pushed a commit to playbook3d/ComfyUI_frontend that referenced this pull request Jul 2, 2025
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