Skip to content

Commit f1575a6

Browse files
[update] Video to Video API node pricing (#4378)
1 parent 4eeff55 commit f1575a6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/composables/node/useNodePricing.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
954954
(w) => w.name === 'length'
955955
) as IComboWidget
956956

957-
if (!lengthWidget) return '$1.50-3.00/Run (varies with length)'
957+
// If no length widget exists, default to 5s pricing
958+
if (!lengthWidget) return '$1.50/Run'
958959

959960
const length = String(lengthWidget.value)
960961
if (length === '5s') {
@@ -972,7 +973,8 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
972973
(w) => w.name === 'length'
973974
) as IComboWidget
974975

975-
if (!lengthWidget) return '$1.50-3.00/Run (varies with length)'
976+
// If no length widget exists, default to 5s pricing
977+
if (!lengthWidget) return '$1.50/Run'
976978

977979
const length = String(lengthWidget.value)
978980
if (length === '5s') {
@@ -990,16 +992,17 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
990992
(w) => w.name === 'length'
991993
) as IComboWidget
992994

993-
if (!lengthWidget) return '$2.00-4.00/Run (varies with length)'
995+
// If no length widget exists, default to 5s pricing
996+
if (!lengthWidget) return '$2.25/Run'
994997

995998
const length = String(lengthWidget.value)
996999
if (length === '5s') {
997-
return '$2.00/Run'
1000+
return '$2.25/Run'
9981001
} else if (length === '10s') {
9991002
return '$4.00/Run'
10001003
}
10011004

1002-
return '$2.00/Run'
1005+
return '$2.25/Run'
10031006
}
10041007
}
10051008
}

0 commit comments

Comments
 (0)