You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This field is retained only for backward compatibility and will be removed in a future release.
35
44
*/
36
45
height?: number|null|undefined;
46
+
/**
47
+
* The AI model to use for video generation.
48
+
* * `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.
49
+
* * `seedance`: Great for fast iteration and start/end frame
50
+
* * `kling-2.5-audio`: Great for motion, action, and camera control
51
+
* * `sora-2`: Great for story-telling, dialogue & creativity
52
+
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
53
+
* * `veo3.1`: Great for realism, polish, & prompt adherence
54
+
* * `kling-1.6`: Great for dependable clips with smooth motion
55
+
*/
56
+
model?:
57
+
|(
58
+
|"default"
59
+
|"kling-1.6"
60
+
|"kling-2.5-audio"
61
+
|"seedance"
62
+
|"sora-2"
63
+
|"veo3.1"
64
+
|"veo3.1-audio"
65
+
)
66
+
|undefined;
37
67
/**
38
68
* Give your video a custom name for easy identification.
39
69
*/
40
70
name?: string|undefined;
41
71
/**
42
72
* Controls the output video resolution. Defaults to `720p` if not specified.
43
73
*
44
-
* 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier.
45
-
*
46
-
* **Options:**
47
-
* - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
48
-
* - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
49
-
* - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds.
74
+
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|`endSeconds`| ✓ | The total duration of the output video in seconds. The value must be greater than or equal to 5 seconds and less than or equal to 60 seconds. Note: For 480p resolution, the value must be either 5 or 10. |`5.0`|
86
-
|`orientation`| ✓ | Determines the orientation of the output video |`"landscape"`|
87
-
|`style`| ✓ ||`{"prompt": "a dog running"}`|
88
-
|`└─ prompt`| ✓ | The prompt used for the video. |`"a dog running"`|
89
-
|`└─ qualityMode`| ✗ | DEPRECATED: Please use `resolution` field instead. For backward compatibility: * `quick` maps to 720p resolution * `studio` maps to 1080p resolution This field will be removed in a future version. Use the `resolution` field to directly to specify the resolution. |`"quick"`|
90
-
|`name`| ✗ | Give your video a custom name for easy identification. |`"My Text To Video video"`|
91
-
|`resolution`| ✗ | Controls the output video resolution. Defaults to `720p` if not specified. 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier. **Options:** - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds. - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds. - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. |`"720p"`|
|`└─ prompt`| ✓ | — | The prompt used for the video. |`"a dog running"`|
88
+
|`└─ qualityMode`| ✗ | ✓ | DEPRECATED: Please use `resolution` field instead. For backward compatibility: * `quick` maps to 720p resolution * `studio` maps to 1080p resolution This field will be removed in a future version. Use the `resolution` field to directly to specify the resolution. |`"quick"`|
|`model`| ✗ | ✗ | The AI model to use for video generation. * `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. * `seedance`: Great for fast iteration and start/end frame * `kling-2.5-audio`: Great for motion, action, and camera control * `sora-2`: Great for story-telling, dialogue & creativity * `veo3.1-audio`: Great for dialogue + SFX generated natively * `veo3.1`: Great for realism, polish, & prompt adherence * `kling-1.6`: Great for dependable clips with smooth motion |`"sora-2"`|
91
+
|`name`| ✗ | ✗ | Give your video a custom name for easy identification. |`"My Text To Video video"`|
92
+
|`orientation`| ✗ | ✓ | Deprecated. Use `aspect_ratio` instead. |`"landscape"`|
0 commit comments