@runwayml/sdk 4.24.0 → 4.25.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 +7 -0
- package/package.json +1 -1
- package/resources/generate/audio.d.mts +12 -10
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +12 -10
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js +3 -2
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs +3 -2
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/image-to-video.d.mts +102 -4
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +102 -4
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- 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 +124 -7
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +124 -7
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +18 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +18 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/tasks.d.mts +34 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +34 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +236 -13
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +236 -13
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +91 -4
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +91 -4
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +108 -4
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +108 -4
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/generate/audio.ts +12 -10
- package/src/resources/image-to-video.ts +133 -4
- package/src/resources/organization/organization.ts +14 -0
- package/src/resources/organization/webapp/audit-logs.ts +238 -5
- package/src/resources/organization/webapp/webapp.ts +22 -0
- package/src/resources/tasks.ts +41 -0
- package/src/resources/text-to-image.ts +342 -12
- package/src/resources/text-to-video.ts +120 -4
- package/src/resources/video-to-video.ts +139 -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
|
@@ -76,6 +76,10 @@ export type TextToImageCreateParams =
|
|
|
76
76
|
| TextToImageCreateParams.NanoBanana2_1
|
|
77
77
|
| TextToImageCreateParams.RecraftV4_1Flash
|
|
78
78
|
| TextToImageCreateParams.RecraftV4_1Vector
|
|
79
|
+
| TextToImageCreateParams.IdeogramVector
|
|
80
|
+
| TextToImageCreateParams.GptImage2_6Sunburst
|
|
81
|
+
| TextToImageCreateParams.GptImage2_6Flare
|
|
82
|
+
| TextToImageCreateParams.Seedream5ProLayers
|
|
79
83
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
80
84
|
|
|
81
85
|
export declare namespace TextToImageCreateParams {
|
|
@@ -314,9 +318,11 @@ export declare namespace TextToImageCreateParams {
|
|
|
314
318
|
uri: string;
|
|
315
319
|
|
|
316
320
|
/**
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
321
|
+
* An optional label for the reference image. Tags are not sent to the model and
|
|
322
|
+
* cannot be used to reference images in prompt text. Instead, refer to images by
|
|
323
|
+
* their order in this array (for example, "the first image" or "the second
|
|
324
|
+
* image"). Must be 3-16 characters, start with a letter, and use only letters,
|
|
325
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
320
326
|
*/
|
|
321
327
|
tag?: string;
|
|
322
328
|
}
|
|
@@ -914,9 +920,11 @@ export declare namespace TextToImageCreateParams {
|
|
|
914
920
|
uri: string;
|
|
915
921
|
|
|
916
922
|
/**
|
|
917
|
-
*
|
|
918
|
-
*
|
|
919
|
-
*
|
|
923
|
+
* An optional label for the reference image. Tags are not sent to the model and
|
|
924
|
+
* cannot be used to reference images in prompt text. Instead, refer to images by
|
|
925
|
+
* their order in this array (for example, "the first image" or "the second
|
|
926
|
+
* image"). Must be 3-16 characters, start with a letter, and use only letters,
|
|
927
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
920
928
|
*/
|
|
921
929
|
tag?: string;
|
|
922
930
|
}
|
|
@@ -1002,9 +1010,11 @@ export declare namespace TextToImageCreateParams {
|
|
|
1002
1010
|
uri: string;
|
|
1003
1011
|
|
|
1004
1012
|
/**
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1013
|
+
* An optional label for the reference image. Tags are not sent to the model and
|
|
1014
|
+
* cannot be used to reference images in prompt text. Instead, refer to images by
|
|
1015
|
+
* their order in this array (for example, "the first image" or "the second
|
|
1016
|
+
* image"). Must be 3-16 characters, start with a letter, and use only letters,
|
|
1017
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
1008
1018
|
*/
|
|
1009
1019
|
tag?: string;
|
|
1010
1020
|
}
|
|
@@ -1185,6 +1195,15 @@ export declare namespace TextToImageCreateParams {
|
|
|
1185
1195
|
*/
|
|
1186
1196
|
promptText: string;
|
|
1187
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* Precise-edit region: none, auto (requires maskUri), or top,left,bottom,right in
|
|
1200
|
+
* original-image pixels, with exclusive maximum edges. A manual region preserves
|
|
1201
|
+
* full resolution and all pixels outside it. All masked edit pixels must lie
|
|
1202
|
+
* inside a manual region. Auto-fit may fall back to downscaling if the mask is too
|
|
1203
|
+
* large. Requires edit-window access.
|
|
1204
|
+
*/
|
|
1205
|
+
contextWindow?: string;
|
|
1206
|
+
|
|
1188
1207
|
/**
|
|
1189
1208
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1190
1209
|
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
@@ -1199,8 +1218,10 @@ export declare namespace TextToImageCreateParams {
|
|
|
1199
1218
|
outputCount?: number;
|
|
1200
1219
|
|
|
1201
1220
|
/**
|
|
1202
|
-
* When true, edit the first reference image
|
|
1203
|
-
*
|
|
1221
|
+
* When true, edit the first reference image. Requires at least one reference
|
|
1222
|
+
* image. Whole-image edits above 4,194,304 pixels are scaled down. Set
|
|
1223
|
+
* contextWindow to edit a region at full source resolution; auto-fit may still
|
|
1224
|
+
* scale down if the mask cannot fit.
|
|
1204
1225
|
*/
|
|
1205
1226
|
preciseEdit?: boolean;
|
|
1206
1227
|
|
|
@@ -1218,7 +1239,7 @@ export declare namespace TextToImageCreateParams {
|
|
|
1218
1239
|
* use `auto` to let the model choose. With reference images, widescreen 1K sizes
|
|
1219
1240
|
* are `1024:576`, `576:1024`, `1408:704`, `704:1408` instead of `1280:720`,
|
|
1220
1241
|
* `720:1280`, `1440:720`, `720:1440`. Not available with `maskUri` or
|
|
1221
|
-
* `preciseEdit`,
|
|
1242
|
+
* `preciseEdit`, where the source and edit window determine output dimensions.
|
|
1222
1243
|
*/
|
|
1223
1244
|
ratio?:
|
|
1224
1245
|
| '1024:1024'
|
|
@@ -1497,6 +1518,315 @@ export declare namespace TextToImageCreateParams {
|
|
|
1497
1518
|
ratio?: '1024:1024' | '1216:896' | '896:1216' | '1344:768' | '768:1344';
|
|
1498
1519
|
}
|
|
1499
1520
|
|
|
1521
|
+
export interface IdeogramVector {
|
|
1522
|
+
model: 'ideogram_vector';
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Describe the vector illustration you want to generate.
|
|
1526
|
+
*/
|
|
1527
|
+
promptText: string;
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Rendering quality. Higher quality costs more credits.
|
|
1531
|
+
*/
|
|
1532
|
+
quality?: 'low' | 'medium' | 'high';
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* Let the model choose the framing of the SVG.
|
|
1536
|
+
*/
|
|
1537
|
+
ratio?: 'auto';
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Images to guide the illustration. To trace a source image, use image_to_vector
|
|
1541
|
+
* instead.
|
|
1542
|
+
*/
|
|
1543
|
+
referenceImages?: Array<IdeogramVector.ReferenceImage>;
|
|
1544
|
+
|
|
1545
|
+
seed?: number;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export namespace IdeogramVector {
|
|
1549
|
+
export interface ReferenceImage {
|
|
1550
|
+
/**
|
|
1551
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1552
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1553
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1554
|
+
*/
|
|
1555
|
+
uri: string;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
export interface GptImage2_6Sunburst {
|
|
1560
|
+
model: 'gpt_image_2_6_sunburst';
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* A non-empty string describing the desired image.
|
|
1564
|
+
*/
|
|
1565
|
+
promptText: string;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
1569
|
+
* to let the model choose.
|
|
1570
|
+
*/
|
|
1571
|
+
ratio:
|
|
1572
|
+
| '2048:880'
|
|
1573
|
+
| '1920:1088'
|
|
1574
|
+
| '1920:1280'
|
|
1575
|
+
| '1920:1440'
|
|
1576
|
+
| '1920:1536'
|
|
1577
|
+
| '1920:1920'
|
|
1578
|
+
| '1536:1920'
|
|
1579
|
+
| '1440:1920'
|
|
1580
|
+
| '1280:1920'
|
|
1581
|
+
| '1088:1920'
|
|
1582
|
+
| '2912:1248'
|
|
1583
|
+
| '2560:1440'
|
|
1584
|
+
| '2560:1712'
|
|
1585
|
+
| '2560:1920'
|
|
1586
|
+
| '2560:2048'
|
|
1587
|
+
| '2560:2560'
|
|
1588
|
+
| '2048:2560'
|
|
1589
|
+
| '1920:2560'
|
|
1590
|
+
| '1712:2560'
|
|
1591
|
+
| '1440:2560'
|
|
1592
|
+
| '3840:1648'
|
|
1593
|
+
| '3840:2160'
|
|
1594
|
+
| '3504:2336'
|
|
1595
|
+
| '3264:2448'
|
|
1596
|
+
| '3200:2560'
|
|
1597
|
+
| '2880:2880'
|
|
1598
|
+
| '2560:3200'
|
|
1599
|
+
| '2448:3264'
|
|
1600
|
+
| '2336:3504'
|
|
1601
|
+
| '2160:3840'
|
|
1602
|
+
| 'auto';
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
1606
|
+
* `transparent` for an alpha-channel background, which `jpeg` output does not
|
|
1607
|
+
* support.
|
|
1608
|
+
*/
|
|
1609
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Number of animation frames. Only supported for GIF output.
|
|
1613
|
+
*/
|
|
1614
|
+
frameCount?: number;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Duration of each animation frame in milliseconds. Only supported for GIF output.
|
|
1618
|
+
*/
|
|
1619
|
+
frameDurationMs?: number;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
1623
|
+
* number of credits consumed by the generation.
|
|
1624
|
+
*/
|
|
1625
|
+
outputCount?: number;
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Output format. Defaults to PNG. JPEG and WebP produce smaller files; JPEG cannot
|
|
1629
|
+
* have a transparent background. GIF and SVG cannot use reference images; GIF
|
|
1630
|
+
* requires ratio auto.
|
|
1631
|
+
*/
|
|
1632
|
+
outputFormat?: 'png' | 'jpeg' | 'webp' | 'gif' | 'svg';
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
1636
|
+
*/
|
|
1637
|
+
quality?: 'low' | 'medium' | 'high';
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* How much reasoning to use before rendering. Defaults to `high`.
|
|
1641
|
+
*/
|
|
1642
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
1646
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
1647
|
+
* per generated image.
|
|
1648
|
+
*/
|
|
1649
|
+
referenceImages?: Array<GptImage2_6Sunburst.ReferenceImage>;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
export namespace GptImage2_6Sunburst {
|
|
1653
|
+
export interface ReferenceImage {
|
|
1654
|
+
/**
|
|
1655
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1656
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1657
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1658
|
+
*/
|
|
1659
|
+
uri: string;
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* An optional label for the reference image. Tags are not sent to the model and
|
|
1663
|
+
* cannot be used to reference images in prompt text. Instead, refer to images by
|
|
1664
|
+
* their order in this array (for example, "the first image" or "the second
|
|
1665
|
+
* image"). Must be 3-16 characters, start with a letter, and use only letters,
|
|
1666
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
1667
|
+
*/
|
|
1668
|
+
tag?: string;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export interface GptImage2_6Flare {
|
|
1673
|
+
model: 'gpt_image_2_6_flare';
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* A non-empty string describing the desired image.
|
|
1677
|
+
*/
|
|
1678
|
+
promptText: string;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
1682
|
+
* to let the model choose.
|
|
1683
|
+
*/
|
|
1684
|
+
ratio:
|
|
1685
|
+
| '2048:880'
|
|
1686
|
+
| '1920:1088'
|
|
1687
|
+
| '1920:1280'
|
|
1688
|
+
| '1920:1440'
|
|
1689
|
+
| '1920:1536'
|
|
1690
|
+
| '1920:1920'
|
|
1691
|
+
| '1536:1920'
|
|
1692
|
+
| '1440:1920'
|
|
1693
|
+
| '1280:1920'
|
|
1694
|
+
| '1088:1920'
|
|
1695
|
+
| '2912:1248'
|
|
1696
|
+
| '2560:1440'
|
|
1697
|
+
| '2560:1712'
|
|
1698
|
+
| '2560:1920'
|
|
1699
|
+
| '2560:2048'
|
|
1700
|
+
| '2560:2560'
|
|
1701
|
+
| '2048:2560'
|
|
1702
|
+
| '1920:2560'
|
|
1703
|
+
| '1712:2560'
|
|
1704
|
+
| '1440:2560'
|
|
1705
|
+
| '3840:1648'
|
|
1706
|
+
| '3840:2160'
|
|
1707
|
+
| '3504:2336'
|
|
1708
|
+
| '3264:2448'
|
|
1709
|
+
| '3200:2560'
|
|
1710
|
+
| '2880:2880'
|
|
1711
|
+
| '2560:3200'
|
|
1712
|
+
| '2448:3264'
|
|
1713
|
+
| '2336:3504'
|
|
1714
|
+
| '2160:3840'
|
|
1715
|
+
| 'auto';
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
1719
|
+
* `transparent` for an alpha-channel background, which `jpeg` output does not
|
|
1720
|
+
* support.
|
|
1721
|
+
*/
|
|
1722
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* Number of animation frames. Only supported for GIF output.
|
|
1726
|
+
*/
|
|
1727
|
+
frameCount?: number;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Duration of each animation frame in milliseconds. Only supported for GIF output.
|
|
1731
|
+
*/
|
|
1732
|
+
frameDurationMs?: number;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
1736
|
+
* number of credits consumed by the generation.
|
|
1737
|
+
*/
|
|
1738
|
+
outputCount?: number;
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Output format. Defaults to PNG. JPEG and WebP produce smaller files; JPEG cannot
|
|
1742
|
+
* have a transparent background. GIF and SVG cannot use reference images; GIF
|
|
1743
|
+
* requires ratio auto.
|
|
1744
|
+
*/
|
|
1745
|
+
outputFormat?: 'png' | 'jpeg' | 'webp' | 'gif' | 'svg';
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
1749
|
+
*/
|
|
1750
|
+
quality?: 'low' | 'medium' | 'high';
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* How much reasoning to use before rendering. Defaults to `high`.
|
|
1754
|
+
*/
|
|
1755
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
1759
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
1760
|
+
* per generated image.
|
|
1761
|
+
*/
|
|
1762
|
+
referenceImages?: Array<GptImage2_6Flare.ReferenceImage>;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
export namespace GptImage2_6Flare {
|
|
1766
|
+
export interface ReferenceImage {
|
|
1767
|
+
/**
|
|
1768
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1769
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1770
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1771
|
+
*/
|
|
1772
|
+
uri: string;
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* An optional label for the reference image. Tags are not sent to the model and
|
|
1776
|
+
* cannot be used to reference images in prompt text. Instead, refer to images by
|
|
1777
|
+
* their order in this array (for example, "the first image" or "the second
|
|
1778
|
+
* image"). Must be 3-16 characters, start with a letter, and use only letters,
|
|
1779
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
1780
|
+
*/
|
|
1781
|
+
tag?: string;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
export interface Seedream5ProLayers {
|
|
1786
|
+
model: 'seedream5_pro_layers';
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* The image to split into editable layers. Layer ordering and positioning are
|
|
1790
|
+
* returned in the completed task’s layers field.
|
|
1791
|
+
*/
|
|
1792
|
+
referenceImages: Array<Seedream5ProLayers.ReferenceImage>;
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Prompt optimization: standard prioritizes quality; fast reduces generation time.
|
|
1796
|
+
* Defaults to standard.
|
|
1797
|
+
*/
|
|
1798
|
+
optimizePromptMode?: 'standard' | 'fast';
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Base image format; defaults to png. Separated layers always use PNG with
|
|
1802
|
+
* transparency.
|
|
1803
|
+
*/
|
|
1804
|
+
outputFormat?: 'png' | 'jpeg';
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* Optional instructions describing which elements to separate. Omit to split the
|
|
1808
|
+
* image automatically.
|
|
1809
|
+
*/
|
|
1810
|
+
promptText?: string;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Output resolution tier. Defaults to auto, which adapts to the input image. The
|
|
1814
|
+
* base image and layers preserve their respective aspect ratios.
|
|
1815
|
+
*/
|
|
1816
|
+
resolution?: 'auto' | '1k' | '1.5k' | '2k';
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
export namespace Seedream5ProLayers {
|
|
1820
|
+
export interface ReferenceImage {
|
|
1821
|
+
/**
|
|
1822
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1823
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1824
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1825
|
+
*/
|
|
1826
|
+
uri: string;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1500
1830
|
export interface Gemini2_5Flash {
|
|
1501
1831
|
model: 'gemini_2.5_flash';
|
|
1502
1832
|
|
|
@@ -79,7 +79,9 @@ export type TextToVideoCreateParams =
|
|
|
79
79
|
| TextToVideoCreateParams.H3Max
|
|
80
80
|
| TextToVideoCreateParams.Seedance2_5
|
|
81
81
|
| TextToVideoCreateParams.GrokImagine1_5Lite
|
|
82
|
-
| TextToVideoCreateParams.Kling4
|
|
82
|
+
| TextToVideoCreateParams.Kling4
|
|
83
|
+
| TextToVideoCreateParams.GeminiOmniFlash1_2
|
|
84
|
+
| TextToVideoCreateParams.Kling4Flash;
|
|
83
85
|
|
|
84
86
|
export declare namespace TextToVideoCreateParams {
|
|
85
87
|
export interface Gen4_5 {
|
|
@@ -797,7 +799,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
797
799
|
model: 'seedance2';
|
|
798
800
|
|
|
799
801
|
/**
|
|
800
|
-
* A non-empty text prompt up to
|
|
802
|
+
* A non-empty text prompt up to 10000 characters describing what should appear in
|
|
801
803
|
* the output.
|
|
802
804
|
*/
|
|
803
805
|
promptText: string;
|
|
@@ -807,6 +809,12 @@ export declare namespace TextToVideoCreateParams {
|
|
|
807
809
|
*/
|
|
808
810
|
audio?: boolean;
|
|
809
811
|
|
|
812
|
+
/**
|
|
813
|
+
* Bitrate of the output video. `high` keeps more detail with fewer compression
|
|
814
|
+
* artifacts, at a larger file size. Defaults to `standard`.
|
|
815
|
+
*/
|
|
816
|
+
bitrate?: 'standard' | 'high';
|
|
817
|
+
|
|
810
818
|
/**
|
|
811
819
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
812
820
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -915,7 +923,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
915
923
|
model: 'seedance2_fast';
|
|
916
924
|
|
|
917
925
|
/**
|
|
918
|
-
* A non-empty text prompt up to
|
|
926
|
+
* A non-empty text prompt up to 10000 characters describing what should appear in
|
|
919
927
|
* the output.
|
|
920
928
|
*/
|
|
921
929
|
promptText: string;
|
|
@@ -925,6 +933,12 @@ export declare namespace TextToVideoCreateParams {
|
|
|
925
933
|
*/
|
|
926
934
|
audio?: boolean;
|
|
927
935
|
|
|
936
|
+
/**
|
|
937
|
+
* Bitrate of the output video. `high` keeps more detail with fewer compression
|
|
938
|
+
* artifacts, at a larger file size. Defaults to `standard`.
|
|
939
|
+
*/
|
|
940
|
+
bitrate?: 'standard' | 'high';
|
|
941
|
+
|
|
928
942
|
/**
|
|
929
943
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
930
944
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -1022,7 +1036,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1022
1036
|
model: 'seedance2_mini';
|
|
1023
1037
|
|
|
1024
1038
|
/**
|
|
1025
|
-
* A non-empty text prompt up to
|
|
1039
|
+
* A non-empty text prompt up to 10000 characters describing what should appear in
|
|
1026
1040
|
* the output.
|
|
1027
1041
|
*/
|
|
1028
1042
|
promptText: string;
|
|
@@ -1032,6 +1046,12 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1032
1046
|
*/
|
|
1033
1047
|
audio?: boolean;
|
|
1034
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* Bitrate of the output video. `high` keeps more detail with fewer compression
|
|
1051
|
+
* artifacts, at a larger file size. Defaults to `standard`.
|
|
1052
|
+
*/
|
|
1053
|
+
bitrate?: 'standard' | 'high';
|
|
1054
|
+
|
|
1035
1055
|
/**
|
|
1036
1056
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
1037
1057
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -1727,6 +1747,102 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1727
1747
|
uri: string;
|
|
1728
1748
|
}
|
|
1729
1749
|
}
|
|
1750
|
+
|
|
1751
|
+
export interface GeminiOmniFlash1_2 {
|
|
1752
|
+
model: 'gemini_omni_flash_1.2';
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* A non-empty text prompt describing the video to generate.
|
|
1756
|
+
*/
|
|
1757
|
+
promptText: string;
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* The duration of the output video in seconds. Use "auto" to let the model choose
|
|
1761
|
+
* a duration. Numeric durations must be between 3 and 15 seconds.
|
|
1762
|
+
*/
|
|
1763
|
+
duration?: 'auto' | number;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* The resolution and aspect ratio of the output video.
|
|
1767
|
+
*/
|
|
1768
|
+
ratio?:
|
|
1769
|
+
| '640:360'
|
|
1770
|
+
| '360:640'
|
|
1771
|
+
| '1280:720'
|
|
1772
|
+
| '720:1280'
|
|
1773
|
+
| '1920:1080'
|
|
1774
|
+
| '1080:1920'
|
|
1775
|
+
| '3840:2160'
|
|
1776
|
+
| '2160:3840';
|
|
1777
|
+
|
|
1778
|
+
references?: Array<GeminiOmniFlash1_2.Reference>;
|
|
1779
|
+
|
|
1780
|
+
referenceVideos?: Array<GeminiOmniFlash1_2.ReferenceVideo>;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
export namespace GeminiOmniFlash1_2 {
|
|
1784
|
+
export interface Reference {
|
|
1785
|
+
/**
|
|
1786
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1787
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1788
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1789
|
+
*/
|
|
1790
|
+
uri: string;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
export interface ReferenceVideo {
|
|
1794
|
+
/**
|
|
1795
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1796
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1797
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1798
|
+
*/
|
|
1799
|
+
uri: string;
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
export interface Kling4Flash {
|
|
1804
|
+
model: 'kling_4_flash';
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* A text prompt describing what should happen in the video.
|
|
1808
|
+
*/
|
|
1809
|
+
promptText: string;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* The duration of the output video in seconds.
|
|
1813
|
+
*/
|
|
1814
|
+
duration?: number;
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* The output size, or auto_720p for adaptive framing. Legacy values 940:940 and
|
|
1818
|
+
* 1460:624 are accepted as aliases for 960:960 and 1464:628, respectively.
|
|
1819
|
+
*/
|
|
1820
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1464:628' | 'auto_720p' | '940:940' | '1460:624';
|
|
1821
|
+
|
|
1822
|
+
references?: Array<Kling4Flash.Reference>;
|
|
1823
|
+
|
|
1824
|
+
referenceVideos?: Array<Kling4Flash.ReferenceVideo>;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
export namespace Kling4Flash {
|
|
1828
|
+
export interface Reference {
|
|
1829
|
+
/**
|
|
1830
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1831
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1832
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1833
|
+
*/
|
|
1834
|
+
uri: string;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
export interface ReferenceVideo {
|
|
1838
|
+
/**
|
|
1839
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1840
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1841
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1842
|
+
*/
|
|
1843
|
+
uri: string;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1730
1846
|
}
|
|
1731
1847
|
|
|
1732
1848
|
export declare namespace TextToVideo {
|