@picsart/ai-sdk 6.17.0 → 6.18.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/_vendor/workflows-types/index.d.ts +1906 -1733
- package/index.d.ts +47 -18
- package/index.js +168 -69
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -183,6 +183,16 @@ type ModelInputById = {
|
|
|
183
183
|
"eleven-audio-isolation": {
|
|
184
184
|
audioUrl: string;
|
|
185
185
|
};
|
|
186
|
+
"eleven-dialogue-v4": {
|
|
187
|
+
dialogue: Array<{
|
|
188
|
+
voiceId: string;
|
|
189
|
+
text: string;
|
|
190
|
+
}>;
|
|
191
|
+
stability?: number;
|
|
192
|
+
similarity?: number;
|
|
193
|
+
language?: string;
|
|
194
|
+
seed?: number;
|
|
195
|
+
};
|
|
186
196
|
"eleven-dubbing": {
|
|
187
197
|
audioUrl: string;
|
|
188
198
|
language: string;
|
|
@@ -244,6 +254,22 @@ type ModelInputById = {
|
|
|
244
254
|
useSpeakerBoost?: boolean;
|
|
245
255
|
withTimestamps?: boolean;
|
|
246
256
|
};
|
|
257
|
+
"eleven-v4": {
|
|
258
|
+
language?: string;
|
|
259
|
+
prompt: string;
|
|
260
|
+
voiceId?: string;
|
|
261
|
+
stability?: number;
|
|
262
|
+
similarityBoost?: number;
|
|
263
|
+
withTimestamps?: boolean;
|
|
264
|
+
};
|
|
265
|
+
"eleven-v4-turbo": {
|
|
266
|
+
language?: string;
|
|
267
|
+
prompt: string;
|
|
268
|
+
voiceId?: string;
|
|
269
|
+
stability?: number;
|
|
270
|
+
similarityBoost?: number;
|
|
271
|
+
withTimestamps?: boolean;
|
|
272
|
+
};
|
|
247
273
|
"eleven-video-to-music": {
|
|
248
274
|
videoUrls: [string, ...string[]];
|
|
249
275
|
prompt?: string;
|
|
@@ -1584,7 +1610,7 @@ type ModelInputById = {
|
|
|
1584
1610
|
prompt: string;
|
|
1585
1611
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1586
1612
|
resolution?: "480p" | "720p";
|
|
1587
|
-
duration?: 4 | 5 | 8 | 10 | 12;
|
|
1613
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1588
1614
|
generateAudio?: boolean;
|
|
1589
1615
|
startFrame?: string;
|
|
1590
1616
|
endFrame?: string;
|
|
@@ -1593,7 +1619,7 @@ type ModelInputById = {
|
|
|
1593
1619
|
prompt: string;
|
|
1594
1620
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1595
1621
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1596
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1622
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1597
1623
|
generateAudio?: boolean;
|
|
1598
1624
|
returnLastFrame?: boolean;
|
|
1599
1625
|
imageUrls?: string[];
|
|
@@ -1606,7 +1632,7 @@ type ModelInputById = {
|
|
|
1606
1632
|
prompt: string;
|
|
1607
1633
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1608
1634
|
resolution?: "480p" | "720p";
|
|
1609
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1635
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1610
1636
|
generateAudio?: boolean;
|
|
1611
1637
|
returnLastFrame?: boolean;
|
|
1612
1638
|
imageUrls?: string[];
|
|
@@ -1619,7 +1645,7 @@ type ModelInputById = {
|
|
|
1619
1645
|
prompt: string;
|
|
1620
1646
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1621
1647
|
resolution?: "480p" | "720p";
|
|
1622
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1648
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1623
1649
|
generateAudio?: boolean;
|
|
1624
1650
|
returnLastFrame?: boolean;
|
|
1625
1651
|
videoUrl: string;
|
|
@@ -1629,7 +1655,7 @@ type ModelInputById = {
|
|
|
1629
1655
|
prompt: string;
|
|
1630
1656
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1631
1657
|
resolution?: "480p" | "720p";
|
|
1632
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1658
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1633
1659
|
generateAudio?: boolean;
|
|
1634
1660
|
videoUrls: [string, ...string[]];
|
|
1635
1661
|
};
|
|
@@ -1637,7 +1663,7 @@ type ModelInputById = {
|
|
|
1637
1663
|
prompt: string;
|
|
1638
1664
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1639
1665
|
resolution?: "480p" | "720p";
|
|
1640
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1666
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1641
1667
|
generateAudio?: boolean;
|
|
1642
1668
|
returnLastFrame?: boolean;
|
|
1643
1669
|
imageUrls?: string[];
|
|
@@ -1650,7 +1676,7 @@ type ModelInputById = {
|
|
|
1650
1676
|
prompt: string;
|
|
1651
1677
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1652
1678
|
resolution?: "480p" | "720p";
|
|
1653
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1679
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1654
1680
|
generateAudio?: boolean;
|
|
1655
1681
|
returnLastFrame?: boolean;
|
|
1656
1682
|
videoUrl: string;
|
|
@@ -1660,7 +1686,7 @@ type ModelInputById = {
|
|
|
1660
1686
|
prompt: string;
|
|
1661
1687
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1662
1688
|
resolution?: "480p" | "720p";
|
|
1663
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1689
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1664
1690
|
generateAudio?: boolean;
|
|
1665
1691
|
videoUrls: [string, ...string[]];
|
|
1666
1692
|
};
|
|
@@ -1668,7 +1694,7 @@ type ModelInputById = {
|
|
|
1668
1694
|
prompt: string;
|
|
1669
1695
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1670
1696
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1671
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1697
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1672
1698
|
generateAudio?: boolean;
|
|
1673
1699
|
returnLastFrame?: boolean;
|
|
1674
1700
|
videoUrl: string;
|
|
@@ -1678,7 +1704,7 @@ type ModelInputById = {
|
|
|
1678
1704
|
prompt: string;
|
|
1679
1705
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1680
1706
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1681
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1707
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1682
1708
|
generateAudio?: boolean;
|
|
1683
1709
|
videoUrls: [string, ...string[]];
|
|
1684
1710
|
};
|
|
@@ -1686,7 +1712,7 @@ type ModelInputById = {
|
|
|
1686
1712
|
prompt: string;
|
|
1687
1713
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1688
1714
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1689
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1715
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1690
1716
|
generateAudio?: boolean;
|
|
1691
1717
|
returnLastFrame?: boolean;
|
|
1692
1718
|
imageUrls?: string[];
|
|
@@ -1699,7 +1725,7 @@ type ModelInputById = {
|
|
|
1699
1725
|
prompt: string;
|
|
1700
1726
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1701
1727
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1702
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1728
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1703
1729
|
generateAudio?: boolean;
|
|
1704
1730
|
returnLastFrame?: boolean;
|
|
1705
1731
|
videoUrl: string;
|
|
@@ -1709,7 +1735,7 @@ type ModelInputById = {
|
|
|
1709
1735
|
prompt: string;
|
|
1710
1736
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1711
1737
|
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1712
|
-
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1738
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1713
1739
|
generateAudio?: boolean;
|
|
1714
1740
|
videoUrls: [string, ...string[]];
|
|
1715
1741
|
};
|
|
@@ -1717,7 +1743,7 @@ type ModelInputById = {
|
|
|
1717
1743
|
prompt?: string;
|
|
1718
1744
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1719
1745
|
resolution?: "480p" | "720p" | "1080p";
|
|
1720
|
-
duration?:
|
|
1746
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
|
|
1721
1747
|
generateAudio?: boolean;
|
|
1722
1748
|
returnLastFrame?: boolean;
|
|
1723
1749
|
outputFormat?: "mp4" | "mov";
|
|
@@ -1750,7 +1776,7 @@ type ModelInputById = {
|
|
|
1750
1776
|
prompt: string;
|
|
1751
1777
|
aspectRatio?: "adaptive";
|
|
1752
1778
|
resolution?: "480p" | "720p" | "1080p";
|
|
1753
|
-
duration?:
|
|
1779
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
|
|
1754
1780
|
generateAudio?: boolean;
|
|
1755
1781
|
outputFormat?: "mp4" | "mov";
|
|
1756
1782
|
colorDepth?: "10bit" | "8bit";
|
|
@@ -1761,7 +1787,7 @@ type ModelInputById = {
|
|
|
1761
1787
|
prompt?: string;
|
|
1762
1788
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1763
1789
|
resolution?: "480p" | "720p" | "1080p";
|
|
1764
|
-
duration?:
|
|
1790
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
|
|
1765
1791
|
generateAudio?: boolean;
|
|
1766
1792
|
returnLastFrame?: boolean;
|
|
1767
1793
|
outputFormat?: "mp4" | "mov";
|
|
@@ -1794,7 +1820,7 @@ type ModelInputById = {
|
|
|
1794
1820
|
prompt: string;
|
|
1795
1821
|
aspectRatio?: "adaptive";
|
|
1796
1822
|
resolution?: "480p" | "720p" | "1080p";
|
|
1797
|
-
duration?:
|
|
1823
|
+
duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30;
|
|
1798
1824
|
generateAudio?: boolean;
|
|
1799
1825
|
outputFormat?: "mp4" | "mov";
|
|
1800
1826
|
colorDepth?: "10bit" | "8bit";
|
|
@@ -1805,7 +1831,7 @@ type ModelInputById = {
|
|
|
1805
1831
|
prompt: string;
|
|
1806
1832
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1807
1833
|
resolution?: "480p" | "720p" | "1080p";
|
|
1808
|
-
duration?: 5 | 10;
|
|
1834
|
+
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1809
1835
|
startFrame: string;
|
|
1810
1836
|
};
|
|
1811
1837
|
"seedream-4.0": {
|
|
@@ -3225,6 +3251,7 @@ declare const Models: {
|
|
|
3225
3251
|
readonly CreatifyAurora: "creatify-aurora";
|
|
3226
3252
|
readonly CreatifyBoreal: "creatify-boreal";
|
|
3227
3253
|
readonly ElevenAudioIsolation: "eleven-audio-isolation";
|
|
3254
|
+
readonly ElevenDialogueV4: "eleven-dialogue-v4";
|
|
3228
3255
|
readonly ElevenDubbing: "eleven-dubbing";
|
|
3229
3256
|
readonly ElevenMultilingualStsV2: "eleven-multilingual-sts-v2";
|
|
3230
3257
|
readonly ElevenMultilingualV2: "eleven-multilingual-v2";
|
|
@@ -3232,6 +3259,8 @@ declare const Models: {
|
|
|
3232
3259
|
readonly ElevenStsV2: "eleven-sts-v2";
|
|
3233
3260
|
readonly ElevenTextToDialogue: "eleven-text-to-dialogue";
|
|
3234
3261
|
readonly ElevenV3: "eleven-v3";
|
|
3262
|
+
readonly ElevenV4: "eleven-v4";
|
|
3263
|
+
readonly ElevenV4Turbo: "eleven-v4-turbo";
|
|
3235
3264
|
readonly ElevenVideoToMusic: "eleven-video-to-music";
|
|
3236
3265
|
readonly ElevenVoiceCreate: "eleven-voice-create";
|
|
3237
3266
|
readonly ElevenVoiceDesignV2: "eleven-voice-design-v2";
|