magic-hour 0.51.0 → 0.53.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 (61) hide show
  1. package/README.md +1 -1
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +1 -1
  5. package/dist/resources/v1/ai-clothes-changer/resource-client.js +1 -1
  6. package/dist/resources/v1/ai-face-editor/resource-client.d.ts +1 -1
  7. package/dist/resources/v1/ai-face-editor/resource-client.js +1 -1
  8. package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +1 -1
  9. package/dist/resources/v1/ai-gif-generator/resource-client.js +1 -1
  10. package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +1 -1
  11. package/dist/resources/v1/ai-headshot-generator/resource-client.js +1 -1
  12. package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
  13. package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
  14. package/dist/resources/v1/ai-image-generator/resource-client.d.ts +1 -1
  15. package/dist/resources/v1/ai-image-generator/resource-client.js +1 -1
  16. package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
  17. package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
  18. package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +1 -1
  19. package/dist/resources/v1/ai-meme-generator/resource-client.js +1 -1
  20. package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +1 -1
  21. package/dist/resources/v1/ai-qr-code-generator/resource-client.js +1 -1
  22. package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +1 -1
  23. package/dist/resources/v1/ai-talking-photo/resource-client.js +1 -1
  24. package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +1 -1
  25. package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
  26. package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +1 -1
  27. package/dist/resources/v1/ai-voice-generator/resource-client.js +1 -1
  28. package/dist/resources/v1/animation/resource-client.d.ts +1 -1
  29. package/dist/resources/v1/animation/resource-client.js +1 -1
  30. package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +1 -1
  31. package/dist/resources/v1/auto-subtitle-generator/resource-client.js +1 -1
  32. package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
  33. package/dist/resources/v1/face-swap/resource-client.js +1 -1
  34. package/dist/resources/v1/face-swap-photo/resource-client.d.ts +1 -1
  35. package/dist/resources/v1/face-swap-photo/resource-client.js +1 -1
  36. package/dist/resources/v1/image-background-remover/resource-client.d.ts +1 -1
  37. package/dist/resources/v1/image-background-remover/resource-client.js +1 -1
  38. package/dist/resources/v1/image-to-video/request-types.d.ts +34 -17
  39. package/dist/resources/v1/image-to-video/request-types.js +10 -0
  40. package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
  41. package/dist/resources/v1/image-to-video/resource-client.js +1 -1
  42. package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
  43. package/dist/resources/v1/lip-sync/resource-client.js +1 -1
  44. package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
  45. package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
  46. package/dist/resources/v1/text-to-video/request-types.d.ts +41 -23
  47. package/dist/resources/v1/text-to-video/request-types.js +10 -0
  48. package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
  49. package/dist/resources/v1/text-to-video/resource-client.js +1 -1
  50. package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
  51. package/dist/resources/v1/video-to-video/resource-client.js +1 -1
  52. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +5 -4
  53. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +7 -6
  54. package/dist/types/v1-image-to-video-create-body.d.ts +34 -17
  55. package/dist/types/v1-image-to-video-create-body.js +10 -0
  56. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +7 -6
  57. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +5 -4
  58. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +7 -6
  59. package/dist/types/v1-text-to-video-create-body.d.ts +41 -23
  60. package/dist/types/v1-text-to-video-create-body.js +10 -0
  61. package/package.json +1 -1
package/README.md CHANGED
@@ -34,7 +34,7 @@ const res = await client.v1.faceSwapPhoto.generate(
34
34
  {
35
35
  waitForCompletion: true,
36
36
  downloadOutputs: true,
37
- downloadDirectory: "outputs",
37
+ downloadDirectory: ".",
38
38
  },
39
39
  );
40
40
 
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.51.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.53.0"
4
4
  }
@@ -4,5 +4,5 @@ exports.Environment = void 0;
4
4
  var Environment;
5
5
  (function (Environment) {
6
6
  Environment["Environment"] = "https://api.magichour.ai";
7
- Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.51.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.53.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -46,7 +46,7 @@ export declare class AiClothesChangerClient extends CoreResourceClient {
46
46
  * {
47
47
  * waitForCompletion: true,
48
48
  * downloadOutputs: true,
49
- * downloadDirectory: "outputs",
49
+ * downloadDirectory: ".",
50
50
  * },
51
51
  * );
52
52
  * ```
@@ -55,7 +55,7 @@ class AiClothesChangerClient extends make_api_request_js_1.CoreResourceClient {
55
55
  * {
56
56
  * waitForCompletion: true,
57
57
  * downloadOutputs: true,
58
- * downloadDirectory: "outputs",
58
+ * downloadDirectory: ".",
59
59
  * },
60
60
  * );
61
61
  * ```
@@ -51,7 +51,7 @@ export declare class AiFaceEditorClient extends CoreResourceClient {
51
51
  * {
52
52
  * waitForCompletion: true,
53
53
  * downloadOutputs: true,
54
- * downloadDirectory: "outputs",
54
+ * downloadDirectory: ".",
55
55
  * },
56
56
  * );
57
57
  * ```
@@ -68,7 +68,7 @@ class AiFaceEditorClient extends make_api_request_js_1.CoreResourceClient {
68
68
  * {
69
69
  * waitForCompletion: true,
70
70
  * downloadOutputs: true,
71
- * downloadDirectory: "outputs",
71
+ * downloadDirectory: ".",
72
72
  * },
73
73
  * );
74
74
  * ```
@@ -25,7 +25,7 @@ export declare class AiGifGeneratorClient extends CoreResourceClient {
25
25
  * {
26
26
  * waitForCompletion: true,
27
27
  * downloadOutputs: true,
28
- * downloadDirectory: "outputs",
28
+ * downloadDirectory: ".",
29
29
  * },
30
30
  * );
31
31
  * ```
@@ -50,7 +50,7 @@ class AiGifGeneratorClient extends make_api_request_js_1.CoreResourceClient {
50
50
  * {
51
51
  * waitForCompletion: true,
52
52
  * downloadOutputs: true,
53
- * downloadDirectory: "outputs",
53
+ * downloadDirectory: ".",
54
54
  * },
55
55
  * );
56
56
  * ```
@@ -34,7 +34,7 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
34
34
  * {
35
35
  * waitForCompletion: true,
36
36
  * downloadOutputs: true,
37
- * downloadDirectory: "outputs",
37
+ * downloadDirectory: ".",
38
38
  * },
39
39
  * );
40
40
  * ```
@@ -51,7 +51,7 @@ class AiHeadshotGeneratorClient extends make_api_request_js_1.CoreResourceClient
51
51
  * {
52
52
  * waitForCompletion: true,
53
53
  * downloadOutputs: true,
54
- * downloadDirectory: "outputs",
54
+ * downloadDirectory: ".",
55
55
  * },
56
56
  * );
57
57
  * ```
@@ -45,7 +45,7 @@ export declare class AiImageEditorClient extends CoreResourceClient {
45
45
  * {
46
46
  * waitForCompletion: true,
47
47
  * downloadOutputs: true,
48
- * downloadDirectory: "outputs",
48
+ * downloadDirectory: ".",
49
49
  * },
50
50
  * );
51
51
  * ```
@@ -52,7 +52,7 @@ class AiImageEditorClient extends make_api_request_js_1.CoreResourceClient {
52
52
  * {
53
53
  * waitForCompletion: true,
54
54
  * downloadOutputs: true,
55
- * downloadDirectory: "outputs",
55
+ * downloadDirectory: ".",
56
56
  * },
57
57
  * );
58
58
  * ```
@@ -27,7 +27,7 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
27
27
  * {
28
28
  * waitForCompletion: true,
29
29
  * downloadOutputs: true,
30
- * downloadDirectory: "outputs",
30
+ * downloadDirectory: ".",
31
31
  * },
32
32
  * );
33
33
  * ```
@@ -52,7 +52,7 @@ class AiImageGeneratorClient extends make_api_request_js_1.CoreResourceClient {
52
52
  * {
53
53
  * waitForCompletion: true,
54
54
  * downloadOutputs: true,
55
- * downloadDirectory: "outputs",
55
+ * downloadDirectory: ".",
56
56
  * },
57
57
  * );
58
58
  * ```
@@ -36,7 +36,7 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
36
36
  * {
37
37
  * waitForCompletion: true,
38
38
  * downloadOutputs: true,
39
- * downloadDirectory: "outputs",
39
+ * downloadDirectory: ".",
40
40
  * },
41
41
  * );
42
42
  * ```
@@ -53,7 +53,7 @@ class AiImageUpscalerClient extends make_api_request_js_1.CoreResourceClient {
53
53
  * {
54
54
  * waitForCompletion: true,
55
55
  * downloadOutputs: true,
56
- * downloadDirectory: "outputs",
56
+ * downloadDirectory: ".",
57
57
  * },
58
58
  * );
59
59
  * ```
@@ -29,7 +29,7 @@ export declare class AiMemeGeneratorClient extends CoreResourceClient {
29
29
  * {
30
30
  * waitForCompletion: true,
31
31
  * downloadOutputs: true,
32
- * downloadDirectory: "outputs",
32
+ * downloadDirectory: ".",
33
33
  * },
34
34
  * );
35
35
  * ```
@@ -54,7 +54,7 @@ class AiMemeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
54
54
  * {
55
55
  * waitForCompletion: true,
56
56
  * downloadOutputs: true,
57
- * downloadDirectory: "outputs",
57
+ * downloadDirectory: ".",
58
58
  * },
59
59
  * );
60
60
  * ```
@@ -26,7 +26,7 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
26
26
  * {
27
27
  * waitForCompletion: true,
28
28
  * downloadOutputs: true,
29
- * downloadDirectory: "outputs",
29
+ * downloadDirectory: ".",
30
30
  * },
31
31
  * );
32
32
  * ```
@@ -51,7 +51,7 @@ class AiQrCodeGeneratorClient extends make_api_request_js_1.CoreResourceClient {
51
51
  * {
52
52
  * waitForCompletion: true,
53
53
  * downloadOutputs: true,
54
- * downloadDirectory: "outputs",
54
+ * downloadDirectory: ".",
55
55
  * },
56
56
  * );
57
57
  * ```
@@ -47,7 +47,7 @@ export declare class AiTalkingPhotoClient extends CoreResourceClient {
47
47
  * {
48
48
  * waitForCompletion: true,
49
49
  * downloadOutputs: true,
50
- * downloadDirectory: "outputs",
50
+ * downloadDirectory: ".",
51
51
  * },
52
52
  * );
53
53
  * ```
@@ -56,7 +56,7 @@ class AiTalkingPhotoClient extends make_api_request_js_1.CoreResourceClient {
56
56
  * {
57
57
  * waitForCompletion: true,
58
58
  * downloadOutputs: true,
59
- * downloadDirectory: "outputs",
59
+ * downloadDirectory: ".",
60
60
  * },
61
61
  * );
62
62
  * ```
@@ -35,7 +35,7 @@ export declare class AiVoiceClonerClient extends CoreResourceClient {
35
35
  * {
36
36
  * waitForCompletion: true,
37
37
  * downloadOutputs: true,
38
- * downloadDirectory: "outputs",
38
+ * downloadDirectory: ".",
39
39
  * },
40
40
  * );
41
41
  * ```
@@ -52,7 +52,7 @@ class AiVoiceClonerClient extends make_api_request_js_1.CoreResourceClient {
52
52
  * {
53
53
  * waitForCompletion: true,
54
54
  * downloadOutputs: true,
55
- * downloadDirectory: "outputs",
55
+ * downloadDirectory: ".",
56
56
  * },
57
57
  * );
58
58
  * ```
@@ -25,7 +25,7 @@ export declare class AiVoiceGeneratorClient extends CoreResourceClient {
25
25
  * {
26
26
  * waitForCompletion: true,
27
27
  * downloadOutputs: true,
28
- * downloadDirectory: "outputs",
28
+ * downloadDirectory: ".",
29
29
  * },
30
30
  * );
31
31
  * ```
@@ -50,7 +50,7 @@ class AiVoiceGeneratorClient extends make_api_request_js_1.CoreResourceClient {
50
50
  * {
51
51
  * waitForCompletion: true,
52
52
  * downloadOutputs: true,
53
- * downloadDirectory: "outputs",
53
+ * downloadDirectory: ".",
54
54
  * },
55
55
  * );
56
56
  * ```
@@ -57,7 +57,7 @@ export declare class AnimationClient extends CoreResourceClient {
57
57
  * {
58
58
  * waitForCompletion: true,
59
59
  * downloadOutputs: true,
60
- * downloadDirectory: "outputs",
60
+ * downloadDirectory: ".",
61
61
  * },
62
62
  * );
63
63
  * ```
@@ -66,7 +66,7 @@ class AnimationClient extends make_api_request_js_1.CoreResourceClient {
66
66
  * {
67
67
  * waitForCompletion: true,
68
68
  * downloadOutputs: true,
69
- * downloadDirectory: "outputs",
69
+ * downloadDirectory: ".",
70
70
  * },
71
71
  * );
72
72
  * ```
@@ -37,7 +37,7 @@ export declare class AutoSubtitleGeneratorClient extends CoreResourceClient {
37
37
  * {
38
38
  * waitForCompletion: true,
39
39
  * downloadOutputs: true,
40
- * downloadDirectory: "outputs",
40
+ * downloadDirectory: ".",
41
41
  * },
42
42
  * );
43
43
  * ```
@@ -54,7 +54,7 @@ class AutoSubtitleGeneratorClient extends make_api_request_js_1.CoreResourceClie
54
54
  * {
55
55
  * waitForCompletion: true,
56
56
  * downloadOutputs: true,
57
- * downloadDirectory: "outputs",
57
+ * downloadDirectory: ".",
58
58
  * },
59
59
  * );
60
60
  * ```
@@ -73,7 +73,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
73
73
  * {
74
74
  * waitForCompletion: true,
75
75
  * downloadOutputs: true,
76
- * downloadDirectory: "outputs",
76
+ * downloadDirectory: ".",
77
77
  * },
78
78
  * );
79
79
  * ```
@@ -65,7 +65,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
65
65
  * {
66
66
  * waitForCompletion: true,
67
67
  * downloadOutputs: true,
68
- * downloadDirectory: "outputs",
68
+ * downloadDirectory: ".",
69
69
  * },
70
70
  * );
71
71
  * ```
@@ -69,7 +69,7 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
69
69
  * {
70
70
  * waitForCompletion: true,
71
71
  * downloadOutputs: true,
72
- * downloadDirectory: "outputs",
72
+ * downloadDirectory: ".",
73
73
  * },
74
74
  * );
75
75
  * ```
@@ -61,7 +61,7 @@ class FaceSwapPhotoClient extends make_api_request_js_1.CoreResourceClient {
61
61
  * {
62
62
  * waitForCompletion: true,
63
63
  * downloadOutputs: true,
64
- * downloadDirectory: "outputs",
64
+ * downloadDirectory: ".",
65
65
  * },
66
66
  * );
67
67
  * ```
@@ -45,7 +45,7 @@ export declare class ImageBackgroundRemoverClient extends CoreResourceClient {
45
45
  * {
46
46
  * waitForCompletion: true,
47
47
  * downloadOutputs: true,
48
- * downloadDirectory: "outputs",
48
+ * downloadDirectory: ".",
49
49
  * },
50
50
  * );
51
51
  * ```
@@ -54,7 +54,7 @@ class ImageBackgroundRemoverClient extends make_api_request_js_1.CoreResourceCli
54
54
  * {
55
55
  * waitForCompletion: true,
56
56
  * downloadOutputs: true,
57
- * downloadDirectory: "outputs",
57
+ * downloadDirectory: ".",
58
58
  * },
59
59
  * );
60
60
  * ```
@@ -9,17 +9,31 @@ export type CreateRequest = {
9
9
  * Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
10
10
  */
11
11
  assets: V1ImageToVideoCreateBodyAssets;
12
+ /**
13
+ * Whether to include audio in the video. Defaults to `false` if not specified.
14
+ *
15
+ * Audio support varies by model:
16
+ * * **ltx-2**: Always included (cannot be disabled)
17
+ * * **seedance**: Not supported
18
+ * * **kling-2.5**: Always included (cannot be disabled)
19
+ * * **kling-3.0**: Toggle-able (can enable/disable)
20
+ * * **sora-2**: Always included (cannot be disabled)
21
+ * * **veo3.1**: Toggle-able (can enable/disable)
22
+ * * **kling-1.6**: Not supported
23
+ */
24
+ audio?: boolean | undefined;
12
25
  /**
13
26
  * The total duration of the output video in seconds.
14
27
  *
15
28
  * Supported durations depend on the chosen model:
16
29
  * * **Default**: 5-60 seconds (2-12 seconds for 480p).
17
- * * **Seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
18
- * * **Kling 2.5 Audio**: 5, 10
19
- * * **Sora 2**: 4, 8, 12, 24, 36, 48, 60
20
- * * **Veo 3.1 Audio**: 4, 6, 8, 16, 24, 32, 40, 48, 56
21
- * * **Veo 3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
22
- * * **Kling 1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
30
+ * * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
31
+ * * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
32
+ * * **kling-2.5**: 5, 10
33
+ * * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
34
+ * * **sora-2**: 4, 8, 12, 24, 36, 48, 60
35
+ * * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
36
+ * * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
23
37
  */
24
38
  endSeconds: number;
25
39
  /**
@@ -34,15 +48,16 @@ export type CreateRequest = {
34
48
  height?: number | null | undefined;
35
49
  /**
36
50
  * The AI model to use for video generation.
37
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
51
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
52
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
38
53
  * * `seedance`: Great for fast iteration and start/end frame
39
- * * `kling-2.5-audio`: Great for motion, action, and camera control
54
+ * * `kling-2.5`: Great for motion, action, and camera control
55
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
40
56
  * * `sora-2`: Great for story-telling, dialogue & creativity
41
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
42
57
  * * `veo3.1`: Great for realism, polish, & prompt adherence
43
58
  * * `kling-1.6`: Great for dependable clips with smooth motion
44
59
  */
45
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
60
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
46
61
  /**
47
62
  * Give your video a custom name for easy identification.
48
63
  */
@@ -51,12 +66,13 @@ export type CreateRequest = {
51
66
  * Controls the output video resolution. Defaults to `720p` if not specified.
52
67
  *
53
68
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
54
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
55
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
56
- * * **Sora 2**: Supports `720p`.
57
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
58
- * * **Veo 3.1**: Supports `720p`, `1080p`.
59
- * * **Kling 1.6**: Supports `720p`, `1080p`.
69
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
+ * * **kling-2.5**: Supports `720p`, `1080p`.
72
+ * * **kling-3.0**: Supports `720p`, `1080p`.
73
+ * * **sora-2**: Supports `720p`.
74
+ * * **veo3.1**: Supports `720p`, `1080p`.
75
+ * * **kling-1.6**: Supports `720p`, `1080p`.
60
76
  */
61
77
  resolution?: ("1080p" | "480p" | "720p") | undefined;
62
78
  /**
@@ -81,9 +97,10 @@ export type CreateRequest = {
81
97
  */
82
98
  export type External$CreateRequest = {
83
99
  assets: External$V1ImageToVideoCreateBodyAssets;
100
+ audio?: boolean | undefined;
84
101
  end_seconds: number;
85
102
  height?: number | null | undefined;
86
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
103
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
87
104
  name?: string | undefined;
88
105
  resolution?: ("1080p" | "480p" | "720p") | undefined;
89
106
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -44,13 +44,17 @@ const v1_image_to_video_create_body_style_1 = require("../../../types/v1-image-t
44
44
  const SchemaIn$CreateRequest = z
45
45
  .object({
46
46
  assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
47
+ audio: z.boolean().optional(),
47
48
  end_seconds: z.number(),
48
49
  height: z.number().int().nullable().optional(),
49
50
  model: z
50
51
  .enum([
51
52
  "default",
52
53
  "kling-1.6",
54
+ "kling-2.5",
53
55
  "kling-2.5-audio",
56
+ "kling-3.0",
57
+ "ltx-2",
54
58
  "seedance",
55
59
  "sora-2",
56
60
  "veo3.1",
@@ -65,6 +69,7 @@ const SchemaIn$CreateRequest = z
65
69
  .transform((obj) => {
66
70
  return (0, make_api_request_js_1.zodTransform)(obj, {
67
71
  assets: "assets",
72
+ audio: "audio",
68
73
  end_seconds: "endSeconds",
69
74
  height: "height",
70
75
  model: "model",
@@ -81,13 +86,17 @@ const SchemaIn$CreateRequest = z
81
86
  const SchemaOut$CreateRequest = z
82
87
  .object({
83
88
  assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
89
+ audio: z.boolean().optional(),
84
90
  endSeconds: z.number(),
85
91
  height: z.number().int().nullable().optional(),
86
92
  model: z
87
93
  .enum([
88
94
  "default",
89
95
  "kling-1.6",
96
+ "kling-2.5",
90
97
  "kling-2.5-audio",
98
+ "kling-3.0",
99
+ "ltx-2",
91
100
  "seedance",
92
101
  "sora-2",
93
102
  "veo3.1",
@@ -102,6 +111,7 @@ const SchemaOut$CreateRequest = z
102
111
  .transform((obj) => {
103
112
  return (0, make_api_request_js_1.zodTransform)(obj, {
104
113
  assets: "assets",
114
+ audio: "audio",
105
115
  endSeconds: "end_seconds",
106
116
  height: "height",
107
117
  model: "model",
@@ -36,7 +36,7 @@ export declare class ImageToVideoClient extends CoreResourceClient {
36
36
  * {
37
37
  * waitForCompletion: true,
38
38
  * downloadOutputs: true,
39
- * downloadDirectory: "outputs",
39
+ * downloadDirectory: ".",
40
40
  * },
41
41
  * );
42
42
  * ```
@@ -53,7 +53,7 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
53
53
  * {
54
54
  * waitForCompletion: true,
55
55
  * downloadOutputs: true,
56
- * downloadDirectory: "outputs",
56
+ * downloadDirectory: ".",
57
57
  * },
58
58
  * );
59
59
  * ```
@@ -49,7 +49,7 @@ export declare class LipSyncClient extends CoreResourceClient {
49
49
  * {
50
50
  * waitForCompletion: true,
51
51
  * downloadOutputs: true,
52
- * downloadDirectory: "outputs",
52
+ * downloadDirectory: ".",
53
53
  * },
54
54
  * );
55
55
  * ```
@@ -58,7 +58,7 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
58
58
  * {
59
59
  * waitForCompletion: true,
60
60
  * downloadOutputs: true,
61
- * downloadDirectory: "outputs",
61
+ * downloadDirectory: ".",
62
62
  * },
63
63
  * );
64
64
  * ```
@@ -34,7 +34,7 @@ export declare class PhotoColorizerClient extends CoreResourceClient {
34
34
  * {
35
35
  * waitForCompletion: true,
36
36
  * downloadOutputs: true,
37
- * downloadDirectory: "outputs",
37
+ * downloadDirectory: ".",
38
38
  * },
39
39
  * );
40
40
  * ```
@@ -51,7 +51,7 @@ class PhotoColorizerClient extends make_api_request_js_1.CoreResourceClient {
51
51
  * {
52
52
  * waitForCompletion: true,
53
53
  * downloadOutputs: true,
54
- * downloadDirectory: "outputs",
54
+ * downloadDirectory: ".",
55
55
  * },
56
56
  * );
57
57
  * ```
@@ -6,38 +6,54 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
6
6
  export type CreateRequest = {
7
7
  /**
8
8
  * Determines the aspect ratio of the output video.
9
- * * **Seedance**: Supports `9:16`, `16:9`, `1:1`.
10
- * * **Kling 2.5 Audio**: Supports `9:16`, `16:9`, `1:1`.
11
- * * **Sora 2**: Supports `9:16`, `16:9`.
12
- * * **Veo 3.1 Audio**: Supports `9:16`, `16:9`.
13
- * * **Veo 3.1**: Supports `9:16`, `16:9`.
14
- * * **Kling 1.6**: Supports `9:16`, `16:9`, `1:1`.
9
+ * * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
10
+ * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
11
+ * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
12
+ * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
13
+ * * **sora-2**: Supports `9:16`, `16:9`.
14
+ * * **veo3.1**: Supports `9:16`, `16:9`.
15
+ * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
15
16
  */
16
17
  aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
18
+ /**
19
+ * Whether to include audio in the video. Defaults to `false` if not specified.
20
+ *
21
+ * Audio support varies by model:
22
+ * * **ltx-2**: Always included (cannot be disabled)
23
+ * * **seedance**: Not supported
24
+ * * **kling-2.5**: Always included (cannot be disabled)
25
+ * * **kling-3.0**: Toggle-able (can enable/disable)
26
+ * * **sora-2**: Always included (cannot be disabled)
27
+ * * **veo3.1**: Toggle-able (can enable/disable)
28
+ * * **kling-1.6**: Not supported
29
+ */
30
+ audio?: boolean | undefined;
17
31
  /**
18
32
  * The total duration of the output video in seconds.
19
33
  *
20
34
  * Supported durations depend on the chosen model:
21
35
  * * **Default**: 5-60 seconds (2-12 seconds for 480p).
22
- * * **Seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
23
- * * **Kling 2.5 Audio**: 5, 10
24
- * * **Sora 2**: 4, 8, 12, 24, 36, 48, 60
25
- * * **Veo 3.1 Audio**: 4, 6, 8, 16, 24, 32, 40, 48, 56
26
- * * **Veo 3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
27
- * * **Kling 1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
36
+ * * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
37
+ * * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
38
+ * * **kling-2.5**: 5, 10
39
+ * * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
40
+ * * **sora-2**: 4, 8, 12, 24, 36, 48, 60
41
+ * * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
42
+ * * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
28
43
  */
29
44
  endSeconds: number;
30
45
  /**
31
46
  * The AI model to use for video generation.
32
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
47
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
48
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
33
49
  * * `seedance`: Great for fast iteration and start/end frame
34
- * * `kling-2.5-audio`: Great for motion, action, and camera control
50
+ * * `kling-2.5`: Great for motion, action, and camera control
51
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
35
52
  * * `sora-2`: Great for story-telling, dialogue & creativity
36
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
37
53
  * * `veo3.1`: Great for realism, polish, & prompt adherence
38
54
  * * `kling-1.6`: Great for dependable clips with smooth motion
39
55
  */
40
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
56
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
41
57
  /**
42
58
  * Give your video a custom name for easy identification.
43
59
  */
@@ -50,12 +66,13 @@ export type CreateRequest = {
50
66
  * Controls the output video resolution. Defaults to `720p` if not specified.
51
67
  *
52
68
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
53
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
54
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
55
- * * **Sora 2**: Supports `720p`.
56
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
57
- * * **Veo 3.1**: Supports `720p`, `1080p`.
58
- * * **Kling 1.6**: Supports `720p`, `1080p`.
69
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
+ * * **kling-2.5**: Supports `720p`, `1080p`.
72
+ * * **kling-3.0**: Supports `720p`, `1080p`.
73
+ * * **sora-2**: Supports `720p`.
74
+ * * **veo3.1**: Supports `720p`, `1080p`.
75
+ * * **kling-1.6**: Supports `720p`, `1080p`.
59
76
  */
60
77
  resolution?: ("1080p" | "480p" | "720p") | undefined;
61
78
  style: V1TextToVideoCreateBodyStyle;
@@ -67,8 +84,9 @@ export type CreateRequest = {
67
84
  */
68
85
  export type External$CreateRequest = {
69
86
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
87
+ audio?: boolean | undefined;
70
88
  end_seconds: number;
71
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
89
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
72
90
  name?: string | undefined;
73
91
  orientation?: ("landscape" | "portrait" | "square") | undefined;
74
92
  resolution?: ("1080p" | "480p" | "720p") | undefined;
@@ -43,12 +43,16 @@ const v1_text_to_video_create_body_style_1 = require("../../../types/v1-text-to-
43
43
  const SchemaIn$CreateRequest = z
44
44
  .object({
45
45
  aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
46
+ audio: z.boolean().optional(),
46
47
  end_seconds: z.number(),
47
48
  model: z
48
49
  .enum([
49
50
  "default",
50
51
  "kling-1.6",
52
+ "kling-2.5",
51
53
  "kling-2.5-audio",
54
+ "kling-3.0",
55
+ "ltx-2",
52
56
  "seedance",
53
57
  "sora-2",
54
58
  "veo3.1",
@@ -63,6 +67,7 @@ const SchemaIn$CreateRequest = z
63
67
  .transform((obj) => {
64
68
  return (0, make_api_request_js_1.zodTransform)(obj, {
65
69
  aspect_ratio: "aspectRatio",
70
+ audio: "audio",
66
71
  end_seconds: "endSeconds",
67
72
  model: "model",
68
73
  name: "name",
@@ -78,12 +83,16 @@ const SchemaIn$CreateRequest = z
78
83
  const SchemaOut$CreateRequest = z
79
84
  .object({
80
85
  aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
86
+ audio: z.boolean().optional(),
81
87
  endSeconds: z.number(),
82
88
  model: z
83
89
  .enum([
84
90
  "default",
85
91
  "kling-1.6",
92
+ "kling-2.5",
86
93
  "kling-2.5-audio",
94
+ "kling-3.0",
95
+ "ltx-2",
87
96
  "seedance",
88
97
  "sora-2",
89
98
  "veo3.1",
@@ -98,6 +107,7 @@ const SchemaOut$CreateRequest = z
98
107
  .transform((obj) => {
99
108
  return (0, make_api_request_js_1.zodTransform)(obj, {
100
109
  aspectRatio: "aspect_ratio",
110
+ audio: "audio",
101
111
  endSeconds: "end_seconds",
102
112
  model: "model",
103
113
  name: "name",
@@ -28,7 +28,7 @@ export declare class TextToVideoClient extends CoreResourceClient {
28
28
  * {
29
29
  * waitForCompletion: true,
30
30
  * downloadOutputs: true,
31
- * downloadDirectory: "outputs",
31
+ * downloadDirectory: ".",
32
32
  * },
33
33
  * );
34
34
  * ```
@@ -53,7 +53,7 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
53
53
  * {
54
54
  * waitForCompletion: true,
55
55
  * downloadOutputs: true,
56
- * downloadDirectory: "outputs",
56
+ * downloadDirectory: ".",
57
57
  * },
58
58
  * );
59
59
  * ```
@@ -44,7 +44,7 @@ export declare class VideoToVideoClient extends CoreResourceClient {
44
44
  * {
45
45
  * waitForCompletion: true,
46
46
  * downloadOutputs: true,
47
- * downloadDirectory: "outputs",
47
+ * downloadDirectory: ".",
48
48
  * },
49
49
  * );
50
50
  * ```
@@ -61,7 +61,7 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
61
61
  * {
62
62
  * waitForCompletion: true,
63
63
  * downloadOutputs: true,
64
- * downloadDirectory: "outputs",
64
+ * downloadDirectory: ".",
65
65
  * },
66
66
  * );
67
67
  * ```
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * The AI model to use for video generation.
3
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
3
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
4
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
4
5
  * * `seedance`: Great for fast iteration and start/end frame
5
- * * `kling-2.5-audio`: Great for motion, action, and camera control
6
+ * * `kling-2.5`: Great for motion, action, and camera control
7
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
6
8
  * * `sora-2`: Great for story-telling, dialogue & creativity
7
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
8
9
  * * `veo3.1`: Great for realism, polish, & prompt adherence
9
10
  * * `kling-1.6`: Great for dependable clips with smooth motion
10
11
  */
11
- export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
12
+ export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
@@ -2,11 +2,12 @@
2
2
  * Controls the output video resolution. Defaults to `720p` if not specified.
3
3
  *
4
4
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
5
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
6
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
7
- * * **Sora 2**: Supports `720p`.
8
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
9
- * * **Veo 3.1**: Supports `720p`, `1080p`.
10
- * * **Kling 1.6**: Supports `720p`, `1080p`.
5
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
6
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
7
+ * * **kling-2.5**: Supports `720p`, `1080p`.
8
+ * * **kling-3.0**: Supports `720p`, `1080p`.
9
+ * * **sora-2**: Supports `720p`.
10
+ * * **veo3.1**: Supports `720p`, `1080p`.
11
+ * * **kling-1.6**: Supports `720p`, `1080p`.
11
12
  */
12
13
  export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -9,17 +9,31 @@ export type V1ImageToVideoCreateBody = {
9
9
  * Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
10
10
  */
11
11
  assets: V1ImageToVideoCreateBodyAssets;
12
+ /**
13
+ * Whether to include audio in the video. Defaults to `false` if not specified.
14
+ *
15
+ * Audio support varies by model:
16
+ * * **ltx-2**: Always included (cannot be disabled)
17
+ * * **seedance**: Not supported
18
+ * * **kling-2.5**: Always included (cannot be disabled)
19
+ * * **kling-3.0**: Toggle-able (can enable/disable)
20
+ * * **sora-2**: Always included (cannot be disabled)
21
+ * * **veo3.1**: Toggle-able (can enable/disable)
22
+ * * **kling-1.6**: Not supported
23
+ */
24
+ audio?: boolean | undefined;
12
25
  /**
13
26
  * The total duration of the output video in seconds.
14
27
  *
15
28
  * Supported durations depend on the chosen model:
16
29
  * * **Default**: 5-60 seconds (2-12 seconds for 480p).
17
- * * **Seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
18
- * * **Kling 2.5 Audio**: 5, 10
19
- * * **Sora 2**: 4, 8, 12, 24, 36, 48, 60
20
- * * **Veo 3.1 Audio**: 4, 6, 8, 16, 24, 32, 40, 48, 56
21
- * * **Veo 3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
22
- * * **Kling 1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
30
+ * * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
31
+ * * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
32
+ * * **kling-2.5**: 5, 10
33
+ * * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
34
+ * * **sora-2**: 4, 8, 12, 24, 36, 48, 60
35
+ * * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
36
+ * * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
23
37
  */
24
38
  endSeconds: number;
25
39
  /**
@@ -34,15 +48,16 @@ export type V1ImageToVideoCreateBody = {
34
48
  height?: number | null | undefined;
35
49
  /**
36
50
  * The AI model to use for video generation.
37
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
51
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
52
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
38
53
  * * `seedance`: Great for fast iteration and start/end frame
39
- * * `kling-2.5-audio`: Great for motion, action, and camera control
54
+ * * `kling-2.5`: Great for motion, action, and camera control
55
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
40
56
  * * `sora-2`: Great for story-telling, dialogue & creativity
41
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
42
57
  * * `veo3.1`: Great for realism, polish, & prompt adherence
43
58
  * * `kling-1.6`: Great for dependable clips with smooth motion
44
59
  */
45
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
60
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
46
61
  /**
47
62
  * Give your video a custom name for easy identification.
48
63
  */
@@ -51,12 +66,13 @@ export type V1ImageToVideoCreateBody = {
51
66
  * Controls the output video resolution. Defaults to `720p` if not specified.
52
67
  *
53
68
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
54
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
55
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
56
- * * **Sora 2**: Supports `720p`.
57
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
58
- * * **Veo 3.1**: Supports `720p`, `1080p`.
59
- * * **Kling 1.6**: Supports `720p`, `1080p`.
69
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
+ * * **kling-2.5**: Supports `720p`, `1080p`.
72
+ * * **kling-3.0**: Supports `720p`, `1080p`.
73
+ * * **sora-2**: Supports `720p`.
74
+ * * **veo3.1**: Supports `720p`, `1080p`.
75
+ * * **kling-1.6**: Supports `720p`, `1080p`.
60
76
  */
61
77
  resolution?: ("1080p" | "480p" | "720p") | undefined;
62
78
  /**
@@ -81,9 +97,10 @@ export type V1ImageToVideoCreateBody = {
81
97
  */
82
98
  export type External$V1ImageToVideoCreateBody = {
83
99
  assets: External$V1ImageToVideoCreateBodyAssets;
100
+ audio?: boolean | undefined;
84
101
  end_seconds: number;
85
102
  height?: number | null | undefined;
86
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
103
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
87
104
  name?: string | undefined;
88
105
  resolution?: ("1080p" | "480p" | "720p") | undefined;
89
106
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -44,13 +44,17 @@ const v1_image_to_video_create_body_style_1 = require("./v1-image-to-video-creat
44
44
  const SchemaIn$V1ImageToVideoCreateBody = z
45
45
  .object({
46
46
  assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
47
+ audio: z.boolean().optional(),
47
48
  end_seconds: z.number(),
48
49
  height: z.number().int().nullable().optional(),
49
50
  model: z
50
51
  .enum([
51
52
  "default",
52
53
  "kling-1.6",
54
+ "kling-2.5",
53
55
  "kling-2.5-audio",
56
+ "kling-3.0",
57
+ "ltx-2",
54
58
  "seedance",
55
59
  "sora-2",
56
60
  "veo3.1",
@@ -65,6 +69,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
65
69
  .transform((obj) => {
66
70
  return (0, make_api_request_js_1.zodTransform)(obj, {
67
71
  assets: "assets",
72
+ audio: "audio",
68
73
  end_seconds: "endSeconds",
69
74
  height: "height",
70
75
  model: "model",
@@ -81,13 +86,17 @@ const SchemaIn$V1ImageToVideoCreateBody = z
81
86
  const SchemaOut$V1ImageToVideoCreateBody = z
82
87
  .object({
83
88
  assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
89
+ audio: z.boolean().optional(),
84
90
  endSeconds: z.number(),
85
91
  height: z.number().int().nullable().optional(),
86
92
  model: z
87
93
  .enum([
88
94
  "default",
89
95
  "kling-1.6",
96
+ "kling-2.5",
90
97
  "kling-2.5-audio",
98
+ "kling-3.0",
99
+ "ltx-2",
91
100
  "seedance",
92
101
  "sora-2",
93
102
  "veo3.1",
@@ -102,6 +111,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
102
111
  .transform((obj) => {
103
112
  return (0, make_api_request_js_1.zodTransform)(obj, {
104
113
  assets: "assets",
114
+ audio: "audio",
105
115
  endSeconds: "end_seconds",
106
116
  height: "height",
107
117
  model: "model",
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * Determines the aspect ratio of the output video.
3
- * * **Seedance**: Supports `9:16`, `16:9`, `1:1`.
4
- * * **Kling 2.5 Audio**: Supports `9:16`, `16:9`, `1:1`.
5
- * * **Sora 2**: Supports `9:16`, `16:9`.
6
- * * **Veo 3.1 Audio**: Supports `9:16`, `16:9`.
7
- * * **Veo 3.1**: Supports `9:16`, `16:9`.
8
- * * **Kling 1.6**: Supports `9:16`, `16:9`, `1:1`.
3
+ * * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
4
+ * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
5
+ * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
6
+ * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
7
+ * * **sora-2**: Supports `9:16`, `16:9`.
8
+ * * **veo3.1**: Supports `9:16`, `16:9`.
9
+ * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
9
10
  */
10
11
  export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * The AI model to use for video generation.
3
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
3
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
4
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
4
5
  * * `seedance`: Great for fast iteration and start/end frame
5
- * * `kling-2.5-audio`: Great for motion, action, and camera control
6
+ * * `kling-2.5`: Great for motion, action, and camera control
7
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
6
8
  * * `sora-2`: Great for story-telling, dialogue & creativity
7
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
8
9
  * * `veo3.1`: Great for realism, polish, & prompt adherence
9
10
  * * `kling-1.6`: Great for dependable clips with smooth motion
10
11
  */
11
- export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
12
+ export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
@@ -2,11 +2,12 @@
2
2
  * Controls the output video resolution. Defaults to `720p` if not specified.
3
3
  *
4
4
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
5
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
6
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
7
- * * **Sora 2**: Supports `720p`.
8
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
9
- * * **Veo 3.1**: Supports `720p`, `1080p`.
10
- * * **Kling 1.6**: Supports `720p`, `1080p`.
5
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
6
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
7
+ * * **kling-2.5**: Supports `720p`, `1080p`.
8
+ * * **kling-3.0**: Supports `720p`, `1080p`.
9
+ * * **sora-2**: Supports `720p`.
10
+ * * **veo3.1**: Supports `720p`, `1080p`.
11
+ * * **kling-1.6**: Supports `720p`, `1080p`.
11
12
  */
12
13
  export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -6,38 +6,54 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
6
6
  export type V1TextToVideoCreateBody = {
7
7
  /**
8
8
  * Determines the aspect ratio of the output video.
9
- * * **Seedance**: Supports `9:16`, `16:9`, `1:1`.
10
- * * **Kling 2.5 Audio**: Supports `9:16`, `16:9`, `1:1`.
11
- * * **Sora 2**: Supports `9:16`, `16:9`.
12
- * * **Veo 3.1 Audio**: Supports `9:16`, `16:9`.
13
- * * **Veo 3.1**: Supports `9:16`, `16:9`.
14
- * * **Kling 1.6**: Supports `9:16`, `16:9`, `1:1`.
9
+ * * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
10
+ * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
11
+ * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
12
+ * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
13
+ * * **sora-2**: Supports `9:16`, `16:9`.
14
+ * * **veo3.1**: Supports `9:16`, `16:9`.
15
+ * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
15
16
  */
16
17
  aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
18
+ /**
19
+ * Whether to include audio in the video. Defaults to `false` if not specified.
20
+ *
21
+ * Audio support varies by model:
22
+ * * **ltx-2**: Always included (cannot be disabled)
23
+ * * **seedance**: Not supported
24
+ * * **kling-2.5**: Always included (cannot be disabled)
25
+ * * **kling-3.0**: Toggle-able (can enable/disable)
26
+ * * **sora-2**: Always included (cannot be disabled)
27
+ * * **veo3.1**: Toggle-able (can enable/disable)
28
+ * * **kling-1.6**: Not supported
29
+ */
30
+ audio?: boolean | undefined;
17
31
  /**
18
32
  * The total duration of the output video in seconds.
19
33
  *
20
34
  * Supported durations depend on the chosen model:
21
35
  * * **Default**: 5-60 seconds (2-12 seconds for 480p).
22
- * * **Seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
23
- * * **Kling 2.5 Audio**: 5, 10
24
- * * **Sora 2**: 4, 8, 12, 24, 36, 48, 60
25
- * * **Veo 3.1 Audio**: 4, 6, 8, 16, 24, 32, 40, 48, 56
26
- * * **Veo 3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
27
- * * **Kling 1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
36
+ * * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
37
+ * * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
38
+ * * **kling-2.5**: 5, 10
39
+ * * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
40
+ * * **sora-2**: 4, 8, 12, 24, 36, 48, 60
41
+ * * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
42
+ * * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
28
43
  */
29
44
  endSeconds: number;
30
45
  /**
31
46
  * The AI model to use for video generation.
32
- * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
47
+ * * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
48
+ * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
33
49
  * * `seedance`: Great for fast iteration and start/end frame
34
- * * `kling-2.5-audio`: Great for motion, action, and camera control
50
+ * * `kling-2.5`: Great for motion, action, and camera control
51
+ * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
35
52
  * * `sora-2`: Great for story-telling, dialogue & creativity
36
- * * `veo3.1-audio`: Great for dialogue + SFX generated natively
37
53
  * * `veo3.1`: Great for realism, polish, & prompt adherence
38
54
  * * `kling-1.6`: Great for dependable clips with smooth motion
39
55
  */
40
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
56
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
41
57
  /**
42
58
  * Give your video a custom name for easy identification.
43
59
  */
@@ -50,12 +66,13 @@ export type V1TextToVideoCreateBody = {
50
66
  * Controls the output video resolution. Defaults to `720p` if not specified.
51
67
  *
52
68
  * * **Default**: Supports `480p`, `720p`, and `1080p`.
53
- * * **Seedance**: Supports `480p`, `720p`, `1080p`.
54
- * * **Kling 2.5 Audio**: Supports `720p`, `1080p`.
55
- * * **Sora 2**: Supports `720p`.
56
- * * **Veo 3.1 Audio**: Supports `720p`, `1080p`.
57
- * * **Veo 3.1**: Supports `720p`, `1080p`.
58
- * * **Kling 1.6**: Supports `720p`, `1080p`.
69
+ * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
+ * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
+ * * **kling-2.5**: Supports `720p`, `1080p`.
72
+ * * **kling-3.0**: Supports `720p`, `1080p`.
73
+ * * **sora-2**: Supports `720p`.
74
+ * * **veo3.1**: Supports `720p`, `1080p`.
75
+ * * **kling-1.6**: Supports `720p`, `1080p`.
59
76
  */
60
77
  resolution?: ("1080p" | "480p" | "720p") | undefined;
61
78
  style: V1TextToVideoCreateBodyStyle;
@@ -67,8 +84,9 @@ export type V1TextToVideoCreateBody = {
67
84
  */
68
85
  export type External$V1TextToVideoCreateBody = {
69
86
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
87
+ audio?: boolean | undefined;
70
88
  end_seconds: number;
71
- model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
89
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
72
90
  name?: string | undefined;
73
91
  orientation?: ("landscape" | "portrait" | "square") | undefined;
74
92
  resolution?: ("1080p" | "480p" | "720p") | undefined;
@@ -43,12 +43,16 @@ const v1_text_to_video_create_body_style_1 = require("./v1-text-to-video-create-
43
43
  const SchemaIn$V1TextToVideoCreateBody = z
44
44
  .object({
45
45
  aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
46
+ audio: z.boolean().optional(),
46
47
  end_seconds: z.number(),
47
48
  model: z
48
49
  .enum([
49
50
  "default",
50
51
  "kling-1.6",
52
+ "kling-2.5",
51
53
  "kling-2.5-audio",
54
+ "kling-3.0",
55
+ "ltx-2",
52
56
  "seedance",
53
57
  "sora-2",
54
58
  "veo3.1",
@@ -63,6 +67,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
63
67
  .transform((obj) => {
64
68
  return (0, make_api_request_js_1.zodTransform)(obj, {
65
69
  aspect_ratio: "aspectRatio",
70
+ audio: "audio",
66
71
  end_seconds: "endSeconds",
67
72
  model: "model",
68
73
  name: "name",
@@ -78,12 +83,16 @@ const SchemaIn$V1TextToVideoCreateBody = z
78
83
  const SchemaOut$V1TextToVideoCreateBody = z
79
84
  .object({
80
85
  aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
86
+ audio: z.boolean().optional(),
81
87
  endSeconds: z.number(),
82
88
  model: z
83
89
  .enum([
84
90
  "default",
85
91
  "kling-1.6",
92
+ "kling-2.5",
86
93
  "kling-2.5-audio",
94
+ "kling-3.0",
95
+ "ltx-2",
87
96
  "seedance",
88
97
  "sora-2",
89
98
  "veo3.1",
@@ -98,6 +107,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
98
107
  .transform((obj) => {
99
108
  return (0, make_api_request_js_1.zodTransform)(obj, {
100
109
  aspectRatio: "aspect_ratio",
110
+ audio: "audio",
101
111
  endSeconds: "end_seconds",
102
112
  model: "model",
103
113
  name: "name",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.51.0",
3
+ "version": "0.53.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {