vidspotai-shared 1.0.131 → 1.0.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/globals/aiModels/enums.d.ts +4 -0
- package/lib/globals/aiModels/enums.d.ts.map +1 -1
- package/lib/globals/aiModels/enums.js +9 -0
- package/lib/globals/aiModels/index.d.ts.map +1 -1
- package/lib/globals/aiModels/index.js +2 -0
- package/lib/globals/aiModels/providers/fal.d.ts +20 -0
- package/lib/globals/aiModels/providers/fal.d.ts.map +1 -0
- package/lib/globals/aiModels/providers/fal.js +100 -0
- package/lib/globals/aiModels/providers/google.d.ts.map +1 -1
- package/lib/globals/aiModels/providers/google.js +229 -177
- package/lib/globals/aiModels/types.d.ts +3 -1
- package/lib/globals/aiModels/types.d.ts.map +1 -1
- package/lib/globals/creditUnit.d.ts +9 -0
- package/lib/globals/creditUnit.d.ts.map +1 -1
- package/lib/globals/creditUnit.js +10 -1
- package/lib/globals/index.d.ts +2 -0
- package/lib/globals/index.d.ts.map +1 -1
- package/lib/globals/index.js +2 -0
- package/lib/globals/posterExport.d.ts +34 -0
- package/lib/globals/posterExport.d.ts.map +1 -0
- package/lib/globals/posterExport.js +50 -0
- package/lib/globals/types.d.ts +9 -1
- package/lib/globals/types.d.ts.map +1 -1
- package/lib/globals/types.js +9 -0
- package/lib/globals/videoTools.d.ts +24 -0
- package/lib/globals/videoTools.d.ts.map +1 -0
- package/lib/globals/videoTools.js +31 -0
- package/lib/libs/storage/MediaStorage.d.ts.map +1 -1
- package/lib/libs/storage/MediaStorage.js +37 -10
- package/lib/libs/storage/cdnUrl.d.ts +7 -0
- package/lib/libs/storage/cdnUrl.d.ts.map +1 -1
- package/lib/libs/storage/cdnUrl.js +26 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -0
- package/lib/models/organization.model.d.ts +23 -0
- package/lib/models/organization.model.d.ts.map +1 -1
- package/lib/models/organization.model.js +17 -0
- package/lib/models/posterExport.model.d.ts +29 -0
- package/lib/models/posterExport.model.d.ts.map +1 -0
- package/lib/models/posterExport.model.js +2 -0
- package/lib/models/videoTool.model.d.ts +59 -0
- package/lib/models/videoTool.model.d.ts.map +1 -0
- package/lib/models/videoTool.model.js +2 -0
- package/lib/services/agent/planner/structuralRules.js +2 -2
- package/lib/services/agent/planner/validators.js +1 -1
- package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
- package/lib/services/agent/providerFallback/chains.js +13 -4
- package/lib/services/agent/tools/animateImage.tool.js +1 -1
- package/lib/services/agent/tools/generateVideo.tool.js +3 -3
- package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.js +6 -0
- package/lib/services/aiGen/providers/fal/falImageTools.service.d.ts +37 -0
- package/lib/services/aiGen/providers/fal/falImageTools.service.d.ts.map +1 -0
- package/lib/services/aiGen/providers/fal/falImageTools.service.js +278 -0
- package/lib/services/aiGen/providers/fal/falUpscale.service.d.ts +8 -0
- package/lib/services/aiGen/providers/fal/falUpscale.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/fal/falUpscale.service.js +1 -0
- package/lib/services/aiGen/providers/fal/falVideoMatting.service.d.ts +36 -0
- package/lib/services/aiGen/providers/fal/falVideoMatting.service.d.ts.map +1 -0
- package/lib/services/aiGen/providers/fal/falVideoMatting.service.js +119 -0
- package/lib/services/aiGen/providers/fal/index.d.ts +2 -0
- package/lib/services/aiGen/providers/fal/index.d.ts.map +1 -1
- package/lib/services/aiGen/providers/fal/index.js +2 -0
- package/lib/services/aiGen/textFallback.d.ts +19 -0
- package/lib/services/aiGen/textFallback.d.ts.map +1 -0
- package/lib/services/aiGen/textFallback.js +76 -0
- package/lib/services/brandKit.service.d.ts +22 -0
- package/lib/services/brandKit.service.d.ts.map +1 -0
- package/lib/services/brandKit.service.js +59 -0
- package/lib/services/firestore.service.d.ts +7 -1
- package/lib/services/firestore.service.d.ts.map +1 -1
- package/lib/services/firestore.service.js +10 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/translation/translation.service.d.ts.map +1 -1
- package/lib/services/translation/translation.service.js +13 -2
- package/lib/utils/errors.d.ts +4 -0
- package/lib/utils/errors.d.ts.map +1 -1
- package/lib/utils/errors.js +6 -0
- package/lib/utils/helpers.d.ts.map +1 -1
- package/lib/utils/helpers.js +7 -4
- package/package.json +1 -1
|
@@ -120,6 +120,10 @@ export declare const EImageGenModels: {
|
|
|
120
120
|
readonly RUNWAYML_GEN4_IMAGE_TURBO: "runwayml-gen4-image-turbo";
|
|
121
121
|
readonly XAI_GROK_IMAGINE_IMAGE_2: "xai-grok-imagine-image-2.0";
|
|
122
122
|
readonly XAI_GROK_IMAGINE_IMAGE: "xai-grok-imagine-image";
|
|
123
|
+
readonly FAL_BIREFNET_V2: "fal-birefnet-v2";
|
|
124
|
+
readonly FAL_BRIA_BACKGROUND_REPLACE: "fal-bria-background-replace";
|
|
125
|
+
readonly FAL_BRIA_ERASER: "fal-bria-eraser";
|
|
126
|
+
readonly FAL_BRIA_PRODUCT_SHOT: "fal-bria-product-shot";
|
|
123
127
|
};
|
|
124
128
|
export type EImageGenModelKey = (typeof EImageGenModels)[keyof typeof EImageGenModels];
|
|
125
129
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,0BAA0B,+BAA+B;IACzD,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;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uB;CAC1C;AAmBD,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAElE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAE1E;AAED,oBAAY,cAAc;IAIxB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IAQzC,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,0BAA0B,+BAA+B;IAIzD,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;CAChD;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACvB,wBAAwB,6BAA6B;CACtD;AAED;;;;;;GAMG;AACH,oBAAY,mBAAmB;IAC7B,uBAAuB,4BAA4B;CACpD;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B,mBAAmB,wBAAwB;CAC5C;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,qBAAqB,CAAC"}
|
|
@@ -163,6 +163,15 @@ exports.EImageGenModels = {
|
|
|
163
163
|
// and 2.0 at quality "low" replaces it for $0.01 less per image.
|
|
164
164
|
XAI_GROK_IMAGINE_IMAGE_2: "xai-grok-imagine-image-2.0",
|
|
165
165
|
XAI_GROK_IMAGINE_IMAGE: "xai-grok-imagine-image",
|
|
166
|
+
// fal.ai image TOOLS (type "image-tool") — deterministic photo utilities, not
|
|
167
|
+
// prompt-led generators: matting, background replace, object erase, product
|
|
168
|
+
// staging. Routed through the same /v1/image/generate → IMAGE_JOBS pipeline
|
|
169
|
+
// as every generator; pickers that list "generators" must skip type
|
|
170
|
+
// "image-tool" (see providers/fal.ts).
|
|
171
|
+
FAL_BIREFNET_V2: "fal-birefnet-v2",
|
|
172
|
+
FAL_BRIA_BACKGROUND_REPLACE: "fal-bria-background-replace",
|
|
173
|
+
FAL_BRIA_ERASER: "fal-bria-eraser",
|
|
174
|
+
FAL_BRIA_PRODUCT_SHOT: "fal-bria-product-shot",
|
|
166
175
|
};
|
|
167
176
|
/**
|
|
168
177
|
* Music-generation models. Synchronous (no polling) — providers return audio
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAiBvC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,CAevB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAMnE,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -32,6 +32,7 @@ const elevenlabs_1 = require("./providers/elevenlabs");
|
|
|
32
32
|
const anthropic_1 = require("./providers/anthropic");
|
|
33
33
|
const topaz_1 = require("./providers/topaz");
|
|
34
34
|
const xai_1 = require("./providers/xai");
|
|
35
|
+
const fal_1 = require("./providers/fal");
|
|
35
36
|
exports.aiModelConfigs = {
|
|
36
37
|
...pixverse_1.pixverseConfigs,
|
|
37
38
|
...bytedance_1.bytedanceConfigs,
|
|
@@ -46,6 +47,7 @@ exports.aiModelConfigs = {
|
|
|
46
47
|
...anthropic_1.anthropicConfigs,
|
|
47
48
|
...topaz_1.topazConfigs,
|
|
48
49
|
...xai_1.xaiConfigs,
|
|
50
|
+
...fal_1.falConfigs,
|
|
49
51
|
};
|
|
50
52
|
__exportStar(require("./tierHelpers"), exports);
|
|
51
53
|
__exportStar(require("./providers/pixverseTemplates"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IModelSchema } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* fal.ai image TOOL configs — deterministic photo utilities served by
|
|
4
|
+
* FalImageToolsService (services/aiGen/providers/fal/falImageTools.service.ts)
|
|
5
|
+
* through the normal /v1/image/generate → IMAGE_JOBS pipeline.
|
|
6
|
+
*
|
|
7
|
+
* type "image-tool" (never "text-to-image"/"image-to-image") so model pickers,
|
|
8
|
+
* the agent planner and MCP list_models — which list *generators* — skip them.
|
|
9
|
+
*
|
|
10
|
+
* Pricing verified 2026-10-21 against https://api.fal.ai/v1/models/pricing:
|
|
11
|
+
* fal-ai/birefnet/v2 $0.000575 / compute-second (≈1–4 s/image)
|
|
12
|
+
* fal-ai/bria/background/replace $0.04 / image
|
|
13
|
+
* fal-ai/bria/eraser $0.04 / image
|
|
14
|
+
* fal-ai/bria/product-shot $0.04 / image
|
|
15
|
+
*
|
|
16
|
+
* `prompt: { required: false }` is what lets image.schemas.ts accept an empty
|
|
17
|
+
* prompt for the tools that don't take one (matting, erase).
|
|
18
|
+
*/
|
|
19
|
+
export declare const falConfigs: Record<string, IModelSchema>;
|
|
20
|
+
//# sourceMappingURL=fal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fal.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/fal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAgFnD,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.falConfigs = void 0;
|
|
4
|
+
const creditUnit_1 = require("../../creditUnit");
|
|
5
|
+
/**
|
|
6
|
+
* fal.ai image TOOL configs — deterministic photo utilities served by
|
|
7
|
+
* FalImageToolsService (services/aiGen/providers/fal/falImageTools.service.ts)
|
|
8
|
+
* through the normal /v1/image/generate → IMAGE_JOBS pipeline.
|
|
9
|
+
*
|
|
10
|
+
* type "image-tool" (never "text-to-image"/"image-to-image") so model pickers,
|
|
11
|
+
* the agent planner and MCP list_models — which list *generators* — skip them.
|
|
12
|
+
*
|
|
13
|
+
* Pricing verified 2026-10-21 against https://api.fal.ai/v1/models/pricing:
|
|
14
|
+
* fal-ai/birefnet/v2 $0.000575 / compute-second (≈1–4 s/image)
|
|
15
|
+
* fal-ai/bria/background/replace $0.04 / image
|
|
16
|
+
* fal-ai/bria/eraser $0.04 / image
|
|
17
|
+
* fal-ai/bria/product-shot $0.04 / image
|
|
18
|
+
*
|
|
19
|
+
* `prompt: { required: false }` is what lets image.schemas.ts accept an empty
|
|
20
|
+
* prompt for the tools that don't take one (matting, erase).
|
|
21
|
+
*/
|
|
22
|
+
exports.falConfigs = {
|
|
23
|
+
"fal-birefnet-v2": {
|
|
24
|
+
modelId: "fal-ai/birefnet/v2",
|
|
25
|
+
type: ["image-tool"],
|
|
26
|
+
fields: {
|
|
27
|
+
prompt: { required: false },
|
|
28
|
+
inputImageUrl: { required: true },
|
|
29
|
+
// high → "General Use (Dynamic)" @ 2304² (hair/fur/edges on hi-res
|
|
30
|
+
// input); medium → "General Use (Heavy)" @ 1024²; low → "Light" @ 1024².
|
|
31
|
+
quality: { allowedValues: ["low", "medium", "high", "auto"], default: "high" },
|
|
32
|
+
outputFormat: { allowedValues: ["png", "webp"], default: "png" },
|
|
33
|
+
},
|
|
34
|
+
// Compute-second billed; 0.003 ≈ 5 s at the top operating resolution —
|
|
35
|
+
// a conservative ceiling (measured runs are 1–3 s).
|
|
36
|
+
cost: { fixed: 0.003, creditFloor: creditUnit_1.MIN_CREDITS_PER_UTILITY_OP },
|
|
37
|
+
guidance: {
|
|
38
|
+
quality: 5,
|
|
39
|
+
speed: 5,
|
|
40
|
+
bestFor: "True alpha-matte background removal (people, hair, pets, products, cars) — keeps the subject's original pixels.",
|
|
41
|
+
notes: "Pixel-accurate matting, not a regeneration: the subject is never redrawn.",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
"fal-bria-background-replace": {
|
|
45
|
+
modelId: "fal-ai/bria/background/replace",
|
|
46
|
+
type: ["image-tool"],
|
|
47
|
+
fields: {
|
|
48
|
+
// Scene description ("marble countertop, soft morning light").
|
|
49
|
+
prompt: { required: true },
|
|
50
|
+
inputImageUrl: { required: true },
|
|
51
|
+
negativePrompt: {},
|
|
52
|
+
seed: {},
|
|
53
|
+
numImages: { default: 1 },
|
|
54
|
+
// high → Bria's full (non-fast) model.
|
|
55
|
+
quality: { allowedValues: ["medium", "high", "auto"], default: "medium" },
|
|
56
|
+
},
|
|
57
|
+
cost: { fixed: 0.04 },
|
|
58
|
+
guidance: {
|
|
59
|
+
quality: 4,
|
|
60
|
+
speed: 4,
|
|
61
|
+
bestFor: "Text-to-background: keep the subject, generate a new photoreal scene behind it with matched lighting.",
|
|
62
|
+
notes: "Licensed-data model (Bria) — commercially safe output.",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
"fal-bria-eraser": {
|
|
66
|
+
modelId: "fal-ai/bria/eraser",
|
|
67
|
+
type: ["image-tool"],
|
|
68
|
+
fields: {
|
|
69
|
+
prompt: { required: false },
|
|
70
|
+
inputImageUrl: { required: true },
|
|
71
|
+
// Binary mask (white = erase). NOT the OpenAI alpha-mask convention.
|
|
72
|
+
maskImageUrl: { required: true },
|
|
73
|
+
},
|
|
74
|
+
cost: { fixed: 0.04 },
|
|
75
|
+
guidance: {
|
|
76
|
+
quality: 4,
|
|
77
|
+
speed: 4,
|
|
78
|
+
bestFor: "Object removal — paint over a person, logo, blemish or prop and fill it in naturally.",
|
|
79
|
+
notes: "Mask is white-on-black; transparency in the source is preserved.",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
"fal-bria-product-shot": {
|
|
83
|
+
modelId: "fal-ai/bria/product-shot",
|
|
84
|
+
type: ["image-tool"],
|
|
85
|
+
fields: {
|
|
86
|
+
// Scene description for the staging (studio sweep, flat lay, lifestyle).
|
|
87
|
+
prompt: { required: true },
|
|
88
|
+
inputImageUrl: { required: true },
|
|
89
|
+
numImages: { default: 1 },
|
|
90
|
+
quality: { allowedValues: ["medium", "high", "auto"], default: "medium" },
|
|
91
|
+
},
|
|
92
|
+
cost: { fixed: 0.04 },
|
|
93
|
+
guidance: {
|
|
94
|
+
quality: 4,
|
|
95
|
+
speed: 3,
|
|
96
|
+
bestFor: "Product staging — places a product into a studio, flat-lay or lifestyle scene with grounded, AI-generated shadows.",
|
|
97
|
+
notes: "Keeps the product at its position in the input frame (placement 'original').",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA2CxC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA8jBpE,CAAC"}
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.googleConfigs = void 0;
|
|
4
|
+
/** Gemini Omni Flash config — shared by its own key and the retired Veo 3.1 keys repointed to it. */
|
|
5
|
+
const GEMINI_OMNI_FLASH = {
|
|
6
|
+
modelId: "gemini-omni-1.1-flash",
|
|
7
|
+
type: ["text-to-video", "image-to-video"],
|
|
8
|
+
tier: "T3",
|
|
9
|
+
fields: {
|
|
10
|
+
prompt: { required: true },
|
|
11
|
+
aspectRatio: { allowedValues: ["16:9", "9:16"] },
|
|
12
|
+
// 1080p + 4k are upscaled from the native generation.
|
|
13
|
+
resolution: { allowedValues: ["360p", "720p", "1080p", "4k"] },
|
|
14
|
+
// Output is 3–10s. `response_format.duration` exists but its string
|
|
15
|
+
// format is undocumented, so the service steers length via the prompt
|
|
16
|
+
// and bills the DELIVERED length (read from the MP4 → durationSec).
|
|
17
|
+
duration: { allowedValues: [3, 4, 5, 6, 7, 8, 9, 10] },
|
|
18
|
+
imageUrl: {},
|
|
19
|
+
// Two input images = first/last-frame interpolation.
|
|
20
|
+
lastFrameImageUrl: {},
|
|
21
|
+
// Several input images = subject references (sent with task=reference_to_video).
|
|
22
|
+
referenceImageUrls: { max: 3 },
|
|
23
|
+
// No `audio` field: audio is always generated (no toggle).
|
|
24
|
+
// No negative_prompt / seed: unsupported ("put your negatives in the
|
|
25
|
+
// regular prompt") — the service folds a negative prompt into the text.
|
|
26
|
+
},
|
|
27
|
+
// Not yet published in the rate-limit table; mirror the Veo 3.1 Tier-2
|
|
28
|
+
// baseline until AI Studio shows real numbers for this key.
|
|
29
|
+
requestPerMin: 4,
|
|
30
|
+
requestPerDay: 50,
|
|
31
|
+
cost: {
|
|
32
|
+
// $17.50 / 1M output video tokens × 5,792 tokens per second of 720p video
|
|
33
|
+
// ≈ $0.10/s (ai.google.dev pricing, 2026-09-29). 1080p/4k are upscales;
|
|
34
|
+
// Google quotes no separate rate, so they bill at the same estimate.
|
|
35
|
+
perSecond: 0.10,
|
|
36
|
+
},
|
|
37
|
+
guidance: {
|
|
38
|
+
quality: 5,
|
|
39
|
+
speed: 3,
|
|
40
|
+
bestFor: "Google's newest all-round video model: text/image-to-video, first-last-frame, subject references, native audio.",
|
|
41
|
+
notes: "3–10s, 16:9 or 9:16. Audio is always on. No negative prompt or seed. 1080p/4k are upscaled.",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
4
44
|
exports.googleConfigs = {
|
|
5
45
|
// ───────────────────────────────────────────────────────────────────────
|
|
6
46
|
// Text-gen — Gemini (aiGen text factory; @google/genai generateContent).
|
|
@@ -88,193 +128,205 @@ exports.googleConfigs = {
|
|
|
88
128
|
// Veo model: served by the Interactions API (POST /v1beta/interactions), so
|
|
89
129
|
// google.service.ts routes it through generateOmniVideo(), not generateVideos.
|
|
90
130
|
// Docs: ai.google.dev/gemini-api/docs/omni (fetched 2026-09-29).
|
|
91
|
-
"google-gemini-omni-flash":
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
lastFrameImageUrl: {},
|
|
107
|
-
// Several input images = subject references (sent with task=reference_to_video).
|
|
108
|
-
referenceImageUrls: { max: 3 },
|
|
109
|
-
// No `audio` field: audio is always generated (no toggle).
|
|
110
|
-
// No negative_prompt / seed: unsupported ("put your negatives in the
|
|
111
|
-
// regular prompt") — the service folds a negative prompt into the text.
|
|
112
|
-
},
|
|
113
|
-
// Not yet published in the rate-limit table; mirror the Veo 3.1 Tier-2
|
|
114
|
-
// baseline until AI Studio shows real numbers for this key.
|
|
115
|
-
requestPerMin: 4,
|
|
116
|
-
requestPerDay: 50,
|
|
117
|
-
cost: {
|
|
118
|
-
// $17.50 / 1M output video tokens × 5,792 tokens per second of 720p video
|
|
119
|
-
// ≈ $0.10/s (ai.google.dev pricing, 2026-09-29). 1080p/4k are upscales;
|
|
120
|
-
// Google quotes no separate rate, so they bill at the same estimate.
|
|
121
|
-
perSecond: 0.10,
|
|
131
|
+
"google-gemini-omni-flash": GEMINI_OMNI_FLASH,
|
|
132
|
+
// ⚰️ END OF LIFE — Veo 3.1 / 3.1 Fast / 3.1 Lite (*-generate-preview). Prod
|
|
133
|
+
// calls started 404ing 2026-10-22 ("no longer available … use
|
|
134
|
+
// models/gemini-omni-1.1-flash") and models.list for our keys holds no Veo
|
|
135
|
+
// model at all (checked 2026-10-23). Same treatment as Imagen 4: the keys are
|
|
136
|
+
// kept (saved requests, agent/MCP callers, old jobs, credit reconciliation)
|
|
137
|
+
// but REPOINTED to Gemini Omni Flash — its modelId routes google.service.ts
|
|
138
|
+
// to generateOmniVideo(). Omni's fields are a superset of Veo 3.1's (3-10s,
|
|
139
|
+
// 360p-4k, FLF, ≤3 refs), so every previously-valid request stays valid.
|
|
140
|
+
"google-veo-3.1": {
|
|
141
|
+
...GEMINI_OMNI_FLASH,
|
|
142
|
+
deprecated: {
|
|
143
|
+
on: "2026-10-23",
|
|
144
|
+
reason: "Veo 3.1 (veo-3.1-generate-preview) was shut down by Google; this key is served by Gemini Omni Flash.",
|
|
145
|
+
replacement: "google-gemini-omni-flash",
|
|
122
146
|
},
|
|
123
147
|
guidance: {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
notes: "3–10s, 16:9 or 9:16. Audio is always on. No negative prompt or seed. 1080p/4k are upscaled.",
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
"google-veo-3.1": {
|
|
131
|
-
modelId: "veo-3.1-generate-preview",
|
|
132
|
-
type: ["text-to-video", "image-to-video"],
|
|
133
|
-
tier: "T3",
|
|
134
|
-
fields: {
|
|
135
|
-
prompt: { required: true },
|
|
136
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] },
|
|
137
|
-
// 4k requires durationSeconds=8 and is incompatible with referenceImages.
|
|
138
|
-
resolution: { allowedValues: ["720p", "1080p", "4k"] },
|
|
139
|
-
duration: { allowedValues: [4, 6, 8] },
|
|
140
|
-
imageUrl: {},
|
|
141
|
-
lastFrameImageUrl: {},
|
|
142
|
-
// Up to 3 reference images for character/scene consistency. Forces duration=8.
|
|
143
|
-
referenceImageUrls: { max: 3 },
|
|
144
|
-
// Video extension — Gemini API restriction: input MUST be a Veo-generated
|
|
145
|
-
// Video reference from a prior generate_videos operation (not an arbitrary
|
|
146
|
-
// uploaded MP4 / GCS URI / videoBytes). Source TTL is 2 days, resets on
|
|
147
|
-
// each extend. Output capped at 720p, +~7s per call, max cumulative 141s.
|
|
148
|
-
inputVideoUrl: {},
|
|
149
|
-
negative_prompt: {},
|
|
150
|
-
audio: {},
|
|
151
|
-
// REMOVED — `seed` is Vertex-AI-only. On the Gemini Developer API the SDK
|
|
152
|
-
// throws "seed parameter is not supported in Gemini API" client-side.
|
|
153
|
-
// Kept for reference; restore only under a Vertex (vertexai:true) client.
|
|
154
|
-
// seed: {},
|
|
155
|
-
// NOTE (applies to all Veo 3.x): the legal value is MODE-dependent on the
|
|
156
|
-
// Gemini API — "allow_all" for text-to-video and extension, "allow_adult"
|
|
157
|
-
// for image-to-video / interpolation / reference images. "dont_allow" is
|
|
158
|
-
// Veo-2 legacy and returns 400 "<value> for personGeneration is currently
|
|
159
|
-
// not supported". allowedValues is kept as the union so validateParams
|
|
160
|
-
// doesn't hard-throw on a planner-emitted value; google.service.ts picks
|
|
161
|
-
// the value legal for the request's mode and drops the rest.
|
|
162
|
-
// (Regional caveat: in EU/UK/CH/MENA, Veo 3.x allows "allow_adult" ONLY,
|
|
163
|
-
// for every mode — so an EU-billed key would reject allow_all outright.)
|
|
164
|
-
personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
165
|
-
promptOptimizer: {},
|
|
166
|
-
},
|
|
167
|
-
// Gemini API cross-constraint: 1080p and 4k ONLY support an 8s duration
|
|
168
|
-
// (the API rejects e.g. 1080p@6s with "1080p is not supported for a
|
|
169
|
-
// duration of 6 seconds"). 720p supports the full 4/6/8 range. Encoded here
|
|
170
|
-
// so validateParams fails fast with a clear message instead of a wasted
|
|
171
|
-
// provider call + opaque 400.
|
|
172
|
-
durationRules: {
|
|
173
|
-
4: ["720p"],
|
|
174
|
-
6: ["720p"],
|
|
175
|
-
8: ["720p", "1080p", "4k"],
|
|
176
|
-
},
|
|
177
|
-
// SINGLE-KEY Tier-2 baseline (verified 2026-06-09 via
|
|
178
|
-
// aistudio.google.com/rate-limit): 4 req/min, ~50/day per Veo model on the
|
|
179
|
-
// shared `predict_long_running_requests_per_model` quota. The DAILY cap is
|
|
180
|
-
// enforced (requestPerDay) — the limiter's day-gate fast-fails
|
|
181
|
-
// (VIDEO_PROVIDER_RATE_LIMITED) rather than blocking for hours, so a
|
|
182
|
-
// daily-exhausted job silently spills to another model in the tier chain.
|
|
183
|
-
// NOTE: these are per-key Tier-2 numbers. The multi-key pool (googleKeyPool)
|
|
184
|
-
// scales the model-level limiter to the SUM across keys (each tier-scaled) —
|
|
185
|
-
// e.g. a Tier-1 + Tier-2 pool → 6/min, 60/day. See googleApiKeys.ts for the
|
|
186
|
-
// decision record.
|
|
187
|
-
requestPerMin: 4,
|
|
188
|
-
requestPerDay: 50,
|
|
189
|
-
cost: {
|
|
190
|
-
// Vertex: $0.40/s @ 720p/1080p, $0.60/s @ 4k.
|
|
191
|
-
perResolution: { "720p": 0.40, "1080p": 0.40, "4k": 0.60 },
|
|
148
|
+
...GEMINI_OMNI_FLASH.guidance,
|
|
149
|
+
bestFor: "Replacement for Veo 3.1 — served by Gemini Omni Flash.",
|
|
150
|
+
notes: "Veo 3.1 was shut down by Google (models.list empty of Veo, 2026-10-23); served by gemini-omni-1.1-flash.",
|
|
192
151
|
},
|
|
193
152
|
},
|
|
194
153
|
"google-veo-3.1-fast": {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
imageUrl: {},
|
|
206
|
-
lastFrameImageUrl: {},
|
|
207
|
-
// Up to 3 reference images for character/scene consistency. Forces duration=8.
|
|
208
|
-
referenceImageUrls: { max: 3 },
|
|
209
|
-
// Video extension — Gemini API restriction: input MUST be a Veo-generated
|
|
210
|
-
// Video reference from a prior generate_videos operation (not an arbitrary
|
|
211
|
-
// uploaded MP4 / GCS URI / videoBytes). Source TTL 2 days, resets on each
|
|
212
|
-
// extend. Output capped at 720p, +~7s per call, max cumulative 141s.
|
|
213
|
-
inputVideoUrl: {},
|
|
214
|
-
negative_prompt: {},
|
|
215
|
-
audio: {},
|
|
216
|
-
// REMOVED — `seed` is Vertex-AI-only; the Gemini API SDK throws
|
|
217
|
-
// "seed parameter is not supported in Gemini API" client-side. See veo-3.1.
|
|
218
|
-
// seed: {},
|
|
219
|
-
personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
220
|
-
promptOptimizer: {},
|
|
221
|
-
},
|
|
222
|
-
// 1080p only supports 8s on the Gemini API (no 4k for fast). See veo-3.1.
|
|
223
|
-
durationRules: {
|
|
224
|
-
4: ["720p"],
|
|
225
|
-
6: ["720p"],
|
|
226
|
-
8: ["720p", "1080p", "4k"],
|
|
227
|
-
},
|
|
228
|
-
// Tier 2 ceiling: 4 RPM / ~50 RPD per model (see veo-3.1 note above).
|
|
229
|
-
requestPerMin: 4,
|
|
230
|
-
requestPerDay: 50,
|
|
231
|
-
cost: {
|
|
232
|
-
// ai.google.dev pricing (2026-09-29): $0.10 720p, $0.12 1080p, $0.30 4k.
|
|
233
|
-
perResolution: { "720p": 0.10, "1080p": 0.12, "4k": 0.30 },
|
|
154
|
+
...GEMINI_OMNI_FLASH,
|
|
155
|
+
deprecated: {
|
|
156
|
+
on: "2026-10-23",
|
|
157
|
+
reason: "Veo 3.1 Fast (veo-3.1-fast-generate-preview) was shut down by Google; this key is served by Gemini Omni Flash.",
|
|
158
|
+
replacement: "google-gemini-omni-flash",
|
|
159
|
+
},
|
|
160
|
+
guidance: {
|
|
161
|
+
...GEMINI_OMNI_FLASH.guidance,
|
|
162
|
+
bestFor: "Replacement for Veo 3.1 Fast — served by Gemini Omni Flash.",
|
|
163
|
+
notes: "Veo 3.1 Fast was shut down by Google (models.list empty of Veo, 2026-10-23); served by gemini-omni-1.1-flash.",
|
|
234
164
|
},
|
|
235
165
|
},
|
|
236
166
|
"google-veo-3.1-lite": {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
// first+last frames returns Gemini 400 "Your use case is currently not
|
|
248
|
-
// supported." Per the Gemini API video docs, `lastFrame` is offered only
|
|
249
|
-
// for veo-3.1 and veo-3.1-fast. Kept commented for reference.
|
|
250
|
-
// lastFrameImageUrl: {},
|
|
251
|
-
// Lite also does NOT support reference images or video extension per the
|
|
252
|
-
// Gemini API spec — only 3.1 and 3.1-fast do.
|
|
253
|
-
// REMOVED — veo-3.1-lite returns 400 "negativePrompt isn't supported by
|
|
254
|
-
// this model" (unlike veo-3.1 / veo-3.1-fast, which accept it). The request
|
|
255
|
-
// builder gates negativePrompt on this field being declared, so leaving it
|
|
256
|
-
// out is what stops the param from being forwarded. Kept for reference.
|
|
257
|
-
// negative_prompt: {},
|
|
258
|
-
audio: {},
|
|
259
|
-
// REMOVED — `seed` is Vertex-AI-only; the Gemini API SDK throws
|
|
260
|
-
// "seed parameter is not supported in Gemini API" client-side. See veo-3.1.
|
|
261
|
-
// seed: {},
|
|
262
|
-
personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
263
|
-
promptOptimizer: {},
|
|
264
|
-
},
|
|
265
|
-
// 1080p only supports 8s on the Gemini API (no 4k for lite). See veo-3.1.
|
|
266
|
-
durationRules: {
|
|
267
|
-
4: ["720p"],
|
|
268
|
-
6: ["720p"],
|
|
269
|
-
8: ["720p", "1080p"],
|
|
270
|
-
},
|
|
271
|
-
// Tier 2 ceiling: 4 RPM / ~50 RPD per model (see veo-3.1 note above).
|
|
272
|
-
requestPerMin: 4,
|
|
273
|
-
requestPerDay: 50,
|
|
274
|
-
cost: {
|
|
275
|
-
perResolution: { "720p": 0.05, "1080p": 0.08 },
|
|
167
|
+
...GEMINI_OMNI_FLASH,
|
|
168
|
+
deprecated: {
|
|
169
|
+
on: "2026-10-23",
|
|
170
|
+
reason: "Veo 3.1 Lite (veo-3.1-lite-generate-preview) was shut down by Google; this key is served by Gemini Omni Flash.",
|
|
171
|
+
replacement: "google-gemini-omni-flash",
|
|
172
|
+
},
|
|
173
|
+
guidance: {
|
|
174
|
+
...GEMINI_OMNI_FLASH.guidance,
|
|
175
|
+
bestFor: "Replacement for Veo 3.1 Lite — served by Gemini Omni Flash.",
|
|
176
|
+
notes: "Veo 3.1 Lite was shut down by Google (models.list empty of Veo, 2026-10-23); served by gemini-omni-1.1-flash.",
|
|
276
177
|
},
|
|
277
178
|
},
|
|
179
|
+
// REMOVED FOR v1 — kept for reference: original Veo 3.1 configs.
|
|
180
|
+
// "google-veo-3.1": {
|
|
181
|
+
// modelId: "veo-3.1-generate-preview",
|
|
182
|
+
// type: ["text-to-video", "image-to-video"],
|
|
183
|
+
// tier: "T3",
|
|
184
|
+
// fields: {
|
|
185
|
+
// prompt: { required: true },
|
|
186
|
+
// aspectRatio: { allowedValues: ["16:9", "9:16"] },
|
|
187
|
+
// // 4k requires durationSeconds=8 and is incompatible with referenceImages.
|
|
188
|
+
// resolution: { allowedValues: ["720p", "1080p", "4k"] },
|
|
189
|
+
// duration: { allowedValues: [4, 6, 8] },
|
|
190
|
+
// imageUrl: {},
|
|
191
|
+
// lastFrameImageUrl: {},
|
|
192
|
+
// // Up to 3 reference images for character/scene consistency. Forces duration=8.
|
|
193
|
+
// referenceImageUrls: { max: 3 },
|
|
194
|
+
// // Video extension — Gemini API restriction: input MUST be a Veo-generated
|
|
195
|
+
// // Video reference from a prior generate_videos operation (not an arbitrary
|
|
196
|
+
// // uploaded MP4 / GCS URI / videoBytes). Source TTL is 2 days, resets on
|
|
197
|
+
// // each extend. Output capped at 720p, +~7s per call, max cumulative 141s.
|
|
198
|
+
// inputVideoUrl: {},
|
|
199
|
+
// negative_prompt: {},
|
|
200
|
+
// audio: {},
|
|
201
|
+
// // REMOVED — `seed` is Vertex-AI-only. On the Gemini Developer API the SDK
|
|
202
|
+
// // throws "seed parameter is not supported in Gemini API" client-side.
|
|
203
|
+
// // Kept for reference; restore only under a Vertex (vertexai:true) client.
|
|
204
|
+
// // seed: {},
|
|
205
|
+
// // NOTE (applies to all Veo 3.x): the legal value is MODE-dependent on the
|
|
206
|
+
// // Gemini API — "allow_all" for text-to-video and extension, "allow_adult"
|
|
207
|
+
// // for image-to-video / interpolation / reference images. "dont_allow" is
|
|
208
|
+
// // Veo-2 legacy and returns 400 "<value> for personGeneration is currently
|
|
209
|
+
// // not supported". allowedValues is kept as the union so validateParams
|
|
210
|
+
// // doesn't hard-throw on a planner-emitted value; google.service.ts picks
|
|
211
|
+
// // the value legal for the request's mode and drops the rest.
|
|
212
|
+
// // (Regional caveat: in EU/UK/CH/MENA, Veo 3.x allows "allow_adult" ONLY,
|
|
213
|
+
// // for every mode — so an EU-billed key would reject allow_all outright.)
|
|
214
|
+
// personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
215
|
+
// promptOptimizer: {},
|
|
216
|
+
// },
|
|
217
|
+
// // Gemini API cross-constraint: 1080p and 4k ONLY support an 8s duration
|
|
218
|
+
// // (the API rejects e.g. 1080p@6s with "1080p is not supported for a
|
|
219
|
+
// // duration of 6 seconds"). 720p supports the full 4/6/8 range. Encoded here
|
|
220
|
+
// // so validateParams fails fast with a clear message instead of a wasted
|
|
221
|
+
// // provider call + opaque 400.
|
|
222
|
+
// durationRules: {
|
|
223
|
+
// 4: ["720p"],
|
|
224
|
+
// 6: ["720p"],
|
|
225
|
+
// 8: ["720p", "1080p", "4k"],
|
|
226
|
+
// },
|
|
227
|
+
// // SINGLE-KEY Tier-2 baseline (verified 2026-06-09 via
|
|
228
|
+
// // aistudio.google.com/rate-limit): 4 req/min, ~50/day per Veo model on the
|
|
229
|
+
// // shared `predict_long_running_requests_per_model` quota. The DAILY cap is
|
|
230
|
+
// // enforced (requestPerDay) — the limiter's day-gate fast-fails
|
|
231
|
+
// // (VIDEO_PROVIDER_RATE_LIMITED) rather than blocking for hours, so a
|
|
232
|
+
// // daily-exhausted job silently spills to another model in the tier chain.
|
|
233
|
+
// // NOTE: these are per-key Tier-2 numbers. The multi-key pool (googleKeyPool)
|
|
234
|
+
// // scales the model-level limiter to the SUM across keys (each tier-scaled) —
|
|
235
|
+
// // e.g. a Tier-1 + Tier-2 pool → 6/min, 60/day. See googleApiKeys.ts for the
|
|
236
|
+
// // decision record.
|
|
237
|
+
// requestPerMin: 4,
|
|
238
|
+
// requestPerDay: 50,
|
|
239
|
+
// cost: {
|
|
240
|
+
// // Vertex: $0.40/s @ 720p/1080p, $0.60/s @ 4k.
|
|
241
|
+
// perResolution: { "720p": 0.40, "1080p": 0.40, "4k": 0.60 },
|
|
242
|
+
// },
|
|
243
|
+
// },
|
|
244
|
+
//
|
|
245
|
+
// "google-veo-3.1-fast": {
|
|
246
|
+
// modelId: "veo-3.1-fast-generate-preview",
|
|
247
|
+
// type: ["text-to-video", "image-to-video"],
|
|
248
|
+
// tier: "T3",
|
|
249
|
+
// fields: {
|
|
250
|
+
// prompt: { required: true },
|
|
251
|
+
// aspectRatio: { allowedValues: ["16:9", "9:16"] },
|
|
252
|
+
// // 4k added 2026-09-29 — the Veo parameter table gives 3.1 and 3.1 Fast
|
|
253
|
+
// // the same 720p / 1080p / 4k set (1080p + 4k: 8s only; 4k not with refs).
|
|
254
|
+
// resolution: { allowedValues: ["720p", "1080p", "4k"] },
|
|
255
|
+
// duration: { allowedValues: [4, 6, 8] },
|
|
256
|
+
// imageUrl: {},
|
|
257
|
+
// lastFrameImageUrl: {},
|
|
258
|
+
// // Up to 3 reference images for character/scene consistency. Forces duration=8.
|
|
259
|
+
// referenceImageUrls: { max: 3 },
|
|
260
|
+
// // Video extension — Gemini API restriction: input MUST be a Veo-generated
|
|
261
|
+
// // Video reference from a prior generate_videos operation (not an arbitrary
|
|
262
|
+
// // uploaded MP4 / GCS URI / videoBytes). Source TTL 2 days, resets on each
|
|
263
|
+
// // extend. Output capped at 720p, +~7s per call, max cumulative 141s.
|
|
264
|
+
// inputVideoUrl: {},
|
|
265
|
+
// negative_prompt: {},
|
|
266
|
+
// audio: {},
|
|
267
|
+
// // REMOVED — `seed` is Vertex-AI-only; the Gemini API SDK throws
|
|
268
|
+
// // "seed parameter is not supported in Gemini API" client-side. See veo-3.1.
|
|
269
|
+
// // seed: {},
|
|
270
|
+
// personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
271
|
+
// promptOptimizer: {},
|
|
272
|
+
// },
|
|
273
|
+
// // 1080p only supports 8s on the Gemini API (no 4k for fast). See veo-3.1.
|
|
274
|
+
// durationRules: {
|
|
275
|
+
// 4: ["720p"],
|
|
276
|
+
// 6: ["720p"],
|
|
277
|
+
// 8: ["720p", "1080p", "4k"],
|
|
278
|
+
// },
|
|
279
|
+
// // Tier 2 ceiling: 4 RPM / ~50 RPD per model (see veo-3.1 note above).
|
|
280
|
+
// requestPerMin: 4,
|
|
281
|
+
// requestPerDay: 50,
|
|
282
|
+
// cost: {
|
|
283
|
+
// // ai.google.dev pricing (2026-09-29): $0.10 720p, $0.12 1080p, $0.30 4k.
|
|
284
|
+
// perResolution: { "720p": 0.10, "1080p": 0.12, "4k": 0.30 },
|
|
285
|
+
// },
|
|
286
|
+
// },
|
|
287
|
+
//
|
|
288
|
+
// "google-veo-3.1-lite": {
|
|
289
|
+
// modelId: "veo-3.1-lite-generate-preview",
|
|
290
|
+
// type: ["text-to-video", "image-to-video"],
|
|
291
|
+
// tier: "T2",
|
|
292
|
+
// fields: {
|
|
293
|
+
// prompt: { required: true },
|
|
294
|
+
// aspectRatio: { allowedValues: ["16:9", "9:16"] },
|
|
295
|
+
// resolution: { allowedValues: ["720p", "1080p"] },
|
|
296
|
+
// duration: { allowedValues: [4, 6, 8] },
|
|
297
|
+
// imageUrl: {},
|
|
298
|
+
// // REMOVED — veo-3.1-lite does NOT support last-frame interpolation. Sending
|
|
299
|
+
// // first+last frames returns Gemini 400 "Your use case is currently not
|
|
300
|
+
// // supported." Per the Gemini API video docs, `lastFrame` is offered only
|
|
301
|
+
// // for veo-3.1 and veo-3.1-fast. Kept commented for reference.
|
|
302
|
+
// // lastFrameImageUrl: {},
|
|
303
|
+
// // Lite also does NOT support reference images or video extension per the
|
|
304
|
+
// // Gemini API spec — only 3.1 and 3.1-fast do.
|
|
305
|
+
// // REMOVED — veo-3.1-lite returns 400 "negativePrompt isn't supported by
|
|
306
|
+
// // this model" (unlike veo-3.1 / veo-3.1-fast, which accept it). The request
|
|
307
|
+
// // builder gates negativePrompt on this field being declared, so leaving it
|
|
308
|
+
// // out is what stops the param from being forwarded. Kept for reference.
|
|
309
|
+
// // negative_prompt: {},
|
|
310
|
+
// audio: {},
|
|
311
|
+
// // REMOVED — `seed` is Vertex-AI-only; the Gemini API SDK throws
|
|
312
|
+
// // "seed parameter is not supported in Gemini API" client-side. See veo-3.1.
|
|
313
|
+
// // seed: {},
|
|
314
|
+
// personGeneration: { allowedValues: ["allow_all", "allow_adult", "dont_allow"] },
|
|
315
|
+
// promptOptimizer: {},
|
|
316
|
+
// },
|
|
317
|
+
// // 1080p only supports 8s on the Gemini API (no 4k for lite). See veo-3.1.
|
|
318
|
+
// durationRules: {
|
|
319
|
+
// 4: ["720p"],
|
|
320
|
+
// 6: ["720p"],
|
|
321
|
+
// 8: ["720p", "1080p"],
|
|
322
|
+
// },
|
|
323
|
+
// // Tier 2 ceiling: 4 RPM / ~50 RPD per model (see veo-3.1 note above).
|
|
324
|
+
// requestPerMin: 4,
|
|
325
|
+
// requestPerDay: 50,
|
|
326
|
+
// cost: {
|
|
327
|
+
// perResolution: { "720p": 0.05, "1080p": 0.08 },
|
|
328
|
+
// },
|
|
329
|
+
// },
|
|
278
330
|
// ⚰️ END OF LIFE: shut down by Google 2026-06-30 (veo-3.0-generate-001,
|
|
279
331
|
// veo-3.0-fast-generate-001, veo-2.0-generate-001). Recommended replacement:
|
|
280
332
|
// veo-3.1-generate-preview / veo-3.1-fast-generate-preview (configs above).
|