@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
|
@@ -64,14 +64,14 @@ function modelMakerOf(entry) {
|
|
|
64
64
|
}
|
|
65
65
|
var MODEL_RECOMMENDATIONS = [
|
|
66
66
|
// image
|
|
67
|
-
{ intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-
|
|
67
|
+
{ 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." },
|
|
68
68
|
// Notes name the RANKING, not the price — the price sits in the generated
|
|
69
69
|
// table directly below them and in `pricing`, so restating it here just
|
|
70
70
|
// creates a copy that rots (this one said "1 credit" long after it was 2).
|
|
71
71
|
{ intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
|
|
72
|
-
{ intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-
|
|
73
|
-
{ intent: "image edit / restyle", modelIds: ["gpt-image-2-
|
|
74
|
-
{ intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-
|
|
72
|
+
{ 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." },
|
|
73
|
+
{ 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." },
|
|
74
|
+
{ 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)." },
|
|
75
75
|
{ intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
|
|
76
76
|
// video
|
|
77
77
|
{ 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." },
|
|
@@ -106,6 +106,43 @@ var GPT_IMAGE_2_5_RATIOS = [
|
|
|
106
106
|
"9:8",
|
|
107
107
|
"8:9"
|
|
108
108
|
];
|
|
109
|
+
var GPT_IMAGE_2_6_RATIOS = [
|
|
110
|
+
"auto",
|
|
111
|
+
"1:1",
|
|
112
|
+
"3:2",
|
|
113
|
+
"2:3",
|
|
114
|
+
"4:3",
|
|
115
|
+
"3:4",
|
|
116
|
+
"5:4",
|
|
117
|
+
"4:5",
|
|
118
|
+
"16:9",
|
|
119
|
+
"9:16",
|
|
120
|
+
"2:1",
|
|
121
|
+
"1:2",
|
|
122
|
+
"21:9",
|
|
123
|
+
"9:21",
|
|
124
|
+
"3:1",
|
|
125
|
+
"1:3"
|
|
126
|
+
];
|
|
127
|
+
var GPT_IMAGE_2_6_ECONOMY_RATIOS = ["auto", "1:1", "16:9", "9:16", "3:2", "2:3", "21:9", "4:3"];
|
|
128
|
+
var GPT_IMAGE_2_6_VALUE_LABELS = {
|
|
129
|
+
"3:2": "3:2 (Landscape)",
|
|
130
|
+
"2:3": "2:3 (Portrait)",
|
|
131
|
+
"5:4": "5:4 (Near-square)",
|
|
132
|
+
"4:5": "4:5 (Near-square)",
|
|
133
|
+
"2:1": "2:1 (Wide)",
|
|
134
|
+
"1:2": "1:2 (Vertical)",
|
|
135
|
+
"9:21": "9:21 (Ultra-tall)",
|
|
136
|
+
"3:1": "3:1 (Banner)",
|
|
137
|
+
"1:3": "1:3 (Vertical banner)",
|
|
138
|
+
// Auto takes the shared label; it is an aspect ratio on these models too.
|
|
139
|
+
"low": "Low",
|
|
140
|
+
"medium": "Medium",
|
|
141
|
+
"high": "High",
|
|
142
|
+
"xhigh": "Extra High",
|
|
143
|
+
"max": "Max"
|
|
144
|
+
};
|
|
145
|
+
var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
|
|
109
146
|
var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
110
147
|
var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
111
148
|
var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
|
|
@@ -340,8 +377,8 @@ var IMAGE_MODELS = {
|
|
|
340
377
|
maker: "black-forest-labs",
|
|
341
378
|
label: "Flux 2 Klein (Open)",
|
|
342
379
|
series: "Flux",
|
|
343
|
-
description: "Open Flux 2 9B from BFL \u2014 fast
|
|
344
|
-
useCases: ["realistic", "fast"
|
|
380
|
+
description: "Open Flux 2 9B from BFL \u2014 fast. Runs direct on Replicate.",
|
|
381
|
+
useCases: ["realistic", "fast"],
|
|
345
382
|
features: ["reference-image"],
|
|
346
383
|
aspectRatios: FLUX_RATIOS,
|
|
347
384
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -362,8 +399,8 @@ var IMAGE_MODELS = {
|
|
|
362
399
|
maker: "black-forest-labs",
|
|
363
400
|
label: "Kontext Multi (Open)",
|
|
364
401
|
series: "Flux",
|
|
365
|
-
description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images
|
|
366
|
-
useCases: ["edit", "multi-reference"
|
|
402
|
+
description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images.",
|
|
403
|
+
useCases: ["edit", "multi-reference"],
|
|
367
404
|
features: ["reference-image"],
|
|
368
405
|
aspectRatios: KONTEXT_RATIOS,
|
|
369
406
|
pricing: [{ identifier: "kontext-multi", credits: 30 }]
|
|
@@ -376,8 +413,8 @@ var IMAGE_MODELS = {
|
|
|
376
413
|
maker: "black-forest-labs",
|
|
377
414
|
label: "Flux 2 Pro (Safety Tolerance)",
|
|
378
415
|
series: "Flux",
|
|
379
|
-
description: "BFL Flux 2 Pro flagship via Replicate
|
|
380
|
-
useCases: ["realistic", "high-quality", "
|
|
416
|
+
description: "BFL Flux 2 Pro flagship via Replicate. Accepts up to 4 reference images.",
|
|
417
|
+
useCases: ["realistic", "high-quality", "reference"],
|
|
381
418
|
features: ["reference-image"],
|
|
382
419
|
aspectRatios: FLUX_RATIOS,
|
|
383
420
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -398,8 +435,8 @@ var IMAGE_MODELS = {
|
|
|
398
435
|
maker: "black-forest-labs",
|
|
399
436
|
label: "Flux 2 Max (Safety Tolerance)",
|
|
400
437
|
series: "Flux",
|
|
401
|
-
description: "BFL Flux 2 Max \u2014 even larger sibling of Pro via Replicate,
|
|
402
|
-
useCases: ["realistic", "high-quality", "
|
|
438
|
+
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.",
|
|
439
|
+
useCases: ["realistic", "high-quality", "multi-reference"],
|
|
403
440
|
features: ["reference-image"],
|
|
404
441
|
aspectRatios: FLUX_RATIOS,
|
|
405
442
|
resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
|
|
@@ -507,6 +544,9 @@ var IMAGE_MODELS = {
|
|
|
507
544
|
features: ["reference-image"],
|
|
508
545
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
509
546
|
resolutions: ["1K", "2K", "4K"],
|
|
547
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
548
|
+
transparentResolution: "1K",
|
|
549
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
510
550
|
pricing: [
|
|
511
551
|
{ identifier: "gpt-image-2-5-flare", credits: 15, note: "1K default" },
|
|
512
552
|
{ identifier: "gpt-image-2-5-flare:2K", credits: 25, note: "2K" },
|
|
@@ -535,6 +575,9 @@ var IMAGE_MODELS = {
|
|
|
535
575
|
features: ["reference-image"],
|
|
536
576
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
537
577
|
resolutions: ["1K", "2K", "4K"],
|
|
578
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
579
|
+
transparentResolution: "1K",
|
|
580
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
538
581
|
pricing: [
|
|
539
582
|
{ identifier: "gpt-image-2-5-flare-i2i", credits: 15, note: "1K default" },
|
|
540
583
|
{ identifier: "gpt-image-2-5-flare-i2i:2K", credits: 25, note: "2K" },
|
|
@@ -563,6 +606,9 @@ var IMAGE_MODELS = {
|
|
|
563
606
|
features: ["reference-image"],
|
|
564
607
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
565
608
|
resolutions: ["1K", "2K", "4K"],
|
|
609
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
610
|
+
transparentResolution: "1K",
|
|
611
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
566
612
|
pricing: [
|
|
567
613
|
{ identifier: "gpt-image-2-5-sunburst", credits: 15, note: "1K default" },
|
|
568
614
|
{ identifier: "gpt-image-2-5-sunburst:2K", credits: 25, note: "2K" },
|
|
@@ -591,6 +637,9 @@ var IMAGE_MODELS = {
|
|
|
591
637
|
features: ["reference-image"],
|
|
592
638
|
aspectRatios: GPT_IMAGE_2_5_RATIOS,
|
|
593
639
|
resolutions: ["1K", "2K", "4K"],
|
|
640
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
641
|
+
transparentResolution: "1K",
|
|
642
|
+
backgroundOnlyAtTransparentResolution: true,
|
|
594
643
|
pricing: [
|
|
595
644
|
{ identifier: "gpt-image-2-5-sunburst-i2i", credits: 15, note: "1K default" },
|
|
596
645
|
{ identifier: "gpt-image-2-5-sunburst-i2i:2K", credits: 25, note: "2K" },
|
|
@@ -606,6 +655,185 @@ var IMAGE_MODELS = {
|
|
|
606
655
|
},
|
|
607
656
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
608
657
|
},
|
|
658
|
+
"gpt-image-2-6-flare": {
|
|
659
|
+
id: "gpt-image-2-6-flare",
|
|
660
|
+
kind: "image",
|
|
661
|
+
modes: ["t2i"],
|
|
662
|
+
family: "OpenAI",
|
|
663
|
+
maker: "openai",
|
|
664
|
+
label: "GPT Image 2.6 Flare",
|
|
665
|
+
series: "GPT Image",
|
|
666
|
+
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.",
|
|
667
|
+
useCases: ["typography", "high-res", "general", "draft"],
|
|
668
|
+
features: ["reference-image"],
|
|
669
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
670
|
+
resolutions: ["1K", "2K", "4K"],
|
|
671
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
672
|
+
defaultQuality: "medium",
|
|
673
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
674
|
+
transparentResolution: "1K",
|
|
675
|
+
pricing: [
|
|
676
|
+
{ identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
|
|
677
|
+
{ identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
|
|
678
|
+
{ identifier: "gpt-image-2-6-flare:low:2K", credits: 23, note: "low, 2K" },
|
|
679
|
+
{ identifier: "gpt-image-2-6-flare:low:4K", credits: 38, note: "low, 4K" },
|
|
680
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K", credits: 20, note: "medium, 1K" },
|
|
681
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K", credits: 40, note: "medium, 2K" },
|
|
682
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K", credits: 67, note: "medium, 4K" },
|
|
683
|
+
{ identifier: "gpt-image-2-6-flare:high:1K", credits: 24, note: "high, 1K" },
|
|
684
|
+
{ identifier: "gpt-image-2-6-flare:high:2K", credits: 49, note: "high, 2K" },
|
|
685
|
+
{ identifier: "gpt-image-2-6-flare:high:4K", credits: 81, note: "high, 4K" },
|
|
686
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:1K", credits: 43, note: "extra high, 1K" },
|
|
687
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:2K", credits: 86, note: "extra high, 2K" },
|
|
688
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:4K", credits: 143, note: "extra high, 4K" },
|
|
689
|
+
{ identifier: "gpt-image-2-6-flare:max:1K", credits: 96, note: "max, 1K" },
|
|
690
|
+
{ identifier: "gpt-image-2-6-flare:max:2K", credits: 193, note: "max, 2K" },
|
|
691
|
+
{ identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
|
|
692
|
+
{ identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
693
|
+
{ identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
694
|
+
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
695
|
+
],
|
|
696
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
697
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
698
|
+
},
|
|
699
|
+
"gpt-image-2-6-flare-i2i": {
|
|
700
|
+
id: "gpt-image-2-6-flare-i2i",
|
|
701
|
+
kind: "image",
|
|
702
|
+
modes: ["i2i"],
|
|
703
|
+
family: "OpenAI",
|
|
704
|
+
maker: "openai",
|
|
705
|
+
label: "GPT Image 2.6 Flare (I2I)",
|
|
706
|
+
series: "GPT Image",
|
|
707
|
+
description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
|
|
708
|
+
useCases: ["edit", "high-res"],
|
|
709
|
+
features: ["reference-image"],
|
|
710
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
711
|
+
resolutions: ["1K", "2K", "4K"],
|
|
712
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
713
|
+
defaultQuality: "medium",
|
|
714
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
715
|
+
transparentResolution: "1K",
|
|
716
|
+
pricing: [
|
|
717
|
+
{ identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
|
|
718
|
+
{ identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
719
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
720
|
+
{ identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
721
|
+
{ identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
722
|
+
{ 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" }
|
|
723
|
+
],
|
|
724
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
725
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
726
|
+
},
|
|
727
|
+
"gpt-image-2-6-sunburst": {
|
|
728
|
+
id: "gpt-image-2-6-sunburst",
|
|
729
|
+
kind: "image",
|
|
730
|
+
modes: ["t2i"],
|
|
731
|
+
family: "OpenAI",
|
|
732
|
+
maker: "openai",
|
|
733
|
+
label: "GPT Image 2.6 Sunburst",
|
|
734
|
+
series: "GPT Image",
|
|
735
|
+
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.",
|
|
736
|
+
useCases: ["typography", "high-res", "general"],
|
|
737
|
+
features: ["reference-image"],
|
|
738
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
739
|
+
resolutions: ["1K", "2K", "4K"],
|
|
740
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
741
|
+
defaultQuality: "medium",
|
|
742
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
743
|
+
transparentResolution: "1K",
|
|
744
|
+
pricing: [
|
|
745
|
+
{ identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
|
|
746
|
+
{ identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
|
|
747
|
+
{ identifier: "gpt-image-2-6-sunburst:low:2K", credits: 23, note: "low, 2K" },
|
|
748
|
+
{ identifier: "gpt-image-2-6-sunburst:low:4K", credits: 38, note: "low, 4K" },
|
|
749
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K", credits: 20, note: "medium, 1K" },
|
|
750
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K", credits: 40, note: "medium, 2K" },
|
|
751
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K", credits: 67, note: "medium, 4K" },
|
|
752
|
+
{ identifier: "gpt-image-2-6-sunburst:high:1K", credits: 24, note: "high, 1K" },
|
|
753
|
+
{ identifier: "gpt-image-2-6-sunburst:high:2K", credits: 49, note: "high, 2K" },
|
|
754
|
+
{ identifier: "gpt-image-2-6-sunburst:high:4K", credits: 81, note: "high, 4K" },
|
|
755
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:1K", credits: 43, note: "extra high, 1K" },
|
|
756
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:2K", credits: 86, note: "extra high, 2K" },
|
|
757
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:4K", credits: 143, note: "extra high, 4K" },
|
|
758
|
+
{ identifier: "gpt-image-2-6-sunburst:max:1K", credits: 96, note: "max, 1K" },
|
|
759
|
+
{ identifier: "gpt-image-2-6-sunburst:max:2K", credits: 193, note: "max, 2K" },
|
|
760
|
+
{ identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
|
|
761
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
762
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
763
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
764
|
+
],
|
|
765
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
766
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
767
|
+
},
|
|
768
|
+
"gpt-image-2-6-sunburst-i2i": {
|
|
769
|
+
id: "gpt-image-2-6-sunburst-i2i",
|
|
770
|
+
kind: "image",
|
|
771
|
+
modes: ["i2i"],
|
|
772
|
+
family: "OpenAI",
|
|
773
|
+
maker: "openai",
|
|
774
|
+
label: "GPT Image 2.6 Sunburst (I2I)",
|
|
775
|
+
series: "GPT Image",
|
|
776
|
+
description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
|
|
777
|
+
useCases: ["edit", "high-res"],
|
|
778
|
+
features: ["reference-image"],
|
|
779
|
+
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
780
|
+
resolutions: ["1K", "2K", "4K"],
|
|
781
|
+
qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
|
|
782
|
+
defaultQuality: "medium",
|
|
783
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
784
|
+
transparentResolution: "1K",
|
|
785
|
+
pricing: [
|
|
786
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
|
|
787
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
788
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
789
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
790
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
791
|
+
{ 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" }
|
|
792
|
+
],
|
|
793
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
794
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
795
|
+
},
|
|
796
|
+
// Economy is withheld since 2026-11-09: KIE answers every Economy request with
|
|
797
|
+
// an internal error, on its own playground too. Migration 611 switched the two
|
|
798
|
+
// ids off (`model_pricing.is_enabled`), which hides them from every menu and
|
|
799
|
+
// refuses a run. Turning the two rows on at /admin/models brings them back;
|
|
800
|
+
// `docsHidden` keeps them out of the docs until it is removed here.
|
|
801
|
+
"gpt-image-2-6-economy": {
|
|
802
|
+
id: "gpt-image-2-6-economy",
|
|
803
|
+
kind: "image",
|
|
804
|
+
modes: ["t2i"],
|
|
805
|
+
family: "OpenAI",
|
|
806
|
+
maker: "openai",
|
|
807
|
+
label: "GPT Image 2.6 Economy",
|
|
808
|
+
docsHidden: true,
|
|
809
|
+
series: "GPT Image",
|
|
810
|
+
description: "The same GPT Image 2.6 at a flat low price, 1K only - pick it for volume.",
|
|
811
|
+
useCases: ["general", "draft"],
|
|
812
|
+
features: ["reference-image"],
|
|
813
|
+
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
814
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
815
|
+
pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
|
|
816
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
817
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
818
|
+
},
|
|
819
|
+
"gpt-image-2-6-economy-i2i": {
|
|
820
|
+
id: "gpt-image-2-6-economy-i2i",
|
|
821
|
+
kind: "image",
|
|
822
|
+
modes: ["i2i"],
|
|
823
|
+
family: "OpenAI",
|
|
824
|
+
maker: "openai",
|
|
825
|
+
label: "GPT Image 2.6 Economy (I2I)",
|
|
826
|
+
docsHidden: true,
|
|
827
|
+
series: "GPT Image",
|
|
828
|
+
description: "Flat-price GPT Image 2.6 edits, 1K only, up to 16 input images - pick it for volume.",
|
|
829
|
+
useCases: ["edit", "draft"],
|
|
830
|
+
features: ["reference-image"],
|
|
831
|
+
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
832
|
+
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
833
|
+
pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
|
|
834
|
+
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
835
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
836
|
+
},
|
|
609
837
|
// ── Ideogram ──
|
|
610
838
|
// Ideogram models use a `rendering_speed` (TURBO / BALANCED / QUALITY)
|
|
611
839
|
// dimension that's distinct from the `quality` lever — frontend exposes
|
|
@@ -1317,6 +1545,33 @@ var VIDEO_MODELS = {
|
|
|
1317
1545
|
{ identifier: "gemini-omni-flash:4k:vref", credits: 630, note: "video-edit 4K" }
|
|
1318
1546
|
]
|
|
1319
1547
|
},
|
|
1548
|
+
"gemini-omni-flash-1-2": {
|
|
1549
|
+
id: "gemini-omni-flash-1-2",
|
|
1550
|
+
kind: "video",
|
|
1551
|
+
modes: ["i2v", "t2v"],
|
|
1552
|
+
// V2V is served via the i2v handle, not a catalog mode
|
|
1553
|
+
family: "Google",
|
|
1554
|
+
maker: "google",
|
|
1555
|
+
label: "Gemini Omni Flash 1.2",
|
|
1556
|
+
series: "Gemini",
|
|
1557
|
+
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.",
|
|
1558
|
+
useCases: ["cinematic", "fast"],
|
|
1559
|
+
features: ["audio", "reference-image", "reference-to-video", "end-frame"],
|
|
1560
|
+
aspectRatios: ["16:9", "9:16", "auto"],
|
|
1561
|
+
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
1562
|
+
defaultResolution: "720p",
|
|
1563
|
+
unlistedResolutionRendersAs: "720p",
|
|
1564
|
+
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1565
|
+
defaultDuration: 8,
|
|
1566
|
+
pricing: [
|
|
1567
|
+
{ identifier: "gemini-omni-flash-1-2", credits: 180, note: "default 8s 720p \u2014 see :Ns:res variants" },
|
|
1568
|
+
{ identifier: "gemini-omni-flash-1-2:3s:360p", credits: 30, note: "3s 360p (min)" },
|
|
1569
|
+
{ identifier: "gemini-omni-flash-1-2:8s:720p", credits: 180, note: "8s 720p (the default tier)" },
|
|
1570
|
+
{ identifier: "gemini-omni-flash-1-2:8s:1080p", credits: 200, note: "8s 1080p" },
|
|
1571
|
+
{ identifier: "gemini-omni-flash-1-2:8s:4k", credits: 440, note: "8s 4K" },
|
|
1572
|
+
{ identifier: "gemini-omni-flash-1-2:15s:4k", credits: 830, note: "15s 4K (max)" }
|
|
1573
|
+
]
|
|
1574
|
+
},
|
|
1320
1575
|
// ── Kling ──
|
|
1321
1576
|
"kling": {
|
|
1322
1577
|
id: "kling",
|
|
@@ -1635,7 +1890,10 @@ var VIDEO_MODELS = {
|
|
|
1635
1890
|
"seedance-2-5": {
|
|
1636
1891
|
id: "seedance-2-5",
|
|
1637
1892
|
kind: "video",
|
|
1638
|
-
|
|
1893
|
+
// `v2v`: it edits a clip by instruction on the same route as the other edit
|
|
1894
|
+
// models (/v1/video-to-video, through its reference lane, in the clip's own
|
|
1895
|
+
// ratio and length). It still makes a clip from words or a picture.
|
|
1896
|
+
modes: ["i2v", "t2v", "v2v"],
|
|
1639
1897
|
family: "Bytedance",
|
|
1640
1898
|
maker: "bytedance",
|
|
1641
1899
|
label: "Seedance 2.5",
|
|
@@ -3231,6 +3489,8 @@ function validateModelInput(modelId, input) {
|
|
|
3231
3489
|
return null;
|
|
3232
3490
|
}
|
|
3233
3491
|
function defaultResolutionFor(modelId) {
|
|
3492
|
+
const declared = MODEL_CATALOG[modelId]?.defaultResolution;
|
|
3493
|
+
if (declared) return declared;
|
|
3234
3494
|
if (!isFlux2Model(modelId)) return void 0;
|
|
3235
3495
|
return modelId === "flux-2-klein" ? "1 MP" : "2 MP";
|
|
3236
3496
|
}
|
|
@@ -3319,7 +3579,8 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3319
3579
|
m.resolutions,
|
|
3320
3580
|
defaultResolutionFor(modelId)
|
|
3321
3581
|
);
|
|
3322
|
-
out.quality = snap("quality", input.quality, m.qualities);
|
|
3582
|
+
out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
|
|
3583
|
+
out.background = snap("background", input.background, m.backgrounds);
|
|
3323
3584
|
out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
|
|
3324
3585
|
if (modelId === "gpt-image-2" || modelId === "gpt-image-2-i2i") {
|
|
3325
3586
|
if (out.aspectRatio === "auto" && out.resolution !== void 0 && out.resolution !== "1K") {
|
|
@@ -3340,6 +3601,26 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3340
3601
|
out.resolution = "2K";
|
|
3341
3602
|
}
|
|
3342
3603
|
}
|
|
3604
|
+
if (out.background === "transparent" && m.transparentResolution !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
|
|
3605
|
+
adjustments.push({
|
|
3606
|
+
field: "resolution",
|
|
3607
|
+
from: out.resolution,
|
|
3608
|
+
to: m.transparentResolution,
|
|
3609
|
+
reason: `${m.label} only renders a transparent background at ${m.transparentResolution}.`
|
|
3610
|
+
});
|
|
3611
|
+
out.resolution = m.transparentResolution;
|
|
3612
|
+
}
|
|
3613
|
+
if (m.backgroundOnlyAtTransparentResolution && out.background !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
|
|
3614
|
+
if (out.background !== "auto") {
|
|
3615
|
+
adjustments.push({
|
|
3616
|
+
field: "background",
|
|
3617
|
+
from: out.background,
|
|
3618
|
+
to: void 0,
|
|
3619
|
+
reason: `${m.label} only takes a background setting at ${m.transparentResolution}.`
|
|
3620
|
+
});
|
|
3621
|
+
}
|
|
3622
|
+
out.background = void 0;
|
|
3623
|
+
}
|
|
3343
3624
|
return out;
|
|
3344
3625
|
}
|
|
3345
3626
|
var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
|
|
@@ -3472,6 +3753,7 @@ var MODEL_VALUE_LABELS = {
|
|
|
3472
3753
|
"2k": "2K",
|
|
3473
3754
|
"8K": "8K (Ultra)",
|
|
3474
3755
|
// qualities
|
|
3756
|
+
"low": "Low (Fast)",
|
|
3475
3757
|
"medium": "Medium (Balanced)",
|
|
3476
3758
|
"high": "High (Detailed)",
|
|
3477
3759
|
"basic": "Basic (2K)",
|
|
@@ -3559,6 +3841,15 @@ function qualityOptionsByKind(kind) {
|
|
|
3559
3841
|
}
|
|
3560
3842
|
return out;
|
|
3561
3843
|
}
|
|
3844
|
+
function backgroundOptionsByKind(kind) {
|
|
3845
|
+
const out = {};
|
|
3846
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
3847
|
+
if (m.kind !== kind) continue;
|
|
3848
|
+
if (!m.backgrounds) continue;
|
|
3849
|
+
out[m.id] = m.backgrounds.map((v) => ({ value: v, label: decorateLabel(m, v) }));
|
|
3850
|
+
}
|
|
3851
|
+
return out;
|
|
3852
|
+
}
|
|
3562
3853
|
function buildModelMenu(kind, allowlist) {
|
|
3563
3854
|
const resByModel = resolutionOptionsByKind(kind);
|
|
3564
3855
|
const arByModel = aspectRatioOptionsByKind(kind);
|
|
@@ -3589,7 +3880,7 @@ function creditRangesAll() {
|
|
|
3589
3880
|
}
|
|
3590
3881
|
function modelIdsByKindMode(kind, modes, opts = {}) {
|
|
3591
3882
|
const includeHidden = opts.includeHidden === true;
|
|
3592
|
-
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();
|
|
3883
|
+
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();
|
|
3593
3884
|
if (ids.length === 0) {
|
|
3594
3885
|
throw new Error(
|
|
3595
3886
|
`modelIdsByKindMode: no models match kind=${kind ?? "*"} modes=[${modes.join(",")}]`
|
|
@@ -3613,6 +3904,7 @@ exports.SPEECH_UNIT_PRICE_NOTE = SPEECH_UNIT_PRICE_NOTE;
|
|
|
3613
3904
|
exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
|
|
3614
3905
|
exports.aspectRatioOptionsByKind = aspectRatioOptionsByKind;
|
|
3615
3906
|
exports.autoAspectNeedsSourceImage = autoAspectNeedsSourceImage;
|
|
3907
|
+
exports.backgroundOptionsByKind = backgroundOptionsByKind;
|
|
3616
3908
|
exports.buildModelMenu = buildModelMenu;
|
|
3617
3909
|
exports.creditRangesAll = creditRangesAll;
|
|
3618
3910
|
exports.defaultResolutionFor = defaultResolutionFor;
|
|
@@ -3645,5 +3937,5 @@ exports.resolutionOptionsByKind = resolutionOptionsByKind;
|
|
|
3645
3937
|
exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
|
|
3646
3938
|
exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
|
|
3647
3939
|
exports.validateModelInput = validateModelInput;
|
|
3648
|
-
//# sourceMappingURL=chunk-
|
|
3649
|
-
//# sourceMappingURL=chunk-
|
|
3940
|
+
//# sourceMappingURL=chunk-JYNW4QK7.cjs.map
|
|
3941
|
+
//# sourceMappingURL=chunk-JYNW4QK7.cjs.map
|