@howells/motif-sdk 1.2.0 → 1.3.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/image.js CHANGED
@@ -19,10 +19,10 @@ var MODELS = {
19
19
  gpt2: {
20
20
  benchmark: {
21
21
  artificialAnalysis: {
22
- editing: { elo: 1256, pricePer1k: 211, rank: 3 },
22
+ editing: { elo: 1256, rank: 3 },
23
23
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
24
24
  sourceUrls: AA_IMAGE_SOURCES,
25
- textToImage: { elo: 1369, pricePer1k: 211, rank: 1 }
25
+ textToImage: { elo: 1369, rank: 1 }
26
26
  },
27
27
  speed: {
28
28
  medianSeconds: 200.7,
@@ -62,10 +62,10 @@ var MODELS = {
62
62
  gpt: {
63
63
  benchmark: {
64
64
  artificialAnalysis: {
65
- editing: { elo: 1250, pricePer1k: 133, rank: 5 },
65
+ editing: { elo: 1250, rank: 5 },
66
66
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
67
67
  sourceUrls: AA_IMAGE_SOURCES,
68
- textToImage: { elo: 1310, pricePer1k: 133, rank: 4 }
68
+ textToImage: { elo: 1310, rank: 4 }
69
69
  },
70
70
  speed: {
71
71
  medianSeconds: 34.6,
@@ -105,10 +105,10 @@ var MODELS = {
105
105
  banana2: {
106
106
  benchmark: {
107
107
  artificialAnalysis: {
108
- editing: { elo: 1249, pricePer1k: 67, rank: 7 },
108
+ editing: { elo: 1249, rank: 7 },
109
109
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
110
110
  sourceUrls: AA_IMAGE_SOURCES,
111
- textToImage: { elo: 1320, pricePer1k: 67, rank: 3 }
111
+ textToImage: { elo: 1320, rank: 3 }
112
112
  },
113
113
  tiers: { price: "premium", quality: "frontier", speed: "unknown" },
114
114
  useCase: "Best balance of quality, edit support, web search, and cost"
@@ -146,10 +146,10 @@ var MODELS = {
146
146
  banana: {
147
147
  benchmark: {
148
148
  artificialAnalysis: {
149
- editing: { elo: 1245, pricePer1k: 134, rank: 9 },
149
+ editing: { elo: 1245, rank: 9 },
150
150
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
151
151
  sourceUrls: AA_IMAGE_SOURCES,
152
- textToImage: { elo: 1297, pricePer1k: 134, rank: 6 }
152
+ textToImage: { elo: 1297, rank: 6 }
153
153
  },
154
154
  speed: {
155
155
  medianSeconds: 19.2,
@@ -191,7 +191,7 @@ var MODELS = {
191
191
  gemini: {
192
192
  benchmark: {
193
193
  artificialAnalysis: {
194
- editing: { elo: 1180, pricePer1k: 39, rank: 29 },
194
+ editing: { elo: 1180, rank: 29 },
195
195
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
196
196
  sourceUrls: AA_IMAGE_SOURCES
197
197
  }
@@ -225,10 +225,10 @@ var MODELS = {
225
225
  gemini3: {
226
226
  benchmark: {
227
227
  artificialAnalysis: {
228
- editing: { elo: 1245, pricePer1k: 134, rank: 9 },
228
+ editing: { elo: 1245, rank: 9 },
229
229
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
230
230
  sourceUrls: AA_IMAGE_SOURCES,
231
- textToImage: { elo: 1297, pricePer1k: 134, rank: 6 }
231
+ textToImage: { elo: 1297, rank: 6 }
232
232
  }
233
233
  },
234
234
  editEndpoint: "fal-ai/gemini-3-pro-image-preview/edit",
@@ -261,10 +261,10 @@ var MODELS = {
261
261
  seedream4: {
262
262
  benchmark: {
263
263
  artificialAnalysis: {
264
- editing: { elo: 1185, pricePer1k: 30, rank: 28 },
264
+ editing: { elo: 1185, rank: 28 },
265
265
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
266
266
  sourceUrls: AA_IMAGE_SOURCES,
267
- textToImage: { elo: 1226, pricePer1k: 30, rank: 16 }
267
+ textToImage: { elo: 1226, rank: 16 }
268
268
  },
269
269
  speed: {
270
270
  medianSeconds: 14.3,
@@ -301,10 +301,10 @@ var MODELS = {
301
301
  seedream45: {
302
302
  benchmark: {
303
303
  artificialAnalysis: {
304
- editing: { elo: 1186, pricePer1k: 40, rank: 26 },
304
+ editing: { elo: 1186, rank: 26 },
305
305
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
306
306
  sourceUrls: AA_IMAGE_SOURCES,
307
- textToImage: { elo: 1203, pricePer1k: 40, rank: 32 }
307
+ textToImage: { elo: 1203, rank: 32 }
308
308
  },
309
309
  speed: {
310
310
  medianSeconds: 18.2,
@@ -341,10 +341,10 @@ var MODELS = {
341
341
  seedream5: {
342
342
  benchmark: {
343
343
  artificialAnalysis: {
344
- editing: { elo: 1248, pricePer1k: 90, rank: 8 },
344
+ editing: { elo: 1248, rank: 8 },
345
345
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
346
346
  sourceUrls: AA_IMAGE_SOURCES,
347
- textToImage: { elo: 1279, pricePer1k: 90, rank: 10 }
347
+ textToImage: { elo: 1279, rank: 10 }
348
348
  }
349
349
  },
350
350
  name: "Seedream 5.0 Pro",
@@ -375,7 +375,7 @@ var MODELS = {
375
375
  "seedream5-lite": {
376
376
  benchmark: {
377
377
  artificialAnalysis: {
378
- editing: { elo: 1169, pricePer1k: 35, rank: 32 },
378
+ editing: { elo: 1169, rank: 32 },
379
379
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
380
380
  sourceUrls: AA_IMAGE_SOURCES
381
381
  }
@@ -408,10 +408,10 @@ var MODELS = {
408
408
  "flux2-max": {
409
409
  benchmark: {
410
410
  artificialAnalysis: {
411
- editing: { elo: 1201, pricePer1k: 140, rank: 19 },
411
+ editing: { elo: 1201, rank: 19 },
412
412
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
413
413
  sourceUrls: AA_IMAGE_SOURCES,
414
- textToImage: { elo: 1225, pricePer1k: 70, rank: 17 }
414
+ textToImage: { elo: 1225, rank: 17 }
415
415
  },
416
416
  speed: {
417
417
  medianSeconds: 31.6,
@@ -451,10 +451,10 @@ var MODELS = {
451
451
  "flux2-pro": {
452
452
  benchmark: {
453
453
  artificialAnalysis: {
454
- editing: { elo: 1170, pricePer1k: 45, rank: 31 },
454
+ editing: { elo: 1170, rank: 31 },
455
455
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
456
456
  sourceUrls: AA_IMAGE_SOURCES,
457
- textToImage: { elo: 1207, pricePer1k: 30, rank: 30 }
457
+ textToImage: { elo: 1207, rank: 30 }
458
458
  },
459
459
  speed: {
460
460
  medianSeconds: 16.1,
@@ -496,7 +496,7 @@ var MODELS = {
496
496
  artificialAnalysis: {
497
497
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
498
498
  sourceUrls: AA_IMAGE_SOURCES,
499
- textToImage: { elo: 1223, pricePer1k: 60, rank: 18 }
499
+ textToImage: { elo: 1223, rank: 18 }
500
500
  },
501
501
  speed: {
502
502
  medianSeconds: 15.3,
@@ -689,10 +689,10 @@ var MODELS = {
689
689
  // #2 on BOTH boards, which almost nothing else manages - the top text-to-image model
690
690
  // (GPT Image 2) drops to 3rd for editing, and the top editor (MAI-Image-2.5-Pro) is not
691
691
  // on fal at all. Reve is the best editor motif can actually reach.
692
- editing: { elo: 1263, pricePer1k: 200, rank: 2 },
692
+ editing: { elo: 1263, rank: 2 },
693
693
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
694
694
  sourceUrls: AA_IMAGE_SOURCES,
695
- textToImage: { elo: 1322, pricePer1k: 200, rank: 2 }
695
+ textToImage: { elo: 1322, rank: 2 }
696
696
  },
697
697
  tiers: { price: "premium", quality: "frontier", speed: "unknown" },
698
698
  useCase: "Highest-ranked editor reachable on fal; strong prompt adherence and text rendering"
@@ -729,7 +729,7 @@ var MODELS = {
729
729
  artificialAnalysis: {
730
730
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
731
731
  sourceUrls: AA_IMAGE_SOURCES,
732
- textToImage: { elo: 1215, pricePer1k: 35, rank: 25 }
732
+ textToImage: { elo: 1215, rank: 25 }
733
733
  }
734
734
  },
735
735
  endpoint: "fal-ai/recraft/v4/text-to-image",
@@ -786,7 +786,7 @@ var MODELS = {
786
786
  artificialAnalysis: {
787
787
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
788
788
  sourceUrls: AA_IMAGE_SOURCES,
789
- textToImage: { elo: 1220, pricePer1k: 60, rank: 19 }
789
+ textToImage: { elo: 1220, rank: 19 }
790
790
  }
791
791
  },
792
792
  name: "Ideogram V4",
@@ -821,10 +821,10 @@ var MODELS = {
821
821
  "grok-image": {
822
822
  benchmark: {
823
823
  artificialAnalysis: {
824
- editing: { elo: 1214, pricePer1k: 20, rank: 16 },
824
+ editing: { elo: 1214, rank: 16 },
825
825
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
826
826
  sourceUrls: AA_IMAGE_SOURCES,
827
- textToImage: { elo: 1216, pricePer1k: 20, rank: 23 }
827
+ textToImage: { elo: 1216, rank: 23 }
828
828
  },
829
829
  speed: {
830
830
  medianSeconds: 5.1,
@@ -898,10 +898,10 @@ var MODELS = {
898
898
  qwen3: {
899
899
  benchmark: {
900
900
  artificialAnalysis: {
901
- editing: { elo: 1218, pricePer1k: 33, rank: 15 },
901
+ editing: { elo: 1218, rank: 15 },
902
902
  snapshotDate: AA_IMAGE_LEADERBOARD_SNAPSHOT,
903
903
  sourceUrls: AA_IMAGE_SOURCES,
904
- textToImage: { elo: 1272, pricePer1k: 30, rank: 11 }
904
+ textToImage: { elo: 1272, rank: 11 }
905
905
  },
906
906
  tiers: { price: "budget", quality: "better", speed: "unknown" },
907
907
  useCase: "Strong quality per dollar - 11th on text-to-image at $30/1k"
@@ -1335,6 +1335,13 @@ var ASSET_TOOLS = {
1335
1335
  inputKind: "image",
1336
1336
  name: "Seedream v5 Pro Layerize",
1337
1337
  outputKeys: ["layers", "images"],
1338
+ // Every element of `layers` carries its own `name` ("Left amber glass
1339
+ // bottle") and a `z_index` that orders the stack, verified live. Without
1340
+ // this the stack lands as layers.png … layers-5.png and the only way to
1341
+ // tell the reconstructed background plate from an object is to open them.
1342
+ outputLabels: {
1343
+ layers: { fromItem: { nameField: "name", orderField: "z_index" } }
1344
+ },
1338
1345
  price: { kind: "metered" },
1339
1346
  pricing: "$0.03375 per generated layer below 1536x1536 total area, $0.0675 per layer above; the listed rate is per layer, not per call",
1340
1347
  queued: true,