@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.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +1 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +1 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/recipes.d.mts +428 -0
- package/resources/recipes.d.mts.map +1 -0
- package/resources/recipes.d.ts +428 -0
- package/resources/recipes.d.ts.map +1 -0
- package/resources/recipes.js +51 -0
- package/resources/recipes.js.map +1 -0
- package/resources/recipes.mjs +47 -0
- package/resources/recipes.mjs.map +1 -0
- package/resources/text-to-image.d.mts +3 -6
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +3 -6
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +1 -11
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +1 -11
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +10 -17
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +10 -17
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +0 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +0 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/src/client.ts +42 -1
- package/src/resources/image-to-video.ts +7 -1
- package/src/resources/index.ts +15 -0
- package/src/resources/organization.ts +11 -1
- package/src/resources/recipes.ts +565 -0
- package/src/resources/text-to-image.ts +3 -6
- package/src/resources/text-to-video.ts +7 -13
- package/src/resources/video-to-video.ts +18 -20
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
export declare class Recipes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Generate a polished marketing stock image from a text brief and optional brand
|
|
7
|
+
* logo image.
|
|
8
|
+
*/
|
|
9
|
+
marketingStockImage(body: RecipeMarketingStockImageParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeMarketingStockImageResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Generate a multi-cut video from a story prompt (auto mode) or a custom shot list
|
|
12
|
+
* (custom mode).
|
|
13
|
+
*/
|
|
14
|
+
multiShotVideo(body: RecipeMultiShotVideoParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeMultiShotVideoResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Generate a cinematic product ad from product images, optional style references,
|
|
17
|
+
* product info, and creative direction.
|
|
18
|
+
*/
|
|
19
|
+
productAd(body: RecipeProductAdParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeProductAdResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Generate four fashion campaign images from a product image and style brief.
|
|
22
|
+
*/
|
|
23
|
+
productCampaignImage(body: RecipeProductCampaignImageParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeProductCampaignImageResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Replace the product in a reference video with a new product, preserving camera
|
|
26
|
+
* motion, lighting, and scene composition.
|
|
27
|
+
*/
|
|
28
|
+
productSwap(body: RecipeProductSwapParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeProductSwapResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Generate a vertical user-generated content ad from a character image, product
|
|
31
|
+
* image, product details, and optional creative direction.
|
|
32
|
+
*/
|
|
33
|
+
productUgc(body: RecipeProductUgcParams, options?: RequestOptions): APIPromiseWithAwaitableTask<RecipeProductUgcResponse>;
|
|
34
|
+
}
|
|
35
|
+
export interface RecipeMarketingStockImageResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
export interface RecipeMultiShotVideoResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
}
|
|
47
|
+
export interface RecipeProductAdResponse {
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
53
|
+
export interface RecipeProductCampaignImageResponse {
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
}
|
|
59
|
+
export interface RecipeProductSwapResponse {
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
65
|
+
export interface RecipeProductUgcResponse {
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
}
|
|
71
|
+
export interface RecipeMarketingStockImageParams {
|
|
72
|
+
/**
|
|
73
|
+
* Marketing image brief. Describe the subject, audience, channel, desired mood,
|
|
74
|
+
* setting, and any constraints.
|
|
75
|
+
*/
|
|
76
|
+
prompt: string;
|
|
77
|
+
/**
|
|
78
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
79
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
80
|
+
*/
|
|
81
|
+
version: '2026-06' | 'unsafe-latest';
|
|
82
|
+
/**
|
|
83
|
+
* Optional brand logo image to guide the generated marketing stock image. See
|
|
84
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
85
|
+
*/
|
|
86
|
+
referenceImage?: RecipeMarketingStockImageParams.ReferenceImage;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace RecipeMarketingStockImageParams {
|
|
89
|
+
/**
|
|
90
|
+
* Optional brand logo image to guide the generated marketing stock image. See
|
|
91
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
92
|
+
*/
|
|
93
|
+
interface ReferenceImage {
|
|
94
|
+
/**
|
|
95
|
+
* A HTTPS URL.
|
|
96
|
+
*/
|
|
97
|
+
uri: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export type RecipeMultiShotVideoParams = RecipeMultiShotVideoParams.Variant0 | RecipeMultiShotVideoParams.Variant1;
|
|
101
|
+
export declare namespace RecipeMultiShotVideoParams {
|
|
102
|
+
interface Variant0 {
|
|
103
|
+
/**
|
|
104
|
+
* Workflow mode. `auto` decomposes a story prompt into exactly 5 shots.
|
|
105
|
+
*/
|
|
106
|
+
mode: 'auto';
|
|
107
|
+
/**
|
|
108
|
+
* Story prompt for auto mode.
|
|
109
|
+
*/
|
|
110
|
+
prompt: string;
|
|
111
|
+
/**
|
|
112
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
113
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
114
|
+
*/
|
|
115
|
+
version: '2026-06' | 'unsafe-latest';
|
|
116
|
+
/**
|
|
117
|
+
* Whether to generate audio for the video.
|
|
118
|
+
*/
|
|
119
|
+
audio?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Total duration of the output video in seconds. Defaults to 10 seconds.
|
|
122
|
+
*/
|
|
123
|
+
duration?: 5 | 10 | 15;
|
|
124
|
+
/**
|
|
125
|
+
* Optional image used as the first frame of the output video. See
|
|
126
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
127
|
+
*/
|
|
128
|
+
firstFrame?: Variant0.FirstFrame;
|
|
129
|
+
/**
|
|
130
|
+
* Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`,
|
|
131
|
+
* `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`,
|
|
132
|
+
* `1440:1440`) use the pro tier. Defaults to `1280:720`.
|
|
133
|
+
*/
|
|
134
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1920:1080' | '1080:1920' | '1440:1440';
|
|
135
|
+
}
|
|
136
|
+
namespace Variant0 {
|
|
137
|
+
/**
|
|
138
|
+
* Optional image used as the first frame of the output video. See
|
|
139
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
140
|
+
*/
|
|
141
|
+
interface FirstFrame {
|
|
142
|
+
/**
|
|
143
|
+
* A HTTPS URL.
|
|
144
|
+
*/
|
|
145
|
+
uri: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
interface Variant1 {
|
|
149
|
+
/**
|
|
150
|
+
* Workflow mode. `custom` polishes a user-provided shot list of 3–5 shots.
|
|
151
|
+
*/
|
|
152
|
+
mode: 'custom';
|
|
153
|
+
/**
|
|
154
|
+
* Shot list for custom mode (3–5 shots). Per-shot durations must sum to
|
|
155
|
+
* `duration`.
|
|
156
|
+
*/
|
|
157
|
+
shots: Array<Variant1.Shot>;
|
|
158
|
+
/**
|
|
159
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
160
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
161
|
+
*/
|
|
162
|
+
version: '2026-06' | 'unsafe-latest';
|
|
163
|
+
/**
|
|
164
|
+
* Whether to generate audio for the video.
|
|
165
|
+
*/
|
|
166
|
+
audio?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Total duration of the output video in seconds. Defaults to 10 seconds.
|
|
169
|
+
*/
|
|
170
|
+
duration?: 5 | 10 | 15;
|
|
171
|
+
/**
|
|
172
|
+
* Optional image used as the first frame of the output video. See
|
|
173
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
174
|
+
*/
|
|
175
|
+
firstFrame?: Variant1.FirstFrame;
|
|
176
|
+
/**
|
|
177
|
+
* Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`,
|
|
178
|
+
* `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`,
|
|
179
|
+
* `1440:1440`) use the pro tier. Defaults to `1280:720`.
|
|
180
|
+
*/
|
|
181
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1920:1080' | '1080:1920' | '1440:1440';
|
|
182
|
+
}
|
|
183
|
+
namespace Variant1 {
|
|
184
|
+
interface Shot {
|
|
185
|
+
/**
|
|
186
|
+
* Duration of this shot in seconds.
|
|
187
|
+
*/
|
|
188
|
+
duration: number;
|
|
189
|
+
/**
|
|
190
|
+
* Shot description prompt.
|
|
191
|
+
*/
|
|
192
|
+
prompt: string;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Optional image used as the first frame of the output video. See
|
|
196
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
197
|
+
*/
|
|
198
|
+
interface FirstFrame {
|
|
199
|
+
/**
|
|
200
|
+
* A HTTPS URL.
|
|
201
|
+
*/
|
|
202
|
+
uri: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export interface RecipeProductAdParams {
|
|
207
|
+
/**
|
|
208
|
+
* Product images (1–10). Multiple angles of the same product. All images inform
|
|
209
|
+
* product analysis and reference generation; only the first image is used as the
|
|
210
|
+
* primary product reference in the storyboard grid. See
|
|
211
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
212
|
+
*/
|
|
213
|
+
productImages: Array<RecipeProductAdParams.ProductImage>;
|
|
214
|
+
/**
|
|
215
|
+
* Workflow version. Use a dated version (e.g. "2026-07") to pin behavior, or
|
|
216
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
217
|
+
*/
|
|
218
|
+
version: '2026-06' | '2026-07' | 'unsafe-latest';
|
|
219
|
+
/**
|
|
220
|
+
* Whether to generate audio for the video.
|
|
221
|
+
*/
|
|
222
|
+
audio?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Duration of the output video in seconds (4–15). Defaults to 10 seconds.
|
|
225
|
+
*/
|
|
226
|
+
duration?: number;
|
|
227
|
+
/**
|
|
228
|
+
* Optional product description and specifications to inform creative direction and
|
|
229
|
+
* which product elements to highlight.
|
|
230
|
+
*/
|
|
231
|
+
productInfo?: string;
|
|
232
|
+
/**
|
|
233
|
+
* The resolution of the output video.
|
|
234
|
+
*/
|
|
235
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '834:1112' | '1920:1080' | '1080:1920' | '1440:1440' | '1248:1664';
|
|
236
|
+
/**
|
|
237
|
+
* Optional style reference images (0–4). Defines the visual treatment (lighting,
|
|
238
|
+
* palette, mood). Treated as a moodboard when multiple are provided.
|
|
239
|
+
*/
|
|
240
|
+
styleImages?: Array<RecipeProductAdParams.StyleImage>;
|
|
241
|
+
/**
|
|
242
|
+
* Optional creative direction describing brand voice, product framing, scene
|
|
243
|
+
* specifics, lighting, camera motion, and narrative.
|
|
244
|
+
*/
|
|
245
|
+
userConcept?: string;
|
|
246
|
+
}
|
|
247
|
+
export declare namespace RecipeProductAdParams {
|
|
248
|
+
interface ProductImage {
|
|
249
|
+
/**
|
|
250
|
+
* A HTTPS URL.
|
|
251
|
+
*/
|
|
252
|
+
uri: string;
|
|
253
|
+
}
|
|
254
|
+
interface StyleImage {
|
|
255
|
+
/**
|
|
256
|
+
* A HTTPS URL.
|
|
257
|
+
*/
|
|
258
|
+
uri: string;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
export interface RecipeProductCampaignImageParams {
|
|
262
|
+
/**
|
|
263
|
+
* Product image to preserve across the generated campaign. See
|
|
264
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
265
|
+
*/
|
|
266
|
+
image: RecipeProductCampaignImageParams.Image;
|
|
267
|
+
/**
|
|
268
|
+
* Style / creative brief for the fashion campaign, e.g. "High-key fashion
|
|
269
|
+
* editorial, gorpcore-meets-blokecore-meets-Y2K".
|
|
270
|
+
*/
|
|
271
|
+
prompt: string;
|
|
272
|
+
/**
|
|
273
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
274
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
275
|
+
*/
|
|
276
|
+
version: '2026-06' | 'unsafe-latest';
|
|
277
|
+
}
|
|
278
|
+
export declare namespace RecipeProductCampaignImageParams {
|
|
279
|
+
/**
|
|
280
|
+
* Product image to preserve across the generated campaign. See
|
|
281
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
282
|
+
*/
|
|
283
|
+
interface Image {
|
|
284
|
+
/**
|
|
285
|
+
* A HTTPS URL.
|
|
286
|
+
*/
|
|
287
|
+
uri: string;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
export interface RecipeProductSwapParams {
|
|
291
|
+
/**
|
|
292
|
+
* Reference images of the new product (1–10). Supply multiple angles when the
|
|
293
|
+
* reference video shows the product from different views — optionally label each
|
|
294
|
+
* with `view` ("front", "side", or "back"). A single pre-composed reference sheet
|
|
295
|
+
* is also supported (omit `view`). See [our docs](/assets/inputs#images) on image
|
|
296
|
+
* inputs.
|
|
297
|
+
*/
|
|
298
|
+
newProductImages: Array<RecipeProductSwapParams.NewProductImage>;
|
|
299
|
+
/**
|
|
300
|
+
* Image of the original product being swapped out. See
|
|
301
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
302
|
+
*/
|
|
303
|
+
originalProductImage: RecipeProductSwapParams.OriginalProductImage;
|
|
304
|
+
/**
|
|
305
|
+
* Reference video containing the product to swap. Duration must be between 1.8 and
|
|
306
|
+
* 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.
|
|
307
|
+
*/
|
|
308
|
+
referenceVideo: RecipeProductSwapParams.ReferenceVideo;
|
|
309
|
+
/**
|
|
310
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
311
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
312
|
+
*/
|
|
313
|
+
version: '2026-06' | 'unsafe-latest';
|
|
314
|
+
/**
|
|
315
|
+
* Whether to generate audio for the video.
|
|
316
|
+
*/
|
|
317
|
+
audio?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Duration of the output video in seconds (4–15). Defaults to 10 seconds.
|
|
320
|
+
*/
|
|
321
|
+
duration?: number;
|
|
322
|
+
/**
|
|
323
|
+
* Output video resolution. Defaults to 720p.
|
|
324
|
+
*/
|
|
325
|
+
resolution?: '720p' | '1080p';
|
|
326
|
+
}
|
|
327
|
+
export declare namespace RecipeProductSwapParams {
|
|
328
|
+
interface NewProductImage {
|
|
329
|
+
/**
|
|
330
|
+
* A HTTPS URL.
|
|
331
|
+
*/
|
|
332
|
+
uri: string;
|
|
333
|
+
/**
|
|
334
|
+
* Optional view label for this reference (front, side, or back). Omit when
|
|
335
|
+
* supplying a single reference sheet or when view labels are unknown.
|
|
336
|
+
*/
|
|
337
|
+
view?: 'front' | 'side' | 'back';
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Image of the original product being swapped out. See
|
|
341
|
+
* [our docs](/assets/inputs#images) on image inputs.
|
|
342
|
+
*/
|
|
343
|
+
interface OriginalProductImage {
|
|
344
|
+
/**
|
|
345
|
+
* A HTTPS URL.
|
|
346
|
+
*/
|
|
347
|
+
uri: string;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Reference video containing the product to swap. Duration must be between 1.8 and
|
|
351
|
+
* 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.
|
|
352
|
+
*/
|
|
353
|
+
interface ReferenceVideo {
|
|
354
|
+
/**
|
|
355
|
+
* A HTTPS URL.
|
|
356
|
+
*/
|
|
357
|
+
uri: string;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
export interface RecipeProductUgcParams {
|
|
361
|
+
/**
|
|
362
|
+
* Image of the character who will appear on camera in the UGC video. Aspect ratio
|
|
363
|
+
* (width / height) must be between 0.4 and 4. See
|
|
364
|
+
* [our docs](/assets/inputs#images) for image input requirements.
|
|
365
|
+
*/
|
|
366
|
+
characterImage: RecipeProductUgcParams.CharacterImage;
|
|
367
|
+
/**
|
|
368
|
+
* Image of the product being promoted. Aspect ratio (width / height) must be
|
|
369
|
+
* between 0.4 and 4. See [our docs](/assets/inputs#images) for image input
|
|
370
|
+
* requirements.
|
|
371
|
+
*/
|
|
372
|
+
productImage: RecipeProductUgcParams.ProductImage;
|
|
373
|
+
/**
|
|
374
|
+
* Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or
|
|
375
|
+
* "unsafe-latest" to track the newest stable version (may break without notice).
|
|
376
|
+
*/
|
|
377
|
+
version: '2026-06' | 'unsafe-latest';
|
|
378
|
+
/**
|
|
379
|
+
* Whether to generate audio for the video.
|
|
380
|
+
*/
|
|
381
|
+
audio?: boolean;
|
|
382
|
+
/**
|
|
383
|
+
* Duration of the output video in seconds (4–15). Defaults to 15 seconds.
|
|
384
|
+
*/
|
|
385
|
+
duration?: number;
|
|
386
|
+
/**
|
|
387
|
+
* Product details and creative brief — what the product is, key benefits, and any
|
|
388
|
+
* specifics the script should reference.
|
|
389
|
+
*/
|
|
390
|
+
productInfo?: string;
|
|
391
|
+
/**
|
|
392
|
+
* The resolution of the output video.
|
|
393
|
+
*/
|
|
394
|
+
ratio?: '720:1280' | '1080:1920';
|
|
395
|
+
/**
|
|
396
|
+
* Optional creative direction for the UGC video — tone, voice register, specific
|
|
397
|
+
* message, or an entire dialog script.
|
|
398
|
+
*/
|
|
399
|
+
userConcept?: string;
|
|
400
|
+
}
|
|
401
|
+
export declare namespace RecipeProductUgcParams {
|
|
402
|
+
/**
|
|
403
|
+
* Image of the character who will appear on camera in the UGC video. Aspect ratio
|
|
404
|
+
* (width / height) must be between 0.4 and 4. See
|
|
405
|
+
* [our docs](/assets/inputs#images) for image input requirements.
|
|
406
|
+
*/
|
|
407
|
+
interface CharacterImage {
|
|
408
|
+
/**
|
|
409
|
+
* A HTTPS URL.
|
|
410
|
+
*/
|
|
411
|
+
uri: string;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Image of the product being promoted. Aspect ratio (width / height) must be
|
|
415
|
+
* between 0.4 and 4. See [our docs](/assets/inputs#images) for image input
|
|
416
|
+
* requirements.
|
|
417
|
+
*/
|
|
418
|
+
interface ProductImage {
|
|
419
|
+
/**
|
|
420
|
+
* A HTTPS URL.
|
|
421
|
+
*/
|
|
422
|
+
uri: string;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
export declare namespace Recipes {
|
|
426
|
+
export { type RecipeMarketingStockImageResponse as RecipeMarketingStockImageResponse, type RecipeMultiShotVideoResponse as RecipeMultiShotVideoResponse, type RecipeProductAdResponse as RecipeProductAdResponse, type RecipeProductCampaignImageResponse as RecipeProductCampaignImageResponse, type RecipeProductSwapResponse as RecipeProductSwapResponse, type RecipeProductUgcResponse as RecipeProductUgcResponse, type RecipeMarketingStockImageParams as RecipeMarketingStockImageParams, type RecipeMultiShotVideoParams as RecipeMultiShotVideoParams, type RecipeProductAdParams as RecipeProductAdParams, type RecipeProductCampaignImageParams as RecipeProductCampaignImageParams, type RecipeProductSwapParams as RecipeProductSwapParams, type RecipeProductUgcParams as RecipeProductUgcParams, };
|
|
427
|
+
}
|
|
428
|
+
//# sourceMappingURL=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}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Recipes = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
class Recipes extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Generate a polished marketing stock image from a text brief and optional brand
|
|
10
|
+
* logo image.
|
|
11
|
+
*/
|
|
12
|
+
marketingStockImage(body, options) {
|
|
13
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/marketing_stock_image', { body, ...options }));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Generate a multi-cut video from a story prompt (auto mode) or a custom shot list
|
|
17
|
+
* (custom mode).
|
|
18
|
+
*/
|
|
19
|
+
multiShotVideo(body, options) {
|
|
20
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/multi_shot_video', { body, ...options }));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Generate a cinematic product ad from product images, optional style references,
|
|
24
|
+
* product info, and creative direction.
|
|
25
|
+
*/
|
|
26
|
+
productAd(body, options) {
|
|
27
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/product_ad', { body, ...options }));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Generate four fashion campaign images from a product image and style brief.
|
|
31
|
+
*/
|
|
32
|
+
productCampaignImage(body, options) {
|
|
33
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/product_campaign_image', { body, ...options }));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Replace the product in a reference video with a new product, preserving camera
|
|
37
|
+
* motion, lighting, and scene composition.
|
|
38
|
+
*/
|
|
39
|
+
productSwap(body, options) {
|
|
40
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/product_swap', { body, ...options }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Generate a vertical user-generated content ad from a character image, product
|
|
44
|
+
* image, product details, and optional creative direction.
|
|
45
|
+
*/
|
|
46
|
+
productUgc(body, options) {
|
|
47
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/recipes/product_ugc', { body, ...options }));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Recipes = Recipes;
|
|
51
|
+
//# sourceMappingURL=recipes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.js","sourceRoot":"","sources":["../src/resources/recipes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,mBAAmB,CACjB,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAAoC,IAAI,CAAC,OAAO,CAAC,CAC5E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7E,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,cAAc,CACZ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACxE,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA0B,IAAI,CAAC,OAAO,CAAC,CAClE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAClE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAAqC,IAAI,CAAC,OAAO,CAAC,CAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9E,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,WAAW,CACT,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACpE,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,UAAU,CACR,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA2B,IAAI,CAAC,OAAO,CAAC,CACnE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACnE,CAAC;IACJ,CAAC;CACF;AA7ED,0BA6EC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
export class Recipes extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Generate a polished marketing stock image from a text brief and optional brand
|
|
7
|
+
* logo image.
|
|
8
|
+
*/
|
|
9
|
+
marketingStockImage(body, options) {
|
|
10
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/marketing_stock_image', { body, ...options }));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Generate a multi-cut video from a story prompt (auto mode) or a custom shot list
|
|
14
|
+
* (custom mode).
|
|
15
|
+
*/
|
|
16
|
+
multiShotVideo(body, options) {
|
|
17
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/multi_shot_video', { body, ...options }));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Generate a cinematic product ad from product images, optional style references,
|
|
21
|
+
* product info, and creative direction.
|
|
22
|
+
*/
|
|
23
|
+
productAd(body, options) {
|
|
24
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/product_ad', { body, ...options }));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Generate four fashion campaign images from a product image and style brief.
|
|
28
|
+
*/
|
|
29
|
+
productCampaignImage(body, options) {
|
|
30
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/product_campaign_image', { body, ...options }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Replace the product in a reference video with a new product, preserving camera
|
|
34
|
+
* motion, lighting, and scene composition.
|
|
35
|
+
*/
|
|
36
|
+
productSwap(body, options) {
|
|
37
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/product_swap', { body, ...options }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Generate a vertical user-generated content ad from a character image, product
|
|
41
|
+
* image, product details, and optional creative direction.
|
|
42
|
+
*/
|
|
43
|
+
productUgc(body, options) {
|
|
44
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/recipes/product_ugc', { body, ...options }));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=recipes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.mjs","sourceRoot":"","sources":["../src/resources/recipes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF,MAAM,OAAO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B,IAAI,CAAC,OAAO,CAAC,CACnE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACnE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -165,8 +165,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
165
165
|
interface GeminiImage3Pro {
|
|
166
166
|
model: 'gemini_image3_pro';
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
169
|
-
* should describe in detail what should appear in the output.
|
|
168
|
+
* This should describe in detail what should appear in the output.
|
|
170
169
|
*/
|
|
171
170
|
promptText: string;
|
|
172
171
|
/**
|
|
@@ -209,8 +208,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
209
208
|
interface GeminiImage3_1Flash {
|
|
210
209
|
model: 'gemini_image3.1_flash';
|
|
211
210
|
/**
|
|
212
|
-
*
|
|
213
|
-
* should describe in detail what should appear in the output.
|
|
211
|
+
* This should describe in detail what should appear in the output.
|
|
214
212
|
*/
|
|
215
213
|
promptText: string;
|
|
216
214
|
/**
|
|
@@ -253,8 +251,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
253
251
|
interface Gemini2_5Flash {
|
|
254
252
|
model: 'gemini_2.5_flash';
|
|
255
253
|
/**
|
|
256
|
-
*
|
|
257
|
-
* should describe in detail what should appear in the output.
|
|
254
|
+
* This should describe in detail what should appear in the output.
|
|
258
255
|
*/
|
|
259
256
|
promptText: string;
|
|
260
257
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,E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ACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,YAAY,CAAC;QAEjB;;;;WAIG;QACH,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QAEpB;;;;;;WAMG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;KAC7D;IAED,UAAiB,mBAAmB,CAAC;QACnC,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;YAE7B;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;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"}
|
|
@@ -165,8 +165,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
165
165
|
interface GeminiImage3Pro {
|
|
166
166
|
model: 'gemini_image3_pro';
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
169
|
-
* should describe in detail what should appear in the output.
|
|
168
|
+
* This should describe in detail what should appear in the output.
|
|
170
169
|
*/
|
|
171
170
|
promptText: string;
|
|
172
171
|
/**
|
|
@@ -209,8 +208,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
209
208
|
interface GeminiImage3_1Flash {
|
|
210
209
|
model: 'gemini_image3.1_flash';
|
|
211
210
|
/**
|
|
212
|
-
*
|
|
213
|
-
* should describe in detail what should appear in the output.
|
|
211
|
+
* This should describe in detail what should appear in the output.
|
|
214
212
|
*/
|
|
215
213
|
promptText: string;
|
|
216
214
|
/**
|
|
@@ -253,8 +251,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
253
251
|
interface Gemini2_5Flash {
|
|
254
252
|
model: 'gemini_2.5_flash';
|
|
255
253
|
/**
|
|
256
|
-
*
|
|
257
|
-
* should describe in detail what should appear in the output.
|
|
254
|
+
* This should describe in detail what should appear in the output.
|
|
258
255
|
*/
|
|
259
256
|
promptText: string;
|
|
260
257
|
/**
|
|
@@ -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,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