@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.cjs CHANGED
@@ -1042,6 +1042,46 @@ var IMAGE_MODELS = [
1042
1042
  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."
1043
1043
  }
1044
1044
  },
1045
+ // Seedream 5.5 (Early Access, 2026-11-11): 1K / 1.5K / 2K, no 4K; exact sizes must total
1046
+ // 921,600 to 4,624,220 px, which every SEEDREAM_SIZES 1K and 2K entry does. Up to 10
1047
+ // references; `background: "transparent"` returns an RGBA PNG.
1048
+ {
1049
+ id: "seedream-5.5",
1050
+ aliases: [],
1051
+ label: "Seedream 5.5",
1052
+ type: "image",
1053
+ adapter: "ark",
1054
+ providerModelId: "dola-seedream-5-5-261028",
1055
+ lifecycle: "active",
1056
+ exposure: ["cowork", "space_builder"],
1057
+ constraints: {
1058
+ aspectRatios: [
1059
+ "1:1",
1060
+ "4:3",
1061
+ "3:4",
1062
+ "16:9",
1063
+ "9:16",
1064
+ "3:2",
1065
+ "2:3",
1066
+ "21:9",
1067
+ "9:21",
1068
+ "4:5",
1069
+ "5:4"
1070
+ ],
1071
+ sizes: ["1K", "2K"],
1072
+ references: { images: 10 },
1073
+ supports: ["seed", "outputFormat"],
1074
+ backgrounds: ["auto", "opaque", "transparent"]
1075
+ },
1076
+ defaults: { size: "1K", aspectRatio: "1:1" },
1077
+ usage: { ...IMAGE_USAGE3 },
1078
+ pricingKind: "image_size",
1079
+ display: {
1080
+ provider: "bytedance",
1081
+ logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png",
1082
+ 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."
1083
+ }
1084
+ },
1045
1085
  {
1046
1086
  id: "seedream-4.5",
1047
1087
  aliases: [],
@@ -9344,6 +9384,19 @@ async function generateSeedreamImage(req, ctx) {
9344
9384
  }
9345
9385
  body.output_format = req.outputFormat === "jpeg" ? "jpeg" : "png";
9346
9386
  }
9387
+ if (req.background !== void 0) {
9388
+ body.background = req.background;
9389
+ if (req.background === "transparent" && body.output_format === "jpeg") {
9390
+ ctx.warnings.push({
9391
+ code: "option_ignored",
9392
+ field: "outputFormat",
9393
+ from: "jpeg",
9394
+ to: "png",
9395
+ message: `${modelId} returns a transparent background only as png; using png`
9396
+ });
9397
+ body.output_format = "png";
9398
+ }
9399
+ }
9347
9400
  const firstRef = refs[0];
9348
9401
  if (refs.length === 1 && firstRef !== void 0) body.image = firstRef;
9349
9402
  else if (refs.length > 1) body.image = refs;