@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.js
CHANGED
|
@@ -222,35 +222,43 @@ var IMAGE_MODELS = [
|
|
|
222
222
|
GEMINI_PROMPT_MAX_CHARS,
|
|
223
223
|
NANO_BANANA_2_1_RATIOS
|
|
224
224
|
),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
225
|
+
// Google retired the -preview endpoints for the GA ids; the catalog ids stay because they
|
|
226
|
+
// are pricing keys and stored model ids.
|
|
227
|
+
{
|
|
228
|
+
...geminiImage(
|
|
229
|
+
"gemini-3-pro-image-preview",
|
|
230
|
+
"Nano Banana Pro",
|
|
231
|
+
["nb-pro"],
|
|
232
|
+
["1K", "2K", "4K"],
|
|
233
|
+
{
|
|
234
|
+
provider: "google",
|
|
235
|
+
description: "Create stunning, production-quality visuals with exceptional realism, detail, and typography. Best for campaigns, e-commerce, product photography, and hero creatives.",
|
|
236
|
+
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
|
|
237
|
+
},
|
|
238
|
+
["cowork", "space_builder"],
|
|
239
|
+
{ images: 14 },
|
|
240
|
+
GEMINI_PROMPT_MAX_CHARS
|
|
241
|
+
),
|
|
242
|
+
providerModelId: "gemini-3-pro-image"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
...geminiImage(
|
|
246
|
+
"gemini-3.1-flash-image-preview",
|
|
247
|
+
"Nano Banana 2",
|
|
248
|
+
["nb-2"],
|
|
249
|
+
// Flash 3.1 is the only Gemini image model with the 512 tier.
|
|
250
|
+
["512", "1K", "2K", "4K"],
|
|
251
|
+
{
|
|
252
|
+
provider: "google",
|
|
253
|
+
description: "Generate high-quality images at speed. Perfect for brainstorming, concept boards, concept testing, creative exploration, and large batch workflows.",
|
|
254
|
+
logo: "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png"
|
|
255
|
+
},
|
|
256
|
+
["cowork", "space_builder"],
|
|
257
|
+
{ images: 14 },
|
|
258
|
+
GEMINI_PROMPT_MAX_CHARS
|
|
259
|
+
),
|
|
260
|
+
providerModelId: "gemini-3.1-flash-image"
|
|
261
|
+
},
|
|
254
262
|
geminiImage(
|
|
255
263
|
"gemini-3.1-flash-lite-image",
|
|
256
264
|
"Nano Banana Lite",
|
|
@@ -1384,6 +1392,7 @@ var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
|
1384
1392
|
var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
1385
1393
|
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
1386
1394
|
var VIDEO_MODELS = [
|
|
1395
|
+
// Google shuts down the Veo 3.1 previews and Omni Flash 1.0 on 2026-10-22.
|
|
1387
1396
|
{
|
|
1388
1397
|
id: "veo-3.1",
|
|
1389
1398
|
aliases: [
|
|
@@ -1396,8 +1405,9 @@ var VIDEO_MODELS = [
|
|
|
1396
1405
|
type: "video",
|
|
1397
1406
|
adapter: "google-genai",
|
|
1398
1407
|
providerModelId: "veo-3.1-generate-preview",
|
|
1399
|
-
lifecycle: "
|
|
1400
|
-
|
|
1408
|
+
lifecycle: "deprecated",
|
|
1409
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1410
|
+
exposure: [],
|
|
1401
1411
|
constraints: {
|
|
1402
1412
|
aspectRatios: [...OMNI_RATIOS],
|
|
1403
1413
|
resolutions: ["720p", "1080p", "4k"],
|
|
@@ -1432,7 +1442,8 @@ var VIDEO_MODELS = [
|
|
|
1432
1442
|
type: "video",
|
|
1433
1443
|
adapter: "google-genai",
|
|
1434
1444
|
providerModelId: "veo-3.1-fast-generate-preview",
|
|
1435
|
-
lifecycle: "
|
|
1445
|
+
lifecycle: "deprecated",
|
|
1446
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1436
1447
|
exposure: [],
|
|
1437
1448
|
constraints: {
|
|
1438
1449
|
aspectRatios: [...OMNI_RATIOS],
|
|
@@ -1462,7 +1473,8 @@ var VIDEO_MODELS = [
|
|
|
1462
1473
|
type: "video",
|
|
1463
1474
|
adapter: "google-genai",
|
|
1464
1475
|
providerModelId: "veo-3.1-lite-generate-preview",
|
|
1465
|
-
lifecycle: "
|
|
1476
|
+
lifecycle: "deprecated",
|
|
1477
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1466
1478
|
exposure: [],
|
|
1467
1479
|
constraints: {
|
|
1468
1480
|
aspectRatios: [...OMNI_RATIOS],
|
|
@@ -1493,8 +1505,9 @@ var VIDEO_MODELS = [
|
|
|
1493
1505
|
type: "video",
|
|
1494
1506
|
adapter: "google-genai",
|
|
1495
1507
|
providerModelId: "gemini-omni-flash-preview",
|
|
1496
|
-
lifecycle: "
|
|
1497
|
-
|
|
1508
|
+
lifecycle: "deprecated",
|
|
1509
|
+
replacedBy: "gemini-omni-1.1-flash",
|
|
1510
|
+
exposure: [],
|
|
1498
1511
|
constraints: {
|
|
1499
1512
|
// 1.0 rejects `resolution`; it renders 720p. No defaults: the adapter
|
|
1500
1513
|
// sends ratio and duration only when the caller set them, so a
|
|
@@ -2049,7 +2062,8 @@ var VIDEO_MODELS = [
|
|
|
2049
2062
|
},
|
|
2050
2063
|
defaults: {},
|
|
2051
2064
|
usage: { ...VIDEO_USAGE },
|
|
2052
|
-
|
|
2065
|
+
// Higgsfield bills DoP per generation: a fixed-length clip with no duration knob.
|
|
2066
|
+
pricingKind: "flat",
|
|
2053
2067
|
display: {
|
|
2054
2068
|
provider: "higgsfield",
|
|
2055
2069
|
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."
|