@picsart/ai-sdk 6.32.0 → 6.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.
package/index.d.ts CHANGED
@@ -1622,6 +1622,13 @@ type ModelInputById = {
1622
1622
  aspectRatio?: "16:9" | "9:16";
1623
1623
  imageUrls?: string[];
1624
1624
  };
1625
+ "sam-3-video": {
1626
+ prompt: string;
1627
+ videoUrl: string;
1628
+ detectionThreshold?: number;
1629
+ applyMask?: boolean;
1630
+ outputFormat?: "mp4" | "webm";
1631
+ };
1625
1632
  "seed-audio-1.0": {
1626
1633
  prompt: string;
1627
1634
  voiceId?: string;
@@ -3563,6 +3570,7 @@ declare const Models: {
3563
3570
  readonly RunwayGen4Aleph: "runway-gen4-aleph";
3564
3571
  readonly RunwayGen4Ref: "runway-gen4-ref";
3565
3572
  readonly RunwayGen45: "runway-gen4.5";
3573
+ readonly Sam3Video: "sam-3-video";
3566
3574
  readonly SeedAudio10: "seed-audio-1.0";
3567
3575
  readonly SeedAudio10Multilingual: "seed-audio-1.0-multilingual";
3568
3576
  readonly Seedance15Pro: "seedance-1.5-pro";
package/index.js CHANGED
@@ -10686,6 +10686,30 @@ var { MODELS: MODELS37 } = defineModels("meta", [
10686
10686
  ...params.count(),
10687
10687
  ...params.imageInput(5, "Source Images")
10688
10688
  }
10689
+ },
10690
+ // ── Video ─────────────────────────────────────────
10691
+ {
10692
+ // Billed per second of the source clip at one flat rate, so none of the
10693
+ // knobs below changes the price.
10694
+ id: "sam-3-video",
10695
+ name: "SAM 3 Video",
10696
+ modelId: "fal-ai-sam-3-video",
10697
+ addedAt: "2026-10-12",
10698
+ workflow: "sam-3/video",
10699
+ estimatedTime: 60,
10700
+ mode: "video",
10701
+ inputType: "v2v",
10702
+ description: "Segment and track objects through a video from a text prompt \u2014 name several objects separated by commas and SAM 3 keeps each one masked across every frame.",
10703
+ features: [feat("Segmentation", "characteristic"), feat("Object Tracking", "characteristic"), feat("Video Input", "input")],
10704
+ paramConfig: {
10705
+ ...params.prompt({ placeholder: "person, cloth" }),
10706
+ ...params.videoInput("Source Video", "asset", true),
10707
+ // Lower finds more objects but less precisely.
10708
+ ...p.range("detectionThreshold", 0, 1, 0.5, { step: 0.05, label: "Detection Threshold" }),
10709
+ // Off returns the source frames without the mask overlay.
10710
+ ...p.boolean("applyMask", true, "Apply Mask"),
10711
+ ...p.enum("outputFormat", ["mp4", "webm"], "mp4", { label: "Format" })
10712
+ }
10689
10713
  }
10690
10714
  ]);
10691
10715
 
@@ -10718,8 +10742,20 @@ var buildMuseImageEditPayload = (input) => ({
10718
10742
  ...buildMuseCommonPayload(input),
10719
10743
  images: input.imageUrls ?? []
10720
10744
  });
10745
+ var SAM3_OUTPUT_TYPE = {
10746
+ mp4: "X264 (.mp4)",
10747
+ webm: "VP9 (.webm)"
10748
+ };
10749
+ var buildSam3VideoPayload = (input) => ({
10750
+ video_url: input.videoUrl,
10751
+ prompt: input.prompt,
10752
+ detection_threshold: input.detectionThreshold ?? 0.5,
10753
+ apply_mask: input.applyMask ?? true,
10754
+ video_output_type: SAM3_OUTPUT_TYPE[input.outputFormat ?? "mp4"]
10755
+ });
10721
10756
  registerPayloads(MODELS37, {
10722
- "muse-image-1.0": buildMuseImagePayload
10757
+ "muse-image-1.0": buildMuseImagePayload,
10758
+ "sam-3-video": buildSam3VideoPayload
10723
10759
  });
10724
10760
  registerEditPayloads(MODELS37, {
10725
10761
  "muse-image-1.0": buildMuseImageEditPayload
@@ -13910,6 +13946,7 @@ var RunwayGen3aTurbo = "runway-gen3a-turbo";
13910
13946
  var RunwayGen4Aleph = "runway-gen4-aleph";
13911
13947
  var RunwayGen4Ref = "runway-gen4-ref";
13912
13948
  var RunwayGen45 = "runway-gen4.5";
13949
+ var Sam3Video = "sam-3-video";
13913
13950
  var SeedAudio10 = "seed-audio-1.0";
13914
13951
  var SeedAudio10Multilingual = "seed-audio-1.0-multilingual";
13915
13952
  var Seedance15Pro = "seedance-1.5-pro";
@@ -14170,6 +14207,7 @@ var Models = {
14170
14207
  RunwayGen4Aleph,
14171
14208
  RunwayGen4Ref,
14172
14209
  RunwayGen45,
14210
+ Sam3Video,
14173
14211
  SeedAudio10,
14174
14212
  SeedAudio10Multilingual,
14175
14213
  Seedance15Pro,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.32.0",
3
+ "version": "6.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",