Skip to content

[fix] Add dynamic pricing for API nodes with quantity parameters #4362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jul 6, 2025

Extends dynamic pricing to all API nodes that have quantity parameters (n, num_images). Previously only Ideogram and some Recraft nodes updated pricing based on image count.

This ensures consistent pricing display across all nodes that generate multiple outputs, matching the pattern established in PR #4351.

┆Issue is synchronized with this Notion page by Unito

Extends dynamic pricing to all API nodes that have quantity parameters (n, num_images).
Previously only some nodes like Ideogram and certain Recraft nodes had this functionality.

Key changes:
- KlingImageGenerationNode: Added n parameter support with modality-based pricing
- OpenAIDalle2: Multiplies size-based price by n parameter
- OpenAIGPTImage1: Shows price ranges with n multiplier
- RecraftVectorizeImageNode: Converted from static to dynamic pricing
- Added 3 missing Recraft nodes with n parameter support
- Fixed kling-v1-5 vs kling-v1 model matching order issue
- Added comprehensive test coverage for all updated nodes
@christian-byrne christian-byrne requested review from a team as code owners July 6, 2025 01:41
@christian-byrne christian-byrne merged commit 191b457 into main Jul 6, 2025
9 of 10 checks passed
@christian-byrne christian-byrne deleted the fix/dynamic-pricing-quantity-params branch July 6, 2025 03:50
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.

1 participant