@runwayml/sdk 4.20.0 → 4.20.1
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 +15 -0
- package/package.json +1 -1
- package/resources/organization/organization.d.mts +6 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +6 -4
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +16 -3
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +16 -3
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +142 -47
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +142 -47
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/video-to-hdr.d.mts +19 -10
- package/resources/video-to-hdr.d.mts.map +1 -1
- package/resources/video-to-hdr.d.ts +19 -10
- package/resources/video-to-hdr.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +49 -33
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +49 -33
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/workflow-invocations.d.mts +29 -4
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts +29 -4
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.js +3 -1
- package/resources/workflow-invocations.js.map +1 -1
- package/resources/workflow-invocations.mjs +3 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/src/resources/organization/organization.ts +10 -2
- package/src/resources/organization/webapp/audit-logs.ts +30 -3
- package/src/resources/text-to-image.ts +262 -85
- package/src/resources/video-to-hdr.ts +19 -10
- package/src/resources/video-upscale.ts +55 -33
- package/src/resources/workflow-invocations.ts +32 -4
- 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
|
@@ -33,7 +33,7 @@ export declare namespace TextToImageCreateResponse {
|
|
|
33
33
|
credits: number;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.
|
|
36
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.MuseImage | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.GrokImagineImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GptImage2_5Flare | TextToImageCreateParams.GptImage2_5Sunburst | TextToImageCreateParams.Gemini2_5Flash;
|
|
37
37
|
export declare namespace TextToImageCreateParams {
|
|
38
38
|
interface Gen4ImageTurbo {
|
|
39
39
|
model: 'gen4_image_turbo';
|
|
@@ -188,52 +188,6 @@ export declare namespace TextToImageCreateParams {
|
|
|
188
188
|
tag?: string;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
interface GeminiImage3Pro {
|
|
192
|
-
model: 'gemini_image3_pro';
|
|
193
|
-
/**
|
|
194
|
-
* This should describe in detail what should appear in the output.
|
|
195
|
-
*/
|
|
196
|
-
promptText: string;
|
|
197
|
-
/**
|
|
198
|
-
* The resolution of the output image.
|
|
199
|
-
*/
|
|
200
|
-
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
201
|
-
/**
|
|
202
|
-
* The number of images to generate. Increasing this number will affect the number
|
|
203
|
-
* of credits consumed by the generation. Up to four images can be generated at
|
|
204
|
-
* once.
|
|
205
|
-
*/
|
|
206
|
-
outputCount?: 1 | 4;
|
|
207
|
-
/**
|
|
208
|
-
* An array of up to 14 images to be used as references for the generated image
|
|
209
|
-
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
210
|
-
* character consistency, and up to nine of those images can pass
|
|
211
|
-
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
212
|
-
* output.
|
|
213
|
-
*/
|
|
214
|
-
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
215
|
-
}
|
|
216
|
-
namespace GeminiImage3Pro {
|
|
217
|
-
interface ReferenceImage {
|
|
218
|
-
/**
|
|
219
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
220
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
221
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
222
|
-
*/
|
|
223
|
-
uri: string;
|
|
224
|
-
/**
|
|
225
|
-
* Whether this is a reference of a human subject (for character consistency) or an
|
|
226
|
-
* object that appears in the output.
|
|
227
|
-
*/
|
|
228
|
-
subject?: 'object' | 'human';
|
|
229
|
-
/**
|
|
230
|
-
* A tag to identify the reference image. This is used to reference the image in
|
|
231
|
-
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
232
|
-
* digits, and underscores (no hyphens or other punctuation).
|
|
233
|
-
*/
|
|
234
|
-
tag?: string;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
191
|
interface GeminiImage3_1Flash {
|
|
238
192
|
model: 'gemini_image3.1_flash';
|
|
239
193
|
/**
|
|
@@ -445,6 +399,147 @@ export declare namespace TextToImageCreateParams {
|
|
|
445
399
|
uri: string;
|
|
446
400
|
}
|
|
447
401
|
}
|
|
402
|
+
interface GeminiImage3Pro {
|
|
403
|
+
model: 'gemini_image3_pro';
|
|
404
|
+
/**
|
|
405
|
+
* This should describe in detail what should appear in the output.
|
|
406
|
+
*/
|
|
407
|
+
promptText: string;
|
|
408
|
+
/**
|
|
409
|
+
* The resolution of the output image.
|
|
410
|
+
*/
|
|
411
|
+
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
412
|
+
/**
|
|
413
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
414
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
415
|
+
* once.
|
|
416
|
+
*/
|
|
417
|
+
outputCount?: 1 | 4;
|
|
418
|
+
/**
|
|
419
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
420
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
421
|
+
* character consistency, and up to nine of those images can pass
|
|
422
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
423
|
+
* output.
|
|
424
|
+
*/
|
|
425
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
426
|
+
}
|
|
427
|
+
namespace GeminiImage3Pro {
|
|
428
|
+
interface ReferenceImage {
|
|
429
|
+
/**
|
|
430
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
431
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
432
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
433
|
+
*/
|
|
434
|
+
uri: string;
|
|
435
|
+
/**
|
|
436
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
437
|
+
* object that appears in the output.
|
|
438
|
+
*/
|
|
439
|
+
subject?: 'object' | 'human';
|
|
440
|
+
/**
|
|
441
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
442
|
+
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
443
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
444
|
+
*/
|
|
445
|
+
tag?: string;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
interface GptImage2_5Flare {
|
|
449
|
+
model: 'gpt_image_2_5_flare';
|
|
450
|
+
/**
|
|
451
|
+
* A non-empty string describing the desired image.
|
|
452
|
+
*/
|
|
453
|
+
promptText: string;
|
|
454
|
+
/**
|
|
455
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
456
|
+
* to let the model choose.
|
|
457
|
+
*/
|
|
458
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
459
|
+
/**
|
|
460
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
461
|
+
*/
|
|
462
|
+
background?: 'opaque' | 'auto';
|
|
463
|
+
/**
|
|
464
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
465
|
+
* number of credits consumed by the generation.
|
|
466
|
+
*/
|
|
467
|
+
outputCount?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
470
|
+
*/
|
|
471
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
472
|
+
/**
|
|
473
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
474
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
475
|
+
* per generated image.
|
|
476
|
+
*/
|
|
477
|
+
referenceImages?: Array<GptImage2_5Flare.ReferenceImage>;
|
|
478
|
+
}
|
|
479
|
+
namespace GptImage2_5Flare {
|
|
480
|
+
interface ReferenceImage {
|
|
481
|
+
/**
|
|
482
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
483
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
484
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
485
|
+
*/
|
|
486
|
+
uri: string;
|
|
487
|
+
/**
|
|
488
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
489
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
490
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
491
|
+
*/
|
|
492
|
+
tag?: string;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
interface GptImage2_5Sunburst {
|
|
496
|
+
model: 'gpt_image_2_5_sunburst';
|
|
497
|
+
/**
|
|
498
|
+
* A non-empty string describing the desired image.
|
|
499
|
+
*/
|
|
500
|
+
promptText: string;
|
|
501
|
+
/**
|
|
502
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
503
|
+
* to let the model choose.
|
|
504
|
+
*/
|
|
505
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
506
|
+
/**
|
|
507
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
508
|
+
* `transparent` to generate a PNG with an alpha-channel background.
|
|
509
|
+
*/
|
|
510
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
511
|
+
/**
|
|
512
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
513
|
+
* number of credits consumed by the generation.
|
|
514
|
+
*/
|
|
515
|
+
outputCount?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
518
|
+
*/
|
|
519
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
520
|
+
/**
|
|
521
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
522
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
523
|
+
* per generated image.
|
|
524
|
+
*/
|
|
525
|
+
referenceImages?: Array<GptImage2_5Sunburst.ReferenceImage>;
|
|
526
|
+
}
|
|
527
|
+
namespace GptImage2_5Sunburst {
|
|
528
|
+
interface ReferenceImage {
|
|
529
|
+
/**
|
|
530
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
531
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
532
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
533
|
+
*/
|
|
534
|
+
uri: string;
|
|
535
|
+
/**
|
|
536
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
537
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
538
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
539
|
+
*/
|
|
540
|
+
tag?: string;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
448
543
|
interface Gemini2_5Flash {
|
|
449
544
|
model: 'gemini_2.5_flash';
|
|
450
545
|
/**
|
|
@@ -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,E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H"}
|
|
@@ -33,7 +33,7 @@ export declare namespace TextToImageCreateResponse {
|
|
|
33
33
|
credits: number;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.
|
|
36
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3_1Flash | TextToImageCreateParams.MuseImage | TextToImageCreateParams.Seedream5Pro | TextToImageCreateParams.Seedream5Lite | TextToImageCreateParams.GrokImagineImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.GptImage2_5Flare | TextToImageCreateParams.GptImage2_5Sunburst | TextToImageCreateParams.Gemini2_5Flash;
|
|
37
37
|
export declare namespace TextToImageCreateParams {
|
|
38
38
|
interface Gen4ImageTurbo {
|
|
39
39
|
model: 'gen4_image_turbo';
|
|
@@ -188,52 +188,6 @@ export declare namespace TextToImageCreateParams {
|
|
|
188
188
|
tag?: string;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
interface GeminiImage3Pro {
|
|
192
|
-
model: 'gemini_image3_pro';
|
|
193
|
-
/**
|
|
194
|
-
* This should describe in detail what should appear in the output.
|
|
195
|
-
*/
|
|
196
|
-
promptText: string;
|
|
197
|
-
/**
|
|
198
|
-
* The resolution of the output image.
|
|
199
|
-
*/
|
|
200
|
-
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
201
|
-
/**
|
|
202
|
-
* The number of images to generate. Increasing this number will affect the number
|
|
203
|
-
* of credits consumed by the generation. Up to four images can be generated at
|
|
204
|
-
* once.
|
|
205
|
-
*/
|
|
206
|
-
outputCount?: 1 | 4;
|
|
207
|
-
/**
|
|
208
|
-
* An array of up to 14 images to be used as references for the generated image
|
|
209
|
-
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
210
|
-
* character consistency, and up to nine of those images can pass
|
|
211
|
-
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
212
|
-
* output.
|
|
213
|
-
*/
|
|
214
|
-
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
215
|
-
}
|
|
216
|
-
namespace GeminiImage3Pro {
|
|
217
|
-
interface ReferenceImage {
|
|
218
|
-
/**
|
|
219
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
220
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
221
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
222
|
-
*/
|
|
223
|
-
uri: string;
|
|
224
|
-
/**
|
|
225
|
-
* Whether this is a reference of a human subject (for character consistency) or an
|
|
226
|
-
* object that appears in the output.
|
|
227
|
-
*/
|
|
228
|
-
subject?: 'object' | 'human';
|
|
229
|
-
/**
|
|
230
|
-
* A tag to identify the reference image. This is used to reference the image in
|
|
231
|
-
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
232
|
-
* digits, and underscores (no hyphens or other punctuation).
|
|
233
|
-
*/
|
|
234
|
-
tag?: string;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
191
|
interface GeminiImage3_1Flash {
|
|
238
192
|
model: 'gemini_image3.1_flash';
|
|
239
193
|
/**
|
|
@@ -445,6 +399,147 @@ export declare namespace TextToImageCreateParams {
|
|
|
445
399
|
uri: string;
|
|
446
400
|
}
|
|
447
401
|
}
|
|
402
|
+
interface GeminiImage3Pro {
|
|
403
|
+
model: 'gemini_image3_pro';
|
|
404
|
+
/**
|
|
405
|
+
* This should describe in detail what should appear in the output.
|
|
406
|
+
*/
|
|
407
|
+
promptText: string;
|
|
408
|
+
/**
|
|
409
|
+
* The resolution of the output image.
|
|
410
|
+
*/
|
|
411
|
+
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
412
|
+
/**
|
|
413
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
414
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
415
|
+
* once.
|
|
416
|
+
*/
|
|
417
|
+
outputCount?: 1 | 4;
|
|
418
|
+
/**
|
|
419
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
420
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
421
|
+
* character consistency, and up to nine of those images can pass
|
|
422
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
423
|
+
* output.
|
|
424
|
+
*/
|
|
425
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
426
|
+
}
|
|
427
|
+
namespace GeminiImage3Pro {
|
|
428
|
+
interface ReferenceImage {
|
|
429
|
+
/**
|
|
430
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
431
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
432
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
433
|
+
*/
|
|
434
|
+
uri: string;
|
|
435
|
+
/**
|
|
436
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
437
|
+
* object that appears in the output.
|
|
438
|
+
*/
|
|
439
|
+
subject?: 'object' | 'human';
|
|
440
|
+
/**
|
|
441
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
442
|
+
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
443
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
444
|
+
*/
|
|
445
|
+
tag?: string;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
interface GptImage2_5Flare {
|
|
449
|
+
model: 'gpt_image_2_5_flare';
|
|
450
|
+
/**
|
|
451
|
+
* A non-empty string describing the desired image.
|
|
452
|
+
*/
|
|
453
|
+
promptText: string;
|
|
454
|
+
/**
|
|
455
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
456
|
+
* to let the model choose.
|
|
457
|
+
*/
|
|
458
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
459
|
+
/**
|
|
460
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
461
|
+
*/
|
|
462
|
+
background?: 'opaque' | 'auto';
|
|
463
|
+
/**
|
|
464
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
465
|
+
* number of credits consumed by the generation.
|
|
466
|
+
*/
|
|
467
|
+
outputCount?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
470
|
+
*/
|
|
471
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
472
|
+
/**
|
|
473
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
474
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
475
|
+
* per generated image.
|
|
476
|
+
*/
|
|
477
|
+
referenceImages?: Array<GptImage2_5Flare.ReferenceImage>;
|
|
478
|
+
}
|
|
479
|
+
namespace GptImage2_5Flare {
|
|
480
|
+
interface ReferenceImage {
|
|
481
|
+
/**
|
|
482
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
483
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
484
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
485
|
+
*/
|
|
486
|
+
uri: string;
|
|
487
|
+
/**
|
|
488
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
489
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
490
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
491
|
+
*/
|
|
492
|
+
tag?: string;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
interface GptImage2_5Sunburst {
|
|
496
|
+
model: 'gpt_image_2_5_sunburst';
|
|
497
|
+
/**
|
|
498
|
+
* A non-empty string describing the desired image.
|
|
499
|
+
*/
|
|
500
|
+
promptText: string;
|
|
501
|
+
/**
|
|
502
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
503
|
+
* to let the model choose.
|
|
504
|
+
*/
|
|
505
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
506
|
+
/**
|
|
507
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
508
|
+
* `transparent` to generate a PNG with an alpha-channel background.
|
|
509
|
+
*/
|
|
510
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
511
|
+
/**
|
|
512
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
513
|
+
* number of credits consumed by the generation.
|
|
514
|
+
*/
|
|
515
|
+
outputCount?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
518
|
+
*/
|
|
519
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
520
|
+
/**
|
|
521
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
522
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
523
|
+
* per generated image.
|
|
524
|
+
*/
|
|
525
|
+
referenceImages?: Array<GptImage2_5Sunburst.ReferenceImage>;
|
|
526
|
+
}
|
|
527
|
+
namespace GptImage2_5Sunburst {
|
|
528
|
+
interface ReferenceImage {
|
|
529
|
+
/**
|
|
530
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
531
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
532
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
533
|
+
*/
|
|
534
|
+
uri: string;
|
|
535
|
+
/**
|
|
536
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
537
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
538
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
539
|
+
*/
|
|
540
|
+
tag?: string;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
448
543
|
interface Gemini2_5Flash {
|
|
449
544
|
model: 'gemini_2.5_flash';
|
|
450
545
|
/**
|
|
@@ -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,2B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{
|
|
|
67
67
|
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
68
68
|
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
69
69
|
* light, 1.0 = 100 nits, ready to composite; `hdr_exr_acescg_sequence_1_3` returns
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
70
|
+
* a scene-referred ACEScg sequence with VFX frame naming (frame.0001.exr): the
|
|
71
|
+
* source plate brought into ACES through the inverse ACES 1.3 SDR (Rec.709) Output
|
|
72
|
+
* Transform, with the highlight detail Ruby recovers added on top — read it with
|
|
73
|
+
* the stock `ACES - ACEScg` input transform; the ACES SDR view reproduces your
|
|
74
|
+
* source, and the ACES HDR views render the same scene with the recovered
|
|
75
|
+
* highlights (this is a scene, not the `hdr10` display grade, so an ACES HDR view
|
|
76
|
+
* is not expected to match `hdr10`). An EXR zip is the whole delivery — the
|
|
77
|
+
* frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
78
|
+
* upconvert, and the source audio as audio.wav when the source has any. A source
|
|
79
|
+
* with an alpha channel (ProRes 4444, WebM with alpha, RGBA codecs) keeps it where
|
|
80
|
+
* the container can carry one: the EXR profiles write it as the A channel and
|
|
81
|
+
* `hdr_prores` delivers a 4444 with an alpha plane; the alpha is passed through as
|
|
82
|
+
* received (not premultiplied). `hdr10` and `hlg` cannot carry alpha and deliver
|
|
83
|
+
* the picture without it. All five profiles bill at the same rate: 20 credits per
|
|
84
|
+
* second of output, rising to 40 credits per second when the source is larger than
|
|
85
|
+
* 4 megapixels — that includes anything larger than 1440p, up through 4K.
|
|
79
86
|
*/
|
|
80
87
|
outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence' | 'hdr_exr_acescg_sequence_1_3' | 'hdr_exr_acescg_sequence_2_0';
|
|
81
88
|
/**
|
|
82
89
|
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
83
|
-
* `hdr_prores`. Defaults to `422 HQ`.
|
|
90
|
+
* `hdr_prores`. Defaults to `422 HQ`. A source with an alpha channel is always
|
|
91
|
+
* delivered as `4444`, the only tier with an alpha plane, whatever tier is
|
|
92
|
+
* requested.
|
|
84
93
|
*/
|
|
85
94
|
proresProfile?: '422' | '4444' | '422 HQ';
|
|
86
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-hdr.d.mts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAKzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,wBAAwB,CAAC,aAAa,CAAC;CACvD;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB
|
|
1
|
+
{"version":3,"file":"video-to-hdr.d.mts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAKzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,wBAAwB,CAAC,aAAa,CAAC;CACvD;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,YAAY,CAAC,EACT,OAAO,GACP,KAAK,GACL,YAAY,GACZ,kBAAkB,GAClB,6BAA6B,GAC7B,6BAA6B,CAAC;IAElC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -67,20 +67,29 @@ export interface VideoToHdrCreateParams {
|
|
|
67
67
|
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
68
68
|
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
69
69
|
* light, 1.0 = 100 nits, ready to composite; `hdr_exr_acescg_sequence_1_3` returns
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
70
|
+
* a scene-referred ACEScg sequence with VFX frame naming (frame.0001.exr): the
|
|
71
|
+
* source plate brought into ACES through the inverse ACES 1.3 SDR (Rec.709) Output
|
|
72
|
+
* Transform, with the highlight detail Ruby recovers added on top — read it with
|
|
73
|
+
* the stock `ACES - ACEScg` input transform; the ACES SDR view reproduces your
|
|
74
|
+
* source, and the ACES HDR views render the same scene with the recovered
|
|
75
|
+
* highlights (this is a scene, not the `hdr10` display grade, so an ACES HDR view
|
|
76
|
+
* is not expected to match `hdr10`). An EXR zip is the whole delivery — the
|
|
77
|
+
* frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
78
|
+
* upconvert, and the source audio as audio.wav when the source has any. A source
|
|
79
|
+
* with an alpha channel (ProRes 4444, WebM with alpha, RGBA codecs) keeps it where
|
|
80
|
+
* the container can carry one: the EXR profiles write it as the A channel and
|
|
81
|
+
* `hdr_prores` delivers a 4444 with an alpha plane; the alpha is passed through as
|
|
82
|
+
* received (not premultiplied). `hdr10` and `hlg` cannot carry alpha and deliver
|
|
83
|
+
* the picture without it. All five profiles bill at the same rate: 20 credits per
|
|
84
|
+
* second of output, rising to 40 credits per second when the source is larger than
|
|
85
|
+
* 4 megapixels — that includes anything larger than 1440p, up through 4K.
|
|
79
86
|
*/
|
|
80
87
|
outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence' | 'hdr_exr_acescg_sequence_1_3' | 'hdr_exr_acescg_sequence_2_0';
|
|
81
88
|
/**
|
|
82
89
|
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
83
|
-
* `hdr_prores`. Defaults to `422 HQ`.
|
|
90
|
+
* `hdr_prores`. Defaults to `422 HQ`. A source with an alpha channel is always
|
|
91
|
+
* delivered as `4444`, the only tier with an alpha plane, whatever tier is
|
|
92
|
+
* requested.
|
|
84
93
|
*/
|
|
85
94
|
proresProfile?: '422' | '4444' | '422 HQ';
|
|
86
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-hdr.d.ts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAKzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,wBAAwB,CAAC,aAAa,CAAC;CACvD;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB
|
|
1
|
+
{"version":3,"file":"video-to-hdr.d.ts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAK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