@shop-os/modelkit 0.19.0 → 0.19.1

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/dist/index.js CHANGED
@@ -889,6 +889,46 @@ var IMAGE_MODELS = [
889
889
  description: "ByteDance Seedream 5.0 Pro text-to-image and multi-reference image-to-image (up to 10 inputs) with region editing; outputs 1K or 2K."
890
890
  }
891
891
  },
892
+ // Seedream 5.5 (Early Access, 2026-11-11): 1K / 1.5K / 2K, no 4K; exact sizes must total
893
+ // 921,600 to 4,624,220 px, which every SEEDREAM_SIZES 1K and 2K entry does. Up to 10
894
+ // references; `background: "transparent"` returns an RGBA PNG.
895
+ {
896
+ id: "seedream-5.5",
897
+ aliases: [],
898
+ label: "Seedream 5.5",
899
+ type: "image",
900
+ adapter: "ark",
901
+ providerModelId: "dola-seedream-5-5-261028",
902
+ lifecycle: "active",
903
+ exposure: ["cowork", "space_builder"],
904
+ constraints: {
905
+ aspectRatios: [
906
+ "1:1",
907
+ "4:3",
908
+ "3:4",
909
+ "16:9",
910
+ "9:16",
911
+ "3:2",
912
+ "2:3",
913
+ "21:9",
914
+ "9:21",
915
+ "4:5",
916
+ "5:4"
917
+ ],
918
+ sizes: ["1K", "2K"],
919
+ references: { images: 10 },
920
+ supports: ["seed", "outputFormat"],
921
+ backgrounds: ["auto", "opaque", "transparent"]
922
+ },
923
+ defaults: { size: "1K", aspectRatio: "1:1" },
924
+ usage: { ...IMAGE_USAGE3 },
925
+ pricingKind: "image_size",
926
+ display: {
927
+ provider: "bytedance",
928
+ logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
929
+ description: "ByteDance Seedream 5.5 text-to-image and multi-reference editing (up to 10 inputs): edits that keep what you did not ask to change, transparent PNG output and sharper text; outputs 1K or 2K."
930
+ }
931
+ },
892
932
  {
893
933
  id: "seedream-4.5",
894
934
  aliases: [],
@@ -9191,6 +9231,19 @@ async function generateSeedreamImage(req, ctx) {
9191
9231
  }
9192
9232
  body.output_format = req.outputFormat === "jpeg" ? "jpeg" : "png";
9193
9233
  }
9234
+ if (req.background !== void 0) {
9235
+ body.background = req.background;
9236
+ if (req.background === "transparent" && body.output_format === "jpeg") {
9237
+ ctx.warnings.push({
9238
+ code: "option_ignored",
9239
+ field: "outputFormat",
9240
+ from: "jpeg",
9241
+ to: "png",
9242
+ message: `${modelId} returns a transparent background only as png; using png`
9243
+ });
9244
+ body.output_format = "png";
9245
+ }
9246
+ }
9194
9247
  const firstRef = refs[0];
9195
9248
  if (refs.length === 1 && firstRef !== void 0) body.image = firstRef;
9196
9249
  else if (refs.length > 1) body.image = refs;