magic-hour 0.83.1 → 0.85.0

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 (100) hide show
  1. package/README.md +37 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/helpers/download-error.d.ts +16 -0
  5. package/dist/helpers/download-error.js +15 -0
  6. package/dist/helpers/download.js +22 -2
  7. package/dist/resources/v1/ai-music-generator/index.d.ts +2 -0
  8. package/dist/resources/v1/ai-music-generator/index.js +5 -0
  9. package/dist/resources/v1/ai-music-generator/request-types.d.ts +32 -0
  10. package/dist/resources/v1/ai-music-generator/request-types.js +78 -0
  11. package/dist/resources/v1/ai-music-generator/resource-client.d.ts +31 -0
  12. package/dist/resources/v1/ai-music-generator/resource-client.js +78 -0
  13. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +10 -1
  14. package/dist/resources/v1/ai-talking-photo/request-types.js +4 -0
  15. package/dist/resources/v1/ai-ugc-ad/index.d.ts +2 -0
  16. package/dist/resources/v1/ai-ugc-ad/index.js +5 -0
  17. package/dist/resources/v1/ai-ugc-ad/request-types.d.ts +50 -0
  18. package/dist/resources/v1/ai-ugc-ad/request-types.js +86 -0
  19. package/dist/resources/v1/ai-ugc-ad/resource-client.d.ts +41 -0
  20. package/dist/resources/v1/ai-ugc-ad/resource-client.js +81 -0
  21. package/dist/resources/v1/ai-video-editor/resource-client.d.ts +2 -2
  22. package/dist/resources/v1/ai-video-editor/resource-client.js +2 -2
  23. package/dist/resources/v1/ai-video-translator/resource-client.d.ts +2 -2
  24. package/dist/resources/v1/ai-video-translator/resource-client.js +2 -2
  25. package/dist/resources/v1/ai-video-upscaler/index.d.ts +2 -0
  26. package/dist/resources/v1/ai-video-upscaler/index.js +5 -0
  27. package/dist/resources/v1/ai-video-upscaler/request-types.d.ts +43 -0
  28. package/dist/resources/v1/ai-video-upscaler/request-types.js +84 -0
  29. package/dist/resources/v1/ai-video-upscaler/resource-client.d.ts +60 -0
  30. package/dist/resources/v1/ai-video-upscaler/resource-client.js +103 -0
  31. package/dist/resources/v1/audio-projects/resource-client.d.ts +5 -0
  32. package/dist/resources/v1/audio-projects/resource-client.js +14 -2
  33. package/dist/resources/v1/audio-to-video/resource-client.d.ts +2 -2
  34. package/dist/resources/v1/audio-to-video/resource-client.js +2 -2
  35. package/dist/resources/v1/character-replace/resource-client.d.ts +2 -2
  36. package/dist/resources/v1/character-replace/resource-client.js +2 -2
  37. package/dist/resources/v1/face-detection/resource-client.d.ts +5 -0
  38. package/dist/resources/v1/face-detection/resource-client.js +17 -5
  39. package/dist/resources/v1/face-swap/resource-client.d.ts +2 -2
  40. package/dist/resources/v1/face-swap/resource-client.js +2 -2
  41. package/dist/resources/v1/image-projects/resource-client.d.ts +5 -0
  42. package/dist/resources/v1/image-projects/resource-client.js +14 -2
  43. package/dist/resources/v1/image-to-video/request-types.d.ts +6 -2
  44. package/dist/resources/v1/image-to-video/request-types.js +2 -0
  45. package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -2
  46. package/dist/resources/v1/image-to-video/resource-client.js +2 -2
  47. package/dist/resources/v1/index.d.ts +3 -0
  48. package/dist/resources/v1/index.js +4 -1
  49. package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -2
  50. package/dist/resources/v1/lip-sync/resource-client.js +2 -2
  51. package/dist/resources/v1/resource-client.d.ts +9 -0
  52. package/dist/resources/v1/resource-client.js +17 -0
  53. package/dist/resources/v1/text-to-video/request-types.d.ts +11 -3
  54. package/dist/resources/v1/text-to-video/request-types.js +2 -0
  55. package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -2
  56. package/dist/resources/v1/text-to-video/resource-client.js +2 -2
  57. package/dist/resources/v1/video-projects/resource-client.d.ts +5 -0
  58. package/dist/resources/v1/video-projects/resource-client.js +14 -2
  59. package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -2
  60. package/dist/resources/v1/video-to-video/resource-client.js +2 -2
  61. package/dist/types/index.d.ts +13 -0
  62. package/dist/types/v1-ai-music-generator-create-body-style.d.ts +34 -0
  63. package/dist/types/v1-ai-music-generator-create-body-style.js +77 -0
  64. package/dist/types/v1-ai-music-generator-create-body.d.ts +32 -0
  65. package/dist/types/v1-ai-music-generator-create-body.js +78 -0
  66. package/dist/types/v1-ai-music-generator-create-response.d.ts +29 -0
  67. package/dist/types/v1-ai-music-generator-create-response.js +71 -0
  68. package/dist/types/v1-ai-talking-photo-create-body-resolution-enum.d.ts +4 -0
  69. package/dist/types/v1-ai-talking-photo-create-body-resolution-enum.js +2 -0
  70. package/dist/types/v1-ai-talking-photo-create-body.d.ts +10 -1
  71. package/dist/types/v1-ai-talking-photo-create-body.js +4 -0
  72. package/dist/types/v1-ai-ugc-ad-create-body-assets.d.ts +29 -0
  73. package/dist/types/v1-ai-ugc-ad-create-body-assets.js +69 -0
  74. package/dist/types/v1-ai-ugc-ad-create-body-model-enum.d.ts +4 -0
  75. package/dist/types/v1-ai-ugc-ad-create-body-model-enum.js +2 -0
  76. package/dist/types/v1-ai-ugc-ad-create-body-resolution-enum.d.ts +4 -0
  77. package/dist/types/v1-ai-ugc-ad-create-body-resolution-enum.js +2 -0
  78. package/dist/types/v1-ai-ugc-ad-create-body.d.ts +50 -0
  79. package/dist/types/v1-ai-ugc-ad-create-body.js +86 -0
  80. package/dist/types/v1-ai-ugc-ad-create-response.d.ts +36 -0
  81. package/dist/types/v1-ai-ugc-ad-create-response.js +75 -0
  82. package/dist/types/v1-ai-video-upscaler-create-body-assets.d.ts +27 -0
  83. package/dist/types/v1-ai-video-upscaler-create-body-assets.js +67 -0
  84. package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.d.ts +4 -0
  85. package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.js +2 -0
  86. package/dist/types/v1-ai-video-upscaler-create-body.d.ts +43 -0
  87. package/dist/types/v1-ai-video-upscaler-create-body.js +84 -0
  88. package/dist/types/v1-ai-video-upscaler-create-response.d.ts +36 -0
  89. package/dist/types/v1-ai-video-upscaler-create-response.js +75 -0
  90. package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -1
  91. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +2 -1
  92. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -0
  93. package/dist/types/v1-image-to-video-create-body.d.ts +6 -2
  94. package/dist/types/v1-image-to-video-create-body.js +2 -0
  95. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +2 -1
  96. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +2 -1
  97. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -0
  98. package/dist/types/v1-text-to-video-create-body.d.ts +11 -3
  99. package/dist/types/v1-text-to-video-create-body.js +2 -0
  100. package/package.json +4 -3
@@ -151,11 +151,11 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
151
151
  *
152
152
  * **Key options**
153
153
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
154
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
154
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
155
155
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
156
156
  *
157
157
  * **Cost**
158
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
158
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
159
159
  *
160
160
  * For detailed examples, see the [product page](https://magichour.ai/products/face-swap).
161
161
  *
@@ -1,5 +1,6 @@
1
1
  import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
2
2
  import { types } from "../../../index.js";
3
+ import { DownloadError } from "../../../helpers/download-error.js";
3
4
  import { GenerateOptions } from "../../../helpers/generate-type.js";
4
5
  import * as requests from "./request-types.js";
5
6
  /**
@@ -11,6 +12,10 @@ export interface V1ImageProjectsGetResponseWithDownloads extends types.V1ImagePr
11
12
  * This field is only populated if `download_outputs` is True and the image project is complete.
12
13
  */
13
14
  downloadedPaths?: string[];
15
+ /**
16
+ * Local download failures. The completed project and remote download URLs remain available.
17
+ */
18
+ downloadErrors?: DownloadError["downloadErrors"];
14
19
  }
15
20
  export declare class ImageProjectsClient extends CoreResourceClient {
16
21
  constructor(coreClient: CoreClient, opts: ResourceClientOptions);
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.ImageProjectsClient = void 0;
24
24
  const make_api_request_js_1 = require("make-api-request-js");
25
25
  const download_1 = require("../../../helpers/download.js");
26
+ const download_error_1 = require("../../../helpers/download-error.js");
26
27
  const sleep_1 = require("../../../helpers/sleep.js");
27
28
  const logger_1 = require("../../../logger.js");
28
29
  const v1_image_projects_get_response_1 = require("../../../types/v1-image-projects-get-response.js");
@@ -70,9 +71,20 @@ class ImageProjectsClient extends make_api_request_js_1.CoreResourceClient {
70
71
  return Object.assign({}, apiResponse);
71
72
  }
72
73
  (0, logger_1.getLogger)().debug(`Downloading outputs for image project ${request.id} to ${downloadDirectory !== null && downloadDirectory !== void 0 ? downloadDirectory : "current directory"}`);
73
- const downloadedPaths = yield (0, download_1.downloadFiles)(apiResponse.downloads, downloadDirectory);
74
+ let downloadedPaths;
75
+ let downloadErrors = [];
76
+ try {
77
+ downloadedPaths = yield (0, download_1.downloadFiles)(apiResponse.downloads, downloadDirectory);
78
+ }
79
+ catch (error) {
80
+ if (!(error instanceof download_error_1.DownloadError)) {
81
+ throw error;
82
+ }
83
+ downloadedPaths = error.downloadedPaths;
84
+ downloadErrors = error.downloadErrors;
85
+ }
74
86
  (0, logger_1.getLogger)().info(`Downloaded outputs for image project ${request.id} to ${downloadedPaths}`);
75
- return Object.assign(Object.assign({}, apiResponse), { downloadedPaths });
87
+ return Object.assign(Object.assign(Object.assign({}, apiResponse), { downloadedPaths }), (downloadErrors.length > 0 ? { downloadErrors } : {}));
76
88
  });
77
89
  }
78
90
  /**
@@ -20,6 +20,7 @@ export type CreateRequest = {
20
20
  * * **`minimax-h3`**: Toggle-able: no additional credits for audio
21
21
  * * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
22
22
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
23
+ * * **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio
23
24
  * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
24
25
  * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
25
26
  * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
@@ -39,6 +40,7 @@ export type CreateRequest = {
39
40
  * * **`minimax-h3`**: any integer from 1 to 30
40
41
  * * **`seedance-1.5`**: any integer from 4 to 12
41
42
  * * **`seedance-2.0`**: any integer from 4 to 15
43
+ * * **`seedance-2.0-fast`**: any integer from 4 to 15
42
44
  * * **`seedance-2.0-mini`**: any integer from 4 to 15
43
45
  * * **`seedance-2.5`**: any integer from 4 to 30
44
46
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
@@ -65,6 +67,7 @@ export type CreateRequest = {
65
67
  * * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
66
68
  * * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
67
69
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
70
+ * * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
68
71
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
69
72
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
70
73
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
@@ -74,7 +77,7 @@ export type CreateRequest = {
74
77
  *
75
78
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
76
79
  */
77
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
80
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
78
81
  /**
79
82
  * Give your video a custom name for easy identification.
80
83
  */
@@ -89,6 +92,7 @@ export type CreateRequest = {
89
92
  * * **`minimax-h3`**: Supports 480p, 720p, 1080p.
90
93
  * * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
91
94
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
95
+ * * **`seedance-2.0-fast`**: Supports 480p, 720p.
92
96
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
93
97
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
94
98
  * * **`veo3.1`**: Supports 720p, 1080p.
@@ -119,7 +123,7 @@ export type External$CreateRequest = {
119
123
  audio?: boolean | undefined;
120
124
  end_seconds: number;
121
125
  height?: number | null | undefined;
122
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
126
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
123
127
  name?: string | undefined;
124
128
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
125
129
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -63,6 +63,7 @@ const SchemaIn$CreateRequest = z
63
63
  "seedance",
64
64
  "seedance-1.5",
65
65
  "seedance-2.0",
66
+ "seedance-2.0-fast",
66
67
  "seedance-2.0-mini",
67
68
  "seedance-2.5",
68
69
  "sora-2",
@@ -117,6 +118,7 @@ const SchemaOut$CreateRequest = z
117
118
  "seedance",
118
119
  "seedance-1.5",
119
120
  "seedance-2.0",
121
+ "seedance-2.0-fast",
120
122
  "seedance-2.0-mini",
121
123
  "seedance-2.5",
122
124
  "sora-2",
@@ -60,11 +60,11 @@ export declare class ImageToVideoClient extends CoreResourceClient {
60
60
  *
61
61
  * **Key options**
62
62
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
63
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
63
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
64
64
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
65
65
  *
66
66
  * **Cost**
67
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
67
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
68
68
  *
69
69
  * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
70
70
  *
@@ -96,11 +96,11 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
96
96
  *
97
97
  * **Key options**
98
98
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
99
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
99
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
100
100
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
101
101
  *
102
102
  * **Cost**
103
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
103
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
104
104
  *
105
105
  * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
106
106
  *
@@ -7,10 +7,13 @@ export * as aiImageEditor from "./ai-image-editor";
7
7
  export * as aiImageGenerator from "./ai-image-generator";
8
8
  export * as aiImageUpscaler from "./ai-image-upscaler";
9
9
  export * as aiMemeGenerator from "./ai-meme-generator";
10
+ export * as aiMusicGenerator from "./ai-music-generator";
10
11
  export * as aiQrCodeGenerator from "./ai-qr-code-generator";
11
12
  export * as aiTalkingPhoto from "./ai-talking-photo";
13
+ export * as aiUgcAd from "./ai-ugc-ad";
12
14
  export * as aiVideoEditor from "./ai-video-editor";
13
15
  export * as aiVideoTranslator from "./ai-video-translator";
16
+ export * as aiVideoUpscaler from "./ai-video-upscaler";
14
17
  export * as aiVoiceCloner from "./ai-voice-cloner";
15
18
  export * as aiVoiceGenerator from "./ai-voice-generator";
16
19
  export * as animation from "./animation";
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
36
+ exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoUpscaler = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiUgcAd = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMusicGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
37
37
  exports.account = __importStar(require("./account"));
38
38
  exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
39
39
  exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
@@ -43,10 +43,13 @@ exports.aiImageEditor = __importStar(require("./ai-image-editor"));
43
43
  exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
44
44
  exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
45
45
  exports.aiMemeGenerator = __importStar(require("./ai-meme-generator"));
46
+ exports.aiMusicGenerator = __importStar(require("./ai-music-generator"));
46
47
  exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
47
48
  exports.aiTalkingPhoto = __importStar(require("./ai-talking-photo"));
49
+ exports.aiUgcAd = __importStar(require("./ai-ugc-ad"));
48
50
  exports.aiVideoEditor = __importStar(require("./ai-video-editor"));
49
51
  exports.aiVideoTranslator = __importStar(require("./ai-video-translator"));
52
+ exports.aiVideoUpscaler = __importStar(require("./ai-video-upscaler"));
50
53
  exports.aiVoiceCloner = __importStar(require("./ai-voice-cloner"));
51
54
  exports.aiVoiceGenerator = __importStar(require("./ai-voice-generator"));
52
55
  exports.animation = __importStar(require("./animation"));
@@ -73,11 +73,11 @@ export declare class LipSyncClient extends CoreResourceClient {
73
73
  *
74
74
  * **Key options**
75
75
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
76
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
76
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
77
77
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
78
78
  *
79
79
  * **Cost**
80
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
80
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
81
81
  *
82
82
  * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
83
83
  *
@@ -110,11 +110,11 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
110
110
  *
111
111
  * **Key options**
112
112
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
113
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
113
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
114
114
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
115
  *
116
116
  * **Cost**
117
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
117
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
118
118
  *
119
119
  * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
120
120
  *
@@ -8,10 +8,13 @@ import { AiImageEditorClient } from "./ai-image-editor/index.js";
8
8
  import { AiImageGeneratorClient } from "./ai-image-generator/index.js";
9
9
  import { AiImageUpscalerClient } from "./ai-image-upscaler/index.js";
10
10
  import { AiMemeGeneratorClient } from "./ai-meme-generator/index.js";
11
+ import { AiMusicGeneratorClient } from "./ai-music-generator/index.js";
11
12
  import { AiQrCodeGeneratorClient } from "./ai-qr-code-generator/index.js";
12
13
  import { AiTalkingPhotoClient } from "./ai-talking-photo/index.js";
14
+ import { AiUgcAdClient } from "./ai-ugc-ad/index.js";
13
15
  import { AiVideoEditorClient } from "./ai-video-editor/index.js";
14
16
  import { AiVideoTranslatorClient } from "./ai-video-translator/index.js";
17
+ import { AiVideoUpscalerClient } from "./ai-video-upscaler/index.js";
15
18
  import { AiVoiceClonerClient } from "./ai-voice-cloner/index.js";
16
19
  import { AiVoiceGeneratorClient } from "./ai-voice-generator/index.js";
17
20
  import { AnimationClient } from "./animation/index.js";
@@ -35,6 +38,9 @@ import { TextToVideoClient } from "./text-to-video/index.js";
35
38
  import { VideoProjectsClient } from "./video-projects/index.js";
36
39
  import { VideoToVideoClient } from "./video-to-video/index.js";
37
40
  export declare class V1Client extends CoreResourceClient {
41
+ private _aiVideoUpscalerLazy?;
42
+ private _aiMusicGeneratorLazy?;
43
+ private _aiUgcAdLazy?;
38
44
  private _aiVideoTranslatorLazy?;
39
45
  private _savedItemsLazy?;
40
46
  private _accountLazy?;
@@ -106,4 +112,7 @@ export declare class V1Client extends CoreResourceClient {
106
112
  get account(): AccountClient;
107
113
  get savedItems(): SavedItemsClient;
108
114
  get aiVideoTranslator(): AiVideoTranslatorClient;
115
+ get aiUgcAd(): AiUgcAdClient;
116
+ get aiMusicGenerator(): AiMusicGeneratorClient;
117
+ get aiVideoUpscaler(): AiVideoUpscalerClient;
109
118
  }
@@ -15,10 +15,13 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
15
15
  this.aiImageGenerator;
16
16
  this.aiImageUpscaler;
17
17
  this.aiMemeGenerator;
18
+ this.aiMusicGenerator;
18
19
  this.aiQrCodeGenerator;
19
20
  this.aiTalkingPhoto;
21
+ this.aiUgcAd;
20
22
  this.aiVideoEditor;
21
23
  this.aiVideoTranslator;
24
+ this.aiVideoUpscaler;
22
25
  this.aiVoiceCloner;
23
26
  this.aiVoiceGenerator;
24
27
  this.animation;
@@ -210,5 +213,19 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
210
213
  return ((_a = this._aiVideoTranslatorLazy) !== null && _a !== void 0 ? _a : (this._aiVideoTranslatorLazy =
211
214
  new (require("./ai-video-translator").AiVideoTranslatorClient)(this._client, this._opts)));
212
215
  }
216
+ get aiUgcAd() {
217
+ var _a;
218
+ return ((_a = this._aiUgcAdLazy) !== null && _a !== void 0 ? _a : (this._aiUgcAdLazy = new (require("./ai-ugc-ad").AiUgcAdClient)(this._client, this._opts)));
219
+ }
220
+ get aiMusicGenerator() {
221
+ var _a;
222
+ return ((_a = this._aiMusicGeneratorLazy) !== null && _a !== void 0 ? _a : (this._aiMusicGeneratorLazy =
223
+ new (require("./ai-music-generator").AiMusicGeneratorClient)(this._client, this._opts)));
224
+ }
225
+ get aiVideoUpscaler() {
226
+ var _a;
227
+ return ((_a = this._aiVideoUpscalerLazy) !== null && _a !== void 0 ? _a : (this._aiVideoUpscalerLazy =
228
+ new (require("./ai-video-upscaler").AiVideoUpscalerClient)(this._client, this._opts)));
229
+ }
213
230
  }
214
231
  exports.V1Client = V1Client;
@@ -6,7 +6,7 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
6
6
  */
7
7
  export type CreateRequest = {
8
8
  /**
9
- * Determines the aspect ratio of the output video.
9
+ * Provide `aspect_ratio` to set the video’s aspect ratio. Determines the aspect ratio of the output video.
10
10
  *
11
11
  * * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
12
12
  * * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
@@ -15,6 +15,7 @@ export type CreateRequest = {
15
15
  * * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
16
16
  * * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
17
17
  * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
18
+ * * **`seedance-2.0-fast`**: Supports 9:16, 16:9, 1:1.
18
19
  * * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
19
20
  * * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
20
21
  * * **`veo3.1`**: Supports 9:16, 16:9.
@@ -35,6 +36,7 @@ export type CreateRequest = {
35
36
  * * **`minimax-h3`**: Toggle-able: no additional credits for audio
36
37
  * * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
37
38
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
39
+ * * **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio
38
40
  * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
39
41
  * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
40
42
  * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
@@ -54,6 +56,7 @@ export type CreateRequest = {
54
56
  * * **`minimax-h3`**: any integer from 1 to 30
55
57
  * * **`seedance-1.5`**: any integer from 4 to 12
56
58
  * * **`seedance-2.0`**: any integer from 4 to 15
59
+ * * **`seedance-2.0-fast`**: any integer from 4 to 15
57
60
  * * **`seedance-2.0-mini`**: any integer from 4 to 15
58
61
  * * **`seedance-2.5`**: any integer from 4 to 30
59
62
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
@@ -74,6 +77,7 @@ export type CreateRequest = {
74
77
  * * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
75
78
  * * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
76
79
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
80
+ * * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
77
81
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
78
82
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
79
83
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
@@ -83,7 +87,7 @@ export type CreateRequest = {
83
87
  *
84
88
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
85
89
  */
86
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
90
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
87
91
  /**
88
92
  * Give your video a custom name for easy identification.
89
93
  */
@@ -96,11 +100,14 @@ export type CreateRequest = {
96
100
  * Reference media for video generation. Name references without @ and refer to them as @name in style.prompt. Maximum 10 references total.
97
101
  *
98
102
  * Supported models and reference media:
103
+ * * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.
99
104
  * * **`kling-3.0`**: Supports images, videos.
100
105
  * * **`minimax-h3`**: Supports images, videos, audio.
101
106
  * * **`seedance-2.0`**: Supports images, videos, audio.
107
+ * * **`seedance-2.0-fast`**: Supports images, videos, audio.
102
108
  * * **`seedance-2.0-mini`**: Supports images, videos, audio.
103
109
  * * **`seedance-2.5`**: Supports images, videos, audio.
110
+ * * **`veo3.1`**: Supports images. Up to 3 references. Requires `end_seconds` of 8.
104
111
  * * **`wan-3.0`**: Supports images, videos, audio.
105
112
  */
106
113
  references?: V1TextToVideoCreateBodyReferencesItem[] | undefined;
@@ -114,6 +121,7 @@ export type CreateRequest = {
114
121
  * * **`minimax-h3`**: Supports 480p, 720p, 1080p.
115
122
  * * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
116
123
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
124
+ * * **`seedance-2.0-fast`**: Supports 480p, 720p.
117
125
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
118
126
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
119
127
  * * **`veo3.1`**: Supports 720p, 1080p.
@@ -134,7 +142,7 @@ export type External$CreateRequest = {
134
142
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
135
143
  audio?: boolean | undefined;
136
144
  end_seconds: number;
137
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
145
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
138
146
  name?: string | undefined;
139
147
  orientation?: ("landscape" | "portrait" | "square") | undefined;
140
148
  references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
@@ -62,6 +62,7 @@ const SchemaIn$CreateRequest = z
62
62
  "seedance",
63
63
  "seedance-1.5",
64
64
  "seedance-2.0",
65
+ "seedance-2.0-fast",
65
66
  "seedance-2.0-mini",
66
67
  "seedance-2.5",
67
68
  "sora-2",
@@ -118,6 +119,7 @@ const SchemaOut$CreateRequest = z
118
119
  "seedance",
119
120
  "seedance-1.5",
120
121
  "seedance-2.0",
122
+ "seedance-2.0-fast",
121
123
  "seedance-2.0-mini",
122
124
  "seedance-2.5",
123
125
  "sora-2",
@@ -52,11 +52,11 @@ export declare class TextToVideoClient extends CoreResourceClient {
52
52
  *
53
53
  * **Key options**
54
54
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
55
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
55
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
56
56
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
57
57
  *
58
58
  * **Cost**
59
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
59
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
60
60
  *
61
61
  * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
62
62
  *
@@ -89,11 +89,11 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
89
89
  *
90
90
  * **Key options**
91
91
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
92
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
92
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
93
93
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
94
94
  *
95
95
  * **Cost**
96
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
96
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
97
97
  *
98
98
  * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
99
99
  *
@@ -1,5 +1,6 @@
1
1
  import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
2
2
  import { types } from "../../../index.js";
3
+ import { DownloadError } from "../../../helpers/download-error.js";
3
4
  import { GenerateOptions } from "../../../helpers/generate-type.js";
4
5
  import * as requests from "./request-types.js";
5
6
  /**
@@ -11,6 +12,10 @@ export interface V1VideoProjectsGetResponseWithDownloads extends types.V1VideoPr
11
12
  * This field is only populated if `download_outputs` is True and the video project is complete.
12
13
  */
13
14
  downloadedPaths?: string[];
15
+ /**
16
+ * Local download failures. The completed project and remote download URLs remain available.
17
+ */
18
+ downloadErrors?: DownloadError["downloadErrors"];
14
19
  }
15
20
  export declare class VideoProjectsClient extends CoreResourceClient {
16
21
  constructor(coreClient: CoreClient, opts: ResourceClientOptions);
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.VideoProjectsClient = void 0;
24
24
  const make_api_request_js_1 = require("make-api-request-js");
25
25
  const download_1 = require("../../../helpers/download.js");
26
+ const download_error_1 = require("../../../helpers/download-error.js");
26
27
  const sleep_1 = require("../../../helpers/sleep.js");
27
28
  const logger_1 = require("../../../logger.js");
28
29
  const v1_video_projects_get_response_1 = require("../../../types/v1-video-projects-get-response.js");
@@ -70,9 +71,20 @@ class VideoProjectsClient extends make_api_request_js_1.CoreResourceClient {
70
71
  return Object.assign({}, apiResponse);
71
72
  }
72
73
  (0, logger_1.getLogger)().debug(`Downloading outputs for video project ${request.id} to ${downloadDirectory !== null && downloadDirectory !== void 0 ? downloadDirectory : "current directory"}`);
73
- const downloadedPaths = yield (0, download_1.downloadFiles)(apiResponse.downloads, downloadDirectory);
74
+ let downloadedPaths;
75
+ let downloadErrors = [];
76
+ try {
77
+ downloadedPaths = yield (0, download_1.downloadFiles)(apiResponse.downloads, downloadDirectory);
78
+ }
79
+ catch (error) {
80
+ if (!(error instanceof download_error_1.DownloadError)) {
81
+ throw error;
82
+ }
83
+ downloadedPaths = error.downloadedPaths;
84
+ downloadErrors = error.downloadErrors;
85
+ }
74
86
  (0, logger_1.getLogger)().info(`Downloaded outputs for video project ${request.id} to ${downloadedPaths}`);
75
- return Object.assign(Object.assign({}, apiResponse), { downloadedPaths });
87
+ return Object.assign(Object.assign(Object.assign({}, apiResponse), { downloadedPaths }), (downloadErrors.length > 0 ? { downloadErrors } : {}));
76
88
  });
77
89
  }
78
90
  /**
@@ -68,11 +68,11 @@ export declare class VideoToVideoClient extends CoreResourceClient {
68
68
  *
69
69
  * **Key options**
70
70
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
71
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
71
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
72
72
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
73
73
  *
74
74
  * **Cost**
75
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
75
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
76
76
  *
77
77
  * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
78
78
  *
@@ -110,11 +110,11 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
110
110
  *
111
111
  * **Key options**
112
112
  * - Inputs: usually a file, sometimes a YouTube link, depending on project type
113
- * - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
113
+ * - Resolution: output size and plan requirements vary by workflow and model. Some workflows derive output size from the input video.
114
114
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
115
  *
116
116
  * **Cost**
117
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
117
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
118
118
  *
119
119
  * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
120
120
  *
@@ -48,14 +48,23 @@ export { V1AiMemeGeneratorCreateBody } from "./v1-ai-meme-generator-create-body"
48
48
  export { V1AiMemeGeneratorCreateBodyStyle } from "./v1-ai-meme-generator-create-body-style";
49
49
  export { V1AiMemeGeneratorCreateBodyStyleTemplateEnum } from "./v1-ai-meme-generator-create-body-style-template-enum";
50
50
  export { V1AiMemeGeneratorCreateResponse } from "./v1-ai-meme-generator-create-response";
51
+ export { V1AiMusicGeneratorCreateBody } from "./v1-ai-music-generator-create-body";
52
+ export { V1AiMusicGeneratorCreateBodyStyle } from "./v1-ai-music-generator-create-body-style";
53
+ export { V1AiMusicGeneratorCreateResponse } from "./v1-ai-music-generator-create-response";
51
54
  export { V1AiQrCodeGeneratorCreateBody } from "./v1-ai-qr-code-generator-create-body";
52
55
  export { V1AiQrCodeGeneratorCreateBodyStyle } from "./v1-ai-qr-code-generator-create-body-style";
53
56
  export { V1AiQrCodeGeneratorCreateResponse } from "./v1-ai-qr-code-generator-create-response";
54
57
  export { V1AiTalkingPhotoCreateBody } from "./v1-ai-talking-photo-create-body";
55
58
  export { V1AiTalkingPhotoCreateBodyAssets } from "./v1-ai-talking-photo-create-body-assets";
59
+ export { V1AiTalkingPhotoCreateBodyResolutionEnum } from "./v1-ai-talking-photo-create-body-resolution-enum";
56
60
  export { V1AiTalkingPhotoCreateBodyStyle } from "./v1-ai-talking-photo-create-body-style";
57
61
  export { V1AiTalkingPhotoCreateBodyStyleGenerationModeEnum } from "./v1-ai-talking-photo-create-body-style-generation-mode-enum";
58
62
  export { V1AiTalkingPhotoCreateResponse } from "./v1-ai-talking-photo-create-response";
63
+ export { V1AiUgcAdCreateBody } from "./v1-ai-ugc-ad-create-body";
64
+ export { V1AiUgcAdCreateBodyAssets } from "./v1-ai-ugc-ad-create-body-assets";
65
+ export { V1AiUgcAdCreateBodyModelEnum } from "./v1-ai-ugc-ad-create-body-model-enum";
66
+ export { V1AiUgcAdCreateBodyResolutionEnum } from "./v1-ai-ugc-ad-create-body-resolution-enum";
67
+ export { V1AiUgcAdCreateResponse } from "./v1-ai-ugc-ad-create-response";
59
68
  export { V1AiVideoEditorCreateBody } from "./v1-ai-video-editor-create-body";
60
69
  export { V1AiVideoEditorCreateBodyAssets } from "./v1-ai-video-editor-create-body-assets";
61
70
  export { V1AiVideoEditorCreateBodyModelEnum } from "./v1-ai-video-editor-create-body-model-enum";
@@ -67,6 +76,10 @@ export { V1AiVideoTranslatorCreateBodyAssets } from "./v1-ai-video-translator-cr
67
76
  export { V1AiVideoTranslatorCreateBodyResolutionEnum } from "./v1-ai-video-translator-create-body-resolution-enum";
68
77
  export { V1AiVideoTranslatorCreateBodyTargetLanguageEnum } from "./v1-ai-video-translator-create-body-target-language-enum";
69
78
  export { V1AiVideoTranslatorCreateResponse } from "./v1-ai-video-translator-create-response";
79
+ export { V1AiVideoUpscalerCreateBody } from "./v1-ai-video-upscaler-create-body";
80
+ export { V1AiVideoUpscalerCreateBodyAssets } from "./v1-ai-video-upscaler-create-body-assets";
81
+ export { V1AiVideoUpscalerCreateBodyResolutionEnum } from "./v1-ai-video-upscaler-create-body-resolution-enum";
82
+ export { V1AiVideoUpscalerCreateResponse } from "./v1-ai-video-upscaler-create-response";
70
83
  export { V1AiVoiceClonerCreateBody } from "./v1-ai-voice-cloner-create-body";
71
84
  export { V1AiVoiceClonerCreateBodyAssets } from "./v1-ai-voice-cloner-create-body-assets";
72
85
  export { V1AiVoiceClonerCreateBodyStyle } from "./v1-ai-voice-cloner-create-body-style";
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * V1AiMusicGeneratorCreateBodyStyle
4
+ */
5
+ export type V1AiMusicGeneratorCreateBodyStyle = {
6
+ /**
7
+ * Generate music without vocals. When true, lyrics is ignored.
8
+ */
9
+ instrumental?: boolean | undefined;
10
+ /**
11
+ * Custom lyrics. Omit or leave blank for AI-generated lyrics when instrumental is false.
12
+ */
13
+ lyrics?: string | undefined;
14
+ /**
15
+ * Describe the song, including genre, mood, and instruments.
16
+ */
17
+ prompt: string;
18
+ [additionalProperty: string]: (boolean | undefined) | (string | undefined) | string | any | null | undefined;
19
+ };
20
+ /**
21
+ * @internal
22
+ * V1AiMusicGeneratorCreateBodyStyle without any key transformation, this is what
23
+ * we expect to come in as network data
24
+ */
25
+ export type External$V1AiMusicGeneratorCreateBodyStyle = {
26
+ instrumental?: boolean | undefined;
27
+ lyrics?: string | undefined;
28
+ prompt: string;
29
+ [additionalProperty: string]: (boolean | undefined) | (string | undefined) | string | External$V1AiMusicGeneratorCreateBodyStyle | null | undefined;
30
+ };
31
+ export declare const Schemas$V1AiMusicGeneratorCreateBodyStyle: {
32
+ in: z.ZodType<V1AiMusicGeneratorCreateBodyStyle, z.ZodTypeDef, unknown>;
33
+ out: z.ZodType<External$V1AiMusicGeneratorCreateBodyStyle, z.ZodTypeDef, V1AiMusicGeneratorCreateBodyStyle>;
34
+ };