@runwayml/sdk 4.11.0 → 4.13.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 (154) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/avatar-videos.d.mts +3 -1
  10. package/resources/avatar-videos.d.mts.map +1 -1
  11. package/resources/avatar-videos.d.ts +3 -1
  12. package/resources/avatar-videos.d.ts.map +1 -1
  13. package/resources/avatars.d.mts +6 -2
  14. package/resources/avatars.d.mts.map +1 -1
  15. package/resources/avatars.d.ts +6 -2
  16. package/resources/avatars.d.ts.map +1 -1
  17. package/resources/character-performance.d.mts +10 -4
  18. package/resources/character-performance.d.mts.map +1 -1
  19. package/resources/character-performance.d.ts +10 -4
  20. package/resources/character-performance.d.ts.map +1 -1
  21. package/resources/character-performance.js +1 -1
  22. package/resources/character-performance.mjs +1 -1
  23. package/resources/generate/audio.d.mts +184 -0
  24. package/resources/generate/audio.d.mts.map +1 -0
  25. package/resources/generate/audio.d.ts +184 -0
  26. package/resources/generate/audio.d.ts.map +1 -0
  27. package/resources/generate/audio.js +18 -0
  28. package/resources/generate/audio.js.map +1 -0
  29. package/resources/generate/audio.mjs +14 -0
  30. package/resources/generate/audio.mjs.map +1 -0
  31. package/resources/generate/generate.d.mts +8 -0
  32. package/resources/generate/generate.d.mts.map +1 -1
  33. package/resources/generate/generate.d.ts +8 -0
  34. package/resources/generate/generate.d.ts.map +1 -1
  35. package/resources/generate/generate.js +8 -0
  36. package/resources/generate/generate.js.map +1 -1
  37. package/resources/generate/generate.mjs +8 -0
  38. package/resources/generate/generate.mjs.map +1 -1
  39. package/resources/generate/image.d.mts +173 -0
  40. package/resources/generate/image.d.mts.map +1 -0
  41. package/resources/generate/image.d.ts +173 -0
  42. package/resources/generate/image.d.ts.map +1 -0
  43. package/resources/generate/image.js +17 -0
  44. package/resources/generate/image.js.map +1 -0
  45. package/resources/generate/image.mjs +13 -0
  46. package/resources/generate/image.mjs.map +1 -0
  47. package/resources/generate/index.d.mts +2 -0
  48. package/resources/generate/index.d.mts.map +1 -1
  49. package/resources/generate/index.d.ts +2 -0
  50. package/resources/generate/index.d.ts.map +1 -1
  51. package/resources/generate/index.js +5 -1
  52. package/resources/generate/index.js.map +1 -1
  53. package/resources/generate/index.mjs +2 -0
  54. package/resources/generate/index.mjs.map +1 -1
  55. package/resources/generate/video.d.mts +17 -7
  56. package/resources/generate/video.d.mts.map +1 -1
  57. package/resources/generate/video.d.ts +17 -7
  58. package/resources/generate/video.d.ts.map +1 -1
  59. package/resources/image-to-video.d.mts +51 -17
  60. package/resources/image-to-video.d.mts.map +1 -1
  61. package/resources/image-to-video.d.ts +51 -17
  62. package/resources/image-to-video.d.ts.map +1 -1
  63. package/resources/image-upscale.d.mts +3 -1
  64. package/resources/image-upscale.d.mts.map +1 -1
  65. package/resources/image-upscale.d.ts +3 -1
  66. package/resources/image-upscale.d.ts.map +1 -1
  67. package/resources/index.d.mts +1 -1
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +1 -1
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js.map +1 -1
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/realtime-sessions.d.mts +25 -25
  74. package/resources/realtime-sessions.d.mts.map +1 -1
  75. package/resources/realtime-sessions.d.ts +25 -25
  76. package/resources/realtime-sessions.d.ts.map +1 -1
  77. package/resources/recipes.d.mts +48 -24
  78. package/resources/recipes.d.mts.map +1 -1
  79. package/resources/recipes.d.ts +48 -24
  80. package/resources/recipes.d.ts.map +1 -1
  81. package/resources/routers.d.mts +49 -49
  82. package/resources/routers.d.ts +49 -49
  83. package/resources/routers.js +1 -1
  84. package/resources/routers.mjs +1 -1
  85. package/resources/speech-to-speech.d.mts +6 -2
  86. package/resources/speech-to-speech.d.mts.map +1 -1
  87. package/resources/speech-to-speech.d.ts +6 -2
  88. package/resources/speech-to-speech.d.ts.map +1 -1
  89. package/resources/text-to-image.d.mts +36 -14
  90. package/resources/text-to-image.d.mts.map +1 -1
  91. package/resources/text-to-image.d.ts +36 -14
  92. package/resources/text-to-image.d.ts.map +1 -1
  93. package/resources/text-to-speech.d.mts +3 -1
  94. package/resources/text-to-speech.d.mts.map +1 -1
  95. package/resources/text-to-speech.d.ts +3 -1
  96. package/resources/text-to-speech.d.ts.map +1 -1
  97. package/resources/text-to-video.d.mts +27 -9
  98. package/resources/text-to-video.d.mts.map +1 -1
  99. package/resources/text-to-video.d.ts +27 -9
  100. package/resources/text-to-video.d.ts.map +1 -1
  101. package/resources/video-to-video.d.mts +51 -17
  102. package/resources/video-to-video.d.mts.map +1 -1
  103. package/resources/video-to-video.d.ts +51 -17
  104. package/resources/video-to-video.d.ts.map +1 -1
  105. package/resources/video-upscale.d.mts +3 -1
  106. package/resources/video-upscale.d.mts.map +1 -1
  107. package/resources/video-upscale.d.ts +3 -1
  108. package/resources/video-upscale.d.ts.map +1 -1
  109. package/resources/voice-dubbing.d.mts +3 -1
  110. package/resources/voice-dubbing.d.mts.map +1 -1
  111. package/resources/voice-dubbing.d.ts +3 -1
  112. package/resources/voice-dubbing.d.ts.map +1 -1
  113. package/resources/voice-isolation.d.mts +3 -1
  114. package/resources/voice-isolation.d.mts.map +1 -1
  115. package/resources/voice-isolation.d.ts +3 -1
  116. package/resources/voice-isolation.d.ts.map +1 -1
  117. package/resources/voices.d.mts +3 -1
  118. package/resources/voices.d.mts.map +1 -1
  119. package/resources/voices.d.ts +3 -1
  120. package/resources/voices.d.ts.map +1 -1
  121. package/resources/workflows.d.mts +9 -3
  122. package/resources/workflows.d.mts.map +1 -1
  123. package/resources/workflows.d.ts +9 -3
  124. package/resources/workflows.d.ts.map +1 -1
  125. package/src/client.ts +2 -0
  126. package/src/resources/avatar-videos.ts +3 -1
  127. package/src/resources/avatars.ts +6 -2
  128. package/src/resources/character-performance.ts +10 -4
  129. package/src/resources/generate/audio.ts +269 -0
  130. package/src/resources/generate/generate.ts +20 -0
  131. package/src/resources/generate/image.ts +208 -0
  132. package/src/resources/generate/index.ts +2 -0
  133. package/src/resources/generate/video.ts +17 -7
  134. package/src/resources/image-to-video.ts +51 -17
  135. package/src/resources/image-upscale.ts +3 -1
  136. package/src/resources/index.ts +1 -0
  137. package/src/resources/realtime-sessions.ts +29 -28
  138. package/src/resources/recipes.ts +48 -24
  139. package/src/resources/routers.ts +49 -49
  140. package/src/resources/speech-to-speech.ts +6 -2
  141. package/src/resources/text-to-image.ts +36 -14
  142. package/src/resources/text-to-speech.ts +3 -1
  143. package/src/resources/text-to-video.ts +27 -9
  144. package/src/resources/video-to-video.ts +51 -17
  145. package/src/resources/video-upscale.ts +3 -1
  146. package/src/resources/voice-dubbing.ts +3 -1
  147. package/src/resources/voice-isolation.ts +3 -1
  148. package/src/resources/voices.ts +3 -1
  149. package/src/resources/workflows.ts +9 -3
  150. package/src/version.ts +1 -1
  151. package/version.d.mts +1 -1
  152. package/version.d.ts +1 -1
  153. package/version.js +1 -1
  154. package/version.mjs +1 -1
@@ -0,0 +1,269 @@
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 Audio extends APIResource {
8
+ /**
9
+ * Start an audio generation task using a saved Model Router config instead of
10
+ * naming a model. Set input.type to speech to speak promptText verbatim, or audio
11
+ * to generate audio described by promptText.
12
+ */
13
+ create(
14
+ body: AudioCreateParams,
15
+ options?: RequestOptions,
16
+ ): APIPromiseWithAwaitableTask<AudioCreateResponse> {
17
+ return wrapAsWaitableResource<AudioCreateResponse>(this._client)(
18
+ this._client.post('/v1/generate/audio', { body, ...options }),
19
+ );
20
+ }
21
+ }
22
+
23
+ export interface AudioCreateResponse {
24
+ /**
25
+ * The ID of the created task. Poll GET /v1/tasks/:id for the result.
26
+ */
27
+ id: string;
28
+
29
+ /**
30
+ * Metadata describing which model the router selected and why.
31
+ */
32
+ routing: AudioCreateResponse.Routing;
33
+ }
34
+
35
+ export namespace AudioCreateResponse {
36
+ /**
37
+ * Metadata describing which model the router selected and why.
38
+ */
39
+ export interface Routing {
40
+ /**
41
+ * The slug of the router config that was applied to this request.
42
+ */
43
+ configId: string;
44
+
45
+ /**
46
+ * Estimated cost, computed against current pricing.
47
+ */
48
+ estimatedCost: Routing.EstimatedCost;
49
+
50
+ /**
51
+ * The public name of the model the router selected.
52
+ */
53
+ model: string;
54
+
55
+ /**
56
+ * The provider of the selected model.
57
+ */
58
+ provider: string;
59
+
60
+ /**
61
+ * Request-side defaults resolved for the routing response. Not necessarily
62
+ * identical to prepared model options.
63
+ */
64
+ resolvedInput: Routing.ResolvedInput;
65
+
66
+ /**
67
+ * The resolved config settings the router used for this request.
68
+ */
69
+ resolvedSettings: Routing.ResolvedSettings;
70
+ }
71
+
72
+ export namespace Routing {
73
+ /**
74
+ * Estimated cost, computed against current pricing.
75
+ */
76
+ export interface EstimatedCost {
77
+ /**
78
+ * Estimated cost of the generation in credits.
79
+ */
80
+ credits: number;
81
+ }
82
+
83
+ /**
84
+ * Request-side defaults resolved for the routing response. Not necessarily
85
+ * identical to prepared model options.
86
+ */
87
+ export interface ResolvedInput {
88
+ /**
89
+ * The prompt mode the router routed for.
90
+ */
91
+ type: 'speech' | 'audio';
92
+
93
+ /**
94
+ * How the selected model resolves the voice: the requested preset or
95
+ * reference-audio clone, the model default for voiceless speech, or none for
96
+ * general audio.
97
+ */
98
+ voice: 'preset' | 'reference-audio' | 'default' | 'none';
99
+ }
100
+
101
+ /**
102
+ * The resolved config settings the router used for this request.
103
+ */
104
+ export interface ResolvedSettings {
105
+ /**
106
+ * The single optimization preference the config selected, used as the soft
107
+ * weighting when scoring eligible models.
108
+ */
109
+ optimizeFor: 'cost' | 'latency' | 'quality';
110
+
111
+ /**
112
+ * The applied maximum credits per generation for this request's modality, or null
113
+ * if the config sets no ceiling.
114
+ */
115
+ priceCeiling: number | null;
116
+ }
117
+ }
118
+ }
119
+
120
+ export interface AudioCreateParams {
121
+ /**
122
+ * The slug of a saved Model Router config to route this request with.
123
+ */
124
+ configId: string;
125
+
126
+ /**
127
+ * Model-agnostic audio generation input. The router selects a model and maps these
128
+ * options to it.
129
+ */
130
+ input: AudioCreateParams.Input;
131
+ }
132
+
133
+ export namespace AudioCreateParams {
134
+ /**
135
+ * Model-agnostic audio generation input. The router selects a model and maps these
136
+ * options to it.
137
+ */
138
+ export interface Input {
139
+ /**
140
+ * For `speech`, the words to speak. For `audio`, a description of the desired
141
+ * output.
142
+ */
143
+ promptText: string;
144
+
145
+ /**
146
+ * How promptText is interpreted: `speech` speaks it verbatim as a script; `audio`
147
+ * treats it as a description of the desired audio, which may combine speech,
148
+ * music, ambience, and sound effects.
149
+ */
150
+ type: 'speech' | 'audio';
151
+
152
+ /**
153
+ * Desired output duration in seconds for `audio` generation. Models that cannot
154
+ * honor an explicit duration are excluded.
155
+ */
156
+ duration?: number;
157
+
158
+ /**
159
+ * When true, the `audio` output is designed to loop seamlessly. Models without
160
+ * loop support are excluded.
161
+ */
162
+ loop?: boolean;
163
+
164
+ /**
165
+ * Optional reference audio clips guiding `audio` generation, for models that
166
+ * support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3
167
+ * in order.
168
+ */
169
+ referenceAudios?: Array<Input.ReferenceAudio>;
170
+
171
+ /**
172
+ * The voice to speak with. When omitted, models that support a default voice
173
+ * remain eligible.
174
+ */
175
+ voice?: Input.Preset | Input.ReferenceAudio;
176
+ }
177
+
178
+ export namespace Input {
179
+ export interface ReferenceAudio {
180
+ /**
181
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
182
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
183
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
184
+ */
185
+ uri: string;
186
+ }
187
+
188
+ /**
189
+ * A preset voice.
190
+ */
191
+ export interface Preset {
192
+ /**
193
+ * A Runway preset voice id. Choosing a preset routes only to models that support
194
+ * preset voices.
195
+ */
196
+ presetId:
197
+ | 'Maya'
198
+ | 'Arjun'
199
+ | 'Serene'
200
+ | 'Bernard'
201
+ | 'Billy'
202
+ | 'Mark'
203
+ | 'Clint'
204
+ | 'Mabel'
205
+ | 'Chad'
206
+ | 'Leslie'
207
+ | 'Eleanor'
208
+ | 'Elias'
209
+ | 'Elliot'
210
+ | 'Grungle'
211
+ | 'Brodie'
212
+ | 'Sandra'
213
+ | 'Kirk'
214
+ | 'Kylie'
215
+ | 'Lara'
216
+ | 'Lisa'
217
+ | 'Malachi'
218
+ | 'Marlene'
219
+ | 'Martin'
220
+ | 'Miriam'
221
+ | 'Monster'
222
+ | 'Paula'
223
+ | 'Pip'
224
+ | 'Rusty'
225
+ | 'Ragnar'
226
+ | 'Xylar'
227
+ | 'Maggie'
228
+ | 'Jack'
229
+ | 'Katie'
230
+ | 'Noah'
231
+ | 'James'
232
+ | 'Rina'
233
+ | 'Ella'
234
+ | 'Mariah'
235
+ | 'Frank'
236
+ | 'Claudia'
237
+ | 'Niki'
238
+ | 'Vincent'
239
+ | 'Kendrick'
240
+ | 'Myrna'
241
+ | 'Tom'
242
+ | 'Wanda'
243
+ | 'Benjamin'
244
+ | 'Kiana'
245
+ | 'Rachel';
246
+
247
+ type: 'preset';
248
+ }
249
+
250
+ /**
251
+ * Clone a voice from a reference audio clip, then speak promptText in that voice.
252
+ * Routes only to models that support voice cloning.
253
+ */
254
+ export interface ReferenceAudio {
255
+ /**
256
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
257
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
258
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
259
+ */
260
+ audioUri: string;
261
+
262
+ type: 'reference-audio';
263
+ }
264
+ }
265
+ }
266
+
267
+ export declare namespace Audio {
268
+ export { type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams };
269
+ }
@@ -1,14 +1,22 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as AudioAPI from './audio';
5
+ import { Audio, AudioCreateParams, AudioCreateResponse } from './audio';
6
+ import * as ImageAPI from './image';
7
+ import { Image, ImageCreateParams, ImageCreateResponse } from './image';
4
8
  import * as VideoAPI from './video';
5
9
  import { Video, VideoCreateParams, VideoCreateResponse } from './video';
6
10
 
7
11
  export class Generate extends APIResource {
8
12
  video: VideoAPI.Video = new VideoAPI.Video(this._client);
13
+ image: ImageAPI.Image = new ImageAPI.Image(this._client);
14
+ audio: AudioAPI.Audio = new AudioAPI.Audio(this._client);
9
15
  }
10
16
 
11
17
  Generate.Video = Video;
18
+ Generate.Image = Image;
19
+ Generate.Audio = Audio;
12
20
 
13
21
  export declare namespace Generate {
14
22
  export {
@@ -16,4 +24,16 @@ export declare namespace Generate {
16
24
  type VideoCreateResponse as VideoCreateResponse,
17
25
  type VideoCreateParams as VideoCreateParams,
18
26
  };
27
+
28
+ export {
29
+ Image as Image,
30
+ type ImageCreateResponse as ImageCreateResponse,
31
+ type ImageCreateParams as ImageCreateParams,
32
+ };
33
+
34
+ export {
35
+ Audio as Audio,
36
+ type AudioCreateResponse as AudioCreateResponse,
37
+ type AudioCreateParams as AudioCreateParams,
38
+ };
19
39
  }
@@ -0,0 +1,208 @@
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 Image extends APIResource {
8
+ /**
9
+ * Start an image generation task using a saved Model Router config instead of
10
+ * naming a model.
11
+ */
12
+ create(
13
+ body: ImageCreateParams,
14
+ options?: RequestOptions,
15
+ ): APIPromiseWithAwaitableTask<ImageCreateResponse> {
16
+ return wrapAsWaitableResource<ImageCreateResponse>(this._client)(
17
+ this._client.post('/v1/generate/image', { body, ...options }),
18
+ );
19
+ }
20
+ }
21
+
22
+ export interface ImageCreateResponse {
23
+ /**
24
+ * The ID of the created task. Poll GET /v1/tasks/:id for the result.
25
+ */
26
+ id: string;
27
+
28
+ /**
29
+ * Metadata describing which model the router selected and why.
30
+ */
31
+ routing: ImageCreateResponse.Routing;
32
+ }
33
+
34
+ export namespace ImageCreateResponse {
35
+ /**
36
+ * Metadata describing which model the router selected and why.
37
+ */
38
+ export interface Routing {
39
+ /**
40
+ * The slug of the router config that was applied to this request.
41
+ */
42
+ configId: string;
43
+
44
+ /**
45
+ * Estimated cost, computed against current pricing.
46
+ */
47
+ estimatedCost: Routing.EstimatedCost;
48
+
49
+ /**
50
+ * The public name of the model the router selected.
51
+ */
52
+ model: string;
53
+
54
+ /**
55
+ * The provider of the selected model.
56
+ */
57
+ provider: string;
58
+
59
+ /**
60
+ * Request-side defaults resolved for the routing response. Not necessarily
61
+ * identical to prepared model options.
62
+ */
63
+ resolvedInput: Routing.ResolvedInput;
64
+
65
+ /**
66
+ * The resolved config settings the router used for this request.
67
+ */
68
+ resolvedSettings: Routing.ResolvedSettings;
69
+ }
70
+
71
+ export namespace Routing {
72
+ /**
73
+ * Estimated cost, computed against current pricing.
74
+ */
75
+ export interface EstimatedCost {
76
+ /**
77
+ * Estimated cost of the generation in credits.
78
+ */
79
+ credits: number;
80
+ }
81
+
82
+ /**
83
+ * Request-side defaults resolved for the routing response. Not necessarily
84
+ * identical to prepared model options.
85
+ */
86
+ export interface ResolvedInput {
87
+ /**
88
+ * Aspect ratio used for routing display.
89
+ */
90
+ aspectRatio: string;
91
+
92
+ /**
93
+ * Concrete output ratio derived from aspectRatio and resolution for the selected
94
+ * model.
95
+ */
96
+ ratio: string;
97
+
98
+ /**
99
+ * Megapixel tier used for routing display.
100
+ */
101
+ resolution: string;
102
+ }
103
+
104
+ /**
105
+ * The resolved config settings the router used for this request.
106
+ */
107
+ export interface ResolvedSettings {
108
+ /**
109
+ * The single optimization preference the config selected, used as the soft
110
+ * weighting when scoring eligible models.
111
+ */
112
+ optimizeFor: 'cost' | 'latency' | 'quality';
113
+
114
+ /**
115
+ * The applied maximum credits per generation for this request's modality, or null
116
+ * if the config sets no ceiling.
117
+ */
118
+ priceCeiling: number | null;
119
+ }
120
+ }
121
+ }
122
+
123
+ export interface ImageCreateParams {
124
+ /**
125
+ * The slug of a saved Model Router config to route this request with.
126
+ */
127
+ configId: string;
128
+
129
+ /**
130
+ * Model-agnostic image generation input. The router selects a model and maps these
131
+ * options to it.
132
+ */
133
+ input: ImageCreateParams.Input;
134
+ }
135
+
136
+ export namespace ImageCreateParams {
137
+ /**
138
+ * Model-agnostic image generation input. The router selects a model and maps these
139
+ * options to it.
140
+ */
141
+ export interface Input {
142
+ /**
143
+ * A text prompt describing the desired image.
144
+ */
145
+ promptText: string;
146
+
147
+ /**
148
+ * Desired aspect ratio. Models that do not support the requested aspect are
149
+ * excluded.
150
+ */
151
+ aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9' | '2:3' | '3:2' | '4:5' | '5:4';
152
+
153
+ /**
154
+ * Settings that affect the behavior of the content moderation system.
155
+ */
156
+ contentModeration?: Input.ContentModeration;
157
+
158
+ /**
159
+ * Number of images to generate (1-10). Models that cannot produce the exact count
160
+ * are excluded and cost scales with this value.
161
+ */
162
+ outputCount?: number;
163
+
164
+ /**
165
+ * Optional reference images for models that support them. Tags are assigned per
166
+ * model when omitted.
167
+ */
168
+ referenceImages?: Array<Input.ReferenceImage>;
169
+
170
+ /**
171
+ * Desired megapixel tier. Models that do not support the requested tier are
172
+ * excluded.
173
+ */
174
+ resolution?: '1k' | '2k' | '4k';
175
+
176
+ /**
177
+ * A seed for reproducible generation. Only gen4_image and gen4_image_turbo accept
178
+ * this field.
179
+ */
180
+ seed?: number;
181
+ }
182
+
183
+ export namespace Input {
184
+ /**
185
+ * Settings that affect the behavior of the content moderation system.
186
+ */
187
+ export interface ContentModeration {
188
+ /**
189
+ * When set to `low`, the content moderation system will be less strict about
190
+ * preventing generations that include recognizable public figures.
191
+ */
192
+ publicFigureThreshold?: 'auto' | 'low';
193
+ }
194
+
195
+ export interface ReferenceImage {
196
+ /**
197
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
198
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
199
+ * [our docs](/assets/inputs#images) on image inputs for more information.
200
+ */
201
+ uri: string;
202
+ }
203
+ }
204
+ }
205
+
206
+ export declare namespace Image {
207
+ export { type ImageCreateResponse as ImageCreateResponse, type ImageCreateParams as ImageCreateParams };
208
+ }
@@ -1,4 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export { Audio, type AudioCreateResponse, type AudioCreateParams } from './audio';
3
4
  export { Generate } from './generate';
5
+ export { Image, type ImageCreateResponse, type ImageCreateParams } from './image';
4
6
  export { Video, type VideoCreateResponse, type VideoCreateParams } from './video';
@@ -112,7 +112,7 @@ export namespace VideoCreateResponse {
112
112
  optimizeFor: 'cost' | 'latency' | 'quality';
113
113
 
114
114
  /**
115
- * The applied maximum credits per generation for this request’s modality, or null
115
+ * The applied maximum credits per generation for this request's modality, or null
116
116
  * if the config sets no ceiling.
117
117
  */
118
118
  priceCeiling: number | null;
@@ -149,7 +149,7 @@ export namespace VideoCreateParams {
149
149
  * Whether to generate native audio with the video. When true, only models that
150
150
  * output audio remain eligible; when false, silent models and models with an audio
151
151
  * toggle remain eligible (always-on native-audio models are excluded). When
152
- * omitted, the selected model’s default applies.
152
+ * omitted, the selected model's default applies.
153
153
  */
154
154
  audio?: boolean;
155
155
 
@@ -226,7 +226,9 @@ export namespace VideoCreateParams {
226
226
  seconds: number;
227
227
 
228
228
  /**
229
- * A HTTPS URL.
229
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
230
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
231
+ * [our docs](/assets/inputs#images) on image inputs for more information.
230
232
  */
231
233
  uri: string;
232
234
 
@@ -245,7 +247,9 @@ export namespace VideoCreateParams {
245
247
  at: number;
246
248
 
247
249
  /**
248
- * A HTTPS URL.
250
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
251
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
252
+ * [our docs](/assets/inputs#images) on image inputs for more information.
249
253
  */
250
254
  uri: string;
251
255
 
@@ -262,7 +266,9 @@ export namespace VideoCreateParams {
262
266
 
263
267
  export interface ReferenceAudio {
264
268
  /**
265
- * A HTTPS URL.
269
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
270
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
271
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
266
272
  */
267
273
  uri: string;
268
274
  }
@@ -275,7 +281,9 @@ export namespace VideoCreateParams {
275
281
  role: 'first' | 'last' | 'reference';
276
282
 
277
283
  /**
278
- * A HTTPS URL.
284
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
285
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
286
+ * [our docs](/assets/inputs#images) on image inputs for more information.
279
287
  */
280
288
  uri: string;
281
289
  }
@@ -288,7 +296,9 @@ export namespace VideoCreateParams {
288
296
  role: 'source' | 'reference';
289
297
 
290
298
  /**
291
- * A HTTPS URL.
299
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
300
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
301
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
292
302
  */
293
303
  uri: string;
294
304
  }