vidspotai-shared 1.0.30 → 1.0.31

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.
Files changed (94) hide show
  1. package/lib/globals/aiModels/enums.d.ts +40 -0
  2. package/lib/globals/aiModels/enums.d.ts.map +1 -0
  3. package/lib/globals/aiModels/enums.js +46 -0
  4. package/lib/globals/aiModels/index.d.ts +6 -0
  5. package/lib/globals/aiModels/index.d.ts.map +1 -0
  6. package/lib/globals/aiModels/index.js +35 -0
  7. package/lib/globals/aiModels/providers/bytedance.d.ts +4 -0
  8. package/lib/globals/aiModels/providers/bytedance.d.ts.map +1 -0
  9. package/lib/globals/aiModels/providers/bytedance.js +65 -0
  10. package/lib/globals/aiModels/providers/google.d.ts +4 -0
  11. package/lib/globals/aiModels/providers/google.d.ts.map +1 -0
  12. package/lib/globals/aiModels/providers/google.js +111 -0
  13. package/lib/globals/aiModels/providers/kling.d.ts +4 -0
  14. package/lib/globals/aiModels/providers/kling.d.ts.map +1 -0
  15. package/lib/globals/aiModels/providers/kling.js +129 -0
  16. package/lib/globals/aiModels/providers/minimax.d.ts +4 -0
  17. package/lib/globals/aiModels/providers/minimax.d.ts.map +1 -0
  18. package/lib/globals/aiModels/providers/minimax.js +66 -0
  19. package/lib/globals/aiModels/providers/openai.d.ts +4 -0
  20. package/lib/globals/aiModels/providers/openai.d.ts.map +1 -0
  21. package/lib/globals/aiModels/providers/openai.js +82 -0
  22. package/lib/globals/aiModels/providers/pixverse.d.ts +4 -0
  23. package/lib/globals/aiModels/providers/pixverse.d.ts.map +1 -0
  24. package/lib/globals/aiModels/providers/pixverse.js +108 -0
  25. package/lib/globals/aiModels/providers/runway.d.ts +4 -0
  26. package/lib/globals/aiModels/providers/runway.d.ts.map +1 -0
  27. package/lib/globals/aiModels/providers/runway.js +52 -0
  28. package/lib/globals/aiModels/types.d.ts +45 -0
  29. package/lib/globals/aiModels/types.d.ts.map +1 -0
  30. package/lib/globals/aiModels/types.js +2 -0
  31. package/lib/globals/aiModels.d.ts +9 -14
  32. package/lib/globals/aiModels.d.ts.map +1 -1
  33. package/lib/globals/aiModels.js +187 -495
  34. package/lib/globals/index.d.ts +1 -0
  35. package/lib/globals/index.d.ts.map +1 -1
  36. package/lib/globals/index.js +1 -0
  37. package/lib/globals/ttsModels/index.d.ts +6 -0
  38. package/lib/globals/ttsModels/index.d.ts.map +1 -0
  39. package/lib/globals/ttsModels/index.js +25 -0
  40. package/lib/globals/ttsModels/providers/elevenlabs.d.ts +3 -0
  41. package/lib/globals/ttsModels/providers/elevenlabs.d.ts.map +1 -0
  42. package/lib/globals/ttsModels/providers/elevenlabs.js +13 -0
  43. package/lib/globals/ttsModels/types.d.ts +15 -0
  44. package/lib/globals/ttsModels/types.d.ts.map +1 -0
  45. package/lib/globals/ttsModels/types.js +2 -0
  46. package/lib/globals/ttsModels/voices.d.ts +21 -0
  47. package/lib/globals/ttsModels/voices.d.ts.map +1 -0
  48. package/lib/globals/ttsModels/voices.js +135 -0
  49. package/lib/models/user.model.d.ts +2 -0
  50. package/lib/models/user.model.d.ts.map +1 -1
  51. package/lib/models/video.model.d.ts +9 -0
  52. package/lib/models/video.model.d.ts.map +1 -1
  53. package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
  54. package/lib/services/aiGen/aiGenFactory.service.js +36 -12
  55. package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -1
  56. package/lib/services/aiGen/providers/bytedance/bytedance.service.js +36 -7
  57. package/lib/services/aiGen/providers/google/google.service.js +1 -1
  58. package/lib/services/aiGen/providers/kling/kling.service.d.ts +7 -2
  59. package/lib/services/aiGen/providers/kling/kling.service.d.ts.map +1 -1
  60. package/lib/services/aiGen/providers/kling/kling.service.js +126 -10
  61. package/lib/services/aiGen/providers/kling/types.d.ts +13 -0
  62. package/lib/services/aiGen/providers/kling/types.d.ts.map +1 -1
  63. package/lib/services/aiGen/providers/pixverse/pixverse.service.d.ts +9 -0
  64. package/lib/services/aiGen/providers/pixverse/pixverse.service.d.ts.map +1 -0
  65. package/lib/services/aiGen/providers/pixverse/pixverse.service.js +188 -0
  66. package/lib/services/aiGen/providers/runway/runway.service.d.ts.map +1 -1
  67. package/lib/services/aiGen/providers/runway/runway.service.js +16 -4
  68. package/lib/services/aiGen/providers/types.d.ts +6 -0
  69. package/lib/services/aiGen/providers/types.d.ts.map +1 -1
  70. package/lib/services/credit.service.d.ts +1 -0
  71. package/lib/services/credit.service.d.ts.map +1 -1
  72. package/lib/services/credit.service.js +17 -0
  73. package/lib/services/index.d.ts +1 -0
  74. package/lib/services/index.d.ts.map +1 -1
  75. package/lib/services/index.js +1 -0
  76. package/lib/services/tts/index.d.ts +4 -0
  77. package/lib/services/tts/index.d.ts.map +1 -0
  78. package/lib/services/tts/index.js +19 -0
  79. package/lib/services/tts/providers/elevenlabs.service.d.ts +7 -0
  80. package/lib/services/tts/providers/elevenlabs.service.d.ts.map +1 -0
  81. package/lib/services/tts/providers/elevenlabs.service.js +44 -0
  82. package/lib/services/tts/ttsFactory.service.d.ts +4 -0
  83. package/lib/services/tts/ttsFactory.service.d.ts.map +1 -0
  84. package/lib/services/tts/ttsFactory.service.js +12 -0
  85. package/lib/services/tts/types.d.ts +14 -0
  86. package/lib/services/tts/types.d.ts.map +1 -0
  87. package/lib/services/tts/types.js +6 -0
  88. package/lib/utils/index.d.ts +1 -0
  89. package/lib/utils/index.d.ts.map +1 -1
  90. package/lib/utils/index.js +1 -0
  91. package/lib/utils/ttsUtils.d.ts +11 -0
  92. package/lib/utils/ttsUtils.d.ts.map +1 -0
  93. package/lib/utils/ttsUtils.js +16 -0
  94. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ export declare enum EVideoGenModels {
2
+ PIXVERSE_V5_6 = "pixverse-v5.6",
3
+ PIXVERSE_V5_5 = "pixverse-v5.5",
4
+ PIXVERSE_V5 = "pixverse-v5",
5
+ BYTEDANCE_SEEDANCE_1_5_PRO = "bytedance-seedance-1.5-pro",
6
+ BYTEDANCE_SEEDANCE_1_0_PRO_FAST = "bytedance-seedance-1.0-pro-fast",
7
+ BYTEDANCE_SEEDANCE_1_0_PRO = "bytedance-seedance-1.0-pro",
8
+ GOOGLE_VEO_3_1 = "google-veo-3.1",
9
+ GOOGLE_VEO_3_1_FAST = "google-veo-3.1-fast",
10
+ GOOGLE_VEO_3 = "google-veo-3",
11
+ GOOGLE_VEO_3_FAST = "google-veo-3-fast",
12
+ GOOGLE_VEO_2 = "google-veo-2",
13
+ RUNWAY_GEN4_5 = "runway-gen4.5",
14
+ RUNWAY_GEN4_TURBO = "runway-gen4-turbo",
15
+ RUNWAY_GEN4_ALEPH = "runway-gen4-aleph",
16
+ KLING_V2_MASTER = "kling-v2-master",
17
+ KLING_V2_1 = "kling-v2.1",
18
+ KLING_V2_1_MASTER = "kling-v2.1-master",
19
+ KLING_V2_5_TURBO = "kling-v2.5-turbo",
20
+ KLING_V2_6 = "kling-v2.6",
21
+ KLING_AVATAR = "kling-avatar",
22
+ MINIMAX_HAILUO_2_3_FAST = "minimax-hailuo-2.3-fast",
23
+ MINIMAX_HAILUO_2_3 = "minimax-hailuo-2.3",
24
+ MINIMAX_HAILUO_02 = "minimax-hailuo-02",
25
+ OPENAI_SORA_2 = "openai-sora-2",
26
+ OPENAI_SORA_2_PRO = "openai-sora-2-pro"
27
+ }
28
+ export declare const EImageGenModels: {
29
+ readonly OPENAI_DALLE_3: "openai-dalle-3";
30
+ readonly STABILITY_STABLE_DIFFUSION: "stability-stable-diffusion";
31
+ readonly MIDJOURNEY_V6: "midjourney-v6";
32
+ readonly FLUX_1_1: "flux-1.1";
33
+ readonly IDEOGRAM_1_0: "ideogram-1.0";
34
+ };
35
+ export declare enum ETextGenModels {
36
+ OPENAI_GPT_4O_MINI = "openai-gpt-4o-mini",
37
+ OPENAI_GPT_5_MINI = "openai-gpt-5-mini"
38
+ }
39
+ export type TAiGenModel = EVideoGenModels | ETextGenModels;
40
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,0BAA0B,+BAA+B;IACzD,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAE7B,uBAAuB,4BAA4B;IACnD,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IAGvC,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;CACxC;AAED,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,oBAAY,cAAc;IACxB,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,cAAc,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETextGenModels = exports.EImageGenModels = exports.EVideoGenModels = void 0;
4
+ var EVideoGenModels;
5
+ (function (EVideoGenModels) {
6
+ EVideoGenModels["PIXVERSE_V5_6"] = "pixverse-v5.6";
7
+ EVideoGenModels["PIXVERSE_V5_5"] = "pixverse-v5.5";
8
+ EVideoGenModels["PIXVERSE_V5"] = "pixverse-v5";
9
+ EVideoGenModels["BYTEDANCE_SEEDANCE_1_5_PRO"] = "bytedance-seedance-1.5-pro";
10
+ EVideoGenModels["BYTEDANCE_SEEDANCE_1_0_PRO_FAST"] = "bytedance-seedance-1.0-pro-fast";
11
+ EVideoGenModels["BYTEDANCE_SEEDANCE_1_0_PRO"] = "bytedance-seedance-1.0-pro";
12
+ EVideoGenModels["GOOGLE_VEO_3_1"] = "google-veo-3.1";
13
+ EVideoGenModels["GOOGLE_VEO_3_1_FAST"] = "google-veo-3.1-fast";
14
+ EVideoGenModels["GOOGLE_VEO_3"] = "google-veo-3";
15
+ EVideoGenModels["GOOGLE_VEO_3_FAST"] = "google-veo-3-fast";
16
+ EVideoGenModels["GOOGLE_VEO_2"] = "google-veo-2";
17
+ EVideoGenModels["RUNWAY_GEN4_5"] = "runway-gen4.5";
18
+ EVideoGenModels["RUNWAY_GEN4_TURBO"] = "runway-gen4-turbo";
19
+ EVideoGenModels["RUNWAY_GEN4_ALEPH"] = "runway-gen4-aleph";
20
+ EVideoGenModels["KLING_V2_MASTER"] = "kling-v2-master";
21
+ EVideoGenModels["KLING_V2_1"] = "kling-v2.1";
22
+ EVideoGenModels["KLING_V2_1_MASTER"] = "kling-v2.1-master";
23
+ EVideoGenModels["KLING_V2_5_TURBO"] = "kling-v2.5-turbo";
24
+ EVideoGenModels["KLING_V2_6"] = "kling-v2.6";
25
+ EVideoGenModels["KLING_AVATAR"] = "kling-avatar";
26
+ // KLING_VIDEO_O1 = "kling-video-o1",
27
+ EVideoGenModels["MINIMAX_HAILUO_2_3_FAST"] = "minimax-hailuo-2.3-fast";
28
+ EVideoGenModels["MINIMAX_HAILUO_2_3"] = "minimax-hailuo-2.3";
29
+ EVideoGenModels["MINIMAX_HAILUO_02"] = "minimax-hailuo-02";
30
+ // ALIBABA_WAN_2_5 = "alibaba-wan-2.5",
31
+ // ALIBABA_WAN_2_2 = "alibaba-wan-2.2",
32
+ EVideoGenModels["OPENAI_SORA_2"] = "openai-sora-2";
33
+ EVideoGenModels["OPENAI_SORA_2_PRO"] = "openai-sora-2-pro";
34
+ })(EVideoGenModels || (exports.EVideoGenModels = EVideoGenModels = {}));
35
+ exports.EImageGenModels = {
36
+ OPENAI_DALLE_3: "openai-dalle-3",
37
+ STABILITY_STABLE_DIFFUSION: "stability-stable-diffusion",
38
+ MIDJOURNEY_V6: "midjourney-v6",
39
+ FLUX_1_1: "flux-1.1",
40
+ IDEOGRAM_1_0: "ideogram-1.0",
41
+ };
42
+ var ETextGenModels;
43
+ (function (ETextGenModels) {
44
+ ETextGenModels["OPENAI_GPT_4O_MINI"] = "openai-gpt-4o-mini";
45
+ ETextGenModels["OPENAI_GPT_5_MINI"] = "openai-gpt-5-mini";
46
+ })(ETextGenModels || (exports.ETextGenModels = ETextGenModels = {}));
@@ -0,0 +1,6 @@
1
+ export * from "./enums";
2
+ export * from "./types";
3
+ import { TAiGenModel } from "./enums";
4
+ import { IModelSchema } from "./types";
5
+ export declare const aiModelConfigs: Record<TAiGenModel, IModelSchema>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAUvC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,CAQvB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.aiModelConfigs = void 0;
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./types"), exports);
20
+ const pixverse_1 = require("./providers/pixverse");
21
+ const bytedance_1 = require("./providers/bytedance");
22
+ const google_1 = require("./providers/google");
23
+ const runway_1 = require("./providers/runway");
24
+ const kling_1 = require("./providers/kling");
25
+ const minimax_1 = require("./providers/minimax");
26
+ const openai_1 = require("./providers/openai");
27
+ exports.aiModelConfigs = {
28
+ ...pixverse_1.pixverseConfigs,
29
+ ...bytedance_1.bytedanceConfigs,
30
+ ...google_1.googleConfigs,
31
+ ...runway_1.runwayConfigs,
32
+ ...kling_1.klingConfigs,
33
+ ...minimax_1.minimaxConfigs,
34
+ ...openai_1.openaiConfigs,
35
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const bytedanceConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=bytedance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bytedance.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/bytedance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA+DvE,CAAC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bytedanceConfigs = void 0;
4
+ exports.bytedanceConfigs = {
5
+ "bytedance-seedance-1.5-pro": {
6
+ modelId: "seedance-1-5-pro-251215",
7
+ type: ["text-to-video", "image-to-video"],
8
+ fields: {
9
+ prompt: { required: true }, // not required for image-to-video, but we can ignore that for simplicity
10
+ aspectRatio: {
11
+ allowedValues: ["21:9", "16:9", "9:16", "1:1", "4:3", "3:4"],
12
+ },
13
+ resolution: { allowedValues: ["480p", "720p", "1080p"] },
14
+ duration: { allowedValues: [4, 5, 6, 7, 8, 9, 10, 11, 12] }, // in seconds
15
+ audio: {},
16
+ // firstFrame: {},
17
+ // lastFrame: {},
18
+ // referenceVideo: {},
19
+ },
20
+ requestPerMin: 600,
21
+ concurrentRequests: 10,
22
+ cost: {
23
+ audio: {
24
+ per1KTokens: 0.0024,
25
+ },
26
+ noAudio: {
27
+ per1KTokens: 0.0012,
28
+ },
29
+ },
30
+ },
31
+ "bytedance-seedance-1.0-pro-fast": {
32
+ modelId: "seedance-1-0-pro-fast-251015",
33
+ type: ["text-to-video", "image-to-video"],
34
+ fields: {
35
+ prompt: { required: true },
36
+ aspectRatio: {
37
+ allowedValues: ["21:9", "16:9", "9:16", "1:1", "4:3", "3:4"],
38
+ },
39
+ resolution: { allowedValues: ["480p", "720p", "1080p"] },
40
+ duration: { allowedValues: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] }, // in seconds
41
+ },
42
+ requestPerMin: 600,
43
+ concurrentRequests: 10,
44
+ cost: {
45
+ per1KTokens: 0.001,
46
+ },
47
+ },
48
+ "bytedance-seedance-1.0-pro": {
49
+ modelId: "seedance-1-0-pro-250528",
50
+ type: ["text-to-video", "image-to-video"],
51
+ fields: {
52
+ prompt: { required: true },
53
+ aspectRatio: {
54
+ allowedValues: ["21:9", "16:9", "9:16", "1:1", "4:3", "3:4"],
55
+ },
56
+ resolution: { allowedValues: ["480p", "720p", "1080p"] },
57
+ duration: { allowedValues: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] }, // in seconds
58
+ },
59
+ requestPerMin: 600,
60
+ concurrentRequests: 10,
61
+ cost: {
62
+ per1KTokens: 0.0025,
63
+ },
64
+ },
65
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const googleConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=google.d.ts.map
@@ -0,0 +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;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA+GpE,CAAC"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.googleConfigs = void 0;
4
+ exports.googleConfigs = {
5
+ "google-veo-3.1": {
6
+ modelId: "veo-3.1-generate",
7
+ type: ["text-to-video", "image-to-video"],
8
+ fields: {
9
+ prompt: { required: true },
10
+ aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
11
+ resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
12
+ duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
13
+ imageUrl: {},
14
+ negative_prompt: {},
15
+ audio: {},
16
+ },
17
+ durationRules: {
18
+ 4: ["720p", "1080p"],
19
+ 6: ["720p", "1080p"],
20
+ 8: ["1080p"],
21
+ },
22
+ requestPerMin: 10,
23
+ cost: {
24
+ perSecond: 0.4,
25
+ },
26
+ },
27
+ "google-veo-3.1-fast": {
28
+ modelId: "veo-3.1-fast-generate",
29
+ type: ["text-to-video", "image-to-video"],
30
+ fields: {
31
+ prompt: { required: true },
32
+ aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
33
+ resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
34
+ duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
35
+ imageUrl: {},
36
+ negative_prompt: {},
37
+ audio: {},
38
+ },
39
+ durationRules: {
40
+ 4: ["720p", "1080p"],
41
+ 6: ["720p", "1080p"],
42
+ 8: ["1080p"],
43
+ },
44
+ requestPerMin: 10,
45
+ cost: {
46
+ perSecond: 0.15,
47
+ },
48
+ },
49
+ "google-veo-3": {
50
+ modelId: "veo-3.0-generate-001",
51
+ type: ["text-to-video", "image-to-video"],
52
+ fields: {
53
+ prompt: { required: true },
54
+ aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
55
+ resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
56
+ duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
57
+ imageUrl: {},
58
+ negative_prompt: {},
59
+ audio: {},
60
+ },
61
+ resolutionRules: {
62
+ "720p": ["16:9", "9:16"],
63
+ "1080p": ["16:9"],
64
+ },
65
+ // concurrentRequests: 1,
66
+ requestPerMin: 10,
67
+ cost: {
68
+ perSecond: 0.4,
69
+ },
70
+ },
71
+ "google-veo-3-fast": {
72
+ modelId: "veo-3.0-fast-generate-001",
73
+ type: ["text-to-video", "image-to-video"],
74
+ fields: {
75
+ prompt: { required: true },
76
+ aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
77
+ resolution: { allowedValues: ["720p", "1080p"] }, // 720p as default
78
+ duration: { allowedValues: [4, 6, 8] }, // in seconds, 8s as default
79
+ imageUrl: {},
80
+ negative_prompt: {},
81
+ audio: {},
82
+ },
83
+ resolutionRules: {
84
+ "720p": ["16:9", "9:16"],
85
+ "1080p": ["16:9"],
86
+ },
87
+ requestPerMin: 10,
88
+ cost: {
89
+ perSecond: 0.15,
90
+ },
91
+ },
92
+ "google-veo-2": {
93
+ modelId: "veo-2.0-generate-001",
94
+ type: ["text-to-video", "image-to-video"],
95
+ fields: {
96
+ prompt: { required: true },
97
+ aspectRatio: { allowedValues: ["16:9", "9:16"] }, // 16:9 as default
98
+ resolution: { allowedValues: ["720p"] }, // 720p as default
99
+ duration: { allowedValues: [5, 6, 8] }, // in seconds, 8s as default
100
+ imageUrl: {},
101
+ negative_prompt: {},
102
+ },
103
+ resolutionRules: {
104
+ "720p": ["16:9", "9:16"],
105
+ },
106
+ requestPerMin: 10,
107
+ cost: {
108
+ perSecond: 0.35,
109
+ },
110
+ },
111
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const klingConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=kling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kling.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/kling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAsB,YAAY,EAAE,MAAM,UAAU,CAAC;AAE5D,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAmInE,CAAC"}
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.klingConfigs = void 0;
4
+ exports.klingConfigs = {
5
+ // "kling-video-o1": {}
6
+ "kling-v2.6": {
7
+ modelId: "kling-v2-6",
8
+ type: ["text-to-video", "image-to-video"],
9
+ fields: {
10
+ prompt: { required: true },
11
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
12
+ duration: { allowedValues: [5, 10] },
13
+ mode: { allowedValues: ["std", "pro"] },
14
+ negative_prompt: {},
15
+ audio: {},
16
+ },
17
+ concurrentRequests: 3,
18
+ cost: {
19
+ audio: {
20
+ table: {
21
+ std: { 5: 0.21, 10: 0.42 },
22
+ pro: { 5: 0.35, 10: 0.7 },
23
+ },
24
+ },
25
+ noAudio: {
26
+ table: {
27
+ std: { 5: 0.7, 10: 1.4 },
28
+ pro: { 5: 0.84, 10: 1.68 },
29
+ },
30
+ },
31
+ },
32
+ },
33
+ "kling-v2.5-turbo": {
34
+ modelId: "kling-v2-5-turbo",
35
+ type: ["text-to-video", "image-to-video"],
36
+ fields: {
37
+ prompt: { required: true },
38
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
39
+ duration: { allowedValues: [5, 10] },
40
+ mode: { allowedValues: ["std", "pro"] },
41
+ negative_prompt: {},
42
+ },
43
+ concurrentRequests: 3,
44
+ cost: {
45
+ table: {
46
+ std: { 5: 0.21, 10: 0.42 },
47
+ pro: { 5: 0.35, 10: 0.7 },
48
+ },
49
+ },
50
+ },
51
+ "kling-v2-master": {
52
+ modelId: "kling-v2-master",
53
+ type: ["text-to-video", "image-to-video"],
54
+ fields: {
55
+ prompt: { required: true },
56
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
57
+ duration: { allowedValues: [5, 10] },
58
+ mode: { allowedValues: ["pro"] },
59
+ negative_prompt: {},
60
+ },
61
+ concurrentRequests: 3,
62
+ cost: {
63
+ table: {
64
+ pro: { 5: 1.4, 10: 2.8 },
65
+ },
66
+ },
67
+ },
68
+ "kling-v2.1": {
69
+ modelId: "kling-v2-1",
70
+ type: ["image-to-video"],
71
+ fields: {
72
+ prompt: { required: true },
73
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
74
+ duration: { allowedValues: [5, 10] },
75
+ mode: { allowedValues: ["std", "pro"] },
76
+ negative_prompt: {},
77
+ },
78
+ concurrentRequests: 3,
79
+ cost: {
80
+ table: {
81
+ std: { 5: 0.28, 10: 0.56 },
82
+ pro: { 5: 0.49, 10: 0.98 },
83
+ },
84
+ },
85
+ },
86
+ "kling-v2.1-master": {
87
+ modelId: "kling-v2-1-master",
88
+ type: ["text-to-video", "image-to-video"],
89
+ fields: {
90
+ prompt: { required: true },
91
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1"] },
92
+ duration: { allowedValues: [5, 10] },
93
+ mode: { allowedValues: ["pro"] },
94
+ negative_prompt: {},
95
+ },
96
+ concurrentRequests: 3,
97
+ cost: {
98
+ table: {
99
+ pro: { 5: 1.4, 10: 2.8 },
100
+ },
101
+ },
102
+ },
103
+ // --- Avatar ---
104
+ // Endpoint: POST /v1/videos/avatar/image2video
105
+ // Requires: image (avatar face URL) + sound_file (audio URL)
106
+ // Duration is determined by audio file length — NOT a fixed selection
107
+ // TODO: confirm exact per-second pricing from Kling dashboard
108
+ "kling-avatar": {
109
+ modelId: "kling-avatar",
110
+ type: ["avatar-video"],
111
+ fields: {
112
+ inputImageUrl: { required: true },
113
+ inputAudioUrl: {},
114
+ mode: { allowedValues: ["std", "pro"], default: "std" },
115
+ prompt: {},
116
+ },
117
+ concurrentRequests: 3,
118
+ cost: {
119
+ // per-second pricing by mode (confirm from Kling dashboard)
120
+ std: { perSecond: 0.014 },
121
+ pro: { perSecond: 0.028 },
122
+ },
123
+ avatar: {
124
+ audioDurationMin: 2,
125
+ audioDurationMax: 300,
126
+ ttsProvider: "elevenlabs",
127
+ },
128
+ },
129
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const minimaxConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=minimax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimax.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/minimax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAgErE,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.minimaxConfigs = void 0;
4
+ exports.minimaxConfigs = {
5
+ "minimax-hailuo-2.3-fast": {
6
+ modelId: "MiniMax-Hailuo-2.3-Fast",
7
+ type: ["text-to-video", "image-to-video"],
8
+ fields: {
9
+ prompt: { required: true },
10
+ resolution: { allowedValues: ["768P", "1080P"] }, // 768P as default
11
+ duration: { allowedValues: [6, 10] }, // in seconds, 6s as default
12
+ },
13
+ durationRules: {
14
+ 6: ["768P", "1080P"],
15
+ 10: ["768P"],
16
+ },
17
+ // parallelRequests: 1,
18
+ cost: {
19
+ table: {
20
+ "768P": { 6: 0.19, 10: 0.32 },
21
+ "1080P": { 6: 0.33 },
22
+ },
23
+ },
24
+ },
25
+ "minimax-hailuo-2.3": {
26
+ modelId: "MiniMax-Hailuo-2.3",
27
+ type: ["text-to-video"],
28
+ fields: {
29
+ prompt: { required: true },
30
+ resolution: { allowedValues: ["768P", "1080P"] }, // 768P as default
31
+ duration: { allowedValues: [6, 10] }, // in seconds, 6s as default
32
+ },
33
+ durationRules: {
34
+ 6: ["768P", "1080P"],
35
+ 10: ["768P"],
36
+ },
37
+ // parallelRequests: 1,
38
+ cost: {
39
+ table: {
40
+ "768P": { 6: 0.28, 10: 0.56 },
41
+ "1080P": { 6: 0.49 },
42
+ },
43
+ },
44
+ },
45
+ "minimax-hailuo-02": {
46
+ modelId: "MiniMax-Hailuo-02",
47
+ type: ["text-to-video"],
48
+ fields: {
49
+ prompt: { required: true },
50
+ resolution: { allowedValues: ["512P", "768P", "1080P"] }, // 768P as default
51
+ duration: { allowedValues: [6, 10] }, // in seconds, 6s as default
52
+ },
53
+ durationRules: {
54
+ 6: ["512P", "768P", "1080P"],
55
+ 10: ["512P", "768P"],
56
+ },
57
+ // parallelRequests: 1,
58
+ cost: {
59
+ table: {
60
+ "512P": { 6: 0.1, 10: 0.15 },
61
+ "768P": { 6: 0.28, 10: 0.56 },
62
+ "1080P": { 6: 0.49 },
63
+ },
64
+ },
65
+ },
66
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const openaiConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=openai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/openai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAiFpE,CAAC"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.openaiConfigs = void 0;
4
+ exports.openaiConfigs = {
5
+ // --- Video models ---
6
+ "openai-sora-2": {
7
+ modelId: "sora-2",
8
+ type: ["text-to-video", "image-to-video", "video-to-video"],
9
+ fields: {
10
+ prompt: { required: true },
11
+ duration: {
12
+ allowedValues: [4, 8, 12], // in seconds
13
+ default: 4,
14
+ },
15
+ dimensions: {
16
+ allowedValues: ["720x1280", "1280x720", "1024x1792", "1792x1024"],
17
+ default: "720x1280",
18
+ },
19
+ },
20
+ cost: {
21
+ table: {
22
+ "720x1280": { 4: 0.4, 8: 0.8, 12: 1.2 },
23
+ "1280x720": { 4: 0.4, 8: 0.8, 12: 1.2 },
24
+ "1024x1792": { 4: 0.4, 8: 0.8, 12: 1.2 },
25
+ "1792x1024": { 4: 0.4, 8: 0.8, 12: 1.2 },
26
+ },
27
+ },
28
+ requestPerMin: 25,
29
+ },
30
+ "openai-sora-2-pro": {
31
+ modelId: "sora-2-pro",
32
+ type: ["text-to-video", "image-to-video", "video-to-video"],
33
+ fields: {
34
+ prompt: { required: true },
35
+ duration: {
36
+ allowedValues: [4, 8, 12], // in seconds
37
+ default: 4,
38
+ },
39
+ dimensions: {
40
+ allowedValues: ["720x1280", "1280x720", "1024x1792", "1792x1024"],
41
+ default: "720x1280",
42
+ },
43
+ },
44
+ cost: {
45
+ table: {
46
+ "720x1280": { 4: 1.2, 8: 2.4, 12: 3.6 },
47
+ "1280x720": { 4: 1.2, 8: 2.4, 12: 3.6 },
48
+ "1024x1792": { 4: 1.2, 8: 2.4, 12: 3.6 },
49
+ "1792x1024": { 4: 1.2, 8: 2.4, 12: 3.6 },
50
+ },
51
+ },
52
+ requestPerMin: 10,
53
+ },
54
+ // --- Text models ---
55
+ "openai-gpt-4o-mini": {
56
+ modelId: "gpt-4o-mini",
57
+ type: ["text-to-text", "image-to-text"],
58
+ fields: {
59
+ prompt: { required: true },
60
+ maxOutputTokens: { default: 16384 },
61
+ contextWindowSize: { default: 128000 },
62
+ temperature: { default: 1.0 },
63
+ topP: { default: 1.0 },
64
+ frequencyPenalty: { default: 0.0 },
65
+ presencePenalty: { default: 0.0 },
66
+ },
67
+ },
68
+ "openai-gpt-5-mini": {
69
+ modelId: "gpt-5-mini",
70
+ type: ["text-to-text", "image-to-text"],
71
+ fields: {
72
+ prompt: { required: true },
73
+ maxOutputTokens: { default: 128000 },
74
+ contextWindowSize: { default: 400000 },
75
+ temperature: { default: 1.0 },
76
+ topP: { default: 1.0 },
77
+ frequencyPenalty: { default: 0.0 },
78
+ presencePenalty: { default: 0.0 },
79
+ reasoningEffort: { default: "medium" }, // 'minimal' | 'low' | 'medium' | 'high'
80
+ },
81
+ },
82
+ };
@@ -0,0 +1,4 @@
1
+ import { TAiGenModel } from "../enums";
2
+ import { IModelSchema } from "../types";
3
+ export declare const pixverseConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
4
+ //# sourceMappingURL=pixverse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixverse.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/pixverse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA0GtE,CAAC"}