@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/CHANGELOG.md +10 -0
- package/dist/catalog.cjs +50 -36
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +50 -36
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +50 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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: "
|
|
1519
|
-
|
|
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: "
|
|
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: "
|
|
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: "
|
|
1616
|
-
|
|
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
|
-
|
|
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."
|