@picsart/ai-sdk 5.19.1 → 5.20.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/index.d.ts +8 -0
- package/index.js +32 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -227,6 +227,13 @@ type ModelInputById = {
|
|
|
227
227
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
228
228
|
imageUrls?: string[];
|
|
229
229
|
};
|
|
230
|
+
"flux-video-upscale": {
|
|
231
|
+
videoUrl: string;
|
|
232
|
+
upscaleFactor?: number;
|
|
233
|
+
creativity?: 0 | 1;
|
|
234
|
+
prompt?: string;
|
|
235
|
+
safetyTolerance?: number;
|
|
236
|
+
};
|
|
230
237
|
"gemini-2.5-flash-image": {
|
|
231
238
|
prompt: string;
|
|
232
239
|
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9";
|
|
@@ -2493,6 +2500,7 @@ declare const Models: {
|
|
|
2493
2500
|
readonly Flux3Video: "flux-3-video";
|
|
2494
2501
|
readonly FluxKontextMax: "flux-kontext-max";
|
|
2495
2502
|
readonly FluxKontextPro: "flux-kontext-pro";
|
|
2503
|
+
readonly FluxVideoUpscale: "flux-video-upscale";
|
|
2496
2504
|
readonly Gemini25FlashImage: "gemini-2.5-flash-image";
|
|
2497
2505
|
readonly Gemini25FlashTts: "gemini-2.5-flash-tts";
|
|
2498
2506
|
readonly Gemini25ProTts: "gemini-2.5-pro-tts";
|
package/index.js
CHANGED
|
@@ -5506,6 +5506,36 @@ var { MODELS: MODELS21 } = defineModels("flux", [
|
|
|
5506
5506
|
// draft: fast low-step preview.
|
|
5507
5507
|
...p.boolean("draft", false, "Draft")
|
|
5508
5508
|
}
|
|
5509
|
+
},
|
|
5510
|
+
{
|
|
5511
|
+
// Pure pass-through: the worker Command takes the SDK's own field names
|
|
5512
|
+
// (videoUrl, upscaleFactor, creativity, prompt, safetyTolerance) — no
|
|
5513
|
+
// payload builder needed. webhookUrl is polling plumbing, not surfaced
|
|
5514
|
+
// (same as flux-3-video).
|
|
5515
|
+
id: "flux-video-upscale",
|
|
5516
|
+
name: "Flux Video Upscale",
|
|
5517
|
+
workflow: "flux/v1/video-upscale",
|
|
5518
|
+
mode: "video",
|
|
5519
|
+
inputType: "v2v",
|
|
5520
|
+
addedAt: "2026-08-28",
|
|
5521
|
+
estimatedTime: 180,
|
|
5522
|
+
description: "Upscale videos toward 4K (1.5x\u20133x) in precise (source-faithful) or creative (detail-enhancing) mode. Source clips up to 20 seconds and 2K.",
|
|
5523
|
+
features: [
|
|
5524
|
+
feat("Upscale", "quality"),
|
|
5525
|
+
feat("Video Required", "input"),
|
|
5526
|
+
feat("Up to 4K", "resolution")
|
|
5527
|
+
],
|
|
5528
|
+
paramConfig: {
|
|
5529
|
+
// Vendor source caps: 20s, 50 MB, 2560x1440 (2K).
|
|
5530
|
+
...params.videoInput("Source Video", "asset", true, 20, 1440, 50 * 1024 * 1024),
|
|
5531
|
+
...p.range("upscaleFactor", 1.5, 3, 2, { step: 0.5, label: "Upscale Factor" }),
|
|
5532
|
+
// Vendor switch: 0 preserves the source precisely; 1 (default) allows
|
|
5533
|
+
// creative detail enhancement and is the more expensive pricing tier.
|
|
5534
|
+
...p.enum("creativity", [{ id: 0, label: "Precise" }, { id: 1, label: "Creative" }], 1, { label: "Creativity" }),
|
|
5535
|
+
...params.prompt({ required: false }),
|
|
5536
|
+
// Moderation level: 0 (strict) … 4 (permissive).
|
|
5537
|
+
...p.range("safetyTolerance", 0, 4, 2, { label: "Safety Tolerance" })
|
|
5538
|
+
}
|
|
5509
5539
|
}
|
|
5510
5540
|
]);
|
|
5511
5541
|
|
|
@@ -10510,6 +10540,7 @@ var Flux2Pro = "flux-2-pro";
|
|
|
10510
10540
|
var Flux3Video = "flux-3-video";
|
|
10511
10541
|
var FluxKontextMax = "flux-kontext-max";
|
|
10512
10542
|
var FluxKontextPro = "flux-kontext-pro";
|
|
10543
|
+
var FluxVideoUpscale = "flux-video-upscale";
|
|
10513
10544
|
var Gemini25FlashImage = "gemini-2.5-flash-image";
|
|
10514
10545
|
var Gemini25FlashTts = "gemini-2.5-flash-tts";
|
|
10515
10546
|
var Gemini25ProTts = "gemini-2.5-pro-tts";
|
|
@@ -10718,6 +10749,7 @@ var Models = {
|
|
|
10718
10749
|
Flux3Video,
|
|
10719
10750
|
FluxKontextMax,
|
|
10720
10751
|
FluxKontextPro,
|
|
10752
|
+
FluxVideoUpscale,
|
|
10721
10753
|
Gemini25FlashImage,
|
|
10722
10754
|
Gemini25FlashTts,
|
|
10723
10755
|
Gemini25ProTts,
|