@runwayml/sdk 4.1.0 → 4.3.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 (63) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/image-to-video.d.mts +1 -1
  12. package/resources/image-to-video.d.mts.map +1 -1
  13. package/resources/image-to-video.d.ts +1 -1
  14. package/resources/image-to-video.d.ts.map +1 -1
  15. package/resources/index.d.mts +1 -0
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +1 -0
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +3 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +1 -0
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/organization.d.mts +2 -2
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +2 -2
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/recipes.d.mts +428 -0
  28. package/resources/recipes.d.mts.map +1 -0
  29. package/resources/recipes.d.ts +428 -0
  30. package/resources/recipes.d.ts.map +1 -0
  31. package/resources/recipes.js +51 -0
  32. package/resources/recipes.js.map +1 -0
  33. package/resources/recipes.mjs +47 -0
  34. package/resources/recipes.mjs.map +1 -0
  35. package/resources/text-to-image.d.mts +3 -6
  36. package/resources/text-to-image.d.mts.map +1 -1
  37. package/resources/text-to-image.d.ts +3 -6
  38. package/resources/text-to-image.d.ts.map +1 -1
  39. package/resources/text-to-video.d.mts +1 -11
  40. package/resources/text-to-video.d.mts.map +1 -1
  41. package/resources/text-to-video.d.ts +1 -11
  42. package/resources/text-to-video.d.ts.map +1 -1
  43. package/resources/video-to-video.d.mts +10 -17
  44. package/resources/video-to-video.d.mts.map +1 -1
  45. package/resources/video-to-video.d.ts +10 -17
  46. package/resources/video-to-video.d.ts.map +1 -1
  47. package/resources/video-to-video.js +0 -1
  48. package/resources/video-to-video.js.map +1 -1
  49. package/resources/video-to-video.mjs +0 -1
  50. package/resources/video-to-video.mjs.map +1 -1
  51. package/src/client.ts +42 -1
  52. package/src/resources/image-to-video.ts +7 -1
  53. package/src/resources/index.ts +15 -0
  54. package/src/resources/organization.ts +11 -1
  55. package/src/resources/recipes.ts +565 -0
  56. package/src/resources/text-to-image.ts +3 -6
  57. package/src/resources/text-to-video.ts +7 -13
  58. package/src/resources/video-to-video.ts +18 -20
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -0,0 +1,565 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class Recipes extends APIResource {
8
+ /**
9
+ * Generate a polished marketing stock image from a text brief and optional brand
10
+ * logo image.
11
+ */
12
+ marketingStockImage(
13
+ body: RecipeMarketingStockImageParams,
14
+ options?: RequestOptions,
15
+ ): APIPromiseWithAwaitableTask<RecipeMarketingStockImageResponse> {
16
+ return wrapAsWaitableResource<RecipeMarketingStockImageResponse>(this._client)(
17
+ this._client.post('/v1/recipes/marketing_stock_image', { body, ...options }),
18
+ );
19
+ }
20
+
21
+ /**
22
+ * Generate a multi-cut video from a story prompt (auto mode) or a custom shot list
23
+ * (custom mode).
24
+ */
25
+ multiShotVideo(
26
+ body: RecipeMultiShotVideoParams,
27
+ options?: RequestOptions,
28
+ ): APIPromiseWithAwaitableTask<RecipeMultiShotVideoResponse> {
29
+ return wrapAsWaitableResource<RecipeMultiShotVideoResponse>(this._client)(
30
+ this._client.post('/v1/recipes/multi_shot_video', { body, ...options }),
31
+ );
32
+ }
33
+
34
+ /**
35
+ * Generate a cinematic product ad from product images, optional style references,
36
+ * product info, and creative direction.
37
+ */
38
+ productAd(
39
+ body: RecipeProductAdParams,
40
+ options?: RequestOptions,
41
+ ): APIPromiseWithAwaitableTask<RecipeProductAdResponse> {
42
+ return wrapAsWaitableResource<RecipeProductAdResponse>(this._client)(
43
+ this._client.post('/v1/recipes/product_ad', { body, ...options }),
44
+ );
45
+ }
46
+
47
+ /**
48
+ * Generate four fashion campaign images from a product image and style brief.
49
+ */
50
+ productCampaignImage(
51
+ body: RecipeProductCampaignImageParams,
52
+ options?: RequestOptions,
53
+ ): APIPromiseWithAwaitableTask<RecipeProductCampaignImageResponse> {
54
+ return wrapAsWaitableResource<RecipeProductCampaignImageResponse>(this._client)(
55
+ this._client.post('/v1/recipes/product_campaign_image', { body, ...options }),
56
+ );
57
+ }
58
+
59
+ /**
60
+ * Replace the product in a reference video with a new product, preserving camera
61
+ * motion, lighting, and scene composition.
62
+ */
63
+ productSwap(
64
+ body: RecipeProductSwapParams,
65
+ options?: RequestOptions,
66
+ ): APIPromiseWithAwaitableTask<RecipeProductSwapResponse> {
67
+ return wrapAsWaitableResource<RecipeProductSwapResponse>(this._client)(
68
+ this._client.post('/v1/recipes/product_swap', { body, ...options }),
69
+ );
70
+ }
71
+
72
+ /**
73
+ * Generate a vertical user-generated content ad from a character image, product
74
+ * image, product details, and optional creative direction.
75
+ */
76
+ productUgc(
77
+ body: RecipeProductUgcParams,
78
+ options?: RequestOptions,
79
+ ): APIPromiseWithAwaitableTask<RecipeProductUgcResponse> {
80
+ return wrapAsWaitableResource<RecipeProductUgcResponse>(this._client)(
81
+ this._client.post('/v1/recipes/product_ugc', { body, ...options }),
82
+ );
83
+ }
84
+ }
85
+
86
+ export interface RecipeMarketingStockImageResponse {
87
+ /**
88
+ * The ID of the task that was created. Use this to retrieve the task later.
89
+ */
90
+ id: string;
91
+ }
92
+
93
+ export interface RecipeMultiShotVideoResponse {
94
+ /**
95
+ * The ID of the task that was created. Use this to retrieve the task later.
96
+ */
97
+ id: string;
98
+ }
99
+
100
+ export interface RecipeProductAdResponse {
101
+ /**
102
+ * The ID of the task that was created. Use this to retrieve the task later.
103
+ */
104
+ id: string;
105
+ }
106
+
107
+ export interface RecipeProductCampaignImageResponse {
108
+ /**
109
+ * The ID of the task that was created. Use this to retrieve the task later.
110
+ */
111
+ id: string;
112
+ }
113
+
114
+ export interface RecipeProductSwapResponse {
115
+ /**
116
+ * The ID of the task that was created. Use this to retrieve the task later.
117
+ */
118
+ id: string;
119
+ }
120
+
121
+ export interface RecipeProductUgcResponse {
122
+ /**
123
+ * The ID of the task that was created. Use this to retrieve the task later.
124
+ */
125
+ id: string;
126
+ }
127
+
128
+ export interface RecipeMarketingStockImageParams {
129
+ /**
130
+ * Marketing image brief. Describe the subject, audience, channel, desired mood,
131
+ * setting, and any constraints.
132
+ */
133
+ prompt: string;
134
+
135
+ /**
136
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
137
+ * "unsafe-latest" to track the newest stable version (may break without notice).
138
+ */
139
+ version: '2026-06' | 'unsafe-latest';
140
+
141
+ /**
142
+ * Optional brand logo image to guide the generated marketing stock image. See
143
+ * [our docs](/assets/inputs#images) on image inputs.
144
+ */
145
+ referenceImage?: RecipeMarketingStockImageParams.ReferenceImage;
146
+ }
147
+
148
+ export namespace RecipeMarketingStockImageParams {
149
+ /**
150
+ * Optional brand logo image to guide the generated marketing stock image. See
151
+ * [our docs](/assets/inputs#images) on image inputs.
152
+ */
153
+ export interface ReferenceImage {
154
+ /**
155
+ * A HTTPS URL.
156
+ */
157
+ uri: string;
158
+ }
159
+ }
160
+
161
+ export type RecipeMultiShotVideoParams =
162
+ | RecipeMultiShotVideoParams.Variant0
163
+ | RecipeMultiShotVideoParams.Variant1;
164
+
165
+ export declare namespace RecipeMultiShotVideoParams {
166
+ export interface Variant0 {
167
+ /**
168
+ * Workflow mode. `auto` decomposes a story prompt into exactly 5 shots.
169
+ */
170
+ mode: 'auto';
171
+
172
+ /**
173
+ * Story prompt for auto mode.
174
+ */
175
+ prompt: string;
176
+
177
+ /**
178
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
179
+ * "unsafe-latest" to track the newest stable version (may break without notice).
180
+ */
181
+ version: '2026-06' | 'unsafe-latest';
182
+
183
+ /**
184
+ * Whether to generate audio for the video.
185
+ */
186
+ audio?: boolean;
187
+
188
+ /**
189
+ * Total duration of the output video in seconds. Defaults to 10 seconds.
190
+ */
191
+ duration?: 5 | 10 | 15;
192
+
193
+ /**
194
+ * Optional image used as the first frame of the output video. See
195
+ * [our docs](/assets/inputs#images) on image inputs.
196
+ */
197
+ firstFrame?: Variant0.FirstFrame;
198
+
199
+ /**
200
+ * Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`,
201
+ * `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`,
202
+ * `1440:1440`) use the pro tier. Defaults to `1280:720`.
203
+ */
204
+ ratio?: '1280:720' | '720:1280' | '960:960' | '1920:1080' | '1080:1920' | '1440:1440';
205
+ }
206
+
207
+ export namespace Variant0 {
208
+ /**
209
+ * Optional image used as the first frame of the output video. See
210
+ * [our docs](/assets/inputs#images) on image inputs.
211
+ */
212
+ export interface FirstFrame {
213
+ /**
214
+ * A HTTPS URL.
215
+ */
216
+ uri: string;
217
+ }
218
+ }
219
+
220
+ export interface Variant1 {
221
+ /**
222
+ * Workflow mode. `custom` polishes a user-provided shot list of 3–5 shots.
223
+ */
224
+ mode: 'custom';
225
+
226
+ /**
227
+ * Shot list for custom mode (3–5 shots). Per-shot durations must sum to
228
+ * `duration`.
229
+ */
230
+ shots: Array<Variant1.Shot>;
231
+
232
+ /**
233
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
234
+ * "unsafe-latest" to track the newest stable version (may break without notice).
235
+ */
236
+ version: '2026-06' | 'unsafe-latest';
237
+
238
+ /**
239
+ * Whether to generate audio for the video.
240
+ */
241
+ audio?: boolean;
242
+
243
+ /**
244
+ * Total duration of the output video in seconds. Defaults to 10 seconds.
245
+ */
246
+ duration?: 5 | 10 | 15;
247
+
248
+ /**
249
+ * Optional image used as the first frame of the output video. See
250
+ * [our docs](/assets/inputs#images) on image inputs.
251
+ */
252
+ firstFrame?: Variant1.FirstFrame;
253
+
254
+ /**
255
+ * Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`,
256
+ * `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`,
257
+ * `1440:1440`) use the pro tier. Defaults to `1280:720`.
258
+ */
259
+ ratio?: '1280:720' | '720:1280' | '960:960' | '1920:1080' | '1080:1920' | '1440:1440';
260
+ }
261
+
262
+ export namespace Variant1 {
263
+ export interface Shot {
264
+ /**
265
+ * Duration of this shot in seconds.
266
+ */
267
+ duration: number;
268
+
269
+ /**
270
+ * Shot description prompt.
271
+ */
272
+ prompt: string;
273
+ }
274
+
275
+ /**
276
+ * Optional image used as the first frame of the output video. See
277
+ * [our docs](/assets/inputs#images) on image inputs.
278
+ */
279
+ export interface FirstFrame {
280
+ /**
281
+ * A HTTPS URL.
282
+ */
283
+ uri: string;
284
+ }
285
+ }
286
+ }
287
+
288
+ export interface RecipeProductAdParams {
289
+ /**
290
+ * Product images (1–10). Multiple angles of the same product. All images inform
291
+ * product analysis and reference generation; only the first image is used as the
292
+ * primary product reference in the storyboard grid. See
293
+ * [our docs](/assets/inputs#images) on image inputs.
294
+ */
295
+ productImages: Array<RecipeProductAdParams.ProductImage>;
296
+
297
+ /**
298
+ * Workflow version. Use a dated version (e.g. "2026-07") to pin behavior, or
299
+ * "unsafe-latest" to track the newest stable version (may break without notice).
300
+ */
301
+ version: '2026-06' | '2026-07' | 'unsafe-latest';
302
+
303
+ /**
304
+ * Whether to generate audio for the video.
305
+ */
306
+ audio?: boolean;
307
+
308
+ /**
309
+ * Duration of the output video in seconds (4–15). Defaults to 10 seconds.
310
+ */
311
+ duration?: number;
312
+
313
+ /**
314
+ * Optional product description and specifications to inform creative direction and
315
+ * which product elements to highlight.
316
+ */
317
+ productInfo?: string;
318
+
319
+ /**
320
+ * The resolution of the output video.
321
+ */
322
+ ratio?:
323
+ | '1280:720'
324
+ | '720:1280'
325
+ | '960:960'
326
+ | '834:1112'
327
+ | '1920:1080'
328
+ | '1080:1920'
329
+ | '1440:1440'
330
+ | '1248:1664';
331
+
332
+ /**
333
+ * Optional style reference images (0–4). Defines the visual treatment (lighting,
334
+ * palette, mood). Treated as a moodboard when multiple are provided.
335
+ */
336
+ styleImages?: Array<RecipeProductAdParams.StyleImage>;
337
+
338
+ /**
339
+ * Optional creative direction describing brand voice, product framing, scene
340
+ * specifics, lighting, camera motion, and narrative.
341
+ */
342
+ userConcept?: string;
343
+ }
344
+
345
+ export namespace RecipeProductAdParams {
346
+ export interface ProductImage {
347
+ /**
348
+ * A HTTPS URL.
349
+ */
350
+ uri: string;
351
+ }
352
+
353
+ export interface StyleImage {
354
+ /**
355
+ * A HTTPS URL.
356
+ */
357
+ uri: string;
358
+ }
359
+ }
360
+
361
+ export interface RecipeProductCampaignImageParams {
362
+ /**
363
+ * Product image to preserve across the generated campaign. See
364
+ * [our docs](/assets/inputs#images) on image inputs.
365
+ */
366
+ image: RecipeProductCampaignImageParams.Image;
367
+
368
+ /**
369
+ * Style / creative brief for the fashion campaign, e.g. "High-key fashion
370
+ * editorial, gorpcore-meets-blokecore-meets-Y2K".
371
+ */
372
+ prompt: string;
373
+
374
+ /**
375
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
376
+ * "unsafe-latest" to track the newest stable version (may break without notice).
377
+ */
378
+ version: '2026-06' | 'unsafe-latest';
379
+ }
380
+
381
+ export namespace RecipeProductCampaignImageParams {
382
+ /**
383
+ * Product image to preserve across the generated campaign. See
384
+ * [our docs](/assets/inputs#images) on image inputs.
385
+ */
386
+ export interface Image {
387
+ /**
388
+ * A HTTPS URL.
389
+ */
390
+ uri: string;
391
+ }
392
+ }
393
+
394
+ export interface RecipeProductSwapParams {
395
+ /**
396
+ * Reference images of the new product (1–10). Supply multiple angles when the
397
+ * reference video shows the product from different views — optionally label each
398
+ * with `view` ("front", "side", or "back"). A single pre-composed reference sheet
399
+ * is also supported (omit `view`). See [our docs](/assets/inputs#images) on image
400
+ * inputs.
401
+ */
402
+ newProductImages: Array<RecipeProductSwapParams.NewProductImage>;
403
+
404
+ /**
405
+ * Image of the original product being swapped out. See
406
+ * [our docs](/assets/inputs#images) on image inputs.
407
+ */
408
+ originalProductImage: RecipeProductSwapParams.OriginalProductImage;
409
+
410
+ /**
411
+ * Reference video containing the product to swap. Duration must be between 1.8 and
412
+ * 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.
413
+ */
414
+ referenceVideo: RecipeProductSwapParams.ReferenceVideo;
415
+
416
+ /**
417
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
418
+ * "unsafe-latest" to track the newest stable version (may break without notice).
419
+ */
420
+ version: '2026-06' | 'unsafe-latest';
421
+
422
+ /**
423
+ * Whether to generate audio for the video.
424
+ */
425
+ audio?: boolean;
426
+
427
+ /**
428
+ * Duration of the output video in seconds (4–15). Defaults to 10 seconds.
429
+ */
430
+ duration?: number;
431
+
432
+ /**
433
+ * Output video resolution. Defaults to 720p.
434
+ */
435
+ resolution?: '720p' | '1080p';
436
+ }
437
+
438
+ export namespace RecipeProductSwapParams {
439
+ export interface NewProductImage {
440
+ /**
441
+ * A HTTPS URL.
442
+ */
443
+ uri: string;
444
+
445
+ /**
446
+ * Optional view label for this reference (front, side, or back). Omit when
447
+ * supplying a single reference sheet or when view labels are unknown.
448
+ */
449
+ view?: 'front' | 'side' | 'back';
450
+ }
451
+
452
+ /**
453
+ * Image of the original product being swapped out. See
454
+ * [our docs](/assets/inputs#images) on image inputs.
455
+ */
456
+ export interface OriginalProductImage {
457
+ /**
458
+ * A HTTPS URL.
459
+ */
460
+ uri: string;
461
+ }
462
+
463
+ /**
464
+ * Reference video containing the product to swap. Duration must be between 1.8 and
465
+ * 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.
466
+ */
467
+ export interface ReferenceVideo {
468
+ /**
469
+ * A HTTPS URL.
470
+ */
471
+ uri: string;
472
+ }
473
+ }
474
+
475
+ export interface RecipeProductUgcParams {
476
+ /**
477
+ * Image of the character who will appear on camera in the UGC video. Aspect ratio
478
+ * (width / height) must be between 0.4 and 4. See
479
+ * [our docs](/assets/inputs#images) for image input requirements.
480
+ */
481
+ characterImage: RecipeProductUgcParams.CharacterImage;
482
+
483
+ /**
484
+ * Image of the product being promoted. Aspect ratio (width / height) must be
485
+ * between 0.4 and 4. See [our docs](/assets/inputs#images) for image input
486
+ * requirements.
487
+ */
488
+ productImage: RecipeProductUgcParams.ProductImage;
489
+
490
+ /**
491
+ * Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
492
+ * "unsafe-latest" to track the newest stable version (may break without notice).
493
+ */
494
+ version: '2026-06' | 'unsafe-latest';
495
+
496
+ /**
497
+ * Whether to generate audio for the video.
498
+ */
499
+ audio?: boolean;
500
+
501
+ /**
502
+ * Duration of the output video in seconds (4–15). Defaults to 15 seconds.
503
+ */
504
+ duration?: number;
505
+
506
+ /**
507
+ * Product details and creative brief — what the product is, key benefits, and any
508
+ * specifics the script should reference.
509
+ */
510
+ productInfo?: string;
511
+
512
+ /**
513
+ * The resolution of the output video.
514
+ */
515
+ ratio?: '720:1280' | '1080:1920';
516
+
517
+ /**
518
+ * Optional creative direction for the UGC video — tone, voice register, specific
519
+ * message, or an entire dialog script.
520
+ */
521
+ userConcept?: string;
522
+ }
523
+
524
+ export namespace RecipeProductUgcParams {
525
+ /**
526
+ * Image of the character who will appear on camera in the UGC video. Aspect ratio
527
+ * (width / height) must be between 0.4 and 4. See
528
+ * [our docs](/assets/inputs#images) for image input requirements.
529
+ */
530
+ export interface CharacterImage {
531
+ /**
532
+ * A HTTPS URL.
533
+ */
534
+ uri: string;
535
+ }
536
+
537
+ /**
538
+ * Image of the product being promoted. Aspect ratio (width / height) must be
539
+ * between 0.4 and 4. See [our docs](/assets/inputs#images) for image input
540
+ * requirements.
541
+ */
542
+ export interface ProductImage {
543
+ /**
544
+ * A HTTPS URL.
545
+ */
546
+ uri: string;
547
+ }
548
+ }
549
+
550
+ export declare namespace Recipes {
551
+ export {
552
+ type RecipeMarketingStockImageResponse as RecipeMarketingStockImageResponse,
553
+ type RecipeMultiShotVideoResponse as RecipeMultiShotVideoResponse,
554
+ type RecipeProductAdResponse as RecipeProductAdResponse,
555
+ type RecipeProductCampaignImageResponse as RecipeProductCampaignImageResponse,
556
+ type RecipeProductSwapResponse as RecipeProductSwapResponse,
557
+ type RecipeProductUgcResponse as RecipeProductUgcResponse,
558
+ type RecipeMarketingStockImageParams as RecipeMarketingStockImageParams,
559
+ type RecipeMultiShotVideoParams as RecipeMultiShotVideoParams,
560
+ type RecipeProductAdParams as RecipeProductAdParams,
561
+ type RecipeProductCampaignImageParams as RecipeProductCampaignImageParams,
562
+ type RecipeProductSwapParams as RecipeProductSwapParams,
563
+ type RecipeProductUgcParams as RecipeProductUgcParams,
564
+ };
565
+ }
@@ -275,8 +275,7 @@ export declare namespace TextToImageCreateParams {
275
275
  model: 'gemini_image3_pro';
276
276
 
277
277
  /**
278
- * A non-empty string up to 5,500 characters (measured in UTF-16 code units). This
279
- * should describe in detail what should appear in the output.
278
+ * This should describe in detail what should appear in the output.
280
279
  */
281
280
  promptText: string;
282
281
 
@@ -357,8 +356,7 @@ export declare namespace TextToImageCreateParams {
357
356
  model: 'gemini_image3.1_flash';
358
357
 
359
358
  /**
360
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
361
- * should describe in detail what should appear in the output.
359
+ * This should describe in detail what should appear in the output.
362
360
  */
363
361
  promptText: string;
364
362
 
@@ -465,8 +463,7 @@ export declare namespace TextToImageCreateParams {
465
463
  model: 'gemini_2.5_flash';
466
464
 
467
465
  /**
468
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
469
- * should describe in detail what should appear in the output.
466
+ * This should describe in detail what should appear in the output.
470
467
  */
471
468
  promptText: string;
472
469
 
@@ -204,7 +204,13 @@ export declare namespace TextToVideoCreateParams {
204
204
  | '1664:1248'
205
205
  | '1440:1440'
206
206
  | '1248:1664'
207
- | '1080:1920';
207
+ | '1080:1920'
208
+ | '3840:1646'
209
+ | '3840:2160'
210
+ | '3840:2880'
211
+ | '3840:3840'
212
+ | '2880:3840'
213
+ | '2160:3840';
208
214
 
209
215
  /**
210
216
  * An optional array of audio references. Audio references require a text prompt,
@@ -245,12 +251,6 @@ export declare namespace TextToVideoCreateParams {
245
251
  * A HTTPS URL.
246
252
  */
247
253
  uri: string;
248
-
249
- /**
250
- * The position of the image in the output video. "first" will use the image as the
251
- * first frame, "last" as the last frame. Omit for a reference image.
252
- */
253
- position?: 'first' | 'last';
254
254
  }
255
255
 
256
256
  /**
@@ -343,12 +343,6 @@ export declare namespace TextToVideoCreateParams {
343
343
  * A HTTPS URL.
344
344
  */
345
345
  uri: string;
346
-
347
- /**
348
- * The position of the image in the output video. "first" will use the image as the
349
- * first frame, "last" as the last frame. Omit for a reference image.
350
- */
351
- position?: 'first' | 'last';
352
346
  }
353
347
 
354
348
  /**
@@ -15,7 +15,6 @@ export class VideoToVideo extends APIResource {
15
15
  * ```ts
16
16
  * const videoToVideo = await client.videoToVideo.create({
17
17
  * model: 'aleph2',
18
- * promptText: 'x',
19
18
  * videoUri: 'https://example.com/video.mp4',
20
19
  * });
21
20
  * ```
@@ -46,12 +45,6 @@ export declare namespace VideoToVideoCreateParams {
46
45
  export interface Variant0 {
47
46
  model: 'aleph2';
48
47
 
49
- /**
50
- * A non-empty string up to 1000 characters describing what should appear in the
51
- * output.
52
- */
53
- promptText: string;
54
-
55
48
  /**
56
49
  * A HTTPS URL.
57
50
  */
@@ -68,6 +61,17 @@ export declare namespace VideoToVideoCreateParams {
68
61
  */
69
62
  keyframes?: Array<Variant0.UnionMember0 | Variant0.UnionMember1>;
70
63
 
64
+ /**
65
+ * An optional string up to 1000 characters describing what should appear in the
66
+ * output.
67
+ */
68
+ promptText?: string;
69
+
70
+ /**
71
+ * @deprecated
72
+ */
73
+ ratio?: string;
74
+
71
75
  /**
72
76
  * If unspecified, a random number is chosen. Varying the seed integer is a way to
73
77
  * get different results for the same other request parameters. Using the same seed
@@ -166,7 +170,13 @@ export declare namespace VideoToVideoCreateParams {
166
170
  | '1664:1248'
167
171
  | '1440:1440'
168
172
  | '1248:1664'
169
- | '1080:1920';
173
+ | '1080:1920'
174
+ | '3840:1646'
175
+ | '3840:2160'
176
+ | '3840:2880'
177
+ | '3840:3840'
178
+ | '2880:3840'
179
+ | '2160:3840';
170
180
 
171
181
  /**
172
182
  * An optional array of audio references. Audio references require a text prompt,
@@ -207,12 +217,6 @@ export declare namespace VideoToVideoCreateParams {
207
217
  * A HTTPS URL.
208
218
  */
209
219
  uri: string;
210
-
211
- /**
212
- * The position of the image in the output video. "first" will use the image as the
213
- * first frame, "last" as the last frame. Omit for a reference image.
214
- */
215
- position?: 'first' | 'last';
216
220
  }
217
221
 
218
222
  /**
@@ -310,12 +314,6 @@ export declare namespace VideoToVideoCreateParams {
310
314
  * A HTTPS URL.
311
315
  */
312
316
  uri: string;
313
-
314
- /**
315
- * The position of the image in the output video. "first" will use the image as the
316
- * first frame, "last" as the last frame. Omit for a reference image.
317
- */
318
- position?: 'first' | 'last';
319
317
  }
320
318
 
321
319
  /**