magic-hour 0.70.0 → 0.71.3

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 (52) hide show
  1. package/dist/environment.d.ts +1 -1
  2. package/dist/environment.js +1 -1
  3. package/dist/resources/v1/ai-image-editor/request-types.d.ts +15 -15
  4. package/dist/resources/v1/ai-image-generator/request-types.d.ts +21 -21
  5. package/dist/resources/v1/ai-video-editor/request-types.d.ts +11 -1
  6. package/dist/resources/v1/ai-video-editor/request-types.js +8 -0
  7. package/dist/resources/v1/ai-video-editor/resource-client.d.ts +1 -1
  8. package/dist/resources/v1/ai-video-editor/resource-client.js +1 -1
  9. package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +1 -1
  10. package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
  11. package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +1 -1
  12. package/dist/resources/v1/ai-voice-generator/resource-client.js +1 -1
  13. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +1 -1
  14. package/dist/resources/v1/files/upload-urls/resource-client.js +1 -1
  15. package/dist/resources/v1/image-to-video/request-types.d.ts +34 -26
  16. package/dist/resources/v1/image-to-video/request-types.js +6 -0
  17. package/dist/resources/v1/text-to-video/request-types.d.ts +42 -32
  18. package/dist/resources/v1/text-to-video/request-types.js +6 -0
  19. package/dist/types/index.d.ts +2 -0
  20. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +12 -12
  21. package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +3 -3
  22. package/dist/types/v1-ai-image-editor-create-body.d.ts +15 -15
  23. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +15 -15
  24. package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +6 -6
  25. package/dist/types/v1-ai-image-generator-create-body.d.ts +21 -21
  26. package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +4 -0
  27. package/dist/types/v1-ai-video-editor-create-body-model-enum.js +2 -0
  28. package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +4 -0
  29. package/dist/types/v1-ai-video-editor-create-body-resolution-enum.js +2 -0
  30. package/dist/types/v1-ai-video-editor-create-body.d.ts +11 -1
  31. package/dist/types/v1-ai-video-editor-create-body.js +8 -0
  32. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
  33. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
  34. package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
  35. package/dist/types/v1-audio-projects-get-response-status-enum.d.ts +9 -0
  36. package/dist/types/v1-audio-projects-get-response.d.ts +9 -0
  37. package/dist/types/v1-files-upload-urls-create-response.d.ts +1 -1
  38. package/dist/types/v1-image-projects-get-response-status-enum.d.ts +9 -0
  39. package/dist/types/v1-image-projects-get-response.d.ts +10 -1
  40. package/dist/types/v1-image-to-video-create-body-assets.d.ts +8 -6
  41. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +9 -7
  42. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +8 -6
  43. package/dist/types/v1-image-to-video-create-body.d.ts +34 -26
  44. package/dist/types/v1-image-to-video-create-body.js +6 -0
  45. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +8 -6
  46. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +9 -7
  47. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +8 -6
  48. package/dist/types/v1-text-to-video-create-body.d.ts +42 -32
  49. package/dist/types/v1-text-to-video-create-body.js +6 -0
  50. package/dist/types/v1-video-projects-get-response-status-enum.d.ts +9 -0
  51. package/dist/types/v1-video-projects-get-response.d.ts +10 -1
  52. package/package.json +14 -4
@@ -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.71.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.75.2"
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.71.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.75.2";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -22,14 +22,14 @@ export type CreateRequest = {
22
22
  *
23
23
  * **Models:**
24
24
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
25
- * - `qwen-edit` - from 10 credits/image
26
- * - Supported resolutions: 640px, 1k, 2k
27
- * - Available for tiers: free, creator, pro, business
28
- * - Max additional input images: 2
29
25
  * - `flux-2-klein` - from 5 credits/image
30
26
  * - Supported resolutions: 640px, 1k, 2k
31
27
  * - Available for tiers: free, creator, pro, business
32
28
  * - Max additional input images: 5
29
+ * - `gpt-image-2` - from 50 credits/image
30
+ * - Supported resolutions: 640px, 1k, 2k, 4k
31
+ * - Available for tiers: creator, pro, business
32
+ * - Max additional input images: 9
33
33
  * - `nano-banana` - from 50 credits/image
34
34
  * - Supported resolutions: 640px, 1k
35
35
  * - Available for tiers: creator, pro, business
@@ -42,14 +42,18 @@ export type CreateRequest = {
42
42
  * - Supported resolutions: 640px, 1k
43
43
  * - Available for tiers: creator, pro, business
44
44
  * - Max additional input images: 9
45
- * - `seedream-v4` - from 40 credits/image
46
- * - Supported resolutions: 640px, 1k, 2k, 4k
47
- * - Available for tiers: creator, pro, business
48
- * - Max additional input images: 9
49
45
  * - `nano-banana-pro` - from 150 credits/image
50
46
  * - Supported resolutions: 1k, 2k, 4k
51
47
  * - Available for tiers: creator, pro, business
52
48
  * - Max additional input images: 9
49
+ * - `qwen-edit` - from 10 credits/image
50
+ * - Supported resolutions: 640px, 1k, 2k
51
+ * - Available for tiers: free, creator, pro, business
52
+ * - Max additional input images: 2
53
+ * - `seedream-v4` - from 40 credits/image
54
+ * - Supported resolutions: 640px, 1k, 2k, 4k
55
+ * - Available for tiers: creator, pro, business
56
+ * - Max additional input images: 9
53
57
  * - `seedream-v4.5` - from 50 credits/image
54
58
  * - Supported resolutions: 640px, 1k, 2k, 4k
55
59
  * - Available for tiers: creator, pro, business
@@ -58,10 +62,6 @@ export type CreateRequest = {
58
62
  * - Supported resolutions: 640px, 1k, 2k
59
63
  * - Available for tiers: creator, pro, business
60
64
  * - Max additional input images: 9
61
- * - `gpt-image-2` - from 50 credits/image
62
- * - Supported resolutions: 640px, 1k, 2k, 4k
63
- * - Available for tiers: creator, pro, business
64
- * - Max additional input images: 9
65
65
  *
66
66
  */
67
67
  model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
@@ -80,16 +80,16 @@ export type CreateRequest = {
80
80
  * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
81
81
  *
82
82
  * **Per-model support:**
83
- * - `qwen-edit` - 640px, 1k, 2k
84
83
  * - `flux-2-klein` - 640px, 1k, 2k
84
+ * - `gpt-image-2` - 640px, 1k, 2k, 4k
85
85
  * - `nano-banana` - 640px, 1k
86
86
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
87
87
  * - `nano-banana-2-lite` - 640px, 1k
88
- * - `seedream-v4` - 640px, 1k, 2k, 4k
89
88
  * - `nano-banana-pro` - 1k, 2k, 4k
89
+ * - `qwen-edit` - 640px, 1k, 2k
90
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
90
91
  * - `seedream-v4.5` - 640px, 1k, 2k, 4k
91
92
  * - `seedream-v5-pro` - 640px, 1k, 2k
92
- * - `gpt-image-2` - 640px, 1k, 2k, 4k
93
93
  *
94
94
  * Note: Resolution availability depends on the model and your subscription tier.
95
95
  */
@@ -17,46 +17,46 @@ export type CreateRequest = {
17
17
  *
18
18
  * **Models:**
19
19
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
20
- * - `flux-schnell` - from 5 credits/image
21
- * - Supported resolutions: 640px, 1k, 2k
22
- * - Available for tiers: free, creator, pro, business
23
- * - Image count allowed: 1, 2, 3, 4
24
20
  * - `flux-2-klein` - from 5 credits/image
25
21
  * - Supported resolutions: 640px, 1k, 2k
26
22
  * - Available for tiers: free, creator, pro, business
27
23
  * - Image count allowed: 1
28
- * - `z-image-turbo` - from 5 credits/image
24
+ * - `flux-schnell` - from 5 credits/image
29
25
  * - Supported resolutions: 640px, 1k, 2k
30
26
  * - Available for tiers: free, creator, pro, business
31
27
  * - Image count allowed: 1, 2, 3, 4
32
- * - `seedream-v4` - from 40 credits/image
28
+ * - `gpt-image-2` - from 50 credits/image
33
29
  * - Supported resolutions: 640px, 1k, 2k, 4k
34
30
  * - Available for tiers: creator, pro, business
35
31
  * - Image count allowed: 1, 2, 3, 4
36
- * - `seedream-v5-pro` - from 75 credits/image
37
- * - Supported resolutions: 640px, 1k, 2k
38
- * - Available for tiers: creator, pro, business
39
- * - Image count allowed: 1, 2, 3, 4
40
32
  * - `nano-banana` - from 50 credits/image
41
33
  * - Supported resolutions: 640px, 1k
42
34
  * - Available for tiers: creator, pro, business
43
35
  * - Image count allowed: 1, 2, 3, 4
44
- * - `nano-banana-2-lite` - from 50 credits/image
45
- * - Supported resolutions: 640px, 1k
46
- * - Available for tiers: creator, pro, business
47
- * - Image count allowed: 1, 2, 3, 4
48
36
  * - `nano-banana-2` - from 100 credits/image
49
37
  * - Supported resolutions: 640px, 1k, 2k, 4k
50
38
  * - Available for tiers: creator, pro, business
51
39
  * - Image count allowed: 1, 4, 9, 16
40
+ * - `nano-banana-2-lite` - from 50 credits/image
41
+ * - Supported resolutions: 640px, 1k
42
+ * - Available for tiers: creator, pro, business
43
+ * - Image count allowed: 1, 2, 3, 4
52
44
  * - `nano-banana-pro` - from 150 credits/image
53
45
  * - Supported resolutions: 1k, 2k, 4k
54
46
  * - Available for tiers: creator, pro, business
55
47
  * - Image count allowed: 1, 4, 9, 16
56
- * - `gpt-image-2` - from 50 credits/image
48
+ * - `seedream-v4` - from 40 credits/image
57
49
  * - Supported resolutions: 640px, 1k, 2k, 4k
58
50
  * - Available for tiers: creator, pro, business
59
51
  * - Image count allowed: 1, 2, 3, 4
52
+ * - `seedream-v5-pro` - from 75 credits/image
53
+ * - Supported resolutions: 640px, 1k, 2k
54
+ * - Available for tiers: creator, pro, business
55
+ * - Image count allowed: 1, 2, 3, 4
56
+ * - `z-image-turbo` - from 5 credits/image
57
+ * - Supported resolutions: 640px, 1k, 2k
58
+ * - Available for tiers: free, creator, pro, business
59
+ * - Image count allowed: 1, 2, 3, 4
60
60
  *
61
61
  * **Deprecated Enum Values:**
62
62
  * - `seedream` - Use `seedream-v4` instead.
@@ -84,16 +84,16 @@ export type CreateRequest = {
84
84
  * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
85
85
  *
86
86
  * **Per-model support:**
87
- * - `flux-schnell` - 640px, 1k, 2k
88
87
  * - `flux-2-klein` - 640px, 1k, 2k
89
- * - `z-image-turbo` - 640px, 1k, 2k
90
- * - `seedream-v4` - 640px, 1k, 2k, 4k
91
- * - `seedream-v5-pro` - 640px, 1k, 2k
88
+ * - `flux-schnell` - 640px, 1k, 2k
89
+ * - `gpt-image-2` - 640px, 1k, 2k, 4k
92
90
  * - `nano-banana` - 640px, 1k
93
- * - `nano-banana-2-lite` - 640px, 1k
94
91
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
92
+ * - `nano-banana-2-lite` - 640px, 1k
95
93
  * - `nano-banana-pro` - 1k, 2k, 4k
96
- * - `gpt-image-2` - 640px, 1k, 2k, 4k
94
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
95
+ * - `seedream-v5-pro` - 640px, 1k, 2k
96
+ * - `z-image-turbo` - 640px, 1k, 2k
97
97
  *
98
98
  * Note: Resolution availability depends on the model and your subscription tier.
99
99
  */
@@ -10,13 +10,21 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiVideoEditorCreateBodyAssets;
12
12
  /**
13
- * End time of your clip in seconds. Must be greater than `start_seconds`. Duration must be between 3 and 10 seconds.
13
+ * End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni`: 3s, `ltx-2.3`: 0.5s. Maximum duration depends on model: `gemini-omni`: 10s, `ltx-2.3`: 45s.
14
14
  */
15
15
  endSeconds: number;
16
+ /**
17
+ * Editing model. Defaults to `ltx-2.3` for free tier and `gemini-omni` for paid. Use `ltx-2.3` for LTX video edit.
18
+ */
19
+ model?: ("gemini-omni" | "ltx-2.3") | undefined;
16
20
  /**
17
21
  * Give your video a custom name for easy identification.
18
22
  */
19
23
  name?: string | undefined;
24
+ /**
25
+ * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Google Omni supports 720p only; LTX-2.3 supports 480p, 720p, and 1080p.
26
+ */
27
+ resolution?: ("1080p" | "480p" | "720p") | undefined;
20
28
  /**
21
29
  * Start time of your clip (seconds). Must be ≥ 0.
22
30
  */
@@ -31,7 +39,9 @@ export type CreateRequest = {
31
39
  export type External$CreateRequest = {
32
40
  assets: External$V1AiVideoEditorCreateBodyAssets;
33
41
  end_seconds: number;
42
+ model?: ("gemini-omni" | "ltx-2.3") | undefined;
34
43
  name?: string | undefined;
44
+ resolution?: ("1080p" | "480p" | "720p") | undefined;
35
45
  start_seconds?: number | undefined;
36
46
  style: External$V1AiVideoEditorCreateBodyStyle;
37
47
  };
@@ -45,7 +45,9 @@ const SchemaIn$CreateRequest = z
45
45
  .object({
46
46
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.in,
47
47
  end_seconds: z.number(),
48
+ model: z.enum(["gemini-omni", "ltx-2.3"]).optional(),
48
49
  name: z.string().optional(),
50
+ resolution: z.enum(["1080p", "480p", "720p"]).optional(),
49
51
  start_seconds: z.number().optional(),
50
52
  style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.in,
51
53
  })
@@ -53,7 +55,9 @@ const SchemaIn$CreateRequest = z
53
55
  return (0, make_api_request_js_1.zodTransform)(obj, {
54
56
  assets: "assets",
55
57
  end_seconds: "endSeconds",
58
+ model: "model",
56
59
  name: "name",
60
+ resolution: "resolution",
57
61
  start_seconds: "startSeconds",
58
62
  style: "style",
59
63
  });
@@ -66,7 +70,9 @@ const SchemaOut$CreateRequest = z
66
70
  .object({
67
71
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.out,
68
72
  endSeconds: z.number(),
73
+ model: z.enum(["gemini-omni", "ltx-2.3"]).optional(),
69
74
  name: z.string().optional(),
75
+ resolution: z.enum(["1080p", "480p", "720p"]).optional(),
70
76
  startSeconds: z.number().optional(),
71
77
  style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.out,
72
78
  })
@@ -74,7 +80,9 @@ const SchemaOut$CreateRequest = z
74
80
  return (0, make_api_request_js_1.zodTransform)(obj, {
75
81
  assets: "assets",
76
82
  endSeconds: "end_seconds",
83
+ model: "model",
77
84
  name: "name",
85
+ resolution: "resolution",
78
86
  startSeconds: "start_seconds",
79
87
  style: "style",
80
88
  });
@@ -67,7 +67,7 @@ export declare class AiVideoEditorClient extends CoreResourceClient {
67
67
  * **Cost**
68
68
  * 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.
69
69
  *
70
- * For detailed examples, see the [product page](https://magichour.ai/products/video-editor).
70
+ * For detailed examples, see the [product page](https://magichour.ai/products/ai-video-editor).
71
71
  *
72
72
  * POST /v1/ai-video-editor
73
73
  */
@@ -101,7 +101,7 @@ class AiVideoEditorClient extends make_api_request_js_1.CoreResourceClient {
101
101
  * **Cost**
102
102
  * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
103
103
  *
104
- * For detailed examples, see the [product page](https://magichour.ai/products/video-editor).
104
+ * For detailed examples, see the [product page](https://magichour.ai/products/ai-video-editor).
105
105
  *
106
106
  * POST /v1/ai-video-editor
107
107
  */
@@ -45,7 +45,7 @@ export declare class AiVoiceClonerClient extends CoreResourceClient {
45
45
  * AI Voice Cloner
46
46
  *
47
47
  * Clone a voice from an audio sample and generate speech.
48
- * * Each character costs 0.05 credits.
48
+ * * Each character costs 0.1 credits.
49
49
  * * The cost is rounded up to the nearest whole number
50
50
  *
51
51
  * POST /v1/ai-voice-cloner
@@ -79,7 +79,7 @@ class AiVoiceClonerClient extends make_api_request_js_1.CoreResourceClient {
79
79
  * AI Voice Cloner
80
80
  *
81
81
  * Clone a voice from an audio sample and generate speech.
82
- * * Each character costs 0.05 credits.
82
+ * * Each character costs 0.1 credits.
83
83
  * * The cost is rounded up to the nearest whole number
84
84
  *
85
85
  * POST /v1/ai-voice-cloner
@@ -34,7 +34,7 @@ export declare class AiVoiceGeneratorClient extends CoreResourceClient {
34
34
  /**
35
35
  * AI Voice Generator
36
36
  *
37
- * Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
37
+ * Generate speech from text. Each character costs 0.1 credits. The cost is rounded up to the nearest whole number.
38
38
  *
39
39
  * POST /v1/ai-voice-generator
40
40
  */
@@ -71,7 +71,7 @@ class AiVoiceGeneratorClient extends make_api_request_js_1.CoreResourceClient {
71
71
  /**
72
72
  * AI Voice Generator
73
73
  *
74
- * Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
74
+ * Generate speech from text. Each character costs 0.1 credits. The cost is rounded up to the nearest whole number.
75
75
  *
76
76
  * POST /v1/ai-voice-generator
77
77
  */
@@ -6,7 +6,7 @@ export declare class UploadUrlsClient extends CoreResourceClient {
6
6
  /**
7
7
  * Generate asset upload urls
8
8
  *
9
- * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.
9
+ * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.
10
10
  *
11
11
  * The response array will match the order of items in the request body.
12
12
  *
@@ -11,7 +11,7 @@ class UploadUrlsClient extends make_api_request_js_1.CoreResourceClient {
11
11
  /**
12
12
  * Generate asset upload urls
13
13
  *
14
- * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.
14
+ * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details.
15
15
  *
16
16
  * The response array will match the order of items in the request body.
17
17
  *
@@ -13,32 +13,36 @@ export type CreateRequest = {
13
13
  * Whether to include audio in the video. Defaults to `false` if not specified.
14
14
  *
15
15
  * Audio support varies by model:
16
- * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
17
- * * **`wan-2.2`**: Not supported
18
- * * **`kling-2.5`**: Toggle-able: no additional credits for audio
16
+ * * **`kling-2.6`**: Not supported
19
17
  * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
20
- * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
21
- * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
18
+ * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
19
+ * * **`minimax-h3`**: Toggle-able: no additional credits for audio
22
20
  * * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
23
- * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
24
21
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
22
+ * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
23
+ * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
25
24
  * * **`sora-2`**: Toggle-able: no additional credits for audio
25
+ * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
26
+ * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
27
+ * * **`wan-2.2`**: Not supported
26
28
  *
27
29
  */
28
30
  audio?: boolean | undefined;
29
31
  /**
30
32
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
31
33
  *
32
- * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
33
- * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
34
- * * **`kling-2.5`**: 5, 10
34
+ * * **`kling-2.6`**: 5, 10
35
35
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
36
- * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
37
- * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
36
+ * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
37
+ * * **`minimax-h3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
38
38
  * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
39
- * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
40
39
  * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
40
+ * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
41
+ * * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
41
42
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
43
+ * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
44
+ * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
45
+ * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
42
46
  *
43
47
  */
44
48
  endSeconds: number;
@@ -52,20 +56,22 @@ export type CreateRequest = {
52
56
  * The AI model to use for video generation.
53
57
  *
54
58
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
55
- * * `ltx-2.3`: Fastest output. Best for rapid iteration.
56
- * * `wan-2.2`: Strong physics, camera moves, and motion.
57
- * * `kling-2.5`: Great for action, motion blur, and camera moves.
59
+ * * `kling-2.6`: Great for action, motion blur, and camera moves.
58
60
  * * `kling-3.0`: Best overall quality for cinematic storytelling.
59
- * * `veo3.1-lite`: Veo quality at a more accessible cost.
60
- * * `veo3.1`: Google's model. Highest realism and detail.
61
+ * * `ltx-2.3`: Fastest output. Best for rapid iteration.
62
+ * * `minimax-h3`: Reference-driven video with native audio.
61
63
  * * `seedance-1.5`: Smooth, consistent motion with precision.
62
- * * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
63
64
  * * `seedance-2.0`: Top quality with reference-to-video control.
65
+ * * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
66
+ * * `seedance-2.5`: Highest quality with superior realism, detail, and motion
64
67
  * * `sora-2`: Open AI's model. Great for creativity and viral clips.
68
+ * * `veo3.1`: Google's model. Highest realism and detail.
69
+ * * `veo3.1-lite`: Veo quality at a more accessible cost.
70
+ * * `wan-2.2`: Strong physics, camera moves, and motion.
65
71
  *
66
72
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
67
73
  */
68
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
74
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
69
75
  /**
70
76
  * Give your video a custom name for easy identification.
71
77
  */
@@ -73,16 +79,18 @@ export type CreateRequest = {
73
79
  /**
74
80
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
75
81
  *
76
- * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
77
- * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
78
- * * **`kling-2.5`**: Supports 720p, 1080p.
82
+ * * **`kling-2.6`**: Supports 720p, 1080p.
79
83
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
80
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
81
- * * **`veo3.1`**: Supports 720p, 1080p.
84
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
85
+ * * **`minimax-h3`**: Supports 480p, 720p, 1080p.
82
86
  * * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
83
- * * **`seedance-2.0-mini`**: Supports 480p, 720p.
84
87
  * * **`seedance-2.0`**: Supports 480p, 720p.
88
+ * * **`seedance-2.0-mini`**: Supports 480p, 720p.
89
+ * * **`seedance-2.5`**: Supports 480p, 720p.
85
90
  * * **`sora-2`**: Supports 720p.
91
+ * * **`veo3.1`**: Supports 720p, 1080p.
92
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
93
+ * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
86
94
  *
87
95
  */
88
96
  resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
@@ -107,7 +115,7 @@ export type External$CreateRequest = {
107
115
  audio?: boolean | undefined;
108
116
  end_seconds: number;
109
117
  height?: number | null | undefined;
110
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
118
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
111
119
  name?: string | undefined;
112
120
  resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
113
121
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -53,13 +53,16 @@ const SchemaIn$CreateRequest = z
53
53
  "kling-1.6",
54
54
  "kling-2.5",
55
55
  "kling-2.5-audio",
56
+ "kling-2.6",
56
57
  "kling-3.0",
57
58
  "ltx-2",
58
59
  "ltx-2.3",
60
+ "minimax-h3",
59
61
  "seedance",
60
62
  "seedance-1.5",
61
63
  "seedance-2.0",
62
64
  "seedance-2.0-mini",
65
+ "seedance-2.5",
63
66
  "sora-2",
64
67
  "veo3.1",
65
68
  "veo3.1-audio",
@@ -101,13 +104,16 @@ const SchemaOut$CreateRequest = z
101
104
  "kling-1.6",
102
105
  "kling-2.5",
103
106
  "kling-2.5-audio",
107
+ "kling-2.6",
104
108
  "kling-3.0",
105
109
  "ltx-2",
106
110
  "ltx-2.3",
111
+ "minimax-h3",
107
112
  "seedance",
108
113
  "seedance-1.5",
109
114
  "seedance-2.0",
110
115
  "seedance-2.0-mini",
116
+ "seedance-2.5",
111
117
  "sora-2",
112
118
  "veo3.1",
113
119
  "veo3.1-audio",
@@ -7,16 +7,18 @@ export type CreateRequest = {
7
7
  /**
8
8
  * Determines the aspect ratio of the output video.
9
9
  *
10
- * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
11
- * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
12
- * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
10
+ * * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
13
11
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
14
- * * **`veo3.1-lite`**: Supports 9:16, 16:9.
15
- * * **`veo3.1`**: Supports 9:16, 16:9.
12
+ * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
13
+ * * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
16
14
  * * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
17
- * * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
18
15
  * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
16
+ * * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
17
+ * * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
19
18
  * * **`sora-2`**: Supports 9:16, 16:9.
19
+ * * **`veo3.1`**: Supports 9:16, 16:9.
20
+ * * **`veo3.1-lite`**: Supports 9:16, 16:9.
21
+ * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
20
22
  *
21
23
  */
22
24
  aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
@@ -24,32 +26,36 @@ export type CreateRequest = {
24
26
  * Whether to include audio in the video. Defaults to `false` if not specified.
25
27
  *
26
28
  * Audio support varies by model:
27
- * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
28
- * * **`wan-2.2`**: Not supported
29
- * * **`kling-2.5`**: Toggle-able: no additional credits for audio
29
+ * * **`kling-2.6`**: Not supported
30
30
  * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
31
- * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
32
- * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
31
+ * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
32
+ * * **`minimax-h3`**: Toggle-able: no additional credits for audio
33
33
  * * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
34
- * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
35
34
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
35
+ * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
36
+ * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
36
37
  * * **`sora-2`**: Toggle-able: no additional credits for audio
38
+ * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
39
+ * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
40
+ * * **`wan-2.2`**: Not supported
37
41
  *
38
42
  */
39
43
  audio?: boolean | undefined;
40
44
  /**
41
45
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
42
46
  *
43
- * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
44
- * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
45
- * * **`kling-2.5`**: 5, 10
47
+ * * **`kling-2.6`**: 5, 10
46
48
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
47
- * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
48
- * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
49
+ * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
50
+ * * **`minimax-h3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
49
51
  * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
50
- * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
51
52
  * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
53
+ * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
54
+ * * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
52
55
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
56
+ * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
57
+ * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
58
+ * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
53
59
  *
54
60
  */
55
61
  endSeconds: number;
@@ -57,20 +63,22 @@ export type CreateRequest = {
57
63
  * The AI model to use for video generation.
58
64
  *
59
65
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
60
- * * `ltx-2.3`: Fastest output. Best for rapid iteration.
61
- * * `wan-2.2`: Strong physics, camera moves, and motion.
62
- * * `kling-2.5`: Great for action, motion blur, and camera moves.
66
+ * * `kling-2.6`: Great for action, motion blur, and camera moves.
63
67
  * * `kling-3.0`: Best overall quality for cinematic storytelling.
64
- * * `veo3.1-lite`: Veo quality at a more accessible cost.
65
- * * `veo3.1`: Google's model. Highest realism and detail.
68
+ * * `ltx-2.3`: Fastest output. Best for rapid iteration.
69
+ * * `minimax-h3`: Reference-driven video with native audio.
66
70
  * * `seedance-1.5`: Smooth, consistent motion with precision.
67
- * * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
68
71
  * * `seedance-2.0`: Top quality with reference-to-video control.
72
+ * * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
73
+ * * `seedance-2.5`: Highest quality with superior realism, detail, and motion
69
74
  * * `sora-2`: Open AI's model. Great for creativity and viral clips.
75
+ * * `veo3.1`: Google's model. Highest realism and detail.
76
+ * * `veo3.1-lite`: Veo quality at a more accessible cost.
77
+ * * `wan-2.2`: Strong physics, camera moves, and motion.
70
78
  *
71
79
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
72
80
  */
73
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
81
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
74
82
  /**
75
83
  * Give your video a custom name for easy identification.
76
84
  */
@@ -82,16 +90,18 @@ export type CreateRequest = {
82
90
  /**
83
91
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
84
92
  *
85
- * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
86
- * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
87
- * * **`kling-2.5`**: Supports 720p, 1080p.
93
+ * * **`kling-2.6`**: Supports 720p, 1080p.
88
94
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
89
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
90
- * * **`veo3.1`**: Supports 720p, 1080p.
95
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
96
+ * * **`minimax-h3`**: Supports 480p, 720p, 1080p.
91
97
  * * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
92
- * * **`seedance-2.0-mini`**: Supports 480p, 720p.
93
98
  * * **`seedance-2.0`**: Supports 480p, 720p.
99
+ * * **`seedance-2.0-mini`**: Supports 480p, 720p.
100
+ * * **`seedance-2.5`**: Supports 480p, 720p.
94
101
  * * **`sora-2`**: Supports 720p.
102
+ * * **`veo3.1`**: Supports 720p, 1080p.
103
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
104
+ * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
95
105
  *
96
106
  */
97
107
  resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
@@ -106,7 +116,7 @@ export type External$CreateRequest = {
106
116
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
107
117
  audio?: boolean | undefined;
108
118
  end_seconds: number;
109
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
119
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
110
120
  name?: string | undefined;
111
121
  orientation?: ("landscape" | "portrait" | "square") | undefined;
112
122
  resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;