@picsart/ai-sdk 5.32.0 → 5.33.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.
Files changed (3) hide show
  1. package/index.d.ts +6 -0
  2. package/index.js +28 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -241,6 +241,11 @@ type ModelInputById = {
241
241
  count?: 1 | 2 | 4 | 6 | 8 | 10;
242
242
  imageUrls?: string[];
243
243
  };
244
+ "flux-video-edit": {
245
+ videoUrl: string;
246
+ prompt: string;
247
+ safetyTolerance?: number;
248
+ };
244
249
  "flux-video-upscale": {
245
250
  videoUrl: string;
246
251
  upscaleFactor?: number;
@@ -2682,6 +2687,7 @@ declare const Models: {
2682
2687
  readonly Flux3Video: "flux-3-video";
2683
2688
  readonly FluxKontextMax: "flux-kontext-max";
2684
2689
  readonly FluxKontextPro: "flux-kontext-pro";
2690
+ readonly FluxVideoEdit: "flux-video-edit";
2685
2691
  readonly FluxVideoUpscale: "flux-video-upscale";
2686
2692
  readonly Gemini25FlashImage: "gemini-2.5-flash-image";
2687
2693
  readonly Gemini25FlashTts: "gemini-2.5-flash-tts";
package/index.js CHANGED
@@ -5775,6 +5775,32 @@ var { MODELS: MODELS21 } = defineModels("flux", [
5775
5775
  // Moderation level: 0 (strict) … 4 (permissive).
5776
5776
  ...p.range("safetyTolerance", 0, 4, 2, { label: "Safety Tolerance" })
5777
5777
  }
5778
+ },
5779
+ {
5780
+ // Pure pass-through like flux-video-upscale: the worker Command takes the
5781
+ // SDK's own field names (videoUrl, prompt, safetyTolerance) — no payload
5782
+ // builder needed.
5783
+ id: "flux-video-edit",
5784
+ name: "Sprout Video Edit",
5785
+ workflow: "flux/v1/video-edit",
5786
+ mode: "video",
5787
+ inputType: "v2v",
5788
+ addedAt: "2026-09-09",
5789
+ estimatedTime: 180,
5790
+ description: "Edit videos with a text instruction \u2014 change objects, styles or scenes while preserving motion, timing and audio. Source clips up to 15 seconds; output at 24 fps, up to 720p.",
5791
+ features: [
5792
+ feat("Video Required", "input"),
5793
+ feat("Up to 15s", "duration"),
5794
+ feat("720p", "resolution")
5795
+ ],
5796
+ paramConfig: {
5797
+ // Vendor source caps: 15s, 50 MB. Also ≥160 px per side and ≥17 frames —
5798
+ // minimums the upload check can't express; the vendor rejects violations.
5799
+ ...params.videoInput("Source Video", "asset", true, 15, void 0, 50 * 1024 * 1024),
5800
+ ...params.prompt({ maxLength: 4096 }),
5801
+ // Moderation level: 0 (strict) … 4 (permissive).
5802
+ ...p.range("safetyTolerance", 0, 4, 2, { label: "Safety Tolerance" })
5803
+ }
5778
5804
  }
5779
5805
  ]);
5780
5806
 
@@ -11446,6 +11472,7 @@ var Flux2Pro = "flux-2-pro";
11446
11472
  var Flux3Video = "flux-3-video";
11447
11473
  var FluxKontextMax = "flux-kontext-max";
11448
11474
  var FluxKontextPro = "flux-kontext-pro";
11475
+ var FluxVideoEdit = "flux-video-edit";
11449
11476
  var FluxVideoUpscale = "flux-video-upscale";
11450
11477
  var Gemini25FlashImage = "gemini-2.5-flash-image";
11451
11478
  var Gemini25FlashTts = "gemini-2.5-flash-tts";
@@ -11671,6 +11698,7 @@ var Models = {
11671
11698
  Flux3Video,
11672
11699
  FluxKontextMax,
11673
11700
  FluxKontextPro,
11701
+ FluxVideoEdit,
11674
11702
  FluxVideoUpscale,
11675
11703
  Gemini25FlashImage,
11676
11704
  Gemini25FlashTts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.32.0",
3
+ "version": "5.33.0",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for 100+ AI models — image, video, audio, and text generation with Picsart",
6
6
  "license": "MIT",