@runwayml/sdk 3.5.0 → 3.6.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 (74) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/character-performance.d.mts +32 -5
  4. package/resources/character-performance.d.mts.map +1 -1
  5. package/resources/character-performance.d.ts +32 -5
  6. package/resources/character-performance.d.ts.map +1 -1
  7. package/resources/character-performance.js +16 -0
  8. package/resources/character-performance.js.map +1 -1
  9. package/resources/character-performance.mjs +16 -0
  10. package/resources/character-performance.mjs.map +1 -1
  11. package/resources/image-to-video.d.mts +215 -88
  12. package/resources/image-to-video.d.mts.map +1 -1
  13. package/resources/image-to-video.d.ts +215 -88
  14. package/resources/image-to-video.d.ts.map +1 -1
  15. package/resources/image-to-video.js +10 -1
  16. package/resources/image-to-video.js.map +1 -1
  17. package/resources/image-to-video.mjs +10 -1
  18. package/resources/image-to-video.mjs.map +1 -1
  19. package/resources/speech-to-speech.d.mts +16 -4
  20. package/resources/speech-to-speech.d.mts.map +1 -1
  21. package/resources/speech-to-speech.d.ts +16 -4
  22. package/resources/speech-to-speech.d.ts.map +1 -1
  23. package/resources/text-to-speech.d.mts +2 -2
  24. package/resources/text-to-speech.d.ts +2 -2
  25. package/resources/text-to-video.d.mts +50 -28
  26. package/resources/text-to-video.d.mts.map +1 -1
  27. package/resources/text-to-video.d.ts +50 -28
  28. package/resources/text-to-video.d.ts.map +1 -1
  29. package/resources/video-to-video.d.mts +12 -10
  30. package/resources/video-to-video.d.mts.map +1 -1
  31. package/resources/video-to-video.d.ts +12 -10
  32. package/resources/video-to-video.d.ts.map +1 -1
  33. package/resources/video-to-video.js +10 -0
  34. package/resources/video-to-video.js.map +1 -1
  35. package/resources/video-to-video.mjs +10 -0
  36. package/resources/video-to-video.mjs.map +1 -1
  37. package/resources/video-upscale.d.mts +9 -9
  38. package/resources/video-upscale.d.mts.map +1 -1
  39. package/resources/video-upscale.d.ts +9 -9
  40. package/resources/video-upscale.d.ts.map +1 -1
  41. package/resources/video-upscale.js +8 -0
  42. package/resources/video-upscale.js.map +1 -1
  43. package/resources/video-upscale.mjs +8 -0
  44. package/resources/video-upscale.mjs.map +1 -1
  45. package/resources/voice-dubbing.d.mts +10 -1
  46. package/resources/voice-dubbing.d.mts.map +1 -1
  47. package/resources/voice-dubbing.d.ts +10 -1
  48. package/resources/voice-dubbing.d.ts.map +1 -1
  49. package/resources/voice-dubbing.js +9 -0
  50. package/resources/voice-dubbing.js.map +1 -1
  51. package/resources/voice-dubbing.mjs +9 -0
  52. package/resources/voice-dubbing.mjs.map +1 -1
  53. package/resources/voice-isolation.d.mts +11 -2
  54. package/resources/voice-isolation.d.mts.map +1 -1
  55. package/resources/voice-isolation.d.ts +11 -2
  56. package/resources/voice-isolation.d.ts.map +1 -1
  57. package/resources/voice-isolation.js +10 -1
  58. package/resources/voice-isolation.js.map +1 -1
  59. package/resources/voice-isolation.mjs +10 -1
  60. package/resources/voice-isolation.mjs.map +1 -1
  61. package/src/resources/character-performance.ts +32 -5
  62. package/src/resources/image-to-video.ts +253 -99
  63. package/src/resources/speech-to-speech.ts +16 -4
  64. package/src/resources/text-to-speech.ts +2 -2
  65. package/src/resources/text-to-video.ts +61 -28
  66. package/src/resources/video-to-video.ts +12 -10
  67. package/src/resources/video-upscale.ts +9 -9
  68. package/src/resources/voice-dubbing.ts +10 -1
  69. package/src/resources/voice-isolation.ts +11 -2
  70. package/src/version.ts +1 -1
  71. package/version.d.mts +1 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. package/version.mjs +1 -1
@@ -8,6 +8,22 @@ export class CharacterPerformance extends APIResource {
8
8
  /**
9
9
  * This endpoint will start a new task to control a character's facial expressions
10
10
  * and body movements using a reference video.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const characterPerformance =
15
+ * await client.characterPerformance.create({
16
+ * character: {
17
+ * type: 'image',
18
+ * uri: 'https://example.com/file',
19
+ * },
20
+ * model: 'act_two',
21
+ * reference: {
22
+ * type: 'video',
23
+ * uri: 'https://example.com/reference-performance.mp4',
24
+ * },
25
+ * });
26
+ * ```
11
27
  */
12
28
  create(
13
29
  body: CharacterPerformanceCreateParams,
@@ -33,7 +49,8 @@ export interface CharacterPerformanceCreateParams {
33
49
  model: 'act_two';
34
50
 
35
51
  /**
36
- * The reference video containing the performance to apply to the character.
52
+ * A video of a person performing in the manner that you would like your character
53
+ * to perform. The video must be between 3 and 30 seconds in duration.
37
54
  */
38
55
  reference: CharacterPerformanceCreateParams.Reference;
39
56
 
@@ -60,6 +77,11 @@ export interface CharacterPerformanceCreateParams {
60
77
  */
61
78
  ratio?: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
62
79
 
80
+ /**
81
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
82
+ * get different results for the same other request parameters. Using the same seed
83
+ * integer for an identical request will produce similar results.
84
+ */
63
85
  seed?: number;
64
86
  }
65
87
 
@@ -72,7 +94,7 @@ export namespace CharacterPerformanceCreateParams {
72
94
  type: 'image';
73
95
 
74
96
  /**
75
- * A data URI containing an encoded image.
97
+ * A HTTPS URL.
76
98
  */
77
99
  uri: string;
78
100
  }
@@ -86,19 +108,20 @@ export namespace CharacterPerformanceCreateParams {
86
108
  type: 'video';
87
109
 
88
110
  /**
89
- * A data URI containing an encoded video.
111
+ * A HTTPS URL.
90
112
  */
91
113
  uri: string;
92
114
  }
93
115
 
94
116
  /**
95
- * The reference video containing the performance to apply to the character.
117
+ * A video of a person performing in the manner that you would like your character
118
+ * to perform. The video must be between 3 and 30 seconds in duration.
96
119
  */
97
120
  export interface Reference {
98
121
  type: 'video';
99
122
 
100
123
  /**
101
- * A data URI containing an encoded video.
124
+ * A HTTPS URL.
102
125
  */
103
126
  uri: string;
104
127
  }
@@ -107,6 +130,10 @@ export namespace CharacterPerformanceCreateParams {
107
130
  * Settings that affect the behavior of the content moderation system.
108
131
  */
109
132
  export interface ContentModeration {
133
+ /**
134
+ * When set to `low`, the content moderation system will be less strict about
135
+ * preventing generations that include recognizable public figures.
136
+ */
110
137
  publicFigureThreshold?: 'auto' | 'low';
111
138
  }
112
139
  }
@@ -6,7 +6,16 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
6
6
 
7
7
  export class ImageToVideo extends APIResource {
8
8
  /**
9
- * This endpoint will start a new task to generate a video from an image prompt.
9
+ * This endpoint will start a new task to generate a video from an image.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const imageToVideo = await client.imageToVideo.create({
14
+ * model: 'gen3a_turbo',
15
+ * promptImage: 'https://example.com/file',
16
+ * promptText: 'A beautiful sunset over a calm ocean.',
17
+ * });
18
+ * ```
10
19
  */
11
20
  create(
12
21
  body: ImageToVideoCreateParams,
@@ -19,123 +28,268 @@ export class ImageToVideo extends APIResource {
19
28
  }
20
29
 
21
30
  export interface ImageToVideoCreateResponse {
22
- /**
23
- * The ID of the newly created task. Use this ID to query the task status and
24
- * retrieve the generated video.
25
- */
26
31
  id: string;
27
32
  }
28
33
 
29
- export interface ImageToVideoCreateParams {
30
- /**
31
- * The model variant to use.
32
- */
33
- model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3.1' | 'veo3.1_fast' | 'veo3';
34
+ export type ImageToVideoCreateParams =
35
+ | ImageToVideoCreateParams.Gen4Turbo
36
+ | ImageToVideoCreateParams.Gen3aTurbo
37
+ | ImageToVideoCreateParams.Veo3_1
38
+ | ImageToVideoCreateParams.Veo3_1Fast
39
+ | ImageToVideoCreateParams.Veo3;
34
40
 
35
- /**
36
- * A HTTPS URL or data URI containing an encoded image to be used as the first
37
- * frame of the generated video. See [our docs](/assets/inputs#images) on image
38
- * inputs for more information.
39
- */
40
- promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
41
+ export declare namespace ImageToVideoCreateParams {
42
+ export interface Gen4Turbo {
43
+ model: 'gen4_turbo';
41
44
 
42
- /**
43
- * The resolution of the output video.
44
- *
45
- * `gen4_turbo` supports the following values:
46
- *
47
- * - `1280:720`
48
- * - `720:1280`
49
- * - `1104:832`
50
- * - `832:1104`
51
- * - `960:960`
52
- * - `1584:672`
53
- *
54
- * `gen3a_turbo` supports the following values:
55
- *
56
- * - `1280:768`
57
- * - `768:1280`
58
- *
59
- * `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
60
- *
61
- * - `1280:720`
62
- * - `720:1280`
63
- * - `1080:1920`
64
- * - `1920:1080`
65
- */
66
- ratio:
67
- | '1280:720'
68
- | '720:1280'
69
- | '1104:832'
70
- | '832:1104'
71
- | '960:960'
72
- | '1584:672'
73
- | '1280:768'
74
- | '768:1280'
75
- | '1080:1920'
76
- | '1920:1080';
45
+ /**
46
+ * A HTTPS URL.
47
+ */
48
+ promptImage: string | Array<Gen4Turbo.PromptImage>;
77
49
 
78
- /**
79
- * Settings that affect the behavior of the content moderation system.
80
- *
81
- * This field is allowed only for the following model variants: `gen4_turbo`,
82
- * `gen3a_turbo`
83
- */
84
- contentModeration?: ImageToVideoCreateParams.ContentModeration;
50
+ /**
51
+ * The resolution of the output video.
52
+ */
53
+ ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672';
85
54
 
86
- /**
87
- * The number of seconds of duration for the output video. `veo3` requires a
88
- * duration of 8. `veo3.1` and `veo3.1_fast` require a duration of 4, 6, or 8.
89
- * `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must specify a
90
- * duration of 2-10 seconds.
91
- */
92
- duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
55
+ /**
56
+ * Settings that affect the behavior of the content moderation system.
57
+ */
58
+ contentModeration?: Gen4Turbo.ContentModeration;
93
59
 
94
- /**
95
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
96
- * should describe in detail what should appear in the output.
97
- */
98
- promptText?: string;
60
+ /**
61
+ * The number of seconds of duration for the output video.
62
+ */
63
+ duration?: number;
99
64
 
100
- /**
101
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
102
- * get different results for the same other request parameters. Using the same seed
103
- * integer for an identical request will produce similar results.
104
- */
105
- seed?: number;
106
- }
65
+ /**
66
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
67
+ * should describe in detail what should appear in the output.
68
+ */
69
+ promptText?: string;
107
70
 
108
- export namespace ImageToVideoCreateParams {
109
- export interface PromptImage {
110
71
  /**
111
- * The position of the image in the output video. "first" will use the image as the
112
- * first frame of the video, "last" will use the image as the last frame of the
113
- * video.
114
- *
115
- * "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
116
- * only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
72
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
73
+ * get different results for the same other request parameters. Using the same seed
74
+ * integer for an identical request will produce similar results.
117
75
  */
118
- position: 'first' | 'last';
76
+ seed?: number;
77
+ }
78
+
79
+ export namespace Gen4Turbo {
80
+ export interface PromptImage {
81
+ /**
82
+ * The position of the image in the output video. "first" will use the image as the
83
+ * first frame of the video.
84
+ */
85
+ position: 'first';
86
+
87
+ /**
88
+ * A HTTPS URL.
89
+ */
90
+ uri: string;
91
+ }
119
92
 
120
93
  /**
121
- * A HTTPS URL or data URI containing an encoded image. See
122
- * [our docs](/assets/inputs#images) on image inputs for more information.
94
+ * Settings that affect the behavior of the content moderation system.
123
95
  */
124
- uri: string;
96
+ export interface ContentModeration {
97
+ /**
98
+ * When set to `low`, the content moderation system will be less strict about
99
+ * preventing generations that include recognizable public figures.
100
+ */
101
+ publicFigureThreshold?: 'auto' | 'low';
102
+ }
125
103
  }
126
104
 
127
- /**
128
- * Settings that affect the behavior of the content moderation system.
129
- *
130
- * This field is allowed only for the following model variants: `gen4_turbo`,
131
- * `gen3a_turbo`
132
- */
133
- export interface ContentModeration {
105
+ export interface Gen3aTurbo {
106
+ model: 'gen3a_turbo';
107
+
108
+ /**
109
+ * A HTTPS URL.
110
+ */
111
+ promptImage: string | Array<Gen3aTurbo.PromptImage>;
112
+
113
+ /**
114
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
115
+ * should describe in detail what should appear in the output.
116
+ */
117
+ promptText: string;
118
+
119
+ /**
120
+ * Settings that affect the behavior of the content moderation system.
121
+ */
122
+ contentModeration?: Gen3aTurbo.ContentModeration;
123
+
124
+ /**
125
+ * The duration of the output video in seconds.
126
+ */
127
+ duration?: 5 | 10;
128
+
129
+ /**
130
+ * The resolution of the output video.
131
+ */
132
+ ratio?: '768:1280' | '1280:768';
133
+
134
134
  /**
135
- * When set to `low`, the content moderation system will be less strict about
136
- * preventing generations that include recognizable public figures.
135
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
136
+ * get different results for the same other request parameters. Using the same seed
137
+ * integer for an identical request will produce similar results.
137
138
  */
138
- publicFigureThreshold?: 'auto' | 'low';
139
+ seed?: number;
140
+ }
141
+
142
+ export namespace Gen3aTurbo {
143
+ export interface PromptImage {
144
+ /**
145
+ * The position of the image in the output video. "first" will use the image as the
146
+ * first frame of the video, "last" will use the image as the last frame of the
147
+ * video.
148
+ */
149
+ position: 'first' | 'last';
150
+
151
+ /**
152
+ * A HTTPS URL.
153
+ */
154
+ uri: string;
155
+ }
156
+
157
+ /**
158
+ * Settings that affect the behavior of the content moderation system.
159
+ */
160
+ export interface ContentModeration {
161
+ /**
162
+ * When set to `low`, the content moderation system will be less strict about
163
+ * preventing generations that include recognizable public figures.
164
+ */
165
+ publicFigureThreshold?: 'auto' | 'low';
166
+ }
167
+ }
168
+
169
+ export interface Veo3_1 {
170
+ model: 'veo3.1';
171
+
172
+ /**
173
+ * You may specify an image to use as the first frame of the output video, or an
174
+ * array with a first frame and optionally a last frame. This model does not
175
+ * support generating with only a last frame.
176
+ */
177
+ promptImage: string | Array<Veo3_1.PromptImage>;
178
+
179
+ /**
180
+ * The resolution of the output video.
181
+ */
182
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
183
+
184
+ /**
185
+ * The number of seconds of duration for the output video.
186
+ */
187
+ duration?: 4 | 6 | 8;
188
+
189
+ /**
190
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
191
+ * should describe in detail what should appear in the output.
192
+ */
193
+ promptText?: string;
194
+ }
195
+
196
+ export namespace Veo3_1 {
197
+ export interface PromptImage {
198
+ /**
199
+ * The position of the image in the output video. "first" will use the image as the
200
+ * first frame of the video, "last" will use the image as the last frame of the
201
+ * video.
202
+ */
203
+ position: 'first' | 'last';
204
+
205
+ /**
206
+ * A HTTPS URL.
207
+ */
208
+ uri: string;
209
+ }
210
+ }
211
+
212
+ export interface Veo3_1Fast {
213
+ model: 'veo3.1_fast';
214
+
215
+ /**
216
+ * You may specify an image to use as the first frame of the output video, or an
217
+ * array with a first frame and optionally a last frame. This model does not
218
+ * support generating with only a last frame.
219
+ */
220
+ promptImage: string | Array<Veo3_1Fast.PromptImage>;
221
+
222
+ /**
223
+ * The resolution of the output video.
224
+ */
225
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
226
+
227
+ /**
228
+ * The number of seconds of duration for the output video.
229
+ */
230
+ duration?: 4 | 6 | 8;
231
+
232
+ /**
233
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
234
+ * should describe in detail what should appear in the output.
235
+ */
236
+ promptText?: string;
237
+ }
238
+
239
+ export namespace Veo3_1Fast {
240
+ export interface PromptImage {
241
+ /**
242
+ * The position of the image in the output video. "first" will use the image as the
243
+ * first frame of the video, "last" will use the image as the last frame of the
244
+ * video.
245
+ */
246
+ position: 'first' | 'last';
247
+
248
+ /**
249
+ * A HTTPS URL.
250
+ */
251
+ uri: string;
252
+ }
253
+ }
254
+
255
+ export interface Veo3 {
256
+ /**
257
+ * The number of seconds of duration for the output video.
258
+ */
259
+ duration: 8;
260
+
261
+ model: 'veo3';
262
+
263
+ /**
264
+ * A HTTPS URL.
265
+ */
266
+ promptImage: string | Array<Veo3.PromptImage>;
267
+
268
+ /**
269
+ * The resolution of the output video.
270
+ */
271
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
272
+
273
+ /**
274
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
275
+ * should describe in detail what should appear in the output.
276
+ */
277
+ promptText?: string;
278
+ }
279
+
280
+ export namespace Veo3 {
281
+ export interface PromptImage {
282
+ /**
283
+ * The position of the image in the output video. "first" will use the image as the
284
+ * first frame of the video.
285
+ */
286
+ position: 'first';
287
+
288
+ /**
289
+ * A HTTPS URL.
290
+ */
291
+ uri: string;
292
+ }
139
293
  }
140
294
  }
141
295
 
@@ -23,39 +23,51 @@ export interface SpeechToSpeechCreateResponse {
23
23
  }
24
24
 
25
25
  export interface SpeechToSpeechCreateParams {
26
+ /**
27
+ * The media to use as a source for the dialogue for the generated speech.
28
+ */
26
29
  media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
27
30
 
28
31
  model: 'eleven_multilingual_sts_v2';
29
32
 
30
33
  /**
31
- * The voice to use for the generated speech.
34
+ * A voice preset from the RunwayML API.
32
35
  */
33
36
  voice: SpeechToSpeechCreateParams.Voice;
34
37
 
38
+ /**
39
+ * Whether to remove background noise from the generated speech.
40
+ */
35
41
  removeBackgroundNoise?: boolean;
36
42
  }
37
43
 
38
44
  export namespace SpeechToSpeechCreateParams {
45
+ /**
46
+ * An audio file containing dialogue to be processed.
47
+ */
39
48
  export interface Audio {
40
49
  type: 'audio';
41
50
 
42
51
  /**
43
- * A data URI containing encoded audio.
52
+ * A HTTPS URL.
44
53
  */
45
54
  uri: string;
46
55
  }
47
56
 
57
+ /**
58
+ * A video file containing dialogue to be processed.
59
+ */
48
60
  export interface Video {
49
61
  type: 'video';
50
62
 
51
63
  /**
52
- * A data URI containing an encoded video.
64
+ * A HTTPS URL.
53
65
  */
54
66
  uri: string;
55
67
  }
56
68
 
57
69
  /**
58
- * The voice to use for the generated speech.
70
+ * A voice preset from the RunwayML API.
59
71
  */
60
72
  export interface Voice {
61
73
  /**
@@ -32,14 +32,14 @@ export interface TextToSpeechCreateParams {
32
32
  promptText: string;
33
33
 
34
34
  /**
35
- * The voice to use for the generated speech.
35
+ * A voice preset from the RunwayML API.
36
36
  */
37
37
  voice: TextToSpeechCreateParams.Voice;
38
38
  }
39
39
 
40
40
  export namespace TextToSpeechCreateParams {
41
41
  /**
42
- * The voice to use for the generated speech.
42
+ * A voice preset from the RunwayML API.
43
43
  */
44
44
  export interface Voice {
45
45
  /**
@@ -19,41 +19,74 @@ export class TextToVideo extends APIResource {
19
19
  }
20
20
 
21
21
  export interface TextToVideoCreateResponse {
22
- /**
23
- * The ID of the newly created task.
24
- */
25
22
  id: string;
26
23
  }
27
24
 
28
- export interface TextToVideoCreateParams {
29
- /**
30
- * `veo3` videos must be 8 seconds long. `veo3.1` and `veo3.1_fast` videos must be
31
- * 4, 6, or 8 seconds long.
32
- */
33
- duration: 4 | 6 | 8;
25
+ export type TextToVideoCreateParams =
26
+ | TextToVideoCreateParams.Veo3_1
27
+ | TextToVideoCreateParams.Veo3_1Fast
28
+ | TextToVideoCreateParams.Veo3;
34
29
 
35
- /**
36
- * The model variant to use.
37
- */
38
- model: 'veo3.1' | 'veo3.1_fast' | 'veo3';
30
+ export declare namespace TextToVideoCreateParams {
31
+ export interface Veo3_1 {
32
+ model: 'veo3.1';
39
33
 
40
- /**
41
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
42
- * should describe in detail what should appear in the output.
43
- */
44
- promptText: string;
34
+ /**
35
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
36
+ * should describe in detail what should appear in the output.
37
+ */
38
+ promptText: string;
45
39
 
46
- /**
47
- * A string representing the aspect ratio of the output video.
48
- */
49
- ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
40
+ /**
41
+ * The resolution of the output video.
42
+ */
43
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
50
44
 
51
- /**
52
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
53
- * get different results for the same other request parameters. Using the same seed
54
- * integer for an identical request will produce similar results.
55
- */
56
- seed?: number;
45
+ /**
46
+ * The number of seconds of duration for the output video.
47
+ */
48
+ duration?: 4 | 6 | 8;
49
+ }
50
+
51
+ export interface Veo3_1Fast {
52
+ model: 'veo3.1_fast';
53
+
54
+ /**
55
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
56
+ * should describe in detail what should appear in the output.
57
+ */
58
+ promptText: string;
59
+
60
+ /**
61
+ * The resolution of the output video.
62
+ */
63
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
64
+
65
+ /**
66
+ * The number of seconds of duration for the output video.
67
+ */
68
+ duration?: 4 | 6 | 8;
69
+ }
70
+
71
+ export interface Veo3 {
72
+ /**
73
+ * The number of seconds of duration for the output video.
74
+ */
75
+ duration: 8;
76
+
77
+ model: 'veo3';
78
+
79
+ /**
80
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
81
+ * should describe in detail what should appear in the output.
82
+ */
83
+ promptText: string;
84
+
85
+ /**
86
+ * The resolution of the output video.
87
+ */
88
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
89
+ }
57
90
  }
58
91
 
59
92
  export declare namespace TextToVideo {