add pricing for new ByteDance node#5481
Merged
christian-byrne merged 1 commit intomainfrom Sep 11, 2025
Merged
Conversation
🎭 Playwright Test Results✅ Tests completed successfully! ⏰ Completed at: 09/10/2025, 05:19:00 PM UTC 📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
benceruleanlu
approved these changes
Sep 10, 2025
Contributor
Author
|
can we merge this? |
DrJKL
approved these changes
Sep 10, 2025
Contributor
DrJKL
left a comment
There was a problem hiding this comment.
One question, but otherwise 👍🏻
| if (maxImages === 1) { | ||
| return '$0.03/Run' | ||
| } | ||
| const cost = (0.03 * maxImages).toFixed(2) |
Contributor
There was a problem hiding this comment.
Float math. A dangerous game.
Completely optional, but how would you feel about changing it to an int of cents when multiplying then dividing by 100 at the end for formatting?
Contributor
Author
There was a problem hiding this comment.
I am fine with changing that, but I am already afk for today. :(
I took this code somewhere from this file
Member
benceruleanlu
pushed a commit
that referenced
this pull request
Sep 11, 2025
arjansingh
pushed a commit
that referenced
this pull request
Sep 11, 2025
Merged
snomiao
pushed a commit
that referenced
this pull request
Sep 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pricing for new upcoming API node. Changes should be back-ported for today's release, afaik.
Number of output images can be controlled by prompt, in cases where we do not know the exact price we display maximum price.
Screenshots (if applicable)
simplescreenrecorder-2025-09-10_20.04.44.mp4
┆Issue is synchronized with this Notion page by Unito