@nodaro/shared 3.25.0 → 3.26.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.
@@ -282,14 +282,14 @@ export interface ModelRecommendation {
282
282
 
283
283
  export const MODEL_RECOMMENDATIONS: readonly ModelRecommendation[] = [
284
284
  // image
285
- { intent: "best for typography / logos / text-heavy", modelIds: ["nano-banana-pro", "gpt-image-2"], note: "Nano Banana Pro for diagrams / complex text; GPT Image 2 for logos and short copy." },
285
+ { intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-5-flare"], note: "GPT Image 2 for exact copy, labels and non-Latin text; GPT Image 2.5 Flare is close and faster." },
286
286
  // Notes name the RANKING, not the price — the price sits in the generated
287
287
  // table directly below them and in `pricing`, so restating it here just
288
288
  // creates a copy that rots (this one said "1 credit" long after it was 2).
289
289
  { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
290
- { intent: "highest fidelity image", modelIds: ["nano-banana-pro", "imagen4-ultra", "flux-flex"], note: "Pick by family preference; all three are premium tiers." },
291
- { intent: "image edit / restyle", modelIds: ["flux-kontext", "ideogram-remix", "seedream-5-pro-i2i"], note: "Flux Kontext preserves identity; Ideogram Remix is character-aware; Seedream 5 Pro for instruction-based edits (5 Lite is the budget option)." },
292
- { intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "nano-banana-pro", "gpt-image-2"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
290
+ { intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-5-sunburst", "imagen4-ultra"], note: "GPT Image 2 for characters and identity; GPT Image 2.5 Sunburst for wide or in-between ratios GPT Image 2 can't draw." },
291
+ { intent: "image edit / restyle", modelIds: ["gpt-image-2-5-flare-i2i", "gpt-image-2-i2i", "seedream-5-pro-i2i"], note: "GPT Image 2.5 Flare keeps pose, framing and product detail; GPT Image 2 i2i for identity-critical edits; Seedream 5 Pro for instruction-based edits." },
292
+ { intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-5-sunburst"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
293
293
  { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
294
294
  // video
295
295
  { 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." },
@@ -453,7 +453,6 @@ const IMAGE_MODELS: Record<string, ModelCatalogEntry> = {
453
453
  { identifier: "nano-banana-pro", credits: 45, note: "1K / 2K" },
454
454
  { identifier: "nano-banana-pro:4K", credits: 60, note: "4K" },
455
455
  ],
456
- featured: true,
457
456
  },
458
457
  "nano-banana-edit": {
459
458
  id: "nano-banana-edit",
@@ -691,6 +690,7 @@ const IMAGE_MODELS: Record<string, ModelCatalogEntry> = {
691
690
  { identifier: "gpt-image-2:4K", credits: 60, note: "4K" },
692
691
  ],
693
692
  safetyFilter: { stochastic: true, fallback: "nano-banana-pro" },
693
+ featured: true,
694
694
  },
695
695
  "gpt-image-2-i2i": {
696
696
  id: "gpt-image-2-i2i",
@@ -1013,6 +1013,40 @@ const IMAGE_MODELS: Record<string, ModelCatalogEntry> = {
1013
1013
  { identifier: "seedream-5-pro-i2i:high", credits: 60, note: "high / 2K" },
1014
1014
  ],
1015
1015
  },
1016
+ // Seedream 5 Flash — fast, low-cost Seedream 5. Its lever is KIE's `size`
1017
+ // (1K / 1.5K / 2K), NOT the siblings' `quality`: declared as `resolutions`
1018
+ // (the KIE config renames it to `size` on the wire). Flat price at every
1019
+ // offered size. 1.5K is not offered yet: no other image model or route enum
1020
+ // carries it, and its price has not been confirmed.
1021
+ // See: docs.kie.ai/market/seedream/5-flash-text-to-image.md
1022
+ "seedream-5-flash": {
1023
+ id: "seedream-5-flash",
1024
+ kind: "image",
1025
+ modes: ["t2i"] as const,
1026
+ family: "Bytedance",
1027
+ label: "Seedream 5 Flash",
1028
+ series: "Seedream",
1029
+ description: "Fast, low-cost Seedream 5 — quick generations at 1K or 2K, same price at either size.",
1030
+ useCases: ["realistic", "drafts", "iteration"],
1031
+ features: ["reference-image"],
1032
+ aspectRatios: SEEDREAM_RATIOS,
1033
+ resolutions: ["1K", "2K"],
1034
+ pricing: [{ identifier: "seedream-5-flash", credits: 10, note: "1K / 2K flat" }],
1035
+ },
1036
+ "seedream-5-flash-i2i": {
1037
+ id: "seedream-5-flash-i2i",
1038
+ kind: "image",
1039
+ modes: ["i2i"] as const,
1040
+ family: "Bytedance",
1041
+ label: "Seedream 5 Flash (I2I)",
1042
+ series: "Seedream",
1043
+ description: "Image-to-image with Seedream 5 Flash — fast edits from up to 10 input images at 1K or 2K, same price at either size.",
1044
+ useCases: ["edit", "iteration"],
1045
+ features: ["reference-image"],
1046
+ aspectRatios: SEEDREAM_RATIOS,
1047
+ resolutions: ["1K", "2K"],
1048
+ pricing: [{ identifier: "seedream-5-flash-i2i", credits: 10, note: "1K / 2K flat" }],
1049
+ },
1016
1050
 
1017
1051
  // ── Alibaba Qwen ──
1018
1052
  "qwen": {
@@ -102,7 +102,9 @@ export const MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
102
102
  // verified == 5000 default (no entry needed): imagen4(-fast/-ultra), nano-banana,
103
103
  // nano-banana-edit, flux, flux-flex, gpt-image-2, ideogram-v3/-edit/-remix,
104
104
  // grok, qwen-i2i, seedream-5-pro, seedream-5-pro-i2i
105
- // (docs.kie.ai/market/seedream/5-pro-text-to-image + 5-pro-image-to-image).
105
+ // (docs.kie.ai/market/seedream/5-pro-text-to-image + 5-pro-image-to-image),
106
+ // seedream-5-flash, seedream-5-flash-i2i (both "4–5000 characters";
107
+ // docs.kie.ai/market/seedream/5-flash-text-to-image + 5-flash-image-to-image).
106
108
  // grok-i2i: doc states 390000 (78× its t2i sibling) — treated as a KIE schema
107
109
  // typo and left at the 5000 default per the sanity-cap decision.
108
110
  // UNVERIFIED (no limit stated in schema) → 5000 default: flux-kontext(-max)
@@ -503,6 +505,7 @@ export const MODELS_WITH_REFERENCE_IMAGE_SUPPORT = new Set([
503
505
  "seedream",
504
506
  "seedream-5-lite",
505
507
  "seedream-5-pro",
508
+ "seedream-5-flash",
506
509
  "flux",
507
510
  "flux-flex",
508
511
  // Image editing / image-to-image (reference = source image)
@@ -523,6 +526,7 @@ export const MODELS_WITH_REFERENCE_IMAGE_SUPPORT = new Set([
523
526
  "seedream-edit",
524
527
  "seedream-5-lite-i2i",
525
528
  "seedream-5-pro-i2i",
529
+ "seedream-5-flash-i2i",
526
530
  "grok-i2i",
527
531
  // Upscale / background ops (source acts as the reference)
528
532
  "recraft-remove-bg",
@@ -558,6 +562,7 @@ export const T2I_TO_I2I_VARIANT: Record<string, string> = {
558
562
  "seedream": "seedream-edit",
559
563
  "seedream-5-lite": "seedream-5-lite-i2i",
560
564
  "seedream-5-pro": "seedream-5-pro-i2i",
565
+ "seedream-5-flash": "seedream-5-flash-i2i",
561
566
  "flux": "flux-pro-i2i",
562
567
  "flux-flex": "flux-i2i",
563
568
  }
@@ -593,6 +598,8 @@ export const REF_IMAGE_MAX_LIMITS: Record<string, number> = {
593
598
  "seedream-edit": 16,
594
599
  "seedream-5-lite-i2i": 16,
595
600
  "seedream-5-pro-i2i": 16,
601
+ // Flash takes at most 10 `image_urls` (docs.kie.ai/market/seedream/5-flash-image-to-image) — not the family's 16.
602
+ "seedream-5-flash-i2i": 10,
596
603
  // Single-source i2i (one input image)
597
604
  "flux-kontext": 1,
598
605
  "flux-kontext-max": 1,
@@ -732,6 +739,7 @@ export const IMAGE_GEN_PROVIDERS = [
732
739
  "seedream",
733
740
  "seedream-5-lite",
734
741
  "seedream-5-pro",
742
+ "seedream-5-flash",
735
743
  "flux-flex",
736
744
  "flux-kontext",
737
745
  "flux-kontext-max",
@@ -766,6 +774,7 @@ export const IMAGE_I2I_PROVIDERS = [
766
774
  "seedream-edit",
767
775
  "seedream-5-lite-i2i",
768
776
  "seedream-5-pro-i2i",
777
+ "seedream-5-flash-i2i",
769
778
  "flux-kontext",
770
779
  "flux-kontext-max",
771
780
  // Replicate Open (uncensored) — multi-image Kontext via Replicate
@@ -1535,6 +1544,7 @@ export const IMAGE_MASK_MODE: Record<ImageGenProvider, ImageMaskMode> = {
1535
1544
  "seedream": "prompt",
1536
1545
  "seedream-5-lite": "prompt",
1537
1546
  "seedream-5-pro": "prompt",
1547
+ "seedream-5-flash": "prompt",
1538
1548
  "qwen": "prompt",
1539
1549
  "flux-kontext": "prompt",
1540
1550
  "flux-kontext-max": "prompt",
@@ -181,6 +181,9 @@ const QUALITY_MAP: Record<string, QualityMapping> = {
181
181
  "seedream-5-lite-i2i": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
182
182
  "seedream-5-pro": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
183
183
  "seedream-5-pro-i2i": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
184
+ // Seedream 5 Flash's lever is size (sent as KIE `size`), flat-priced — resolution-style.
185
+ "seedream-5-flash": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
186
+ "seedream-5-flash-i2i": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
184
187
  // Video gen — resolution-style (720p/1080p)
185
188
  "veo3": { field: "resolution", values: { low: "720p", mid: "1080p", high: "1080p" } },
186
189
  "veo3.1": { field: "resolution", values: { low: "720p", mid: "1080p", high: "1080p" } },
@@ -1,3 +1,4 @@
1
+ import { IMAGE_MODEL_ROLE_DEFAULTS } from "./image-model-roles.js"
1
2
  /**
2
3
  * The "Settings" input: ONE input handle on a generation node that takes the
3
4
  * Generation Settings nodes. Aspect Ratio, Duration and Provider set the
@@ -107,7 +108,7 @@ const SETTINGS_CONSUMERS: Readonly<Record<string, SettingsConsumer>> = {
107
108
  models: IMAGE_GEN_PROVIDERS,
108
109
  // The node's own default (NODE_DEFINITIONS) — only used to fit a wired
109
110
  // ratio when the node names no model.
110
- defaultModel: "nano-banana-pro",
111
+ defaultModel: IMAGE_MODEL_ROLE_DEFAULTS.general,
111
112
  modelList: "providers",
112
113
  },
113
114
  }