@shop-os/modelkit 0.4.0 → 0.4.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
@@ -341,35 +341,43 @@ var IMAGE_MODELS = [
341
341
  GEMINI_PROMPT_MAX_CHARS,
342
342
  NANO_BANANA_2_1_RATIOS
343
343
  ),
344
- geminiImage(
345
- "gemini-3-pro-image-preview",
346
- "Nano Banana Pro",
347
- ["nb-pro"],
348
- ["1K", "2K", "4K"],
349
- {
350
- provider: "google",
351
- description: "Create stunning, production-quality visuals with exceptional realism, detail, and typography. Best for campaigns, e-commerce, product photography, and hero creatives.",
352
- logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
353
- },
354
- ["cowork", "space_builder"],
355
- { images: 14 },
356
- GEMINI_PROMPT_MAX_CHARS
357
- ),
358
- geminiImage(
359
- "gemini-3.1-flash-image-preview",
360
- "Nano Banana 2",
361
- ["nb-2"],
362
- // Flash 3.1 is the only Gemini image model with the 512 tier.
363
- ["512", "1K", "2K", "4K"],
364
- {
365
- provider: "google",
366
- description: "Generate high-quality images at speed. Perfect for brainstorming, concept boards, concept testing, creative exploration, and large batch workflows.",
367
- logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
368
- },
369
- ["cowork", "space_builder"],
370
- { images: 14 },
371
- GEMINI_PROMPT_MAX_CHARS
372
- ),
344
+ // Google retired the -preview endpoints for the GA ids; the catalog ids stay because they
345
+ // are pricing keys and stored model ids.
346
+ {
347
+ ...geminiImage(
348
+ "gemini-3-pro-image-preview",
349
+ "Nano Banana Pro",
350
+ ["nb-pro"],
351
+ ["1K", "2K", "4K"],
352
+ {
353
+ provider: "google",
354
+ description: "Create stunning, production-quality visuals with exceptional realism, detail, and typography. Best for campaigns, e-commerce, product photography, and hero creatives.",
355
+ logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
356
+ },
357
+ ["cowork", "space_builder"],
358
+ { images: 14 },
359
+ GEMINI_PROMPT_MAX_CHARS
360
+ ),
361
+ providerModelId: "gemini-3-pro-image"
362
+ },
363
+ {
364
+ ...geminiImage(
365
+ "gemini-3.1-flash-image-preview",
366
+ "Nano Banana 2",
367
+ ["nb-2"],
368
+ // Flash 3.1 is the only Gemini image model with the 512 tier.
369
+ ["512", "1K", "2K", "4K"],
370
+ {
371
+ provider: "google",
372
+ description: "Generate high-quality images at speed. Perfect for brainstorming, concept boards, concept testing, creative exploration, and large batch workflows.",
373
+ logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
374
+ },
375
+ ["cowork", "space_builder"],
376
+ { images: 14 },
377
+ GEMINI_PROMPT_MAX_CHARS
378
+ ),
379
+ providerModelId: "gemini-3.1-flash-image"
380
+ },
373
381
  geminiImage(
374
382
  "gemini-3.1-flash-lite-image",
375
383
  "Nano Banana Lite",
@@ -1503,6 +1511,7 @@ var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
1503
1511
  var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
1504
1512
  var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
1505
1513
  var VIDEO_MODELS = [
1514
+ // Google shuts down the Veo 3.1 previews and Omni Flash 1.0 on 2026-10-22.
1506
1515
  {
1507
1516
  id: "veo-3.1",
1508
1517
  aliases: [
@@ -1515,8 +1524,9 @@ var VIDEO_MODELS = [
1515
1524
  type: "video",
1516
1525
  adapter: "google-genai",
1517
1526
  providerModelId: "veo-3.1-generate-preview",
1518
- lifecycle: "active",
1519
- exposure: ["cowork", "space_builder"],
1527
+ lifecycle: "deprecated",
1528
+ replacedBy: "gemini-omni-1.1-flash",
1529
+ exposure: [],
1520
1530
  constraints: {
1521
1531
  aspectRatios: [...OMNI_RATIOS],
1522
1532
  resolutions: ["720p", "1080p", "4k"],
@@ -1551,7 +1561,8 @@ var VIDEO_MODELS = [
1551
1561
  type: "video",
1552
1562
  adapter: "google-genai",
1553
1563
  providerModelId: "veo-3.1-fast-generate-preview",
1554
- lifecycle: "active",
1564
+ lifecycle: "deprecated",
1565
+ replacedBy: "gemini-omni-1.1-flash",
1555
1566
  exposure: [],
1556
1567
  constraints: {
1557
1568
  aspectRatios: [...OMNI_RATIOS],
@@ -1581,7 +1592,8 @@ var VIDEO_MODELS = [
1581
1592
  type: "video",
1582
1593
  adapter: "google-genai",
1583
1594
  providerModelId: "veo-3.1-lite-generate-preview",
1584
- lifecycle: "active",
1595
+ lifecycle: "deprecated",
1596
+ replacedBy: "gemini-omni-1.1-flash",
1585
1597
  exposure: [],
1586
1598
  constraints: {
1587
1599
  aspectRatios: [...OMNI_RATIOS],
@@ -1612,8 +1624,9 @@ var VIDEO_MODELS = [
1612
1624
  type: "video",
1613
1625
  adapter: "google-genai",
1614
1626
  providerModelId: "gemini-omni-flash-preview",
1615
- lifecycle: "active",
1616
- exposure: ["cowork", "space_builder"],
1627
+ lifecycle: "deprecated",
1628
+ replacedBy: "gemini-omni-1.1-flash",
1629
+ exposure: [],
1617
1630
  constraints: {
1618
1631
  // 1.0 rejects `resolution`; it renders 720p. No defaults: the adapter
1619
1632
  // sends ratio and duration only when the caller set them, so a
@@ -2168,7 +2181,8 @@ var VIDEO_MODELS = [
2168
2181
  },
2169
2182
  defaults: {},
2170
2183
  usage: { ...VIDEO_USAGE },
2171
- pricingKind: "video_per_second",
2184
+ // Higgsfield bills DoP per generation: a fixed-length clip with no duration knob.
2185
+ pricingKind: "flat",
2172
2186
  display: {
2173
2187
  provider: "higgsfield",
2174
2188
  description: "Higgsfield DOP image-to-video model; animates a required first-frame image from a text prompt with an optional last-frame image and motion controls."