vidspotai-shared 1.0.32 → 1.0.34
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/index.d.ts +1 -0
- package/lib/globals/index.d.ts.map +1 -1
- package/lib/globals/index.js +1 -0
- package/lib/models/user.model.d.ts +2 -0
- package/lib/models/user.model.d.ts.map +1 -1
- package/lib/models/video.model.d.ts +9 -0
- package/lib/models/video.model.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.js +36 -12
- package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/bytedance/bytedance.service.js +22 -2
- package/lib/services/aiGen/providers/google/google.service.js +1 -1
- package/lib/services/aiGen/providers/kling/kling.service.d.ts +7 -2
- package/lib/services/aiGen/providers/kling/kling.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/kling/kling.service.js +126 -10
- package/lib/services/aiGen/providers/kling/types.d.ts +13 -0
- package/lib/services/aiGen/providers/kling/types.d.ts.map +1 -1
- package/lib/services/aiGen/providers/runway/runway.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/runway/runway.service.js +16 -4
- package/lib/services/aiGen/providers/types.d.ts +6 -0
- package/lib/services/aiGen/providers/types.d.ts.map +1 -1
- package/lib/services/credit.service.d.ts +1 -0
- package/lib/services/credit.service.d.ts.map +1 -1
- package/lib/services/credit.service.js +17 -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/tts/providers/elevenlabs.service.d.ts +1 -0
- package/lib/services/tts/providers/elevenlabs.service.d.ts.map +1 -1
- package/lib/services/tts/providers/elevenlabs.service.js +4 -2
- package/lib/utils/helpers.js +2 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/logger.d.ts +2 -1
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/utils/logger.js +2 -0
- package/package.json +1 -1
- package/lib/globals/aiModels.d.ts +0 -63
- package/lib/globals/aiModels.d.ts.map +0 -1
- package/lib/globals/aiModels.js +0 -529
package/lib/globals/aiModels.js
DELETED
|
@@ -1,529 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aiModelConfigs = exports.ETextGenModels = exports.EImageGenModels = exports.EVideoGenModels = void 0;
|
|
4
|
-
const types_1 = require("../services/aiGen/providers/runway/types");
|
|
5
|
-
// export const EVideoGenModels = {
|
|
6
|
-
// GOOGLE_VEO_3: "google-veo-3",
|
|
7
|
-
// GOOGLE_VEO_3_FAST: "google-veo-3-fast",
|
|
8
|
-
// GOOGLE_VEO_2: "google-veo-2",
|
|
9
|
-
// RUNWAY_GEN4_TURBO: "runway-gen4-turbo",
|
|
10
|
-
// RUNWAY_GEN4_ALEPH: "runway-gen4-aleph",
|
|
11
|
-
// KLING_V1: "kling-v1",
|
|
12
|
-
// KLING_V1_6: "kling-v1.6",
|
|
13
|
-
// KLING_V2_MASTER: "kling-v2-master",
|
|
14
|
-
// KLING_V2_1_MASTER: "kling-v2.1-master",
|
|
15
|
-
// MINIMAX_HAILUO_02: "minimax-hailuo-02",
|
|
16
|
-
// T2V_01_DIRECTOR: "T2V-01-Director",
|
|
17
|
-
// T2V_01: "T2V-01",
|
|
18
|
-
// OPENAI_SORA: "openai-sora",
|
|
19
|
-
// } as const;
|
|
20
|
-
var EVideoGenModels;
|
|
21
|
-
(function (EVideoGenModels) {
|
|
22
|
-
EVideoGenModels["GOOGLE_VEO_3_1_PREVIEW"] = "google-veo-3.1-preview";
|
|
23
|
-
EVideoGenModels["GOOGLE_VEO_3_1__FAST_PREVIEW"] = "google-veo-3.1-fast-preview";
|
|
24
|
-
EVideoGenModels["GOOGLE_VEO_3"] = "google-veo-3";
|
|
25
|
-
EVideoGenModels["GOOGLE_VEO_3_FAST"] = "google-veo-3-fast";
|
|
26
|
-
EVideoGenModels["GOOGLE_VEO_2"] = "google-veo-2";
|
|
27
|
-
EVideoGenModels["RUNWAY_GEN4_TURBO"] = "runway-gen4-turbo";
|
|
28
|
-
EVideoGenModels["RUNWAY_GEN4_ALEPH"] = "runway-gen4-aleph";
|
|
29
|
-
EVideoGenModels["KLING_V1"] = "kling-v1";
|
|
30
|
-
EVideoGenModels["KLING_V1_6"] = "kling-v1.6";
|
|
31
|
-
EVideoGenModels["KLING_V2_MASTER"] = "kling-v2-master";
|
|
32
|
-
EVideoGenModels["KLING_V2_1_MASTER"] = "kling-v2.1-master";
|
|
33
|
-
EVideoGenModels["MINIMAX_HAILUO_02"] = "minimax-hailuo-02";
|
|
34
|
-
EVideoGenModels["T2V_01_DIRECTOR"] = "T2V-01-Director";
|
|
35
|
-
EVideoGenModels["T2V_01"] = "T2V-01";
|
|
36
|
-
EVideoGenModels["AZURE_SORA"] = "azure-sora";
|
|
37
|
-
EVideoGenModels["ALIBABA_WAN_2_5"] = "alibaba-wan-2.5";
|
|
38
|
-
EVideoGenModels["ALIBABA_WAN_2_2"] = "alibaba-wan-2.2";
|
|
39
|
-
EVideoGenModels["OPENAI_SORA_2"] = "openai-sora-2";
|
|
40
|
-
EVideoGenModels["OPENAI_SORA_2_PRO"] = "openai-sora-2-pro";
|
|
41
|
-
})(EVideoGenModels || (exports.EVideoGenModels = EVideoGenModels = {}));
|
|
42
|
-
// export type TVideoGenModel =
|
|
43
|
-
// (typeof EVideoGenModels)[keyof typeof EVideoGenModels];
|
|
44
|
-
// export const EImageGenModels = {
|
|
45
|
-
// OPENAI_DALLE_3: "openai-dalle-3",
|
|
46
|
-
// STABILITY_STABLE_DIFFUSION: "stability-stable-diffusion",
|
|
47
|
-
// MIDJOURNEY_V6: "midjourney-v6",
|
|
48
|
-
// FLUX_1_1: "flux-1.1",
|
|
49
|
-
// IDEOGRAM_1_0: "ideogram-1.0",
|
|
50
|
-
// } as const;
|
|
51
|
-
exports.EImageGenModels = {
|
|
52
|
-
OPENAI_DALLE_3: "openai-dalle-3",
|
|
53
|
-
STABILITY_STABLE_DIFFUSION: "stability-stable-diffusion",
|
|
54
|
-
MIDJOURNEY_V6: "midjourney-v6",
|
|
55
|
-
FLUX_1_1: "flux-1.1",
|
|
56
|
-
IDEOGRAM_1_0: "ideogram-1.0",
|
|
57
|
-
};
|
|
58
|
-
// export type ImageGenModel =
|
|
59
|
-
// (typeof EImageGenModels)[keyof typeof EImageGenModels];
|
|
60
|
-
// export const ETextGenModels = {
|
|
61
|
-
// // OPENAI_GPT_4O: "openai-gpt-4o",
|
|
62
|
-
// OPENAI_GPT_4O_MINI: "openai-gpt-4o-mini",
|
|
63
|
-
// // OPENAI_GPT_3_5_TURBO: "openai-gpt-3.5-turbo",
|
|
64
|
-
// // ANTHROPIC_CLAUDE_3: "anthropic-claude-3",
|
|
65
|
-
// // ANTHROPIC_CLAUDE_INSTANT_100K: "anthropic-claude-instant-100k",
|
|
66
|
-
// } as const;
|
|
67
|
-
var ETextGenModels;
|
|
68
|
-
(function (ETextGenModels) {
|
|
69
|
-
// OPENAI_GPT_4O = "openai-gpt-4o",
|
|
70
|
-
ETextGenModels["OPENAI_GPT_4O_MINI"] = "openai-gpt-4o-mini";
|
|
71
|
-
ETextGenModels["OPENAI_GPT_5_MINI"] = "openai-gpt-5-mini";
|
|
72
|
-
// OPENAI_GPT_3_5_TURBO = "openai-gpt-3.5-turbo",
|
|
73
|
-
// ANTHROPIC_CLAUDE_3 = "anthropic-claude-3",
|
|
74
|
-
// ANTHROPIC_CLAUDE_INSTANT_100K = "anthropic-claude-instant-100k",
|
|
75
|
-
})(ETextGenModels || (exports.ETextGenModels = ETextGenModels = {}));
|
|
76
|
-
// Combined config
|
|
77
|
-
exports.aiModelConfigs = {
|
|
78
|
-
// --- Google models ---
|
|
79
|
-
"google-veo-3.1-preview": {
|
|
80
|
-
modelId: "veo-3.1-generate-preview",
|
|
81
|
-
type: ["text-to-video", "image-to-video"],
|
|
82
|
-
fields: {
|
|
83
|
-
prompt: { required: true },
|
|
84
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
|
|
85
|
-
resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
|
|
86
|
-
duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
|
|
87
|
-
imageUrl: {},
|
|
88
|
-
negative_prompt: {},
|
|
89
|
-
},
|
|
90
|
-
durationRules: {
|
|
91
|
-
4: ["720p", "1080p"],
|
|
92
|
-
6: ["720p", "1080p"],
|
|
93
|
-
8: ["1080p"],
|
|
94
|
-
},
|
|
95
|
-
requestPerMin: 10,
|
|
96
|
-
cost: {
|
|
97
|
-
perSecond: 0.4,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
"google-veo-3.1-fast-preview": {
|
|
101
|
-
modelId: "veo-3.1-fast-generate-preview",
|
|
102
|
-
type: ["text-to-video", "image-to-video"],
|
|
103
|
-
fields: {
|
|
104
|
-
prompt: { required: true },
|
|
105
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
|
|
106
|
-
resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
|
|
107
|
-
duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
|
|
108
|
-
imageUrl: {},
|
|
109
|
-
negative_prompt: {},
|
|
110
|
-
},
|
|
111
|
-
durationRules: {
|
|
112
|
-
4: ["720p", "1080p"],
|
|
113
|
-
6: ["720p", "1080p"],
|
|
114
|
-
8: ["1080p"],
|
|
115
|
-
},
|
|
116
|
-
requestPerMin: 10,
|
|
117
|
-
cost: {
|
|
118
|
-
perSecond: 0.15,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
"google-veo-3": {
|
|
122
|
-
modelId: "veo-3.0-generate-001",
|
|
123
|
-
type: ["text-to-video", "image-to-video"],
|
|
124
|
-
fields: {
|
|
125
|
-
prompt: { required: true },
|
|
126
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
|
|
127
|
-
resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
|
|
128
|
-
duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
|
|
129
|
-
imageUrl: {},
|
|
130
|
-
negative_prompt: {},
|
|
131
|
-
},
|
|
132
|
-
resolutionRules: {
|
|
133
|
-
"720p": ["16:9", "9:16"],
|
|
134
|
-
"1080p": ["16:9"],
|
|
135
|
-
},
|
|
136
|
-
// concurrentRequests: 1,
|
|
137
|
-
requestPerMin: 10,
|
|
138
|
-
cost: {
|
|
139
|
-
perSecond: 0.4,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
"google-veo-3-fast": {
|
|
143
|
-
modelId: "veo-3.0-fast-generate-001",
|
|
144
|
-
type: ["text-to-video", "image-to-video"],
|
|
145
|
-
fields: {
|
|
146
|
-
prompt: { required: true },
|
|
147
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
|
|
148
|
-
resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
|
|
149
|
-
duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
|
|
150
|
-
imageUrl: {},
|
|
151
|
-
negative_prompt: {},
|
|
152
|
-
},
|
|
153
|
-
resolutionRules: {
|
|
154
|
-
"720p": ["16:9", "9:16"],
|
|
155
|
-
"1080p": ["16:9"],
|
|
156
|
-
},
|
|
157
|
-
requestPerMin: 10,
|
|
158
|
-
cost: {
|
|
159
|
-
perSecond: 0.15,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
"google-veo-2": {
|
|
163
|
-
modelId: "veo-2.0-generate-001",
|
|
164
|
-
type: ["text-to-video", "image-to-video"],
|
|
165
|
-
fields: {
|
|
166
|
-
prompt: { required: true },
|
|
167
|
-
aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
|
|
168
|
-
resolution: { allowedValues: ["720p"] }, // 720p as default
|
|
169
|
-
duration: { allowedValues: [5, 6, 8] }, // in seconds, 8s as default
|
|
170
|
-
imageUrl: {},
|
|
171
|
-
negative_prompt: {},
|
|
172
|
-
},
|
|
173
|
-
resolutionRules: {
|
|
174
|
-
"720p": ["16:9", "9:16"],
|
|
175
|
-
},
|
|
176
|
-
requestPerMin: 10,
|
|
177
|
-
cost: {
|
|
178
|
-
perSecond: 0.35,
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
// --- Runway models ---
|
|
182
|
-
"runway-gen4-turbo": {
|
|
183
|
-
modelId: "gen4_turbo",
|
|
184
|
-
type: ["image-to-video"],
|
|
185
|
-
fields: {
|
|
186
|
-
prompt: { required: true },
|
|
187
|
-
imageUrl: { required: true },
|
|
188
|
-
aspectRatio: {
|
|
189
|
-
allowedValues: types_1.GEN4_TURBO_RATIOS,
|
|
190
|
-
},
|
|
191
|
-
duration: {
|
|
192
|
-
allowedValues: types_1.GEN4_TURBO_DURATIONS,
|
|
193
|
-
}, // in seconds
|
|
194
|
-
},
|
|
195
|
-
// parallelRequests: 1,
|
|
196
|
-
cost: {
|
|
197
|
-
perSecond: 0.05,
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
"runway-gen4-aleph": {
|
|
201
|
-
modelId: "gen4_aleph",
|
|
202
|
-
type: ["video-to-video"],
|
|
203
|
-
fields: {
|
|
204
|
-
prompt: { required: true },
|
|
205
|
-
videoUrl: { required: true },
|
|
206
|
-
aspecetRatio: {
|
|
207
|
-
allowedValues: types_1.GEN4_ALEPH_RATIOS,
|
|
208
|
-
},
|
|
209
|
-
duration: { allowedValues: types_1.GEN4_ALEPH_DURATIONS }, // in seconds
|
|
210
|
-
},
|
|
211
|
-
// parallelRequests: 1,
|
|
212
|
-
cost: {
|
|
213
|
-
perSecond: 0.15,
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
/// --- Kling models ---
|
|
217
|
-
"kling-v1": {
|
|
218
|
-
modelId: "kling-v1",
|
|
219
|
-
type: ["text-to-video"],
|
|
220
|
-
fields: {
|
|
221
|
-
prompt: { required: true },
|
|
222
|
-
aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] }, // default 16:9
|
|
223
|
-
duration: { allowedValues: [5, 10] }, // seconds (5 or 10)
|
|
224
|
-
cfg_scale: {}, // float, probably between 0 and 1
|
|
225
|
-
negative_prompt: {},
|
|
226
|
-
mode: { allowedValues: ["std", "pro"] },
|
|
227
|
-
},
|
|
228
|
-
concurrentRequests: 3,
|
|
229
|
-
// "std" = Standard mode, "pro" = Professional mode
|
|
230
|
-
cost: {
|
|
231
|
-
table: {
|
|
232
|
-
std: { 5: 0.14, 10: 0.28 },
|
|
233
|
-
pro: { 5: 0.49, 10: 0.98 },
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
"kling-v1.6": {
|
|
238
|
-
modelId: "kling-v1-6",
|
|
239
|
-
type: ["text-to-video"],
|
|
240
|
-
fields: {
|
|
241
|
-
prompt: { required: true },
|
|
242
|
-
aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] }, // assumed similar to v1
|
|
243
|
-
duration: { allowedValues: [5, 10] }, // likely same limits
|
|
244
|
-
cfg_scale: {},
|
|
245
|
-
mode: { allowedValues: ["std", "pro"] },
|
|
246
|
-
negative_prompt: {},
|
|
247
|
-
},
|
|
248
|
-
concurrentRequests: 3,
|
|
249
|
-
cost: {
|
|
250
|
-
table: {
|
|
251
|
-
std: { 5: 0.28, 10: 0.56 },
|
|
252
|
-
pro: { 5: 0.49, 10: 0.98 },
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
"kling-v2-master": {
|
|
257
|
-
modelId: "kling-v2-master",
|
|
258
|
-
type: ["text-to-video"],
|
|
259
|
-
fields: {
|
|
260
|
-
prompt: { required: true },
|
|
261
|
-
aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
|
|
262
|
-
duration: { allowedValues: [5, 10] },
|
|
263
|
-
mode: { allowedValues: ["pro"] },
|
|
264
|
-
negative_prompt: {},
|
|
265
|
-
},
|
|
266
|
-
concurrentRequests: 3,
|
|
267
|
-
cost: {
|
|
268
|
-
table: {
|
|
269
|
-
pro: { 5: 1.4, 10: 2.8 },
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
"kling-v2.1-master": {
|
|
274
|
-
modelId: "kling-v2-1-master",
|
|
275
|
-
type: ["text-to-video"],
|
|
276
|
-
fields: {
|
|
277
|
-
prompt: { required: true },
|
|
278
|
-
aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
|
|
279
|
-
duration: { allowedValues: [5, 10] },
|
|
280
|
-
mode: { allowedValues: ["pro"] },
|
|
281
|
-
negative_prompt: {},
|
|
282
|
-
},
|
|
283
|
-
concurrentRequests: 3,
|
|
284
|
-
cost: {
|
|
285
|
-
table: {
|
|
286
|
-
pro: { 5: 1.4, 10: 2.8 },
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
// --- MINIMAX model ---
|
|
291
|
-
"minimax-hailuo-02": {
|
|
292
|
-
modelId: "MiniMax-Hailuo-02",
|
|
293
|
-
type: ["text-to-video"],
|
|
294
|
-
fields: {
|
|
295
|
-
prompt: { required: true },
|
|
296
|
-
resolution: { allowedValues: ["768P", "1080P"] }, // 768P as default
|
|
297
|
-
duration: { allowedValues: [6, 10] }, // in seconds, 6s as default
|
|
298
|
-
},
|
|
299
|
-
durationRules: {
|
|
300
|
-
6: ["768P", "1080P"],
|
|
301
|
-
10: ["768P"],
|
|
302
|
-
},
|
|
303
|
-
// parallelRequests: 1,
|
|
304
|
-
cost: {
|
|
305
|
-
table: {
|
|
306
|
-
"768P": { 6: 0.28, 10: 0.56 },
|
|
307
|
-
"1080P": { 6: 0.49 },
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
"T2V-01-Director": {
|
|
312
|
-
modelId: "T2V-01-Director",
|
|
313
|
-
type: ["text-to-video"],
|
|
314
|
-
fields: {
|
|
315
|
-
prompt: { required: true },
|
|
316
|
-
resolution: { allowedValues: ["720P"] }, // 720P as default
|
|
317
|
-
duration: { allowedValues: [6] }, // in seconds, 5s as default
|
|
318
|
-
},
|
|
319
|
-
durationRules: {
|
|
320
|
-
6: ["720P"],
|
|
321
|
-
},
|
|
322
|
-
// parallelRequests: 1,
|
|
323
|
-
cost: {
|
|
324
|
-
fixed: 0.28, // cost per video generation
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
"T2V-01": {
|
|
328
|
-
modelId: "T2V-01",
|
|
329
|
-
type: ["text-to-video"],
|
|
330
|
-
fields: {
|
|
331
|
-
prompt: { required: true },
|
|
332
|
-
resolution: { allowedValues: ["720P"] }, // 720P as default
|
|
333
|
-
duration: { allowedValues: [6] }, // in seconds, 5s as default
|
|
334
|
-
},
|
|
335
|
-
durationRules: {
|
|
336
|
-
6: ["720P"],
|
|
337
|
-
},
|
|
338
|
-
// parallelRequests: 1,
|
|
339
|
-
cost: { fixed: 0.28 },
|
|
340
|
-
},
|
|
341
|
-
// --- Alibaba models ---
|
|
342
|
-
"alibaba-wan-2.5": {
|
|
343
|
-
modelId: "wan2.5-t2v-preview",
|
|
344
|
-
type: ["text-to-video"],
|
|
345
|
-
fields: {
|
|
346
|
-
prompt: { required: true },
|
|
347
|
-
resolution: {
|
|
348
|
-
allowedValues: ["480p", "720p", "1080p"],
|
|
349
|
-
default: "1080p",
|
|
350
|
-
},
|
|
351
|
-
aspectRatio: {
|
|
352
|
-
allowedValues: ["16:9", "9:16", "1:1", "4:3", "3:4"],
|
|
353
|
-
default: "16:9",
|
|
354
|
-
},
|
|
355
|
-
duration: {
|
|
356
|
-
allowedValues: [5, 10],
|
|
357
|
-
default: 5,
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
resolutionRules: {
|
|
361
|
-
"480p": ["16:9", "9:16", "1:1"],
|
|
362
|
-
"720p": ["16:9", "9:16", "1:1", "4:3", "3:4"],
|
|
363
|
-
"1080p": ["16:9", "1:1", "4:3", "3:4"],
|
|
364
|
-
},
|
|
365
|
-
cost: {
|
|
366
|
-
table: {
|
|
367
|
-
"832x480": { 5: 0.25, 10: 0.5 },
|
|
368
|
-
"480x832": { 5: 0.25, 10: 0.5 },
|
|
369
|
-
"624x624": { 5: 0.25, 10: 0.5 },
|
|
370
|
-
"1280x720": { 5: 0.5, 10: 1.0 },
|
|
371
|
-
"720x1280": { 5: 0.5, 10: 1.0 },
|
|
372
|
-
"960x960": { 5: 0.5, 10: 1.0 },
|
|
373
|
-
"1088x832": { 5: 0.5, 10: 1.0 },
|
|
374
|
-
"832x1088": { 5: 0.5, 10: 1.0 },
|
|
375
|
-
"1920x1080": { 5: 0.75, 10: 1.5 },
|
|
376
|
-
"1080x1920": { 5: 0.75, 10: 1.5 },
|
|
377
|
-
"1440x1440": { 5: 0.75, 10: 1.5 },
|
|
378
|
-
"1632x1248": { 5: 0.75, 10: 1.5 },
|
|
379
|
-
"1248x1632": { 5: 0.75, 10: 1.5 },
|
|
380
|
-
},
|
|
381
|
-
},
|
|
382
|
-
},
|
|
383
|
-
"alibaba-wan-2.2": {
|
|
384
|
-
modelId: "wan2.2-t2v-plus",
|
|
385
|
-
type: ["text-to-video"],
|
|
386
|
-
fields: {
|
|
387
|
-
prompt: { required: true },
|
|
388
|
-
resolution: {
|
|
389
|
-
allowedValues: ["480p", "1080p"],
|
|
390
|
-
},
|
|
391
|
-
aspectRatio: {
|
|
392
|
-
allowedValues: ["16:9", "9:16", "1:1", "4:3", "3:4"],
|
|
393
|
-
},
|
|
394
|
-
duration: {
|
|
395
|
-
allowedValues: [5],
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
resolutionRules: {
|
|
399
|
-
"480p": ["16:9", "9:16", "1:1"],
|
|
400
|
-
"1080p": ["16:9", "1:1", "4:3", "3:4"],
|
|
401
|
-
},
|
|
402
|
-
cost: {
|
|
403
|
-
table: {
|
|
404
|
-
"832x480": { 5: 0.1 }, // 0.02/sec × 5s
|
|
405
|
-
"480x832": { 5: 0.1 },
|
|
406
|
-
"624x624": { 5: 0.1 },
|
|
407
|
-
"1920x1080": { 5: 0.5 }, // 0.10/sec × 5s
|
|
408
|
-
"1080x1920": { 5: 0.5 },
|
|
409
|
-
"1440x1440": { 5: 0.5 },
|
|
410
|
-
"1632x1248": { 5: 0.5 },
|
|
411
|
-
"1248x1632": { 5: 0.5 },
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
},
|
|
415
|
-
"openai-sora-2": {
|
|
416
|
-
modelId: "sora-2",
|
|
417
|
-
type: ["text-to-video", "image-to-video", "video-to-video"],
|
|
418
|
-
fields: {
|
|
419
|
-
prompt: { required: true },
|
|
420
|
-
duration: {
|
|
421
|
-
allowedValues: [4, 8, 12], // in seconds
|
|
422
|
-
default: 4,
|
|
423
|
-
},
|
|
424
|
-
dimensions: {
|
|
425
|
-
allowedValues: ["720x1280", "1280x720", "1024x1792", "1792x1024"],
|
|
426
|
-
default: "720x1280",
|
|
427
|
-
},
|
|
428
|
-
},
|
|
429
|
-
cost: {
|
|
430
|
-
table: {
|
|
431
|
-
"720x1280": { 4: 0.4, 8: 0.8, 12: 1.2 },
|
|
432
|
-
"1280x720": { 4: 0.4, 8: 0.8, 12: 1.2 },
|
|
433
|
-
"1024x1792": { 4: 0.4, 8: 0.8, 12: 1.2 },
|
|
434
|
-
"1792x1024": { 4: 0.4, 8: 0.8, 12: 1.2 },
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
requestPerMin: 25,
|
|
438
|
-
},
|
|
439
|
-
"openai-sora-2-pro": {
|
|
440
|
-
modelId: "sora-2-pro",
|
|
441
|
-
type: ["text-to-video", "image-to-video", "video-to-video"],
|
|
442
|
-
fields: {
|
|
443
|
-
prompt: { required: true },
|
|
444
|
-
duration: {
|
|
445
|
-
allowedValues: [4, 8, 12], // in seconds
|
|
446
|
-
default: 4,
|
|
447
|
-
},
|
|
448
|
-
dimensions: {
|
|
449
|
-
allowedValues: ["720x1280", "1280x720", "1024x1792", "1792x1024"],
|
|
450
|
-
default: "720x1280",
|
|
451
|
-
},
|
|
452
|
-
},
|
|
453
|
-
cost: {
|
|
454
|
-
table: {
|
|
455
|
-
"720x1280": { 4: 1.2, 8: 2.4, 12: 3.6 },
|
|
456
|
-
"1280x720": { 4: 1.2, 8: 2.4, 12: 3.6 },
|
|
457
|
-
"1024x1792": { 4: 1.2, 8: 2.4, 12: 3.6 },
|
|
458
|
-
"1792x1024": { 4: 1.2, 8: 2.4, 12: 3.6 },
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
requestPerMin: 10,
|
|
462
|
-
},
|
|
463
|
-
"azure-sora": {
|
|
464
|
-
modelId: "sora",
|
|
465
|
-
type: ["text-to-video", "image-to-video", "video-to-video"],
|
|
466
|
-
fields: {
|
|
467
|
-
prompt: { required: true },
|
|
468
|
-
dimensions: {
|
|
469
|
-
allowedValues: [
|
|
470
|
-
"480x480",
|
|
471
|
-
"480x854",
|
|
472
|
-
"854x480",
|
|
473
|
-
"720x720",
|
|
474
|
-
"720x1280",
|
|
475
|
-
"1280x720",
|
|
476
|
-
"1080x1080",
|
|
477
|
-
"1080x1920",
|
|
478
|
-
"1920x1080",
|
|
479
|
-
],
|
|
480
|
-
default: "480x480",
|
|
481
|
-
},
|
|
482
|
-
duration: {
|
|
483
|
-
allowedValues: [1, 5, 10, 15, 20], // in seconds
|
|
484
|
-
default: 5,
|
|
485
|
-
},
|
|
486
|
-
imageUrl: { required: false }, // up to 2
|
|
487
|
-
videoUrl: { required: false }, // up to 5s
|
|
488
|
-
},
|
|
489
|
-
// parallelRequests: 1,
|
|
490
|
-
cost: {
|
|
491
|
-
table: {
|
|
492
|
-
"480x480": { 5: 0.15, 10: 0.15, 15: 0.15, 20: 0.15 },
|
|
493
|
-
"480x854": { 5: 0.2, 10: 0.2, 15: 0.2, 20: 0.2 },
|
|
494
|
-
"720x720": { 5: 0.3, 10: 0.3, 15: 0.3, 20: 0.3 },
|
|
495
|
-
"1280x720": { 5: 0.45, 10: 0.5, 15: 0.65, 20: 0.75 },
|
|
496
|
-
"1080x1080": { 5: 0.6, 10: 0.75, 15: 1.1, 20: 1.35 },
|
|
497
|
-
"1920x1080": { 5: 1.3, 10: 1.85, 15: 2.9, 20: 3.6 },
|
|
498
|
-
},
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
// --- TEXT GEN models ---
|
|
502
|
-
"openai-gpt-4o-mini": {
|
|
503
|
-
modelId: "gpt-4o-mini",
|
|
504
|
-
type: ["text-to-text", "image-to-text"],
|
|
505
|
-
fields: {
|
|
506
|
-
prompt: { required: true },
|
|
507
|
-
maxOutputTokens: { default: 16384 },
|
|
508
|
-
contextWindowSize: { default: 128000 },
|
|
509
|
-
temperature: { default: 1.0 },
|
|
510
|
-
topP: { default: 1.0 },
|
|
511
|
-
frequencyPenalty: { default: 0.0 },
|
|
512
|
-
presencePenalty: { default: 0.0 },
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
"openai-gpt-5-mini": {
|
|
516
|
-
modelId: "gpt-5-mini",
|
|
517
|
-
type: ["text-to-text", "image-to-text"],
|
|
518
|
-
fields: {
|
|
519
|
-
prompt: { required: true },
|
|
520
|
-
maxOutputTokens: { default: 128000 },
|
|
521
|
-
contextWindowSize: { default: 400000 },
|
|
522
|
-
temperature: { default: 1.0 },
|
|
523
|
-
topP: { default: 1.0 },
|
|
524
|
-
frequencyPenalty: { default: 0.0 },
|
|
525
|
-
presencePenalty: { default: 0.0 },
|
|
526
|
-
reasoningEffort: { default: "medium" }, // 'minimal' | 'low' | 'medium' | 'high'
|
|
527
|
-
},
|
|
528
|
-
},
|
|
529
|
-
};
|