Skip to content

[fix] Add dynamic pricing for Ideogram nodes based on num_images parameter #4351

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 4, 2025

Conversation

christian-byrne
Copy link
Contributor

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

Summary

  • Adds dynamic pricing calculation for IdeogramV1, V2, and V3 nodes that multiplies base cost by the num_images parameter
  • Ensures the pricing badge updates in real-time when the user changes the number of images to generate
  • Maintains consistency with similar functionality in Recraft nodes (which use the n parameter)

Implementation Details

All three Ideogram nodes now:

  • Calculate total cost as base_price * num_images
  • Display fallback pricing with "x num_images" notation when widget is missing
  • Have num_images added to their relevant widget names for reactive updates
  • For IdeogramV3, the pricing considers both rendering_speed and num_images

┆Issue is synchronized with this Notion page by Unito

…meter

- Update IdeogramV1, IdeogramV2, and IdeogramV3 nodes to calculate pricing based on num_images
- Add num_images to relevant widget names for reactive price updates
- Update tests to reflect new pricing behavior and fallback messages
- Ensures pricing badge updates in real-time when num_images changes

Fixes #4344
@christian-byrne christian-byrne requested review from a team as code owners July 4, 2025 22:33
@christian-byrne christian-byrne merged commit 3b435e3 into main Jul 4, 2025
10 checks passed
@christian-byrne christian-byrne deleted the fix/ideogram-dynamic-pricing branch July 4, 2025 23:13
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