magic-hour 0.33.1 → 0.34.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 (94) 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-generator/request-types.d.ts +8 -2
  9. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +4 -2
  10. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  11. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  12. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
  13. package/dist/resources/v1/animation/request-types.d.ts +2 -2
  14. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  15. package/dist/resources/v1/face-detection/request-types.d.ts +1 -1
  16. package/dist/resources/v1/face-detection/resource-client.d.ts +4 -0
  17. package/dist/resources/v1/face-detection/resource-client.js +4 -0
  18. package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
  19. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  20. package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
  21. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +6 -5
  22. package/dist/resources/v1/files/upload-urls/resource-client.js +6 -5
  23. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  24. package/dist/resources/v1/image-projects/request-types.d.ts +2 -2
  25. package/dist/resources/v1/image-projects/resource-client.d.ts +1 -1
  26. package/dist/resources/v1/image-projects/resource-client.js +1 -2
  27. package/dist/resources/v1/image-to-video/request-types.d.ts +4 -2
  28. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
  29. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  30. package/dist/resources/v1/text-to-video/request-types.d.ts +8 -2
  31. package/dist/resources/v1/video-projects/request-types.d.ts +2 -2
  32. package/dist/resources/v1/video-projects/resource-client.js +0 -1
  33. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
  34. package/dist/types/index.d.ts +0 -165
  35. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +1 -1
  36. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +15 -2
  37. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  38. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +6 -1
  39. package/dist/types/v1-ai-face-editor-create-body-style.d.ts +30 -30
  40. package/dist/types/v1-ai-face-editor-create-body-style.js +30 -30
  41. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  42. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  43. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +6 -1
  44. package/dist/types/v1-ai-headshot-generator-create-body-style.d.ts +1 -1
  45. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  46. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +6 -1
  47. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  48. package/dist/types/v1-ai-image-generator-create-body-orientation-enum.d.ts +1 -1
  49. package/dist/types/v1-ai-image-generator-create-body-style.d.ts +2 -2
  50. package/dist/types/v1-ai-image-generator-create-body.d.ts +8 -2
  51. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +6 -1
  52. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +4 -2
  53. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +6 -1
  54. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  55. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  56. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +12 -2
  57. package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
  58. package/dist/types/v1-animation-create-body-assets.d.ts +12 -2
  59. package/dist/types/v1-animation-create-body-style-art-style-enum.d.ts +1 -1
  60. package/dist/types/v1-animation-create-body-style-camera-effect-enum.d.ts +1 -1
  61. package/dist/types/v1-animation-create-body-style-prompt-type-enum.d.ts +1 -1
  62. package/dist/types/v1-animation-create-body-style.d.ts +10 -5
  63. package/dist/types/v1-animation-create-body-style.js +2 -2
  64. package/dist/types/v1-animation-create-body.d.ts +2 -2
  65. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +6 -1
  66. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  67. package/dist/types/v1-face-detection-create-body-assets.d.ts +6 -1
  68. package/dist/types/v1-face-detection-create-response.d.ts +1 -1
  69. package/dist/types/v1-face-detection-get-response.d.ts +1 -1
  70. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +6 -1
  71. package/dist/types/v1-face-swap-create-body-assets.d.ts +12 -2
  72. package/dist/types/v1-face-swap-create-body.d.ts +3 -3
  73. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +6 -1
  74. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +12 -2
  75. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  76. package/dist/types/v1-files-upload-urls-create-body-items-item-type-enum.d.ts +1 -1
  77. package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +2 -2
  78. package/dist/types/v1-files-upload-urls-create-body.d.ts +3 -0
  79. package/dist/types/v1-files-upload-urls-create-response.d.ts +3 -0
  80. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +12 -2
  81. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  82. package/dist/types/v1-image-to-video-create-body-assets.d.ts +6 -1
  83. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +3 -1
  84. package/dist/types/v1-image-to-video-create-body.d.ts +4 -2
  85. package/dist/types/v1-lip-sync-create-body-assets.d.ts +12 -2
  86. package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
  87. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +6 -1
  88. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  89. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +3 -1
  90. package/dist/types/v1-text-to-video-create-body.d.ts +8 -2
  91. package/dist/types/v1-video-projects-get-response.d.ts +2 -2
  92. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -1
  93. package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
  94. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1AiImageGeneratorCreateBodyOrientationEnum
2
+ * The orientation of the output image(s).
3
3
  */
4
4
  export type V1AiImageGeneratorCreateBodyOrientationEnum = "landscape" | "portrait" | "square";
@@ -1,10 +1,10 @@
1
1
  import * as z from "zod";
2
2
  /**
3
- * V1AiImageGeneratorCreateBodyStyle
3
+ * The art style to use for image generation.
4
4
  */
5
5
  export type V1AiImageGeneratorCreateBodyStyle = {
6
6
  /**
7
- * The prompt used for the image.
7
+ * The prompt used for the image(s).
8
8
  */
9
9
  prompt: string;
10
10
  /**
@@ -5,14 +5,20 @@ import * as z from "zod";
5
5
  */
6
6
  export type V1AiImageGeneratorCreateBody = {
7
7
  /**
8
- * number to images to generate
8
+ * Number of images to generate.
9
9
  */
10
10
  imageCount: number;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
+ /**
16
+ * The orientation of the output image(s).
17
+ */
15
18
  orientation: "landscape" | "portrait" | "square";
19
+ /**
20
+ * The art style to use for image generation.
21
+ */
16
22
  style: V1AiImageGeneratorCreateBodyStyle;
17
23
  };
18
24
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiImageUpscalerCreateBodyAssets = {
6
6
  /**
7
- * The image to upscale. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image to upscale. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -10,11 +10,13 @@ export type V1AiImageUpscalerCreateBody = {
10
10
  */
11
11
  assets: V1AiImageUpscalerCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
17
- * How much to scale the image. Must be either 2 or 4
17
+ * How much to scale the image. Must be either 2 or 4.
18
+ *
19
+ * Note: 4x upscale is only available on Creator, Pro, or Business tier.
18
20
  */
19
21
  scaleFactor: number;
20
22
  style: V1AiImageUpscalerCreateBodyStyle;
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiPhotoEditorCreateBodyAssets = {
6
6
  /**
7
- * The image used to generate the output. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image used to generate the output. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -10,7 +10,7 @@ export type V1AiPhotoEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiPhotoEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -9,7 +9,7 @@ export type V1AiQrCodeGeneratorCreateBody = {
9
9
  */
10
10
  content: string;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  style: V1AiQrCodeGeneratorCreateBodyStyle;
@@ -4,11 +4,21 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiTalkingPhotoCreateBodyAssets = {
6
6
  /**
7
- * The audio file to sync with the image. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The audio file to sync with the image. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  audioFilePath: string;
10
15
  /**
11
- * The source image to animate. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
16
+ * The source image to animate. This value is either
17
+ * - a direct URL to the video file
18
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
21
+ *
12
22
  */
13
23
  imageFilePath: string;
14
24
  };
@@ -14,7 +14,7 @@ export type V1AiTalkingPhotoCreateBody = {
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of image
17
+ * The name of image. This value is mainly used for your own identification of the image.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AnimationCreateBodyAssets = {
6
6
  /**
7
- * The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The path of the input audio. This field is required if `audio_source` is `file`. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  audioFilePath?: string | undefined;
10
15
  /**
@@ -12,7 +17,12 @@ export type V1AnimationCreateBodyAssets = {
12
17
  */
13
18
  audioSource: "file" | "none" | "youtube";
14
19
  /**
15
- * An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
20
+ * An initial image to use a the first frame of the video. This value is either
21
+ * - a direct URL to the video file
22
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
+ *
24
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
25
+ *
16
26
  */
17
27
  imageFilePath?: string | undefined;
18
28
  /**
@@ -1,4 +1,4 @@
1
1
  /**
2
- * The art style of the final output video
2
+ * The art style used to create the output video
3
3
  */
4
4
  export type V1AnimationCreateBodyStyleArtStyleEnum = "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1AnimationCreateBodyStyleCameraEffectEnum
2
+ * The camera effect used to create the output video
3
3
  */
4
4
  export type V1AnimationCreateBodyStyleCameraEffectEnum = "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  *
3
- * * `custom` - use your own prompt for the video.
3
+ * * `custom` - Use your own prompt for the video.
4
4
  * * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
5
5
  * * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
6
6
  */
@@ -4,27 +4,32 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AnimationCreateBodyStyle = {
6
6
  /**
7
- * The art style of the final output video
7
+ * The art style used to create the output video
8
8
  */
9
9
  artStyle: "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
10
10
  /**
11
11
  * Describe custom art style. This field is required if `art_style` is `Custom`
12
12
  */
13
13
  artStyleCustom?: string | undefined;
14
+ /**
15
+ * The camera effect used to create the output video
16
+ */
14
17
  cameraEffect: "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
15
18
  /**
16
19
  * The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored
17
20
  */
18
- prompt: string | null;
21
+ prompt?: string | undefined;
19
22
  /**
20
23
  *
21
- * * `custom` - use your own prompt for the video.
24
+ * * `custom` - Use your own prompt for the video.
22
25
  * * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
23
26
  * * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
24
27
  */
25
28
  promptType: "ai_choose" | "custom" | "use_lyrics";
26
29
  /**
27
- * Change determines how quickly the video's content changes across frames. Higher = more rapid transitions. Lower = more stable visual experience.
30
+ * Change determines how quickly the video's content changes across frames.
31
+ * * Higher = more rapid transitions.
32
+ * * Lower = more stable visual experience.
28
33
  */
29
34
  transitionSpeed: number;
30
35
  };
@@ -37,7 +42,7 @@ export type External$V1AnimationCreateBodyStyle = {
37
42
  art_style: "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
38
43
  art_style_custom?: string | undefined;
39
44
  camera_effect: "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
40
- prompt: string | null;
45
+ prompt?: string | undefined;
41
46
  prompt_type: "ai_choose" | "custom" | "use_lyrics";
42
47
  transition_speed: number;
43
48
  };
@@ -145,7 +145,7 @@ const SchemaIn$V1AnimationCreateBodyStyle = z
145
145
  "Zoom In and Spin - Audio Sync",
146
146
  "Zoom Out - Audio Sync",
147
147
  ]),
148
- prompt: z.string().nullable(),
148
+ prompt: z.string().optional(),
149
149
  prompt_type: z.enum(["ai_choose", "custom", "use_lyrics"]),
150
150
  transition_speed: z.number().int(),
151
151
  })
@@ -269,7 +269,7 @@ const SchemaOut$V1AnimationCreateBodyStyle = z
269
269
  "Zoom In and Spin - Audio Sync",
270
270
  "Zoom Out - Audio Sync",
271
271
  ]),
272
- prompt: z.string().nullable(),
272
+ prompt: z.string().optional(),
273
273
  promptType: z.enum(["ai_choose", "custom", "use_lyrics"]),
274
274
  transitionSpeed: z.number().int(),
275
275
  })
@@ -10,7 +10,7 @@ export type V1AnimationCreateBody = {
10
10
  */
11
11
  assets: V1AnimationCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * This value determines the duration of the output video.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -22,7 +22,7 @@ export type V1AnimationCreateBody = {
22
22
  */
23
23
  height: number;
24
24
  /**
25
- * The name of video
25
+ * The name of video. This value is mainly used for your own identification of the video.
26
26
  */
27
27
  name?: string | undefined;
28
28
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AutoSubtitleGeneratorCreateBodyAssets = {
6
6
  /**
7
- * This is the video used to add subtitles. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * This is the video used to add subtitles. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  videoFilePath: string;
10
15
  };
@@ -10,15 +10,15 @@ export type V1AutoSubtitleGeneratorCreateBody = {
10
10
  */
11
11
  assets: V1AutoSubtitleGeneratorCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
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.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of video
17
+ * The name of video. This value is mainly used for your own identification of the video.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
21
- * The start time of the input video in seconds
21
+ * 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.
22
22
  */
23
23
  startSeconds: number;
24
24
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FaceDetectionCreateBodyAssets = {
6
6
  /**
7
- * This is the image or video where the face will be detected. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * This is the image or video where the face will be detected. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  targetFilePath: string;
10
15
  };
@@ -8,7 +8,7 @@ export type V1FaceDetectionCreateResponse = {
8
8
  */
9
9
  creditsCharged: number;
10
10
  /**
11
- * The id of the task
11
+ * The id of the task. Use this value in the [get face detection details API](/api-reference/files/get-face-detection-details) to get the details of the face detection task.
12
12
  */
13
13
  id: string;
14
14
  };
@@ -13,7 +13,7 @@ export type V1FaceDetectionGetResponse = {
13
13
  */
14
14
  faces: V1FaceDetectionGetResponseFacesItem[];
15
15
  /**
16
- * The id of the task
16
+ * The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id).
17
17
  */
18
18
  id: string;
19
19
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FaceSwapCreateBodyAssetsFaceMappingsItem = {
6
6
  /**
7
- * The face image that will be used to replace the face in the `original_face`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The face image that will be used to replace the face in the `original_face`. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  newFace: string;
10
15
  /**
@@ -17,11 +17,21 @@ export type V1FaceSwapCreateBodyAssets = {
17
17
  /**
18
18
  * The path of the input image with the face to be swapped. The value is required if `face_swap_mode` is `all-faces`.
19
19
  *
20
- * This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
20
+ * This value is either
21
+ * - a direct URL to the video file
22
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
+ *
24
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
25
+ *
21
26
  */
22
27
  imageFilePath?: string | undefined;
23
28
  /**
24
- * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
29
+ * Required if `video_source` is `file`. This value is either
30
+ * - a direct URL to the video file
31
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
32
+ *
33
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
34
+ *
25
35
  */
26
36
  videoFilePath?: string | undefined;
27
37
  videoSource: "file" | "youtube";
@@ -9,7 +9,7 @@ export type V1FaceSwapCreateBody = {
9
9
  */
10
10
  assets: V1FaceSwapCreateBodyAssets;
11
11
  /**
12
- * The end time of the input video in seconds
12
+ * 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
13
  */
14
14
  endSeconds: number;
15
15
  /**
@@ -24,11 +24,11 @@ export type V1FaceSwapCreateBody = {
24
24
  */
25
25
  height?: number | undefined;
26
26
  /**
27
- * The name of video
27
+ * The name of video. This value is mainly used for your own identification of the video.
28
28
  */
29
29
  name?: string | undefined;
30
30
  /**
31
- * The start time of the input video in seconds
31
+ * 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.
32
32
  */
33
33
  startSeconds: number;
34
34
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem = {
6
6
  /**
7
- * The face image that will be used to replace the face in the `original_face`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The face image that will be used to replace the face in the `original_face`. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  newFace: string;
10
15
  /**
@@ -17,11 +17,21 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
17
17
  /**
18
18
  * This is the image from which the face is extracted. The value is required if `face_swap_mode` is `all-faces`.
19
19
  *
20
- * This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
20
+ * This value is either
21
+ * - a direct URL to the video file
22
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
+ *
24
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
25
+ *
21
26
  */
22
27
  sourceFilePath?: string | undefined;
23
28
  /**
24
- * This is the image where the face from the source image will be placed. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
29
+ * This is the image where the face from the source image will be placed. This value is either
30
+ * - a direct URL to the video file
31
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
32
+ *
33
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
34
+ *
25
35
  */
26
36
  targetFilePath: string;
27
37
  };
@@ -9,7 +9,7 @@ export type V1FaceSwapPhotoCreateBody = {
9
9
  */
10
10
  assets: V1FaceSwapPhotoCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
- * The type of asset to upload
2
+ * The type of asset to upload. Possible types are video, audio, image
3
3
  */
4
4
  export type V1FilesUploadUrlsCreateBodyItemsItemTypeEnum = "audio" | "image" | "video";
@@ -4,11 +4,11 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FilesUploadUrlsCreateBodyItemsItem = {
6
6
  /**
7
- * the extension of the file to upload. Do not include the dot (.) before the extension.
7
+ * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,mpeg,wav,aac,aiff,flac,png,jpg,jpeg,webp,avif,jp2,tiff,bmp
8
8
  */
9
9
  extension: string;
10
10
  /**
11
- * The type of asset to upload
11
+ * The type of asset to upload. Possible types are video, audio, image
12
12
  */
13
13
  type: "audio" | "image" | "video";
14
14
  };
@@ -4,6 +4,9 @@ import * as z from "zod";
4
4
  * V1FilesUploadUrlsCreateBody
5
5
  */
6
6
  export type V1FilesUploadUrlsCreateBody = {
7
+ /**
8
+ * The list of assets to upload. The response array will match the order of items in the request body.
9
+ */
7
10
  items: V1FilesUploadUrlsCreateBodyItemsItem[];
8
11
  };
9
12
  /**
@@ -4,6 +4,9 @@ import * as z from "zod";
4
4
  * Success
5
5
  */
6
6
  export type V1FilesUploadUrlsCreateResponse = {
7
+ /**
8
+ * The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/input-files) for more details.
9
+ */
7
10
  items: V1FilesUploadUrlsCreateResponseItemsItem[];
8
11
  };
9
12
  /**
@@ -6,11 +6,21 @@ export type V1ImageBackgroundRemoverCreateBodyAssets = {
6
6
  /**
7
7
  * The image used as the new background for the image_file_path. This image will be resized to match the image in image_file_path. Please make sure the resolution between the images are similar.
8
8
  *
9
- * This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
9
+ * This value is either
10
+ * - a direct URL to the video file
11
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
12
+ *
13
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
14
+ *
10
15
  */
11
16
  backgroundImageFilePath?: string | undefined;
12
17
  /**
13
- * The image to remove the background. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
18
+ * The image to remove the background. This value is either
19
+ * - a direct URL to the video file
20
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
21
+ *
22
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
23
+ *
14
24
  */
15
25
  imageFilePath: string;
16
26
  };
@@ -9,7 +9,7 @@ export type V1ImageBackgroundRemoverCreateBody = {
9
9
  */
10
10
  assets: V1ImageBackgroundRemoverCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1ImageToVideoCreateBodyAssets = {
6
6
  /**
7
- * The path of the image file. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The path of the image file. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
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.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * Controls the output video resolution. Defaults to `720p` if not specified.
3
3
  *
4
+ * 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier.
5
+ *
4
6
  * **Options:**
5
7
  * - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
6
8
  * - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
7
- * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
9
+ * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds.
8
10
  */
9
11
  export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -20,16 +20,18 @@ export type V1ImageToVideoCreateBody = {
20
20
  */
21
21
  height?: number | undefined;
22
22
  /**
23
- * The name of video
23
+ * The name of video. This value is mainly used for your own identification of the video.
24
24
  */
25
25
  name?: string | undefined;
26
26
  /**
27
27
  * Controls the output video resolution. Defaults to `720p` if not specified.
28
28
  *
29
+ * 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier.
30
+ *
29
31
  * **Options:**
30
32
  * - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
31
33
  * - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
32
- * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
34
+ * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds.
33
35
  */
34
36
  resolution?: ("1080p" | "480p" | "720p") | undefined;
35
37
  /**