magic-hour 0.44.0 → 0.45.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 (123) hide show
  1. package/dist/environment.d.ts +1 -1
  2. package/dist/environment.js +1 -1
  3. package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
  4. package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
  5. package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
  6. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
  7. package/dist/resources/v1/ai-image-editor/request-types.d.ts +1 -1
  8. package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
  9. package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
  10. package/dist/resources/v1/ai-image-generator/request-types.d.ts +1 -1
  11. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +1 -1
  12. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  13. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  14. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
  15. package/dist/resources/v1/ai-voice-cloner/request-types.d.ts +1 -1
  16. package/dist/resources/v1/ai-voice-generator/request-types.d.ts +1 -1
  17. package/dist/resources/v1/animation/request-types.d.ts +1 -1
  18. package/dist/resources/v1/audio-projects/resource-client.d.ts +9 -10
  19. package/dist/resources/v1/audio-projects/resource-client.js +8 -9
  20. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  21. package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
  22. package/dist/resources/v1/face-swap/resource-client.d.ts +20 -2
  23. package/dist/resources/v1/face-swap/resource-client.js +20 -2
  24. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  25. package/dist/resources/v1/files/resource-client.d.ts +13 -3
  26. package/dist/resources/v1/files/resource-client.js +54 -3
  27. package/dist/resources/v1/files/resource-client.test.js +45 -0
  28. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  29. package/dist/resources/v1/image-projects/resource-client.d.ts +9 -10
  30. package/dist/resources/v1/image-projects/resource-client.js +8 -9
  31. package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
  32. package/dist/resources/v1/image-to-video/resource-client.d.ts +20 -2
  33. package/dist/resources/v1/image-to-video/resource-client.js +20 -2
  34. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
  35. package/dist/resources/v1/lip-sync/resource-client.d.ts +20 -2
  36. package/dist/resources/v1/lip-sync/resource-client.js +20 -2
  37. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  38. package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
  39. package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
  40. package/dist/resources/v1/text-to-video/request-types.d.ts +1 -1
  41. package/dist/resources/v1/text-to-video/resource-client.d.ts +20 -2
  42. package/dist/resources/v1/text-to-video/resource-client.js +20 -2
  43. package/dist/resources/v1/video-projects/resource-client.d.ts +9 -10
  44. package/dist/resources/v1/video-projects/resource-client.js +8 -9
  45. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
  46. package/dist/resources/v1/video-to-video/resource-client.d.ts +20 -2
  47. package/dist/resources/v1/video-to-video/resource-client.js +20 -2
  48. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +6 -2
  49. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +9 -5
  50. package/dist/types/v1-ai-clothes-changer-create-body-assets.js +6 -2
  51. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  52. package/dist/types/v1-ai-clothes-changer-create-response.d.ts +1 -1
  53. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +1 -1
  54. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  55. package/dist/types/v1-ai-face-editor-create-response.d.ts +1 -1
  56. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  57. package/dist/types/v1-ai-gif-generator-create-response.d.ts +1 -1
  58. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +1 -1
  59. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  60. package/dist/types/v1-ai-headshot-generator-create-response.d.ts +1 -1
  61. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +2 -2
  62. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  63. package/dist/types/v1-ai-image-editor-create-response.d.ts +1 -1
  64. package/dist/types/v1-ai-image-generator-create-body.d.ts +1 -1
  65. package/dist/types/v1-ai-image-generator-create-response.d.ts +1 -1
  66. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +1 -1
  67. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +1 -1
  68. package/dist/types/v1-ai-image-upscaler-create-response.d.ts +1 -1
  69. package/dist/types/v1-ai-meme-generator-create-response.d.ts +1 -1
  70. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +1 -1
  71. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  72. package/dist/types/v1-ai-photo-editor-create-response.d.ts +1 -1
  73. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  74. package/dist/types/v1-ai-qr-code-generator-create-response.d.ts +1 -1
  75. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +2 -2
  76. package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
  77. package/dist/types/v1-ai-talking-photo-create-response.d.ts +1 -1
  78. package/dist/types/v1-ai-voice-cloner-create-body-assets.d.ts +1 -1
  79. package/dist/types/v1-ai-voice-cloner-create-body.d.ts +1 -1
  80. package/dist/types/v1-ai-voice-cloner-create-response.d.ts +1 -1
  81. package/dist/types/v1-ai-voice-generator-create-body.d.ts +1 -1
  82. package/dist/types/v1-ai-voice-generator-create-response.d.ts +1 -1
  83. package/dist/types/v1-animation-create-body-assets.d.ts +2 -2
  84. package/dist/types/v1-animation-create-body.d.ts +1 -1
  85. package/dist/types/v1-animation-create-response.d.ts +1 -1
  86. package/dist/types/v1-audio-projects-get-response.d.ts +2 -2
  87. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +1 -1
  88. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  89. package/dist/types/v1-auto-subtitle-generator-create-response.d.ts +1 -1
  90. package/dist/types/v1-face-detection-create-body-assets.d.ts +1 -1
  91. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +1 -1
  92. package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  93. package/dist/types/v1-face-swap-create-body-assets-video-source-enum.d.ts +1 -1
  94. package/dist/types/v1-face-swap-create-body-assets.d.ts +10 -7
  95. package/dist/types/v1-face-swap-create-body.d.ts +3 -3
  96. package/dist/types/v1-face-swap-create-response.d.ts +1 -1
  97. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +1 -1
  98. package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  99. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +5 -5
  100. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  101. package/dist/types/v1-face-swap-photo-create-response.d.ts +1 -1
  102. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +2 -2
  103. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  104. package/dist/types/v1-image-background-remover-create-response.d.ts +1 -1
  105. package/dist/types/v1-image-projects-get-response.d.ts +2 -2
  106. package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -1
  107. package/dist/types/v1-image-to-video-create-body.d.ts +1 -1
  108. package/dist/types/v1-image-to-video-create-response.d.ts +1 -1
  109. package/dist/types/v1-lip-sync-create-body-assets-video-source-enum.d.ts +1 -1
  110. package/dist/types/v1-lip-sync-create-body-assets.d.ts +7 -4
  111. package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
  112. package/dist/types/v1-lip-sync-create-response.d.ts +1 -1
  113. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +1 -1
  114. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  115. package/dist/types/v1-photo-colorizer-create-response.d.ts +1 -1
  116. package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
  117. package/dist/types/v1-text-to-video-create-response.d.ts +1 -1
  118. package/dist/types/v1-video-projects-get-response.d.ts +4 -4
  119. package/dist/types/v1-video-to-video-create-body-assets-video-source-enum.d.ts +1 -1
  120. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -3
  121. package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
  122. package/dist/types/v1-video-to-video-create-response.d.ts +1 -1
  123. package/package.json +2 -2
@@ -45,10 +45,28 @@ export declare class ImageToVideoClient extends CoreResourceClient {
45
45
  /**
46
46
  * Image-to-Video
47
47
  *
48
- * Create a Image To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
48
+ * **What this API does**
49
49
  *
50
- * Get more information about this mode at our [product page](https://magichour.ai/products/image-to-video).
50
+ * Create the same Image To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
51
51
  *
52
+ * **Good for**
53
+ * - Automation and batch processing
54
+ * - Adding image to video into apps, pipelines, or tools
55
+ *
56
+ * **How it works (3 steps)**
57
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
58
+ * 2) Send a request to create a image to video job with the basic fields.
59
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
60
+ *
61
+ * **Key options**
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
64
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
65
+ *
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.
68
+ *
69
+ * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
52
70
  *
53
71
  * POST /v1/image-to-video
54
72
  */
@@ -81,10 +81,28 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
81
81
  /**
82
82
  * Image-to-Video
83
83
  *
84
- * Create a Image To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
84
+ * **What this API does**
85
85
  *
86
- * Get more information about this mode at our [product page](https://magichour.ai/products/image-to-video).
86
+ * Create the same Image To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
87
87
  *
88
+ * **Good for**
89
+ * - Automation and batch processing
90
+ * - Adding image to video into apps, pipelines, or tools
91
+ *
92
+ * **How it works (3 steps)**
93
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
94
+ * 2) Send a request to create a image to video job with the basic fields.
95
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
96
+ *
97
+ * **Key options**
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
100
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
101
+ *
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.
104
+ *
105
+ * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
88
106
  *
89
107
  * POST /v1/image-to-video
90
108
  */
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1LipSyncCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
13
+ * End time of your clip (seconds). Must be greater than start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -28,11 +28,11 @@ export type CreateRequest = {
28
28
  */
29
29
  maxFpsLimit?: number | undefined;
30
30
  /**
31
- * The name of video. This value is mainly used for your own identification of the video.
31
+ * Give your video a custom name for easy identification.
32
32
  */
33
33
  name?: string | undefined;
34
34
  /**
35
- * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
35
+ * Start time of your clip (seconds). Must be ≥ 0.
36
36
  */
37
37
  startSeconds: number;
38
38
  /**
@@ -58,10 +58,28 @@ export declare class LipSyncClient extends CoreResourceClient {
58
58
  /**
59
59
  * Lip Sync
60
60
  *
61
- * Create a Lip Sync video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
61
+ * **What this API does**
62
62
  *
63
- * Get more information about this mode at our [product page](https://magichour.ai/products/lip-sync).
63
+ * Create the same Lip Sync you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
64
64
  *
65
+ * **Good for**
66
+ * - Automation and batch processing
67
+ * - Adding lip sync into apps, pipelines, or tools
68
+ *
69
+ * **How it works (3 steps)**
70
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
71
+ * 2) Send a request to create a lip sync job with the basic fields.
72
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
73
+ *
74
+ * **Key options**
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
77
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
78
+ *
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.
81
+ *
82
+ * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
65
83
  *
66
84
  * POST /v1/lip-sync
67
85
  */
@@ -95,10 +95,28 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
95
95
  /**
96
96
  * Lip Sync
97
97
  *
98
- * Create a Lip Sync video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
98
+ * **What this API does**
99
99
  *
100
- * Get more information about this mode at our [product page](https://magichour.ai/products/lip-sync).
100
+ * Create the same Lip Sync you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
101
101
  *
102
+ * **Good for**
103
+ * - Automation and batch processing
104
+ * - Adding lip sync into apps, pipelines, or tools
105
+ *
106
+ * **How it works (3 steps)**
107
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
108
+ * 2) Send a request to create a lip sync job with the basic fields.
109
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
110
+ *
111
+ * **Key options**
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
114
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
+ *
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.
118
+ *
119
+ * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
102
120
  *
103
121
  * POST /v1/lip-sync
104
122
  */
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1PhotoColorizerCreateBodyAssets;
11
11
  /**
12
- * The name of image. This value is mainly used for your own identification of the image.
12
+ * Give your image a custom name for easy identification.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -43,7 +43,7 @@ export declare class PhotoColorizerClient extends CoreResourceClient {
43
43
  /**
44
44
  * Photo Colorizer
45
45
  *
46
- * Colorize image. Each image costs 5 credits.
46
+ * Colorize image. Each image costs 10 credits.
47
47
  *
48
48
  * POST /v1/photo-colorizer
49
49
  */
@@ -79,7 +79,7 @@ class PhotoColorizerClient extends make_api_request_js_1.CoreResourceClient {
79
79
  /**
80
80
  * Photo Colorizer
81
81
  *
82
- * Colorize image. Each image costs 5 credits.
82
+ * Colorize image. Each image costs 10 credits.
83
83
  *
84
84
  * POST /v1/photo-colorizer
85
85
  */
@@ -13,7 +13,7 @@ export type CreateRequest = {
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
16
- * The name of video. This value is mainly used for your own identification of the video.
16
+ * Give your video a custom name for easy identification.
17
17
  */
18
18
  name?: string | undefined;
19
19
  /**
@@ -37,10 +37,28 @@ export declare class TextToVideoClient extends CoreResourceClient {
37
37
  /**
38
38
  * Text-to-Video
39
39
  *
40
- * Create a Text To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
40
+ * **What this API does**
41
41
  *
42
- * Get more information about this mode at our [product page](https://magichour.ai/products/text-to-video).
42
+ * Create the same Text To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
43
43
  *
44
+ * **Good for**
45
+ * - Automation and batch processing
46
+ * - Adding text to video into apps, pipelines, or tools
47
+ *
48
+ * **How it works (3 steps)**
49
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
50
+ * 2) Send a request to create a text to video job with the basic fields.
51
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
52
+ *
53
+ * **Key options**
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
56
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
57
+ *
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.
60
+ *
61
+ * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
44
62
  *
45
63
  * POST /v1/text-to-video
46
64
  */
@@ -74,10 +74,28 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
74
74
  /**
75
75
  * Text-to-Video
76
76
  *
77
- * Create a Text To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
77
+ * **What this API does**
78
78
  *
79
- * Get more information about this mode at our [product page](https://magichour.ai/products/text-to-video).
79
+ * Create the same Text To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
80
80
  *
81
+ * **Good for**
82
+ * - Automation and batch processing
83
+ * - Adding text to video into apps, pipelines, or tools
84
+ *
85
+ * **How it works (3 steps)**
86
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
87
+ * 2) Send a request to create a text to video job with the basic fields.
88
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
89
+ *
90
+ * **Key options**
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
93
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
94
+ *
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.
97
+ *
98
+ * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
81
99
  *
82
100
  * POST /v1/text-to-video
83
101
  */
@@ -36,16 +36,15 @@ export declare class VideoProjectsClient extends CoreResourceClient {
36
36
  /**
37
37
  * Get video details
38
38
  *
39
- * Get the details of a video project. The `downloads` field will be empty unless the video was successfully rendered.
40
- *
41
- * The video can be one of the following status
42
- * - `draft` - not currently used
43
- * - `queued` - the job is queued and waiting for a GPU
44
- * - `rendering` - the generation is in progress
45
- * - `complete` - the video is successful created
46
- * - `error` - an error occurred during rendering
47
- * - `canceled` - video render is canceled by the user
48
- *
39
+ * Check the progress of a video project. The `downloads` field is populated after a successful render.
40
+ *
41
+ * **Statuses**
42
+ * - `queued` — waiting to start
43
+ * - `rendering` — in progress
44
+ * - `complete` — ready; see `downloads`
45
+ * - `error` — a failure occurred (see `error`)
46
+ * - `canceled` — user canceled
47
+ * - `draft` — not used
49
48
  *
50
49
  * GET /v1/video-projects/{id}
51
50
  */
@@ -93,16 +93,15 @@ class VideoProjectsClient extends make_api_request_js_1.CoreResourceClient {
93
93
  /**
94
94
  * Get video details
95
95
  *
96
- * Get the details of a video project. The `downloads` field will be empty unless the video was successfully rendered.
97
- *
98
- * The video can be one of the following status
99
- * - `draft` - not currently used
100
- * - `queued` - the job is queued and waiting for a GPU
101
- * - `rendering` - the generation is in progress
102
- * - `complete` - the video is successful created
103
- * - `error` - an error occurred during rendering
104
- * - `canceled` - video render is canceled by the user
96
+ * Check the progress of a video project. The `downloads` field is populated after a successful render.
105
97
  *
98
+ * **Statuses**
99
+ * - `queued` — waiting to start
100
+ * - `rendering` — in progress
101
+ * - `complete` — ready; see `downloads`
102
+ * - `error` — a failure occurred (see `error`)
103
+ * - `canceled` — user canceled
104
+ * - `draft` — not used
106
105
  *
107
106
  * GET /v1/video-projects/{id}
108
107
  */
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1VideoToVideoCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
13
+ * End time of your clip (seconds). Must be greater than start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -30,11 +30,11 @@ export type CreateRequest = {
30
30
  */
31
31
  height?: number | null | undefined;
32
32
  /**
33
- * The name of video. This value is mainly used for your own identification of the video.
33
+ * Give your video a custom name for easy identification.
34
34
  */
35
35
  name?: string | undefined;
36
36
  /**
37
- * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
37
+ * Start time of your clip (seconds). Must be ≥ 0.
38
38
  */
39
39
  startSeconds: number;
40
40
  style: V1VideoToVideoCreateBodyStyle;
@@ -53,10 +53,28 @@ export declare class VideoToVideoClient extends CoreResourceClient {
53
53
  /**
54
54
  * Video-to-Video
55
55
  *
56
- * Create a Video To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
56
+ * **What this API does**
57
57
  *
58
- * Get more information about this mode at our [product page](https://magichour.ai/products/video-to-video).
58
+ * Create the same Video To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
59
59
  *
60
+ * **Good for**
61
+ * - Automation and batch processing
62
+ * - Adding video to video into apps, pipelines, or tools
63
+ *
64
+ * **How it works (3 steps)**
65
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
66
+ * 2) Send a request to create a video to video job with the basic fields.
67
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
68
+ *
69
+ * **Key options**
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
72
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
73
+ *
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.
76
+ *
77
+ * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
60
78
  *
61
79
  * POST /v1/video-to-video
62
80
  */
@@ -95,10 +95,28 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
95
95
  /**
96
96
  * Video-to-Video
97
97
  *
98
- * Create a Video To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
98
+ * **What this API does**
99
99
  *
100
- * Get more information about this mode at our [product page](https://magichour.ai/products/video-to-video).
100
+ * Create the same Video To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
101
101
  *
102
+ * **Good for**
103
+ * - Automation and batch processing
104
+ * - Adding video to video into apps, pipelines, or tools
105
+ *
106
+ * **How it works (3 steps)**
107
+ * 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
108
+ * 2) Send a request to create a video to video job with the basic fields.
109
+ * 3) Check the job status until it's `complete`, then download the result from `downloads`.
110
+ *
111
+ * **Key options**
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
114
+ * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
+ *
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.
118
+ *
119
+ * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
102
120
  *
103
121
  * POST /v1/video-to-video
104
122
  */
@@ -1,4 +1,8 @@
1
1
  /**
2
- * The type of the outfit.
2
+ * Type of garment to swap. If not provided, swaps the entire outfit.
3
+ * * `upper_body` - for shirts/jackets
4
+ * * `lower_body` - for pants/skirts
5
+ * * `dresses` - for entire outfit (deprecated, use `entire_outfit` instead)
6
+ * * `entire_outfit` - for entire outfit
3
7
  */
4
- export type V1AiClothesChangerCreateBodyAssetsGarmentTypeEnum = "dresses" | "lower_body" | "upper_body";
8
+ export type V1AiClothesChangerCreateBodyAssetsGarmentTypeEnum = "dresses" | "entire_outfit" | "lower_body" | "upper_body";
@@ -8,20 +8,24 @@ export type V1AiClothesChangerCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
10
  *
11
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  garmentFilePath: string;
15
15
  /**
16
- * The type of the outfit.
16
+ * Type of garment to swap. If not provided, swaps the entire outfit.
17
+ * * `upper_body` - for shirts/jackets
18
+ * * `lower_body` - for pants/skirts
19
+ * * `dresses` - for entire outfit (deprecated, use `entire_outfit` instead)
20
+ * * `entire_outfit` - for entire outfit
17
21
  */
18
- garmentType: "dresses" | "lower_body" | "upper_body";
22
+ garmentType?: ("dresses" | "entire_outfit" | "lower_body" | "upper_body") | undefined;
19
23
  /**
20
24
  * The image with the person. This value is either
21
25
  * - a direct URL to the video file
22
26
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
27
  *
24
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
28
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
25
29
  *
26
30
  */
27
31
  personFilePath: string;
@@ -33,7 +37,7 @@ export type V1AiClothesChangerCreateBodyAssets = {
33
37
  */
34
38
  export type External$V1AiClothesChangerCreateBodyAssets = {
35
39
  garment_file_path: string;
36
- garment_type: "dresses" | "lower_body" | "upper_body";
40
+ garment_type?: ("dresses" | "entire_outfit" | "lower_body" | "upper_body") | undefined;
37
41
  person_file_path: string;
38
42
  };
39
43
  export declare const Schemas$V1AiClothesChangerCreateBodyAssets: {
@@ -42,7 +42,9 @@ const z = __importStar(require("zod"));
42
42
  const SchemaIn$V1AiClothesChangerCreateBodyAssets = z
43
43
  .object({
44
44
  garment_file_path: z.string(),
45
- garment_type: z.enum(["dresses", "lower_body", "upper_body"]),
45
+ garment_type: z
46
+ .enum(["dresses", "entire_outfit", "lower_body", "upper_body"])
47
+ .optional(),
46
48
  person_file_path: z.string(),
47
49
  })
48
50
  .transform((obj) => {
@@ -59,7 +61,9 @@ const SchemaIn$V1AiClothesChangerCreateBodyAssets = z
59
61
  const SchemaOut$V1AiClothesChangerCreateBodyAssets = z
60
62
  .object({
61
63
  garmentFilePath: z.string(),
62
- garmentType: z.enum(["dresses", "lower_body", "upper_body"]),
64
+ garmentType: z
65
+ .enum(["dresses", "entire_outfit", "lower_body", "upper_body"])
66
+ .optional(),
63
67
  personFilePath: z.string(),
64
68
  })
65
69
  .transform((obj) => {
@@ -9,7 +9,7 @@ export type V1AiClothesChangerCreateBody = {
9
9
  */
10
10
  assets: V1AiClothesChangerCreateBodyAssets;
11
11
  /**
12
- * The name of image. This value is mainly used for your own identification of the image.
12
+ * Give your image a custom name for easy identification.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -14,7 +14,7 @@ export type V1AiClothesChangerCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiFaceEditorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
10
  *
11
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath: string;
@@ -10,7 +10,7 @@ export type V1AiFaceEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiFaceEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -14,7 +14,7 @@ export type V1AiFaceEditorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -5,7 +5,7 @@ import { External$V1AiGifGeneratorCreateBodyStyle, V1AiGifGeneratorCreateBodySty
5
5
  */
6
6
  export type V1AiGifGeneratorCreateBody = {
7
7
  /**
8
- * The name of gif. This value is mainly used for your own identification of the gif.
8
+ * Give your gif a custom name for easy identification.
9
9
  */
10
10
  name?: string | undefined;
11
11
  /**
@@ -14,7 +14,7 @@ export type V1AiGifGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiHeadshotGeneratorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
10
  *
11
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath: string;
@@ -10,7 +10,7 @@ export type V1AiHeadshotGeneratorCreateBody = {
10
10
  */
11
11
  assets: V1AiHeadshotGeneratorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style?: V1AiHeadshotGeneratorCreateBodyStyle | undefined;
@@ -14,7 +14,7 @@ export type V1AiHeadshotGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiImageEditorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
10
  *
11
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath?: string | undefined;
@@ -17,7 +17,7 @@ export type V1AiImageEditorCreateBodyAssets = {
17
17
  * - a direct URL to the video file
18
18
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
19
19
  *
20
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
20
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
21
21
  *
22
22
  */
23
23
  imageFilePaths?: string[] | undefined;
@@ -10,7 +10,7 @@ export type V1AiImageEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiImageEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style: V1AiImageEditorCreateBodyStyle;
@@ -14,7 +14,7 @@ export type V1AiImageEditorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };