Skip to content

Commit f36ad85

Browse files
[backport 1.28] add pricing for new Veo3.1 model (#6075)
Backport of #6074 to `core/1.28` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6075-backport-1-28-add-pricing-for-new-Veo3-1-model-28d6d73d365081c0b647f8a472d4fca9) by [Unito](https://www.unito.io) Co-authored-by: Alexander Piskun <13381981+bigcat88@users.noreply.github.com>
1 parent 947ea62 commit f36ad85

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/composables/node/useNodePricing.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,9 +1141,15 @@ const apiNodeCosts: Record<string, { displayPrice: string | PricingFunction }> =
11411141
const generateAudio =
11421142
String(generateAudioWidget.value).toLowerCase() === 'true'
11431143

1144-
if (model.includes('veo-3.0-fast-generate-001')) {
1144+
if (
1145+
model.includes('veo-3.0-fast-generate-001') ||
1146+
model.includes('veo-3.1-fast-generate')
1147+
) {
11451148
return generateAudio ? '$1.20/Run' : '$0.80/Run'
1146-
} else if (model.includes('veo-3.0-generate-001')) {
1149+
} else if (
1150+
model.includes('veo-3.0-generate-001') ||
1151+
model.includes('veo-3.1-generate')
1152+
) {
11471153
return generateAudio ? '$3.20/Run' : '$1.60/Run'
11481154
}
11491155

0 commit comments

Comments
 (0)