Extensions/Credit Price
ComfyUI Extension

Credit Price

Shows the money value in different currencies next to Partner Node credit prices in the ComfyUI interface.

By svetozarov·Created about 24 hours ago·Updated about 20 hours ago· 0
svetozarov/ComfyUI-CreditPrice
Nodes—
On cloudLocal install
Stars0
Updatedabout 20 hours ago
Readme

Credit Price for ComfyUI

Paid API nodes in ComfyUI (Partner Nodes) show their price in credits. That is enough to compare nodes with each other, but not to see what a run actually costs. This extension adds the money value next to the credits, in US dollars. A second currency (rubles, euros or another one) can be turned on in the settings, converted at the current exchange rate.

Price on a node (second currency enabled)

90.5 credits/30 frames   →   90.5 credits ≈ $0.43/30 frames
51.3 credits/second      →   51.3 credits ≈ $0.24/second
~6.3-12.7 credits/Run    →   ~6.3-12.7 credits ≈ $0.03-$0.06/Run

with a second currency (EUR):
90.5 credits/30 frames   →   90.5 credits ≈ $0.43 · €0.37/30 frames
  • The price unit stays as ComfyUI shows it: /Run per run, /second per second of video, /minute, per 1K tokens, /Image. The money value is for the same unit.
  • The value updates together with the price when you change the model, resolution or duration.
  • Works with the classic node view and with Nodes 2.0, in ComfyUI Desktop, the portable build and a regular installation.
  • The extension only changes the price label. It does not affect generation, credit charges or how nodes work.

Installation

Option 1. ComfyUI-Manager (recommended)

Open Manager → Custom Nodes Manager, search for Credit Price, click Install and restart ComfyUI. The extension is published in the Comfy Registry, so it can also be installed with comfy-cli: comfy node install comfyui-creditprice.

Option 2. ZIP archive

  1. Download the archive: ComfyUI-CreditPrice.zip
  2. Open the custom_nodes folder of your ComfyUI:
    • ComfyUI Desktop: the Open Custom Nodes Folder menu item. Usually Documents\ComfyUI\custom_nodes.
    • Portable build: ComfyUI_windows_portable\ComfyUI\custom_nodes.
    • Regular installation: the custom_nodes folder inside the ComfyUI folder.
  3. Unzip the archive into that folder. You should get custom_nodes\ComfyUI-CreditPrice\__init__.py, without an extra nested folder.
  4. Restart ComfyUI completely (close and open it again, not just reload the page).
  5. Done: every paid node now shows ≈ $… next to the credits. A second currency is turned on in the settings (see below).

Option 3. git

cd path\to\ComfyUI\custom_nodes
git clone https://github.com/svetozarov/ComfyUI-CreditPrice

Then restart ComfyUI. To update, run git pull in the ComfyUI-CreditPrice folder.

Updating and removing

  • Update: in ComfyUI-Manager click Update, or download the archive again and replace the ComfyUI-CreditPrice folder (or git pull), then restart ComfyUI.
  • Remove: uninstall in ComfyUI-Manager, or delete the custom_nodes\ComfyUI-CreditPrice folder, then restart ComfyUI.

Settings

Gear icon (Settings) → Credit Price section.

Settings

| Setting | What it does | |---|---| | Show first currency / First currency | The first currency and its toggle. USD by default | | Show second currency / Second currency | The second currency and its toggle. Off by default; when turned on it is RUB, and you can pick another one | | Exchange rates | Automatic (daily): current rate from the internet, refreshed every 12 hours. Manual: your own rates from the field below | | Manual rates | Rates by hand, units of currency per 1 US dollar: RUB=78.5, EUR=0.86. Used in Manual mode and as a fallback when there is no internet | | Credits per 1 USD | The Comfy rate: 211 credits = $1. Change it only if Comfy changes it | | Show money value… | Turns the whole extension on or off | | What to show | Credits + currency: credits and money. Currency only: money only |

Available currencies: USD, RUB, EUR, AMD, GBP, CNY, JPY, KZT, GEL, UAH, BYN, TRY, AED, INR, CHF, CAD, AUD, PLN.

Troubleshooting

  • Nothing changed: ComfyUI has to be restarted completely. Check that the file is exactly at custom_nodes\ComfyUI-CreditPrice\__init__.py, not one level deeper.
  • The second currency is on, but only dollars are shown: the exchange rate has not loaded yet (internet access is needed), or manual mode is selected without a rate. Enter the rate in Manual rates.
  • The money values disappeared after a ComfyUI update: the extension relies on how the ComfyUI interface works internally. If that changes, the extension simply stops converting and the credits stay as they were. Please open an issue in this repository.

How it works

  • ComfyUI calculates the prices itself. The extension takes the finished label text, finds the numbers before the word credits, divides them by 211 and multiplies by the exchange rate. Credits on the label are rounded to 0.1, so the money value is approximate: the error is below $0.001.
  • Everything runs on your computer. The only network request is for exchange rates: the free open.er-api.com service, once every 12 hours, with no keys and no personal data.
  • Any error inside the extension leaves the normal credit label in place and does not interfere with ComfyUI.
  • Tested on ComfyUI 0.45.6 with frontend 1.58.5 and 1.59.15: all 340 paid nodes, both node views. Details and how to re-run the checks: tests/TESTING.md (in Russian).

License

MIT.