@nodaro/shared 3.55.0 → 3.57.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/{chunk-MCIBQ5BF.js → chunk-2LRBQOKA.js} +9 -9
- package/dist/{chunk-MCIBQ5BF.js.map → chunk-2LRBQOKA.js.map} +1 -1
- package/dist/{chunk-OVIIJVXH.cjs → chunk-2LWHRJPB.cjs} +21 -21
- package/dist/{chunk-OVIIJVXH.cjs.map → chunk-2LWHRJPB.cjs.map} +1 -1
- package/dist/{chunk-C5S75476.js → chunk-3SH5ZUNJ.js} +9 -4
- package/dist/{chunk-C5S75476.js.map → chunk-3SH5ZUNJ.js.map} +1 -1
- package/dist/{chunk-KM35K2M5.cjs → chunk-4KKFO6YR.cjs} +143 -32
- package/dist/chunk-4KKFO6YR.cjs.map +1 -0
- package/dist/{chunk-3633VD2M.cjs → chunk-5SXI7IYW.cjs} +8 -8
- package/dist/{chunk-3633VD2M.cjs.map → chunk-5SXI7IYW.cjs.map} +1 -1
- package/dist/{chunk-ZKHQSG76.js → chunk-6NZWWMVY.js} +5 -5
- package/dist/chunk-6NZWWMVY.js.map +1 -0
- package/dist/{chunk-2OYV6K7D.cjs → chunk-7JM5EZF3.cjs} +13 -13
- package/dist/{chunk-2OYV6K7D.cjs.map → chunk-7JM5EZF3.cjs.map} +1 -1
- package/dist/chunk-ALVO5Q36.cjs +48 -0
- package/dist/chunk-ALVO5Q36.cjs.map +1 -0
- package/dist/{chunk-SEEQ3H22.cjs → chunk-ASSJKIZO.cjs} +59 -6
- package/dist/chunk-ASSJKIZO.cjs.map +1 -0
- package/dist/{chunk-HZL7QMXK.js → chunk-AWS4BWEC.js} +7 -3
- package/dist/chunk-AWS4BWEC.js.map +1 -0
- package/dist/chunk-BBMK5XNO.js +42 -0
- package/dist/chunk-BBMK5XNO.js.map +1 -0
- package/dist/{chunk-IPCWYKX5.cjs → chunk-BH2IDJVO.cjs} +60 -46
- package/dist/chunk-BH2IDJVO.cjs.map +1 -0
- package/dist/{chunk-HG3KKCJJ.js → chunk-C3E6UZS4.js} +3 -3
- package/dist/{chunk-HG3KKCJJ.js.map → chunk-C3E6UZS4.js.map} +1 -1
- package/dist/{chunk-N3WL6IOJ.js → chunk-D56ALOLY.js} +55 -5
- package/dist/chunk-D56ALOLY.js.map +1 -0
- package/dist/{chunk-SZUDEFX2.cjs → chunk-D5J332XS.cjs} +44 -39
- package/dist/{chunk-SZUDEFX2.cjs.map → chunk-D5J332XS.cjs.map} +1 -1
- package/dist/{chunk-ZWB3NG4M.js → chunk-EXCZD5ZY.js} +3 -3
- package/dist/{chunk-ZWB3NG4M.js.map → chunk-EXCZD5ZY.js.map} +1 -1
- package/dist/{chunk-5R6LTKE5.cjs → chunk-FFW2HTR2.cjs} +5 -5
- package/dist/{chunk-5R6LTKE5.cjs.map → chunk-FFW2HTR2.cjs.map} +1 -1
- package/dist/{chunk-KMSEU6FK.js → chunk-INGQNLY4.js} +3 -3
- package/dist/{chunk-KMSEU6FK.js.map → chunk-INGQNLY4.js.map} +1 -1
- package/dist/chunk-IOET54EV.js +39 -0
- package/dist/chunk-IOET54EV.js.map +1 -0
- package/dist/{chunk-3CHOZ573.js → chunk-IQS3WQXQ.js} +309 -18
- package/dist/chunk-IQS3WQXQ.js.map +1 -0
- package/dist/{chunk-2R74OU76.cjs → chunk-JYNW4QK7.cjs} +309 -17
- package/dist/chunk-JYNW4QK7.cjs.map +1 -0
- package/dist/{chunk-UWMXMLMV.js → chunk-KZTXGMVH.js} +3 -3
- package/dist/{chunk-UWMXMLMV.js.map → chunk-KZTXGMVH.js.map} +1 -1
- package/dist/{chunk-5DVDHL7Y.js → chunk-MBKJ7IBS.js} +21 -7
- package/dist/chunk-MBKJ7IBS.js.map +1 -0
- package/dist/{chunk-G7IUQKRU.cjs → chunk-NJTLBZIP.cjs} +51 -51
- package/dist/{chunk-G7IUQKRU.cjs.map → chunk-NJTLBZIP.cjs.map} +1 -1
- package/dist/{chunk-J4CVGAAV.cjs → chunk-NZRG5CXQ.cjs} +7 -2
- package/dist/chunk-NZRG5CXQ.cjs.map +1 -0
- package/dist/{chunk-AGTCHDG5.cjs → chunk-O33WVAYQ.cjs} +6 -6
- package/dist/{chunk-AGTCHDG5.cjs.map → chunk-O33WVAYQ.cjs.map} +1 -1
- package/dist/{chunk-WVACGZYV.cjs → chunk-OHQBQOGH.cjs} +8 -8
- package/dist/{chunk-WVACGZYV.cjs.map → chunk-OHQBQOGH.cjs.map} +1 -1
- package/dist/chunk-OWNPYQSH.cjs +283 -0
- package/dist/chunk-OWNPYQSH.cjs.map +1 -0
- package/dist/{chunk-C6IQCKJT.cjs → chunk-P5KH7GAI.cjs} +4 -4
- package/dist/{chunk-C6IQCKJT.cjs.map → chunk-P5KH7GAI.cjs.map} +1 -1
- package/dist/{chunk-25KAGSPT.js → chunk-QMP3W5GA.js} +3 -3
- package/dist/{chunk-25KAGSPT.js.map → chunk-QMP3W5GA.js.map} +1 -1
- package/dist/chunk-QSWUSXRL.cjs +53 -0
- package/dist/chunk-QSWUSXRL.cjs.map +1 -0
- package/dist/{chunk-E4YES25K.js → chunk-QTTVIQJP.js} +4 -4
- package/dist/{chunk-E4YES25K.js.map → chunk-QTTVIQJP.js.map} +1 -1
- package/dist/{chunk-6HUWQLF2.cjs → chunk-R3OIZ2BM.cjs} +6 -6
- package/dist/{chunk-6HUWQLF2.cjs.map → chunk-R3OIZ2BM.cjs.map} +1 -1
- package/dist/{chunk-YBZQXZ6A.js → chunk-R5GOPHYB.js} +115 -15
- package/dist/chunk-R5GOPHYB.js.map +1 -0
- package/dist/chunk-RKTWLAJO.cjs +27 -0
- package/dist/chunk-RKTWLAJO.cjs.map +1 -0
- package/dist/chunk-S7FCFQ6X.js +255 -0
- package/dist/chunk-S7FCFQ6X.js.map +1 -0
- package/dist/{chunk-HEF4BIMA.js → chunk-SWPTF7QJ.js} +4 -4
- package/dist/{chunk-HEF4BIMA.js.map → chunk-SWPTF7QJ.js.map} +1 -1
- package/dist/{chunk-LKCPFD5X.js → chunk-SWVGHAYO.js} +5 -3
- package/dist/chunk-SWVGHAYO.js.map +1 -0
- package/dist/{chunk-ZAK276QF.js → chunk-UFB36LWU.js} +4 -4
- package/dist/{chunk-ZAK276QF.js.map → chunk-UFB36LWU.js.map} +1 -1
- package/dist/{chunk-LYWJAXPT.js → chunk-UMPZR56R.js} +3 -3
- package/dist/{chunk-LYWJAXPT.js.map → chunk-UMPZR56R.js.map} +1 -1
- package/dist/{chunk-G5NTNQ7W.cjs → chunk-XROE3CAS.cjs} +5 -3
- package/dist/chunk-XROE3CAS.cjs.map +1 -0
- package/dist/{chunk-MTUNORQB.cjs → chunk-ZLSPGMES.cjs} +11 -11
- package/dist/{chunk-MTUNORQB.cjs.map → chunk-ZLSPGMES.cjs.map} +1 -1
- package/dist/{chunk-MGJR5OXO.js → chunk-ZPPFPQPO.js} +5 -5
- package/dist/{chunk-MGJR5OXO.js.map → chunk-ZPPFPQPO.js.map} +1 -1
- package/dist/{chunk-FIYVKW7F.cjs → chunk-ZSTL4JEJ.cjs} +12 -12
- package/dist/{chunk-FIYVKW7F.cjs.map → chunk-ZSTL4JEJ.cjs.map} +1 -1
- package/dist/entries/apps.cjs +43 -42
- package/dist/entries/apps.js +8 -7
- package/dist/entries/credits.cjs +151 -150
- package/dist/entries/credits.d.cts +4 -1
- package/dist/entries/credits.d.ts +4 -1
- package/dist/entries/credits.js +8 -7
- package/dist/entries/entities.cjs +125 -125
- package/dist/entries/entities.d.cts +1 -1
- package/dist/entries/entities.d.ts +1 -1
- package/dist/entries/entities.js +1 -1
- package/dist/entries/llm-models.d.cts +1 -1
- package/dist/entries/llm-models.d.ts +1 -1
- package/dist/entries/model-catalog.cjs +127 -66
- package/dist/entries/model-catalog.d.cts +61 -9
- package/dist/entries/model-catalog.d.ts +61 -9
- package/dist/entries/model-catalog.js +5 -4
- package/dist/entries/models.cjs +320 -276
- package/dist/entries/models.d.cts +3 -3
- package/dist/entries/models.d.ts +3 -3
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +208 -207
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +10 -9
- package/dist/entries/pipeline.cjs +161 -149
- package/dist/entries/pipeline.d.cts +165 -26
- package/dist/entries/pipeline.d.ts +165 -26
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +116 -0
- package/dist/entries/runtime-config.cjs.map +1 -0
- package/dist/entries/runtime-config.d.cts +308 -0
- package/dist/entries/runtime-config.d.ts +308 -0
- package/dist/entries/runtime-config.js +3 -0
- package/dist/entries/runtime-config.js.map +1 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +117 -117
- package/dist/entries/video.js +4 -4
- package/dist/entries/workflow.cjs +150 -146
- package/dist/entries/workflow.d.cts +8 -1
- package/dist/entries/workflow.d.ts +8 -1
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +3172 -2942
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +23 -21
- package/dist/{model-catalog-Dm2UiwUe.d.cts → model-catalog-CwkG9xi-.d.cts} +40 -4
- package/dist/{model-catalog-Dm2UiwUe.d.ts → model-catalog-CwkG9xi-.d.ts} +40 -4
- package/dist/{model-constants-DZUGVDOw.d.cts → model-constants-BbsZSVTA.d.cts} +57 -13
- package/dist/{model-constants-DZUGVDOw.d.ts → model-constants-BbsZSVTA.d.ts} +57 -13
- package/package.json +6 -1
- package/src/__tests__/fixtures/root-exports.baseline.json +2 -0
- package/src/__tests__/gpt-image-2-6.test.ts +277 -0
- package/src/__tests__/gvp-supported-providers.test.ts +2 -0
- package/src/__tests__/image-model-roles.test.ts +28 -9
- package/src/__tests__/runtime-config.test.ts +398 -0
- package/src/__tests__/seedance-25-catalog-modes.test.ts +35 -0
- package/src/__tests__/voice-library-values.test.ts +24 -0
- package/src/credit-identifiers.ts +45 -1
- package/src/entries/model-catalog.ts +17 -0
- package/src/entries/models.ts +13 -0
- package/src/entries/runtime-config.ts +51 -0
- package/src/entries/workflow.ts +1 -1
- package/src/gpt-image-2-6.ts +104 -0
- package/src/image-model-roles.ts +31 -10
- package/src/index.ts +1 -0
- package/src/model-catalog.ts +341 -17
- package/src/model-constants.ts +149 -9
- package/src/node-default-mappings.ts +5 -0
- package/src/node-refs.ts +11 -0
- package/src/pipeline-types.ts +2 -0
- package/src/reference-board-templates.ts +2 -0
- package/src/runtime-config/contract.ts +492 -0
- package/src/runtime-config/worlds.ts +77 -0
- package/src/video-ui-defaults.ts +2 -1
- package/src/voices.ts +175 -2
- package/dist/chunk-2R74OU76.cjs.map +0 -1
- package/dist/chunk-3CHOZ573.js.map +0 -1
- package/dist/chunk-5DVDHL7Y.js.map +0 -1
- package/dist/chunk-ATWLKUAI.cjs +0 -34
- package/dist/chunk-ATWLKUAI.cjs.map +0 -1
- package/dist/chunk-DUL5ZLTJ.js +0 -29
- package/dist/chunk-DUL5ZLTJ.js.map +0 -1
- package/dist/chunk-G5NTNQ7W.cjs.map +0 -1
- package/dist/chunk-HD45Y7QU.cjs +0 -27
- package/dist/chunk-HD45Y7QU.cjs.map +0 -1
- package/dist/chunk-HZL7QMXK.js.map +0 -1
- package/dist/chunk-IPCWYKX5.cjs.map +0 -1
- package/dist/chunk-J4CVGAAV.cjs.map +0 -1
- package/dist/chunk-KM35K2M5.cjs.map +0 -1
- package/dist/chunk-LKCPFD5X.js.map +0 -1
- package/dist/chunk-N3WL6IOJ.js.map +0 -1
- package/dist/chunk-SEEQ3H22.cjs.map +0 -1
- package/dist/chunk-YBZQXZ6A.js.map +0 -1
- package/dist/chunk-ZKHQSG76.js.map +0 -1
|
@@ -62,14 +62,14 @@ function modelMakerOf(entry) {
|
|
|
62
62
|
}
|
|
63
63
|
var MODEL_RECOMMENDATIONS = [
|
|
64
64
|
// image
|
|
65
|
-
{ intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-
|
|
65
|
+
{ intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-6-flare"], note: "GPT Image 2 for exact copy, labels and non-Latin text; GPT Image 2.6 Flare for posters and layouts, and faster." },
|
|
66
66
|
// Notes name the RANKING, not the price — the price sits in the generated
|
|
67
67
|
// table directly below them and in `pricing`, so restating it here just
|
|
68
68
|
// creates a copy that rots (this one said "1 credit" long after it was 2).
|
|
69
69
|
{ intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
|
|
70
|
-
{ intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-
|
|
71
|
-
{ intent: "image edit / restyle", modelIds: ["gpt-image-2-
|
|
72
|
-
{ intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-
|
|
70
|
+
{ intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-6-sunburst", "imagen4-ultra"], note: "GPT Image 2 for characters and identity; GPT Image 2.6 Sunburst for wide or in-between ratios GPT Image 2 can't draw." },
|
|
71
|
+
{ intent: "image edit / restyle", modelIds: ["gpt-image-2-6-flare-i2i", "gpt-image-2-i2i", "seedream-5-pro-i2i"], note: "GPT Image 2.6 Flare changes what you ask and keeps the rest; GPT Image 2 i2i for identity-critical edits; Seedream 5 Pro for instruction-based edits." },
|
|
72
|
+
{ intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-6-sunburst"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
|
|
73
73
|
{ intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
|
|
74
74
|
// video
|
|
75
75
|
{ intent: "best cinematic video", modelIds: ["veo3", "kling-3.0", "seedance-2"], note: "VEO 3.1 Quality for premium narrative; Kling 3.0 for music-synced motion; Seedance 2 for reference-driven consistency." },
|
|
@@ -104,6 +104,43 @@ var GPT_IMAGE_2_5_RATIOS = [
|
|
|
104
104
|
"9:8",
|
|
105
105
|
"8:9"
|
|
106
106
|
];
|
|
107
|
+
var GPT_IMAGE_2_6_RATIOS = [
|
|
108
|
+
"auto",
|
|
109
|
+
"1:1",
|
|
110
|
+
"3:2",
|
|
111
|
+
"2:3",
|
|
112
|
+
"4:3",
|
|
113
|
+
"3:4",
|
|
114
|
+
"5:4",
|
|
115
|
+
"4:5",
|
|
116
|
+
"16:9",
|
|
117
|
+
"9:16",
|
|
118
|
+
"2:1",
|
|
119
|
+
"1:2",
|
|
120
|
+
"21:9",
|
|
121
|
+
"9:21",
|
|
122
|
+
"3:1",
|
|
123
|
+
"1:3"
|
|
124
|
+
];
|
|
125
|
+
var GPT_IMAGE_2_6_ECONOMY_RATIOS = ["auto", "1:1", "16:9", "9:16", "3:2", "2:3", "21:9", "4:3"];
|
|
126
|
+
var GPT_IMAGE_2_6_VALUE_LABELS = {
|
|
127
|
+
"3:2": "3:2 (Landscape)",
|
|
128
|
+
"2:3": "2:3 (Portrait)",
|
|
129
|
+
"5:4": "5:4 (Near-square)",
|
|
130
|
+
"4:5": "4:5 (Near-square)",
|
|
131
|
+
"2:1": "2:1 (Wide)",
|
|
132
|
+
"1:2": "1:2 (Vertical)",
|
|
133
|
+
"9:21": "9:21 (Ultra-tall)",
|
|
134
|
+
"3:1": "3:1 (Banner)",
|
|
135
|
+
"1:3": "1:3 (Vertical banner)",
|
|
136
|
+
// Auto takes the shared label; it is an aspect ratio on these models too.
|
|
137
|
+
"low": "Low",
|
|
138
|
+
"medium": "Medium",
|
|
139
|
+
"high": "High",
|
|
140
|
+
"xhigh": "Extra High",
|
|
141
|
+
"max": "Max"
|
|
142
|
+
};
|
|
143
|
+
var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
|
|
107
144
|
var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
108
145
|
var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
109
146
|
var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
|
|
@@ -338,8 +375,8 @@ var IMAGE_MODELS = {
|
|
|
338
375
|
maker: "black-forest-labs",
|
|
339
376
|
label: "Flux 2 Klein (Open)",
|
|
340
377
|
series: "Flux",
|
|
341
|
-
description: "Open Flux 2 9B from BFL \u2014 fast
|
|
342
|
-
useCases: ["realistic", "fast"
|
|
378
|
+
description: "Open Flux 2 9B from BFL \u2014 fast. Runs direct on Replicate.",
|
|
379
|
+
useCases: ["realistic", "fast"],
|
|
343
380
|
features: ["reference-image"],
|
|
344
381
|
aspectRatios: FLUX_RATIOS,
|
|
345
382
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -360,8 +397,8 @@ var IMAGE_MODELS = {
|
|
|
360
397
|
maker: "black-forest-labs",
|
|
361
398
|
label: "Kontext Multi (Open)",
|
|
362
399
|
series: "Flux",
|
|
363
|
-
description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images
|
|
364
|
-
useCases: ["edit", "multi-reference"
|
|
400
|
+
description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images.",
|
|
401
|
+
useCases: ["edit", "multi-reference"],
|
|
365
402
|
features: ["reference-image"],
|
|
366
403
|
aspectRatios: KONTEXT_RATIOS,
|
|
367
404
|
pricing: [{ identifier: "kontext-multi", credits: 30 }]
|
|
@@ -374,8 +411,8 @@ var IMAGE_MODELS = {
|
|
|
374
411
|
maker: "black-forest-labs",
|
|
375
412
|
label: "Flux 2 Pro (Safety Tolerance)",
|
|
376
413
|
series: "Flux",
|
|
377
|
-
description: "BFL Flux 2 Pro flagship via Replicate
|
|
378
|
-
useCases: ["realistic", "high-quality", "
|
|
414
|
+
description: "BFL Flux 2 Pro flagship via Replicate. Accepts up to 4 reference images.",
|
|
415
|
+
useCases: ["realistic", "high-quality", "reference"],
|
|
379
416
|
features: ["reference-image"],
|
|
380
417
|
aspectRatios: FLUX_RATIOS,
|
|
381
418
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -396,8 +433,8 @@ var IMAGE_MODELS = {
|
|
|
396
433
|
maker: "black-forest-labs",
|
|
397
434
|
label: "Flux 2 Max (Safety Tolerance)",
|
|
398
435
|
series: "Flux",
|
|
399
|
-
description: "BFL Flux 2 Max \u2014 even larger sibling of Pro via Replicate,
|
|
400
|
-
useCases: ["realistic", "high-quality", "
|
|
436
|
+
description: "BFL Flux 2 Max \u2014 even larger sibling of Pro via Replicate, up to 8 reference images. Variable pricing by MP and ref count.",
|
|
437
|
+
useCases: ["realistic", "high-quality", "multi-reference"],
|
|
401
438
|
features: ["reference-image"],
|
|
402
439
|
aspectRatios: FLUX_RATIOS,
|
|
403
440
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -505,6 +542,9 @@ var IMAGE_MODELS = {
|
|
|
505
542
|
features: ["reference-image"],
|
|
506
543
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
507
544
|
resolutions: ["1K", "2K", "4K"],
|
|
545
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
546
|
+
transparentResolution: "1K",
|
|
547
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
508
548
|
pricing: [
|
|
509
549
|
{ identifier: "gpt-image-2-5-flare", credits: 15, note: "1K default" },
|
|
510
550
|
{ identifier: "gpt-image-2-5-flare:2K", credits: 25, note: "2K" },
|
|
@@ -533,6 +573,9 @@ var IMAGE_MODELS = {
|
|
|
533
573
|
features: ["reference-image"],
|
|
534
574
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
535
575
|
resolutions: ["1K", "2K", "4K"],
|
|
576
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
577
|
+
transparentResolution: "1K",
|
|
578
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
536
579
|
pricing: [
|
|
537
580
|
{ identifier: "gpt-image-2-5-flare-i2i", credits: 15, note: "1K default" },
|
|
538
581
|
{ identifier: "gpt-image-2-5-flare-i2i:2K", credits: 25, note: "2K" },
|
|
@@ -561,6 +604,9 @@ var IMAGE_MODELS = {
|
|
|
561
604
|
features: ["reference-image"],
|
|
562
605
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
563
606
|
resolutions: ["1K", "2K", "4K"],
|
|
607
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
608
|
+
transparentResolution: "1K",
|
|
609
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
564
610
|
pricing: [
|
|
565
611
|
{ identifier: "gpt-image-2-5-sunburst", credits: 15, note: "1K default" },
|
|
566
612
|
{ identifier: "gpt-image-2-5-sunburst:2K", credits: 25, note: "2K" },
|
|
@@ -589,6 +635,9 @@ var IMAGE_MODELS = {
|
|
|
589
635
|
features: ["reference-image"],
|
|
590
636
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
591
637
|
resolutions: ["1K", "2K", "4K"],
|
|
638
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
639
|
+
transparentResolution: "1K",
|
|
640
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
592
641
|
pricing: [
|
|
593
642
|
{ identifier: "gpt-image-2-5-sunburst-i2i", credits: 15, note: "1K default" },
|
|
594
643
|
{ identifier: "gpt-image-2-5-sunburst-i2i:2K", credits: 25, note: "2K" },
|
|
@@ -604,6 +653,185 @@ var IMAGE_MODELS = {
|
|
|
604
653
|
},
|
|
605
654
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
606
655
|
},
|
|
656
|
+
"gpt-image-2-6-flare": {
|
|
657
|
+
id: "gpt-image-2-6-flare",
|
|
658
|
+
kind: "image",
|
|
659
|
+
modes: ["t2i"],
|
|
660
|
+
family: "OpenAI",
|
|
661
|
+
maker: "openai",
|
|
662
|
+
label: "GPT Image 2.6 Flare",
|
|
663
|
+
series: "GPT Image",
|
|
664
|
+
description: "Fast GPT Image 2.6 - pick it for speed: posters, product shots and quick iteration, with stronger layouts. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K.",
|
|
665
|
+
useCases: ["typography", "high-res", "general", "draft"],
|
|
666
|
+
features: ["reference-image"],
|
|
667
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
668
|
+
resolutions: ["1K", "2K", "4K"],
|
|
669
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
670
|
+
defaultQuality: "medium",
|
|
671
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
672
|
+
transparentResolution: "1K",
|
|
673
|
+
pricing: [
|
|
674
|
+
{ identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
|
|
675
|
+
{ identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
|
|
676
|
+
{ identifier: "gpt-image-2-6-flare:low:2K", credits: 23, note: "low, 2K" },
|
|
677
|
+
{ identifier: "gpt-image-2-6-flare:low:4K", credits: 38, note: "low, 4K" },
|
|
678
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K", credits: 20, note: "medium, 1K" },
|
|
679
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K", credits: 40, note: "medium, 2K" },
|
|
680
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K", credits: 67, note: "medium, 4K" },
|
|
681
|
+
{ identifier: "gpt-image-2-6-flare:high:1K", credits: 24, note: "high, 1K" },
|
|
682
|
+
{ identifier: "gpt-image-2-6-flare:high:2K", credits: 49, note: "high, 2K" },
|
|
683
|
+
{ identifier: "gpt-image-2-6-flare:high:4K", credits: 81, note: "high, 4K" },
|
|
684
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:1K", credits: 43, note: "extra high, 1K" },
|
|
685
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:2K", credits: 86, note: "extra high, 2K" },
|
|
686
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:4K", credits: 143, note: "extra high, 4K" },
|
|
687
|
+
{ identifier: "gpt-image-2-6-flare:max:1K", credits: 96, note: "max, 1K" },
|
|
688
|
+
{ identifier: "gpt-image-2-6-flare:max:2K", credits: 193, note: "max, 2K" },
|
|
689
|
+
{ identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
|
|
690
|
+
{ identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
691
|
+
{ identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
692
|
+
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
693
|
+
],
|
|
694
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
695
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
696
|
+
},
|
|
697
|
+
"gpt-image-2-6-flare-i2i": {
|
|
698
|
+
id: "gpt-image-2-6-flare-i2i",
|
|
699
|
+
kind: "image",
|
|
700
|
+
modes: ["i2i"],
|
|
701
|
+
family: "OpenAI",
|
|
702
|
+
maker: "openai",
|
|
703
|
+
label: "GPT Image 2.6 Flare (I2I)",
|
|
704
|
+
series: "GPT Image",
|
|
705
|
+
description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
|
|
706
|
+
useCases: ["edit", "high-res"],
|
|
707
|
+
features: ["reference-image"],
|
|
708
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
709
|
+
resolutions: ["1K", "2K", "4K"],
|
|
710
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
711
|
+
defaultQuality: "medium",
|
|
712
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
713
|
+
transparentResolution: "1K",
|
|
714
|
+
pricing: [
|
|
715
|
+
{ identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
|
|
716
|
+
{ identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
717
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
718
|
+
{ identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
719
|
+
{ identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
720
|
+
{ identifier: "gpt-image-2-6-flare-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" }
|
|
721
|
+
],
|
|
722
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
723
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
724
|
+
},
|
|
725
|
+
"gpt-image-2-6-sunburst": {
|
|
726
|
+
id: "gpt-image-2-6-sunburst",
|
|
727
|
+
kind: "image",
|
|
728
|
+
modes: ["t2i"],
|
|
729
|
+
family: "OpenAI",
|
|
730
|
+
maker: "openai",
|
|
731
|
+
label: "GPT Image 2.6 Sunburst",
|
|
732
|
+
series: "GPT Image",
|
|
733
|
+
description: "Precision GPT Image 2.6 - pick it when every detail counts: the strongest consistency across edits and the finest detail. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K.",
|
|
734
|
+
useCases: ["typography", "high-res", "general"],
|
|
735
|
+
features: ["reference-image"],
|
|
736
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
737
|
+
resolutions: ["1K", "2K", "4K"],
|
|
738
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
739
|
+
defaultQuality: "medium",
|
|
740
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
741
|
+
transparentResolution: "1K",
|
|
742
|
+
pricing: [
|
|
743
|
+
{ identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
|
|
744
|
+
{ identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
|
|
745
|
+
{ identifier: "gpt-image-2-6-sunburst:low:2K", credits: 23, note: "low, 2K" },
|
|
746
|
+
{ identifier: "gpt-image-2-6-sunburst:low:4K", credits: 38, note: "low, 4K" },
|
|
747
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K", credits: 20, note: "medium, 1K" },
|
|
748
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K", credits: 40, note: "medium, 2K" },
|
|
749
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K", credits: 67, note: "medium, 4K" },
|
|
750
|
+
{ identifier: "gpt-image-2-6-sunburst:high:1K", credits: 24, note: "high, 1K" },
|
|
751
|
+
{ identifier: "gpt-image-2-6-sunburst:high:2K", credits: 49, note: "high, 2K" },
|
|
752
|
+
{ identifier: "gpt-image-2-6-sunburst:high:4K", credits: 81, note: "high, 4K" },
|
|
753
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:1K", credits: 43, note: "extra high, 1K" },
|
|
754
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:2K", credits: 86, note: "extra high, 2K" },
|
|
755
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:4K", credits: 143, note: "extra high, 4K" },
|
|
756
|
+
{ identifier: "gpt-image-2-6-sunburst:max:1K", credits: 96, note: "max, 1K" },
|
|
757
|
+
{ identifier: "gpt-image-2-6-sunburst:max:2K", credits: 193, note: "max, 2K" },
|
|
758
|
+
{ identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
|
|
759
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
760
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
761
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
762
|
+
],
|
|
763
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
764
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
765
|
+
},
|
|
766
|
+
"gpt-image-2-6-sunburst-i2i": {
|
|
767
|
+
id: "gpt-image-2-6-sunburst-i2i",
|
|
768
|
+
kind: "image",
|
|
769
|
+
modes: ["i2i"],
|
|
770
|
+
family: "OpenAI",
|
|
771
|
+
maker: "openai",
|
|
772
|
+
label: "GPT Image 2.6 Sunburst (I2I)",
|
|
773
|
+
series: "GPT Image",
|
|
774
|
+
description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
|
|
775
|
+
useCases: ["edit", "high-res"],
|
|
776
|
+
features: ["reference-image"],
|
|
777
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
778
|
+
resolutions: ["1K", "2K", "4K"],
|
|
779
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
780
|
+
defaultQuality: "medium",
|
|
781
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
782
|
+
transparentResolution: "1K",
|
|
783
|
+
pricing: [
|
|
784
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
|
|
785
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
786
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
787
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
788
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
789
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" }
|
|
790
|
+
],
|
|
791
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
792
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
793
|
+
},
|
|
794
|
+
// Economy is withheld since 2026-11-09: KIE answers every Economy request with
|
|
795
|
+
// an internal error, on its own playground too. Migration 611 switched the two
|
|
796
|
+
// ids off (`model_pricing.is_enabled`), which hides them from every menu and
|
|
797
|
+
// refuses a run. Turning the two rows on at /admin/models brings them back;
|
|
798
|
+
// `docsHidden` keeps them out of the docs until it is removed here.
|
|
799
|
+
"gpt-image-2-6-economy": {
|
|
800
|
+
id: "gpt-image-2-6-economy",
|
|
801
|
+
kind: "image",
|
|
802
|
+
modes: ["t2i"],
|
|
803
|
+
family: "OpenAI",
|
|
804
|
+
maker: "openai",
|
|
805
|
+
label: "GPT Image 2.6 Economy",
|
|
806
|
+
docsHidden: true,
|
|
807
|
+
series: "GPT Image",
|
|
808
|
+
description: "The same GPT Image 2.6 at a flat low price, 1K only - pick it for volume.",
|
|
809
|
+
useCases: ["general", "draft"],
|
|
810
|
+
features: ["reference-image"],
|
|
811
|
+
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
812
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
813
|
+
pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
|
|
814
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
815
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
816
|
+
},
|
|
817
|
+
"gpt-image-2-6-economy-i2i": {
|
|
818
|
+
id: "gpt-image-2-6-economy-i2i",
|
|
819
|
+
kind: "image",
|
|
820
|
+
modes: ["i2i"],
|
|
821
|
+
family: "OpenAI",
|
|
822
|
+
maker: "openai",
|
|
823
|
+
label: "GPT Image 2.6 Economy (I2I)",
|
|
824
|
+
docsHidden: true,
|
|
825
|
+
series: "GPT Image",
|
|
826
|
+
description: "Flat-price GPT Image 2.6 edits, 1K only, up to 16 input images - pick it for volume.",
|
|
827
|
+
useCases: ["edit", "draft"],
|
|
828
|
+
features: ["reference-image"],
|
|
829
|
+
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
830
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
831
|
+
pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
|
|
832
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
833
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
834
|
+
},
|
|
607
835
|
// ── Ideogram ──
|
|
608
836
|
// Ideogram models use a `rendering_speed` (TURBO / BALANCED / QUALITY)
|
|
609
837
|
// dimension that's distinct from the `quality` lever — frontend exposes
|
|
@@ -1315,6 +1543,33 @@ var VIDEO_MODELS = {
|
|
|
1315
1543
|
{ identifier: "gemini-omni-flash:4k:vref", credits: 630, note: "video-edit 4K" }
|
|
1316
1544
|
]
|
|
1317
1545
|
},
|
|
1546
|
+
"gemini-omni-flash-1-2": {
|
|
1547
|
+
id: "gemini-omni-flash-1-2",
|
|
1548
|
+
kind: "video",
|
|
1549
|
+
modes: ["i2v", "t2v"],
|
|
1550
|
+
// V2V is served via the i2v handle, not a catalog mode
|
|
1551
|
+
family: "Google",
|
|
1552
|
+
maker: "google",
|
|
1553
|
+
label: "Gemini Omni Flash 1.2",
|
|
1554
|
+
series: "Gemini",
|
|
1555
|
+
description: "Google Gemini Omni Flash 1.2 \u2014 3\u201315s video with native sound, from 360p to 4K: from text, up to 6 reference images, exact first and last frames, or a video edit. Priced per second.",
|
|
1556
|
+
useCases: ["cinematic", "fast"],
|
|
1557
|
+
features: ["audio", "reference-image", "reference-to-video", "end-frame"],
|
|
1558
|
+
aspectRatios: ["16:9", "9:16", "auto"],
|
|
1559
|
+
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
1560
|
+
defaultResolution: "720p",
|
|
1561
|
+
unlistedResolutionRendersAs: "720p",
|
|
1562
|
+
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1563
|
+
defaultDuration: 8,
|
|
1564
|
+
pricing: [
|
|
1565
|
+
{ identifier: "gemini-omni-flash-1-2", credits: 180, note: "default 8s 720p \u2014 see :Ns:res variants" },
|
|
1566
|
+
{ identifier: "gemini-omni-flash-1-2:3s:360p", credits: 30, note: "3s 360p (min)" },
|
|
1567
|
+
{ identifier: "gemini-omni-flash-1-2:8s:720p", credits: 180, note: "8s 720p (the default tier)" },
|
|
1568
|
+
{ identifier: "gemini-omni-flash-1-2:8s:1080p", credits: 200, note: "8s 1080p" },
|
|
1569
|
+
{ identifier: "gemini-omni-flash-1-2:8s:4k", credits: 440, note: "8s 4K" },
|
|
1570
|
+
{ identifier: "gemini-omni-flash-1-2:15s:4k", credits: 830, note: "15s 4K (max)" }
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1318
1573
|
// ── Kling ──
|
|
1319
1574
|
"kling": {
|
|
1320
1575
|
id: "kling",
|
|
@@ -1633,7 +1888,10 @@ var VIDEO_MODELS = {
|
|
|
1633
1888
|
"seedance-2-5": {
|
|
1634
1889
|
id: "seedance-2-5",
|
|
1635
1890
|
kind: "video",
|
|
1636
|
-
|
|
1891
|
+
// `v2v`: it edits a clip by instruction on the same route as the other edit
|
|
1892
|
+
// models (/v1/video-to-video, through its reference lane, in the clip's own
|
|
1893
|
+
// ratio and length). It still makes a clip from words or a picture.
|
|
1894
|
+
modes: ["i2v", "t2v", "v2v"],
|
|
1637
1895
|
family: "Bytedance",
|
|
1638
1896
|
maker: "bytedance",
|
|
1639
1897
|
label: "Seedance 2.5",
|
|
@@ -3229,6 +3487,8 @@ function validateModelInput(modelId, input) {
|
|
|
3229
3487
|
return null;
|
|
3230
3488
|
}
|
|
3231
3489
|
function defaultResolutionFor(modelId) {
|
|
3490
|
+
const declared = MODEL_CATALOG[modelId]?.defaultResolution;
|
|
3491
|
+
if (declared) return declared;
|
|
3232
3492
|
if (!isFlux2Model(modelId)) return void 0;
|
|
3233
3493
|
return modelId === "flux-2-klein" ? "1 MP" : "2 MP";
|
|
3234
3494
|
}
|
|
@@ -3317,7 +3577,8 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3317
3577
|
m.resolutions,
|
|
3318
3578
|
defaultResolutionFor(modelId)
|
|
3319
3579
|
);
|
|
3320
|
-
out.quality = snap("quality", input.quality, m.qualities);
|
|
3580
|
+
out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
|
|
3581
|
+
out.background = snap("background", input.background, m.backgrounds);
|
|
3321
3582
|
out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
|
|
3322
3583
|
if (modelId === "gpt-image-2" || modelId === "gpt-image-2-i2i") {
|
|
3323
3584
|
if (out.aspectRatio === "auto" && out.resolution !== void 0 && out.resolution !== "1K") {
|
|
@@ -3338,6 +3599,26 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3338
3599
|
out.resolution = "2K";
|
|
3339
3600
|
}
|
|
3340
3601
|
}
|
|
3602
|
+
if (out.background === "transparent" && m.transparentResolution !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
|
|
3603
|
+
adjustments.push({
|
|
3604
|
+
field: "resolution",
|
|
3605
|
+
from: out.resolution,
|
|
3606
|
+
to: m.transparentResolution,
|
|
3607
|
+
reason: `${m.label} only renders a transparent background at ${m.transparentResolution}.`
|
|
3608
|
+
});
|
|
3609
|
+
out.resolution = m.transparentResolution;
|
|
3610
|
+
}
|
|
3611
|
+
if (m.backgroundOnlyAtTransparentResolution && out.background !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
|
|
3612
|
+
if (out.background !== "auto") {
|
|
3613
|
+
adjustments.push({
|
|
3614
|
+
field: "background",
|
|
3615
|
+
from: out.background,
|
|
3616
|
+
to: void 0,
|
|
3617
|
+
reason: `${m.label} only takes a background setting at ${m.transparentResolution}.`
|
|
3618
|
+
});
|
|
3619
|
+
}
|
|
3620
|
+
out.background = void 0;
|
|
3621
|
+
}
|
|
3341
3622
|
return out;
|
|
3342
3623
|
}
|
|
3343
3624
|
var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
|
|
@@ -3470,6 +3751,7 @@ var MODEL_VALUE_LABELS = {
|
|
|
3470
3751
|
"2k": "2K",
|
|
3471
3752
|
"8K": "8K (Ultra)",
|
|
3472
3753
|
// qualities
|
|
3754
|
+
"low": "Low (Fast)",
|
|
3473
3755
|
"medium": "Medium (Balanced)",
|
|
3474
3756
|
"high": "High (Detailed)",
|
|
3475
3757
|
"basic": "Basic (2K)",
|
|
@@ -3557,6 +3839,15 @@ function qualityOptionsByKind(kind) {
|
|
|
3557
3839
|
}
|
|
3558
3840
|
return out;
|
|
3559
3841
|
}
|
|
3842
|
+
function backgroundOptionsByKind(kind) {
|
|
3843
|
+
const out = {};
|
|
3844
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
3845
|
+
if (m.kind !== kind) continue;
|
|
3846
|
+
if (!m.backgrounds) continue;
|
|
3847
|
+
out[m.id] = m.backgrounds.map((v) => ({ value: v, label: decorateLabel(m, v) }));
|
|
3848
|
+
}
|
|
3849
|
+
return out;
|
|
3850
|
+
}
|
|
3560
3851
|
function buildModelMenu(kind, allowlist) {
|
|
3561
3852
|
const resByModel = resolutionOptionsByKind(kind);
|
|
3562
3853
|
const arByModel = aspectRatioOptionsByKind(kind);
|
|
@@ -3587,7 +3878,7 @@ function creditRangesAll() {
|
|
|
3587
3878
|
}
|
|
3588
3879
|
function modelIdsByKindMode(kind, modes, opts = {}) {
|
|
3589
3880
|
const includeHidden = opts.includeHidden === true;
|
|
3590
|
-
const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).map((m) => m.id).sort();
|
|
3881
|
+
const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).filter((m) => !m.docsHidden).map((m) => m.id).sort();
|
|
3591
3882
|
if (ids.length === 0) {
|
|
3592
3883
|
throw new Error(
|
|
3593
3884
|
`modelIdsByKindMode: no models match kind=${kind ?? "*"} modes=[${modes.join(",")}]`
|
|
@@ -3596,6 +3887,6 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
|
|
|
3596
3887
|
return ids;
|
|
3597
3888
|
}
|
|
3598
3889
|
|
|
3599
|
-
export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionOptionsByKind, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput };
|
|
3600
|
-
//# sourceMappingURL=chunk-
|
|
3601
|
-
//# sourceMappingURL=chunk-
|
|
3890
|
+
export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionOptionsByKind, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput };
|
|
3891
|
+
//# sourceMappingURL=chunk-IQS3WQXQ.js.map
|
|
3892
|
+
//# sourceMappingURL=chunk-IQS3WQXQ.js.map
|