@howells/motif-sdk 7.0.0 → 7.2.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/dist/registry.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/aspects.ts
1
+ // src/aspects.ts
2
2
  /** Pixel sizes of fal's named `image_size` presets. `auto` has none. */
3
3
  const FAL_PRESET_SIZES = {
4
4
  landscape_16_9: {
@@ -26,8 +26,7 @@ const FAL_PRESET_SIZES = {
26
26
  width: 1024
27
27
  }
28
28
  };
29
- //#endregion
30
- //#region src/models.ts
29
+ // src/models.ts
31
30
  const AA_IMAGE_LEADERBOARD_SNAPSHOT = "2026-10-07";
32
31
  const AA_IMAGE_SOURCES = ["https://artificialanalysis.ai/image/leaderboard/text-to-image", "https://artificialanalysis.ai/image/leaderboard/editing"];
33
32
  const FAL_PRICING_CHECKED_AT = "2026-05-12";
@@ -97,7 +96,7 @@ const MODELS = {
97
96
  "xhigh",
98
97
  "max"
99
98
  ],
100
- supportsResolution: false,
99
+ supportsResolution: true,
101
100
  supportsSyncMode: true,
102
101
  type: "generation",
103
102
  useQueue: true
@@ -164,7 +163,7 @@ const MODELS = {
164
163
  "xhigh",
165
164
  "max"
166
165
  ],
167
- supportsResolution: false,
166
+ supportsResolution: true,
168
167
  supportsSyncMode: true,
169
168
  type: "generation",
170
169
  useQueue: true
@@ -1196,8 +1195,7 @@ const MODELS = {
1196
1195
  "ideogram3-transparent",
1197
1196
  "recraft41"
1198
1197
  ].filter((id) => MODELS[id]?.supportsEdit === true);
1199
- //#endregion
1200
- //#region src/cost.ts
1198
+ // src/cost.ts
1201
1199
  /**
1202
1200
  * Estimate cost based on model and settings. `editImages` is the number of
1203
1201
  * input images on an edit, for Models whose edits cost more than generation.
@@ -1222,8 +1220,7 @@ function estimateCost(model, resolution, numImages = 1, editImages = 0) {
1222
1220
  default: return .1 * numImages;
1223
1221
  }
1224
1222
  }
1225
- //#endregion
1226
- //#region src/tool-registry/analysis.ts
1223
+ // src/tool-registry/analysis.ts
1227
1224
  const ANALYSIS_TOOLS = {
1228
1225
  "got-ocr": {
1229
1226
  category: "analysis",
@@ -1337,8 +1334,7 @@ const ANALYSIS_TOOLS = {
1337
1334
  task: "vision moderation"
1338
1335
  }
1339
1336
  };
1340
- //#endregion
1341
- //#region src/tool-registry/assets.ts
1337
+ // src/tool-registry/assets.ts
1342
1338
  const ASSET_TOOLS = {
1343
1339
  "hunyuan3d-v3": {
1344
1340
  category: "3d",
@@ -1656,8 +1652,7 @@ const ASSET_TOOLS = {
1656
1652
  task: "single-image 3D reconstruction"
1657
1653
  }
1658
1654
  };
1659
- //#endregion
1660
- //#region src/tool-registry/background.ts
1655
+ // src/tool-registry/background.ts
1661
1656
  const BACKGROUND_TOOLS = {
1662
1657
  "ben-v2": {
1663
1658
  category: "background",
@@ -2032,8 +2027,7 @@ const BACKGROUND_TOOLS = {
2032
2027
  task: "video enhancement"
2033
2028
  }
2034
2029
  };
2035
- //#endregion
2036
- //#region src/tool-registry/editing.ts
2030
+ // src/tool-registry/editing.ts
2037
2031
  const EDITING_TOOLS = {
2038
2032
  "bria-eraser": {
2039
2033
  category: "erase",
@@ -2304,8 +2298,7 @@ const EDITING_TOOLS = {
2304
2298
  task: "virtual garment try-on"
2305
2299
  }
2306
2300
  };
2307
- //#endregion
2308
- //#region src/tool-registry/structure.ts
2301
+ // src/tool-registry/structure.ts
2309
2302
  const STRUCTURE_TOOLS = {
2310
2303
  "depth-anything": {
2311
2304
  category: "preprocess",
@@ -2697,8 +2690,7 @@ const STRUCTURE_TOOLS = {
2697
2690
  task: "depth preprocessing"
2698
2691
  }
2699
2692
  };
2700
- //#endregion
2701
- //#region src/tools.ts
2693
+ // src/tools.ts
2702
2694
  const FAL_TOOLS = {
2703
2695
  ...ANALYSIS_TOOLS,
2704
2696
  ...ASSET_TOOLS,
@@ -2710,5 +2702,4 @@ Object.keys(FAL_TOOLS);
2710
2702
  function isFalToolId(tool) {
2711
2703
  return Object.hasOwn(FAL_TOOLS, tool);
2712
2704
  }
2713
- //#endregion
2714
2705
  export { FAL_PRESET_SIZES, FAL_TOOLS, MODELS, estimateCost, isFalToolId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howells/motif-sdk",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "Node SDK for Motif: image, video and 3D Tasks on fal.ai, with Motif choosing the Model.",
5
5
  "keywords": [
6
6
  "fal",