Skip to content

[feat] Add pricing for new API nodes #4391

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

christian-byrne
Copy link
Contributor

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

Summary

  • Add dynamic pricing display for Gemini, OpenAI Chat, RunwayML, Rodin, and Tripo API nodes
  • Switch token-based pricing from per 1M to per 1K tokens for better UX
  • Add comprehensive test coverage for all pricing implementations

Changes

  • OpenAI Chat Node: Added specific pricing for all exposed models (o4-mini, o1, o3, gpt-4o, gpt-4.1 variants) with input/output token rates
  • Gemini Node: Added specific pricing for gemini-2.5-pro and gemini-2.5-flash models, plus Veo video generation
  • RunwayML Nodes: Added duration-based pricing for Text-to-Image, Gen3a, Gen4, and First-Last-Frame nodes
  • Rodin Nodes: Added fixed pricing for Regular ($0.4), Detail ($1.2), Smooth ($1.2), and Sketch ($0.4) variants
  • Tripo Nodes: Added dynamic pricing based on model version (v1.4/v2.0/v2.5) and texture quality

Test Plan

  • Unit tests: 126 new test cases added covering all pricing scenarios
  • Manual testing: Verified pricing badges display correctly in UI
  • Edge cases: Tested missing widgets, invalid values, and fallback scenarios

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne requested review from a team as code owners July 9, 2025 00:39
- RunwayGen4ImageNode: /bin/bash.08/Run
- RunwayGen3aTurboVideoNode: /bin/bash.05/second
- RunwayGen4TurboVideoNode: /bin/bash.05/second
- RodinTextTo3DNode: /bin/bash.4/Run without addons, .2/Run with addons
- RodinImageTo3DNode: /bin/bash.4/Run without addons, .2/Run with addons
- TripoTextTo3DNode: /bin/bash.1-0.3/Run based on model version and texture quality
- TripoImageTo3DNode: /bin/bash.2-0.4/Run based on model version and texture quality
- TripoRefineModelNode: /bin/bash.3/Run

Includes comprehensive test coverage for all new nodes.
…Rodin, Tripo)

- Add dynamic pricing for OpenAI Chat node with per 1K token rates for exposed models
- Add specific pricing for Gemini models (gemini-2.5-pro/flash) with per 1K token rates
- Add pricing for RunwayML nodes with duration-based calculations
- Add pricing for Rodin 3D generation nodes (Regular, Detail, Smooth, Sketch)
- Add pricing for Tripo 3D model nodes with model version and texture quality support
- Switch from per 1M tokens to per 1K tokens for better UX representation
- Add comprehensive test coverage for all new pricing implementations

Fixes #4377
@christian-byrne christian-byrne force-pushed the feat/add-new-api-node-pricing branch from 840f074 to 8752e99 Compare July 10, 2025 01:42
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