@runwayml/sdk 4.10.0 → 4.12.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 (99) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +8 -8
  3. package/client.d.mts +6 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/generate/audio.d.mts +180 -0
  13. package/resources/generate/audio.d.mts.map +1 -0
  14. package/resources/generate/audio.d.ts +180 -0
  15. package/resources/generate/audio.d.ts.map +1 -0
  16. package/resources/generate/audio.js +18 -0
  17. package/resources/generate/audio.js.map +1 -0
  18. package/resources/generate/audio.mjs +14 -0
  19. package/resources/generate/audio.mjs.map +1 -0
  20. package/resources/generate/generate.d.mts +18 -0
  21. package/resources/generate/generate.d.mts.map +1 -0
  22. package/resources/generate/generate.d.ts +18 -0
  23. package/resources/generate/generate.d.ts.map +1 -0
  24. package/resources/generate/generate.js +25 -0
  25. package/resources/generate/generate.js.map +1 -0
  26. package/resources/generate/generate.mjs +20 -0
  27. package/resources/generate/generate.mjs.map +1 -0
  28. package/resources/generate/image.d.mts +171 -0
  29. package/resources/generate/image.d.mts.map +1 -0
  30. package/resources/generate/image.d.ts +171 -0
  31. package/resources/generate/image.d.ts.map +1 -0
  32. package/resources/generate/image.js +17 -0
  33. package/resources/generate/image.js.map +1 -0
  34. package/resources/generate/image.mjs +13 -0
  35. package/resources/generate/image.mjs.map +1 -0
  36. package/resources/generate/index.d.mts +5 -0
  37. package/resources/generate/index.d.mts.map +1 -0
  38. package/resources/generate/index.d.ts +5 -0
  39. package/resources/generate/index.d.ts.map +1 -0
  40. package/resources/generate/index.js +13 -0
  41. package/resources/generate/index.js.map +1 -0
  42. package/resources/generate/index.mjs +6 -0
  43. package/resources/generate/index.mjs.map +1 -0
  44. package/resources/generate/video.d.mts +246 -0
  45. package/resources/generate/video.d.mts.map +1 -0
  46. package/resources/generate/video.d.ts +246 -0
  47. package/resources/generate/video.d.ts.map +1 -0
  48. package/resources/generate/video.js +17 -0
  49. package/resources/generate/video.js.map +1 -0
  50. package/resources/generate/video.mjs +13 -0
  51. package/resources/generate/video.mjs.map +1 -0
  52. package/resources/generate.d.mts +2 -0
  53. package/resources/generate.d.mts.map +1 -0
  54. package/resources/generate.d.ts +2 -0
  55. package/resources/generate.d.ts.map +1 -0
  56. package/resources/generate.js +6 -0
  57. package/resources/generate.js.map +1 -0
  58. package/resources/generate.mjs +3 -0
  59. package/resources/generate.mjs.map +1 -0
  60. package/resources/index.d.mts +2 -0
  61. package/resources/index.d.mts.map +1 -1
  62. package/resources/index.d.ts +2 -0
  63. package/resources/index.d.ts.map +1 -1
  64. package/resources/index.js +5 -1
  65. package/resources/index.js.map +1 -1
  66. package/resources/index.mjs +2 -0
  67. package/resources/index.mjs.map +1 -1
  68. package/resources/organization.d.mts +20 -2
  69. package/resources/organization.d.mts.map +1 -1
  70. package/resources/organization.d.ts +20 -2
  71. package/resources/organization.d.ts.map +1 -1
  72. package/resources/routers.d.mts +490 -0
  73. package/resources/routers.d.mts.map +1 -0
  74. package/resources/routers.d.ts +490 -0
  75. package/resources/routers.d.ts.map +1 -0
  76. package/resources/routers.js +49 -0
  77. package/resources/routers.js.map +1 -0
  78. package/resources/routers.mjs +45 -0
  79. package/resources/routers.mjs.map +1 -0
  80. package/resources/text-to-image.d.mts +5 -0
  81. package/resources/text-to-image.d.mts.map +1 -1
  82. package/resources/text-to-image.d.ts +5 -0
  83. package/resources/text-to-image.d.ts.map +1 -1
  84. package/src/client.ts +30 -0
  85. package/src/resources/generate/audio.ts +265 -0
  86. package/src/resources/generate/generate.ts +39 -0
  87. package/src/resources/generate/image.ts +206 -0
  88. package/src/resources/generate/index.ts +6 -0
  89. package/src/resources/generate/video.ts +300 -0
  90. package/src/resources/generate.ts +3 -0
  91. package/src/resources/index.ts +12 -0
  92. package/src/resources/organization.ts +26 -0
  93. package/src/resources/routers.ts +622 -0
  94. package/src/resources/text-to-image.ts +6 -0
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,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,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,eAAe,GACvC,uBAAuB,CAAC,mBAAmB,GAC3C,uBAAuB,CAAC,YAAY,GACpC,uBAAuB,CAAC,aAAa,GACrC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS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W,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;QAE9B;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;KACvD;IAED,UAAiB,aAAa,CAAC;QAC7B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;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":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC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AU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
package/src/client.ts CHANGED
@@ -94,6 +94,17 @@ import {
94
94
  RecipeProductUgcResponse,
95
95
  Recipes,
96
96
  } from './resources/recipes';
97
+ import {
98
+ RouterCreateParams,
99
+ RouterCreateResponse,
100
+ RouterListParams,
101
+ RouterListResponse,
102
+ RouterListResponsesCursorPage,
103
+ RouterRetrieveResponse,
104
+ RouterUpdateParams,
105
+ RouterUpdateResponse,
106
+ Routers,
107
+ } from './resources/routers';
97
108
  import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from './resources/sound-effect';
98
109
  import {
99
110
  SpeechToSpeech,
@@ -150,6 +161,7 @@ import {
150
161
  WorkflowRunResponse,
151
162
  Workflows,
152
163
  } from './resources/workflows';
164
+ import { Generate } from './resources/generate/generate';
153
165
  import { type Fetch } from './internal/builtin-types';
154
166
  import { isRunningInBrowser } from './internal/detect-platform';
155
167
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
@@ -962,6 +974,8 @@ export class RunwayML {
962
974
  * These endpoints all kick off tasks to create generations.
963
975
  */
964
976
  videoUpscale: API.VideoUpscale = new API.VideoUpscale(this);
977
+ generate: API.Generate = new API.Generate(this);
978
+ routers: API.Routers = new API.Routers(this);
965
979
  organization: API.Organization = new API.Organization(this);
966
980
  avatars: API.Avatars = new API.Avatars(this);
967
981
  avatarConversations: API.AvatarConversations = new API.AvatarConversations(this);
@@ -988,6 +1002,8 @@ RunwayML.VoiceDubbing = VoiceDubbing;
988
1002
  RunwayML.SpeechToSpeech = SpeechToSpeech;
989
1003
  RunwayML.ImageUpscale = ImageUpscale;
990
1004
  RunwayML.VideoUpscale = VideoUpscale;
1005
+ RunwayML.Generate = Generate;
1006
+ RunwayML.Routers = Routers;
991
1007
  RunwayML.Organization = Organization;
992
1008
  RunwayML.Avatars = Avatars;
993
1009
  RunwayML.AvatarConversations = AvatarConversations;
@@ -1080,6 +1096,20 @@ export declare namespace RunwayML {
1080
1096
  type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
1081
1097
  };
1082
1098
 
1099
+ export { Generate as Generate };
1100
+
1101
+ export {
1102
+ Routers as Routers,
1103
+ type RouterCreateResponse as RouterCreateResponse,
1104
+ type RouterRetrieveResponse as RouterRetrieveResponse,
1105
+ type RouterUpdateResponse as RouterUpdateResponse,
1106
+ type RouterListResponse as RouterListResponse,
1107
+ type RouterListResponsesCursorPage as RouterListResponsesCursorPage,
1108
+ type RouterCreateParams as RouterCreateParams,
1109
+ type RouterUpdateParams as RouterUpdateParams,
1110
+ type RouterListParams as RouterListParams,
1111
+ };
1112
+
1083
1113
  export {
1084
1114
  Organization as Organization,
1085
1115
  type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
@@ -0,0 +1,265 @@
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.
182
+ */
183
+ uri: string;
184
+ }
185
+
186
+ /**
187
+ * A preset voice.
188
+ */
189
+ export interface Preset {
190
+ /**
191
+ * A Runway preset voice id. Choosing a preset routes only to models that support
192
+ * preset voices.
193
+ */
194
+ presetId:
195
+ | 'Maya'
196
+ | 'Arjun'
197
+ | 'Serene'
198
+ | 'Bernard'
199
+ | 'Billy'
200
+ | 'Mark'
201
+ | 'Clint'
202
+ | 'Mabel'
203
+ | 'Chad'
204
+ | 'Leslie'
205
+ | 'Eleanor'
206
+ | 'Elias'
207
+ | 'Elliot'
208
+ | 'Grungle'
209
+ | 'Brodie'
210
+ | 'Sandra'
211
+ | 'Kirk'
212
+ | 'Kylie'
213
+ | 'Lara'
214
+ | 'Lisa'
215
+ | 'Malachi'
216
+ | 'Marlene'
217
+ | 'Martin'
218
+ | 'Miriam'
219
+ | 'Monster'
220
+ | 'Paula'
221
+ | 'Pip'
222
+ | 'Rusty'
223
+ | 'Ragnar'
224
+ | 'Xylar'
225
+ | 'Maggie'
226
+ | 'Jack'
227
+ | 'Katie'
228
+ | 'Noah'
229
+ | 'James'
230
+ | 'Rina'
231
+ | 'Ella'
232
+ | 'Mariah'
233
+ | 'Frank'
234
+ | 'Claudia'
235
+ | 'Niki'
236
+ | 'Vincent'
237
+ | 'Kendrick'
238
+ | 'Myrna'
239
+ | 'Tom'
240
+ | 'Wanda'
241
+ | 'Benjamin'
242
+ | 'Kiana'
243
+ | 'Rachel';
244
+
245
+ type: 'preset';
246
+ }
247
+
248
+ /**
249
+ * Clone a voice from a reference audio clip, then speak promptText in that voice.
250
+ * Routes only to models that support voice cloning.
251
+ */
252
+ export interface ReferenceAudio {
253
+ /**
254
+ * A HTTPS URL.
255
+ */
256
+ audioUri: string;
257
+
258
+ type: 'reference-audio';
259
+ }
260
+ }
261
+ }
262
+
263
+ export declare namespace Audio {
264
+ export { type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams };
265
+ }
@@ -0,0 +1,39 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
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';
8
+ import * as VideoAPI from './video';
9
+ import { Video, VideoCreateParams, VideoCreateResponse } from './video';
10
+
11
+ export class Generate extends APIResource {
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);
15
+ }
16
+
17
+ Generate.Video = Video;
18
+ Generate.Image = Image;
19
+ Generate.Audio = Audio;
20
+
21
+ export declare namespace Generate {
22
+ export {
23
+ Video as Video,
24
+ type VideoCreateResponse as VideoCreateResponse,
25
+ type VideoCreateParams as VideoCreateParams,
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
+ };
39
+ }
@@ -0,0 +1,206 @@
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.
198
+ */
199
+ uri: string;
200
+ }
201
+ }
202
+ }
203
+
204
+ export declare namespace Image {
205
+ export { type ImageCreateResponse as ImageCreateResponse, type ImageCreateParams as ImageCreateParams };
206
+ }
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Audio, type AudioCreateResponse, type AudioCreateParams } from './audio';
4
+ export { Generate } from './generate';
5
+ export { Image, type ImageCreateResponse, type ImageCreateParams } from './image';
6
+ export { Video, type VideoCreateResponse, type VideoCreateParams } from './video';