[update] Video to Video API node pricing (#4378)

This commit is contained in:
Christian Byrne
2025-07-07 20:24:33 -07:00
committed by Terry Jia
parent 7a0178e65c
commit 05f171cc8c

View File

@@ -954,7 +954,8 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
(w) => w.name === 'length'
) as IComboWidget
if (!lengthWidget) return '$1.50-3.00/Run (varies with length)'
// If no length widget exists, default to 5s pricing
if (!lengthWidget) return '$1.50/Run'
const length = String(lengthWidget.value)
if (length === '5s') {
@@ -972,7 +973,8 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
(w) => w.name === 'length'
) as IComboWidget
if (!lengthWidget) return '$1.50-3.00/Run (varies with length)'
// If no length widget exists, default to 5s pricing
if (!lengthWidget) return '$1.50/Run'
const length = String(lengthWidget.value)
if (length === '5s') {
@@ -990,16 +992,17 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
(w) => w.name === 'length'
) as IComboWidget
if (!lengthWidget) return '$2.00-4.00/Run (varies with length)'
// If no length widget exists, default to 5s pricing
if (!lengthWidget) return '$2.25/Run'
const length = String(lengthWidget.value)
if (length === '5s') {
return '$2.00/Run'
return '$2.25/Run'
} else if (length === '10s') {
return '$4.00/Run'
}
return '$2.00/Run'
return '$2.25/Run'
}
}
}