@runwayml/sdk 3.7.0 → 3.8.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.
@@ -8,106 +8,127 @@ export declare class TextToImage extends APIResource {
8
8
  create(body: TextToImageCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToImageCreateResponse>;
9
9
  }
10
10
  export interface TextToImageCreateResponse {
11
- /**
12
- * The ID of the newly created task.
13
- */
14
11
  id: string;
15
12
  }
16
- export interface TextToImageCreateParams {
17
- /**
18
- * The model variant to use.
19
- */
20
- model: 'gen4_image_turbo' | 'gen4_image' | 'gemini_2.5_flash';
21
- /**
22
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
23
- * should describe in detail what should appear in the output.
24
- */
25
- promptText: string;
26
- /**
27
- * The resolution of the output image.
28
- *
29
- * `gen4_image_turbo`, `gen4_image` support the following values:
30
- *
31
- * - `1920:1080`
32
- * - `1080:1920`
33
- * - `1024:1024`
34
- * - `1360:768`
35
- * - `1080:1080`
36
- * - `1168:880`
37
- * - `1440:1080`
38
- * - `1080:1440`
39
- * - `1808:768`
40
- * - `2112:912`
41
- * - `1280:720`
42
- * - `720:1280`
43
- * - `720:720`
44
- * - `960:720`
45
- * - `720:960`
46
- * - `1680:720`
47
- *
48
- * `gemini_2.5_flash` supports the following values:
49
- *
50
- * - `1344:768`
51
- * - `768:1344`
52
- * - `1024:1024`
53
- * - `1184:864`
54
- * - `864:1184`
55
- * - `1536:672`
56
- * - `832x1248`
57
- * - `1248x832`
58
- * - `896x1152`
59
- * - `1152x896`
60
- */
61
- ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720' | '1344:768' | '768:1344' | '1184:864' | '864:1184' | '1536:672' | '832x1248' | '1248x832' | '896x1152' | '1152x896';
62
- /**
63
- * Settings that affect the behavior of the content moderation system.
64
- *
65
- * This field is allowed only for the following model variants: `gen4_image_turbo`,
66
- * `gen4_image`
67
- */
68
- contentModeration?: TextToImageCreateParams.ContentModeration;
69
- /**
70
- * An array of up to three images to be used as references for the generated image
71
- * output.
72
- *
73
- * For `gen4_image_turbo`, _at least one_ reference image is required.
74
- */
75
- referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
76
- /**
77
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
78
- * get different results for the same other request parameters. Using the same seed
79
- * integer for an identical request will produce similar results.
80
- */
81
- seed?: number;
82
- }
13
+ export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
83
14
  export declare namespace TextToImageCreateParams {
84
- /**
85
- * Settings that affect the behavior of the content moderation system.
86
- *
87
- * This field is allowed only for the following model variants: `gen4_image_turbo`,
88
- * `gen4_image`
89
- */
90
- interface ContentModeration {
15
+ interface Gen4ImageTurbo {
16
+ model: 'gen4_image_turbo';
17
+ /**
18
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
19
+ * should describe in detail what should appear in the output.
20
+ */
21
+ promptText: string;
22
+ /**
23
+ * The resolution of the output image.
24
+ */
25
+ ratio: '1024:1024' | '1080:1080' | '1168:880' | '1360:768' | '1440:1080' | '1080:1440' | '1808:768' | '1920:1080' | '1080:1920' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720';
26
+ /**
27
+ * An array of one to three images to be used as references for the generated image
28
+ * output.
29
+ */
30
+ referenceImages: Array<Gen4ImageTurbo.ReferenceImage>;
91
31
  /**
92
- * When set to `low`, the content moderation system will be less strict about
93
- * preventing generations that include recognizable public figures.
32
+ * Settings that affect the behavior of the content moderation system.
94
33
  */
95
- publicFigureThreshold?: 'auto' | 'low';
34
+ contentModeration?: Gen4ImageTurbo.ContentModeration;
35
+ /**
36
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
37
+ * get different results for the same other request parameters. Using the same seed
38
+ * integer for an identical request will produce similar results.
39
+ */
40
+ seed?: number;
41
+ }
42
+ namespace Gen4ImageTurbo {
43
+ interface ReferenceImage {
44
+ /**
45
+ * A HTTPS URL.
46
+ */
47
+ uri: string;
48
+ tag?: string;
49
+ }
50
+ /**
51
+ * Settings that affect the behavior of the content moderation system.
52
+ */
53
+ interface ContentModeration {
54
+ /**
55
+ * When set to `low`, the content moderation system will be less strict about
56
+ * preventing generations that include recognizable public figures.
57
+ */
58
+ publicFigureThreshold?: 'auto' | 'low';
59
+ }
60
+ }
61
+ interface Gen4Image {
62
+ model: 'gen4_image';
63
+ /**
64
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
65
+ * should describe in detail what should appear in the output.
66
+ */
67
+ promptText: string;
68
+ /**
69
+ * The resolution of the output image.
70
+ */
71
+ ratio: '1024:1024' | '1080:1080' | '1168:880' | '1360:768' | '1440:1080' | '1080:1440' | '1808:768' | '1920:1080' | '1080:1920' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720';
72
+ /**
73
+ * Settings that affect the behavior of the content moderation system.
74
+ */
75
+ contentModeration?: Gen4Image.ContentModeration;
76
+ /**
77
+ * An array of up to three images to be used as references for the generated image
78
+ * output.
79
+ */
80
+ referenceImages?: Array<Gen4Image.ReferenceImage>;
81
+ /**
82
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
83
+ * get different results for the same other request parameters. Using the same seed
84
+ * integer for an identical request will produce similar results.
85
+ */
86
+ seed?: number;
96
87
  }
97
- interface ReferenceImage {
88
+ namespace Gen4Image {
98
89
  /**
99
- * A HTTPS URL, Runway or data URI containing an encoded image to be used as
100
- * reference for the generated output image. See [our docs](/assets/inputs#images)
101
- * on image inputs for more information.
90
+ * Settings that affect the behavior of the content moderation system.
102
91
  */
103
- uri: string;
92
+ interface ContentModeration {
93
+ /**
94
+ * When set to `low`, the content moderation system will be less strict about
95
+ * preventing generations that include recognizable public figures.
96
+ */
97
+ publicFigureThreshold?: 'auto' | 'low';
98
+ }
99
+ interface ReferenceImage {
100
+ /**
101
+ * A HTTPS URL.
102
+ */
103
+ uri: string;
104
+ tag?: string;
105
+ }
106
+ }
107
+ interface Gemini2_5Flash {
108
+ model: 'gemini_2.5_flash';
104
109
  /**
105
- * A name used to refer to the image reference, from 3 to 16 characters in length.
106
- * Tags must be alphanumeric (plus underscores) and start with a letter. You can
107
- * refer to the reference image's tag in the prompt text with at-mention syntax:
108
- * `@tag`. Tags are case-sensitive.
110
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
111
+ * should describe in detail what should appear in the output.
109
112
  */
110
- tag?: string;
113
+ promptText: string;
114
+ /**
115
+ * The resolution of the output image.
116
+ */
117
+ ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896';
118
+ /**
119
+ * An array of up to three images to be used as references for the generated image
120
+ * output.
121
+ */
122
+ referenceImages?: Array<Gemini2_5Flash.ReferenceImage>;
123
+ }
124
+ namespace Gemini2_5Flash {
125
+ interface ReferenceImage {
126
+ /**
127
+ * A HTTPS URL.
128
+ */
129
+ uri: string;
130
+ tag?: string;
131
+ }
111
132
  }
112
133
  }
113
134
  export declare namespace TextToImage {
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAE9D;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;IAEf;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC;IAE9D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED,UAAiB,cAAc;QAC7B;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
1
+ {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;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 @@ export declare namespace TextToVideoCreateParams {
23
23
  * The resolution of the output video.
24
24
  */
25
25
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
26
+ /**
27
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
28
+ */
29
+ audio?: boolean;
26
30
  /**
27
31
  * The number of seconds of duration for the output video.
28
32
  */
@@ -39,6 +43,10 @@ export declare namespace TextToVideoCreateParams {
39
43
  * The resolution of the output video.
40
44
  */
41
45
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
46
+ /**
47
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
48
+ */
49
+ audio?: boolean;
42
50
  /**
43
51
  * The number of seconds of duration for the output video.
44
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,MAAM,GAC9B,uBAAuB,CAAC,UAAU,GAClC,uBAAuB,CAAC,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,MAAM;QACrB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,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QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,UAAU;QACzB,KAAK,EAAE,aAAa,CAAC;QAErB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -23,6 +23,10 @@ export declare namespace TextToVideoCreateParams {
23
23
  * The resolution of the output video.
24
24
  */
25
25
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
26
+ /**
27
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
28
+ */
29
+ audio?: boolean;
26
30
  /**
27
31
  * The number of seconds of duration for the output video.
28
32
  */
@@ -39,6 +43,10 @@ export declare namespace TextToVideoCreateParams {
39
43
  * The resolution of the output video.
40
44
  */
41
45
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
46
+ /**
47
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
48
+ */
49
+ audio?: boolean;
42
50
  /**
43
51
  * The number of seconds of duration for the output video.
44
52
  */
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,MAAM,GAC9B,uBAAuB,CAAC,UAAU,GAClC,uBAAuB,CAAC,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,MAAM;QACrB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,UAAU;QACzB,KAAK,EAAE,aAAa,CAAC;QAErB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EA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U,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -33,8 +33,8 @@ export interface ImageToVideoCreateResponse {
33
33
 
34
34
  export type ImageToVideoCreateParams =
35
35
  | ImageToVideoCreateParams.Gen4Turbo
36
- | ImageToVideoCreateParams.Gen3aTurbo
37
36
  | ImageToVideoCreateParams.Veo3_1
37
+ | ImageToVideoCreateParams.Gen3aTurbo
38
38
  | ImageToVideoCreateParams.Veo3_1Fast
39
39
  | ImageToVideoCreateParams.Veo3;
40
40
 
@@ -102,6 +102,54 @@ export declare namespace ImageToVideoCreateParams {
102
102
  }
103
103
  }
104
104
 
105
+ export interface Veo3_1 {
106
+ model: 'veo3.1';
107
+
108
+ /**
109
+ * You may specify an image to use as the first frame of the output video, or an
110
+ * array with a first frame and optionally a last frame. This model does not
111
+ * support generating with only a last frame.
112
+ */
113
+ promptImage: string | Array<Veo3_1.PromptImage>;
114
+
115
+ /**
116
+ * The resolution of the output video.
117
+ */
118
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
119
+
120
+ /**
121
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
122
+ */
123
+ audio?: boolean;
124
+
125
+ /**
126
+ * The number of seconds of duration for the output video.
127
+ */
128
+ duration?: 4 | 6 | 8;
129
+
130
+ /**
131
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
132
+ * should describe in detail what should appear in the output.
133
+ */
134
+ promptText?: string;
135
+ }
136
+
137
+ export namespace Veo3_1 {
138
+ export interface PromptImage {
139
+ /**
140
+ * The position of the image in the output video. "first" will use the image as the
141
+ * first frame of the video, "last" will use the image as the last frame of the
142
+ * video.
143
+ */
144
+ position: 'first' | 'last';
145
+
146
+ /**
147
+ * A HTTPS URL.
148
+ */
149
+ uri: string;
150
+ }
151
+ }
152
+
105
153
  export interface Gen3aTurbo {
106
154
  model: 'gen3a_turbo';
107
155
 
@@ -166,49 +214,6 @@ export declare namespace ImageToVideoCreateParams {
166
214
  }
167
215
  }
168
216
 
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
217
  export interface Veo3_1Fast {
213
218
  model: 'veo3.1_fast';
214
219
 
@@ -224,6 +229,11 @@ export declare namespace ImageToVideoCreateParams {
224
229
  */
225
230
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
226
231
 
232
+ /**
233
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
234
+ */
235
+ audio?: boolean;
236
+
227
237
  /**
228
238
  * The number of seconds of duration for the output video.
229
239
  */
@@ -24,7 +24,7 @@ export interface SpeechToSpeechCreateResponse {
24
24
 
25
25
  export interface SpeechToSpeechCreateParams {
26
26
  /**
27
- * The media to use as a source for the dialogue for the generated speech.
27
+ * An audio file containing dialogue to be processed.
28
28
  */
29
29
  media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
30
30