@sogni-ai/sogni-intelligence-client 4.14.1 → 4.15.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.
Files changed (49) hide show
  1. package/dist/client/SogniClientWrapper.d.ts.map +1 -1
  2. package/dist/client/SogniClientWrapper.js +6 -0
  3. package/dist/client/SogniClientWrapper.js.map +1 -1
  4. package/dist/contracts/data/promptContracts.d.ts.map +1 -1
  5. package/dist/contracts/data/promptContracts.js +4 -0
  6. package/dist/contracts/data/promptContracts.js.map +1 -1
  7. package/dist/contracts/imagePrompt.d.ts +1 -1
  8. package/dist/contracts/imagePrompt.d.ts.map +1 -1
  9. package/dist/contracts/imagePrompt.js +18 -0
  10. package/dist/contracts/imagePrompt.js.map +1 -1
  11. package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
  12. package/dist/openai-tools/_manifests.generated.js +7 -5
  13. package/dist/openai-tools/_manifests.generated.js.map +1 -1
  14. package/dist/openai-tools/generation-tools.json +7 -5
  15. package/dist/public-skill-runtime/index.d.ts +1 -1
  16. package/dist/public-skill-runtime/index.d.ts.map +1 -1
  17. package/dist/public-skill-runtime/index.js +27 -0
  18. package/dist/public-skill-runtime/index.js.map +1 -1
  19. package/dist/schemas/tools/edit_image.schema.json +1 -1
  20. package/dist/schemas/tools/generate_image.schema.json +6 -4
  21. package/dist/tools/definitions/generate-image/definition.js +3 -3
  22. package/dist/tools/definitions/generate-image/definition.js.map +1 -1
  23. package/dist/tools/shared/loraGuidance.d.ts.map +1 -1
  24. package/dist/tools/shared/loraGuidance.js +2 -2
  25. package/dist/tools/shared/loraGuidance.js.map +1 -1
  26. package/dist/tools/shared/modelRegistry.d.ts +6 -0
  27. package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
  28. package/dist/tools/shared/modelRegistry.js +2 -0
  29. package/dist/tools/shared/modelRegistry.js.map +1 -1
  30. package/dist-esm/client/SogniClientWrapper.js +6 -0
  31. package/dist-esm/client/SogniClientWrapper.js.map +1 -1
  32. package/dist-esm/contracts/data/promptContracts.js +4 -0
  33. package/dist-esm/contracts/data/promptContracts.js.map +1 -1
  34. package/dist-esm/contracts/imagePrompt.js +18 -0
  35. package/dist-esm/contracts/imagePrompt.js.map +1 -1
  36. package/dist-esm/openai-tools/_manifests.generated.js +7 -5
  37. package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
  38. package/dist-esm/openai-tools/generation-tools.json +7 -5
  39. package/dist-esm/public-skill-runtime/index.js +27 -0
  40. package/dist-esm/public-skill-runtime/index.js.map +1 -1
  41. package/dist-esm/schemas/tools/edit_image.schema.json +1 -1
  42. package/dist-esm/schemas/tools/generate_image.schema.json +6 -4
  43. package/dist-esm/tools/definitions/generate-image/definition.js +3 -3
  44. package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
  45. package/dist-esm/tools/shared/loraGuidance.js +2 -2
  46. package/dist-esm/tools/shared/loraGuidance.js.map +1 -1
  47. package/dist-esm/tools/shared/modelRegistry.js +2 -0
  48. package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
  49. package/package.json +4 -4
@@ -49,6 +49,8 @@
49
49
  "z-turbo",
50
50
  "z-image",
51
51
  "krea-2-turbo",
52
+ "moss-image",
53
+ "moss-image-8step",
52
54
  "flux-3-klein",
53
55
  "dark-beast-krea2",
54
56
  "dark-beast-z-turbo",
@@ -72,15 +74,15 @@
72
74
  "pony-faetality",
73
75
  "dreamshaper-xl"
74
76
  ],
75
- "description": "DO NOT SET THIS PARAMETER unless the user names a specific model, asks for a very complex image render, asks for a video storyboard/storyboard sheet/contact sheet/panel layout image, asks for anime without naming a model, requests permitted NSFW/nudity content, or explicitly asks for Z-image/Z-image Turbo/Krea 2 Turbo image-to-image. The app auto-selects based on quality settings. Set \"gpt-image-2.5-flare\" when the user asks for a ChatGPT, OpenAI, GPT, or GPT Image image/model without naming a version. Set \"gpt-image-2\" only when the user explicitly names GPT Image 2, GPT-2, or gpt-image-2; GPT Image 2 is never a default. Set \"gpt-image-2.5-sunburst\" when the user explicitly requests very strong text rendering, and by default for video storyboards and other complex single-image renders that need dense labels, crisp typography, multi-panel composition, timing notes, foley notes, professional storyboard-sheet layout, or a comprehensive character/mascot/model sheet with turnarounds, expressions, accessories, palette swatches, and brand notes. Set \"one-obsession-v22\" when the user asks for an anime or anime-style image and has not named a specific image model. Set \"z-turbo\" when the user asks for Z-image Turbo; set \"z-image\" when they ask for Z-image without Turbo. Set \"krea-2-turbo\" when the user asks for Krea 2 Turbo. Set \"flux-3-klein\" when the user asks for FLUX 3 or FLUX 3 Image Klein. If the user names another image model, honor that requested model instead. A model preference usually does not change which tool to use; the Z-image and Krea 2 Turbo image-to-image exception uses sourceImageIndex plus starting_image_strength on this tool. NSFW rule: GPT Image models and Qwen image models CANNOT do nudity. For permitted NSFW/nudity content, prefer \"dark-beast-krea2\", then \"dark-beast-z-turbo\"; \"chroma1-hd\", \"pony-v7\", \"chroma-detail\", \"chroma-v46-flash\", and \"z-turbo\" are compatible fallbacks. GPT Image 2.5 adds two distinct models: use \"gpt-image-2.5-sunburst\" for an explicit Sunburst request and \"gpt-image-2.5-flare\" for an explicit Flare request. For GPT Image 2.5 without a named variant, use Flare. Preserve explicit GPT Image 2.0 as \"gpt-image-2\". Sunburst is positioned for difficult images and precise edits; Flare for faster everyday generation. Both generate and edit. Model choice is independent of rendering quality."
77
+ "description": "DO NOT SET THIS PARAMETER unless the user names a specific model, asks for a very complex image render, asks for a video storyboard/storyboard sheet/contact sheet/panel layout image, asks for anime without naming a model, requests permitted NSFW/nudity content, or explicitly asks for Z-image/Z-image Turbo/Krea 2 Turbo image-to-image. The app auto-selects based on quality settings. Set \"gpt-image-2.5-flare\" when the user asks for a ChatGPT, OpenAI, GPT, or GPT Image image/model without naming a version. Set \"gpt-image-2\" only when the user explicitly names GPT Image 2, GPT-2, or gpt-image-2; GPT Image 2 is never a default. Set \"gpt-image-2.5-sunburst\" when the user explicitly requests very strong text rendering, and by default for video storyboards and other complex single-image renders that need dense labels, crisp typography, multi-panel composition, timing notes, foley notes, professional storyboard-sheet layout, or a comprehensive character/mascot/model sheet with turnarounds, expressions, accessories, palette swatches, and brand notes. Set \"one-obsession-v22\" when the user asks for an anime or anime-style image and has not named a specific image model. Set \"z-turbo\" when the user asks for Z-image Turbo; set \"z-image\" when they ask for Z-image without Turbo. Set \"krea-2-turbo\" when the user asks for Krea 2 Turbo. Set \"flux-3-klein\" when the user asks for FLUX 3 or FLUX 3 Image Klein. If the user names another image model, honor that requested model instead. A model preference usually does not change which tool to use; the Z-image and Krea 2 Turbo image-to-image exception uses sourceImageIndex plus starting_image_strength on this tool. NSFW rule: GPT Image models and Qwen image models CANNOT do nudity. For permitted NSFW/nudity content, prefer \"dark-beast-krea2\", then \"dark-beast-z-turbo\"; \"chroma1-hd\", \"pony-v7\", \"chroma-detail\", \"chroma-v46-flash\", \"z-turbo\", \"moss-image\", and \"moss-image-8step\" are compatible fallbacks. GPT Image 2.5 adds two distinct models: use \"gpt-image-2.5-sunburst\" for an explicit Sunburst request and \"gpt-image-2.5-flare\" for an explicit Flare request. For GPT Image 2.5 without a named variant, use Flare. Preserve explicit GPT Image 2.0 as \"gpt-image-2\". Sunburst is positioned for difficult images and precise edits; Flare for faster everyday generation. Both generate and edit. Model choice is independent of rendering quality. Set \"moss-image\" when the user requests MOSS-Image or MOSS-Image SFT. Set \"moss-image-8step\" when the user requests MOSS 8-step or MOSS DMD; this preset uses 8 steps and guidance 1. Both MOSS presets are uncensored and support compatible Personal LoRAs. MOSS-Image SFT is text-to-image only; it has no uploaded-image instruction-editing input. For its JSON layouts, send one complete literal layout per call; numberOfVariations varies seeds. Use separate calls for different layouts, and do not put Dynamic Prompt choices inside layout JSON."
76
78
  },
77
79
  "width": {
78
80
  "type": "number",
79
- "description": "Output image width in pixels. Default: 1024. Supported bounds depend on the selected image model: Z-Image/Z-Image Turbo, Dark Beast Z-Image Turbo, Chroma, and legacy/specialized image models support 256-2048 on either edge; Krea 2 Turbo, Dark Beast KREA 2, and Qwen image models support 256-2560 on either edge; FLUX 3 Image Klein supports 256-4096 on either edge, including 4K (3840x2160, 2160x3840, 4096x4096); One Obsession v22 supports 256-1920 on either edge; GPT Image 2 supports flexible dimensions up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400. Set when the user specifies a width, exact pixel dimensions, or a named resolution (e.g., \"1280 wide\", \"1280x720\", \"720p\", \"1080x1920\", \"3840x2160\"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels."
81
+ "description": "Output image width in pixels. Default: 1024. Supported bounds depend on the selected image model: Z-Image/Z-Image Turbo, Dark Beast Z-Image Turbo, Chroma, and legacy/specialized image models support 256-2048 on either edge; Krea 2 Turbo, Dark Beast KREA 2, and Qwen image models support 256-2560 on either edge; FLUX 3 Image Klein supports 256-4096 on either edge, including 4K (3840x2160, 2160x3840, 4096x4096); One Obsession v22 supports 256-1920 on either edge; GPT Image 2 supports flexible dimensions up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400. Set when the user specifies a width, exact pixel dimensions, or a named resolution (e.g., \"1280 wide\", \"1280x720\", \"720p\", \"1080x1920\", \"3840x2160\"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels. MOSS-Image SFT supports 512-2048 pixels on either edge, aligned to multiples of 16."
80
82
  },
81
83
  "height": {
82
84
  "type": "number",
83
- "description": "Output image height in pixels. Default: 1024. Supported bounds depend on the selected image model: Z-Image/Z-Image Turbo, Dark Beast Z-Image Turbo, Chroma, and legacy/specialized image models support 256-2048 on either edge; Krea 2 Turbo, Dark Beast KREA 2, and Qwen image models support 256-2560 on either edge; FLUX 3 Image Klein supports 256-4096 on either edge, including 4K (3840x2160, 2160x3840, 4096x4096); One Obsession v22 supports 256-1920 on either edge; GPT Image 2 supports flexible dimensions up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400. Set when the user specifies a height, exact pixel dimensions, or a named resolution (e.g., \"720 high\", \"1280x720\", \"720p\", \"1080x1920\", \"2160x3840\"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels."
85
+ "description": "Output image height in pixels. Default: 1024. Supported bounds depend on the selected image model: Z-Image/Z-Image Turbo, Dark Beast Z-Image Turbo, Chroma, and legacy/specialized image models support 256-2048 on either edge; Krea 2 Turbo, Dark Beast KREA 2, and Qwen image models support 256-2560 on either edge; FLUX 3 Image Klein supports 256-4096 on either edge, including 4K (3840x2160, 2160x3840, 4096x4096); One Obsession v22 supports 256-1920 on either edge; GPT Image 2 supports flexible dimensions up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400. Set when the user specifies a height, exact pixel dimensions, or a named resolution (e.g., \"720 high\", \"1280x720\", \"720p\", \"1080x1920\", \"2160x3840\"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels. MOSS-Image SFT supports 512-2048 pixels on either edge, aligned to multiples of 16."
84
86
  },
85
87
  "numberOfVariations": {
86
88
  "type": "number",
@@ -116,7 +118,7 @@
116
118
  "type": "string",
117
119
  "minLength": 1
118
120
  },
119
- "description": "Ordered LoRA IDs to apply to a compatible image model. Use only when the user explicitly requests LoRAs or asks for an effect one of these names directly. Stack up to 8 in one request; order matters because the adapters apply in sequence and do not commute. Keep this array positionally aligned with loraStrengths. The first render with an uncached LoRA takes longer to start while the worker downloads it.\n\nAccepted only by the five Krea 2 based models: krea2_turbo_fp8_scaled (text-to-image), krea2_identity_edit_v1_2 and krea2_identity_edit_sogni_v0_3_alpha (identity edit), and the dark_beast_krea2_fp8 / dark_beast_krea2_identity_edit_v1_2 community variants.\n\nBipolar sliders — each id names its POSITIVE direction, a negative strength applies the opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism (+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight (+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls (polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy and poses the base model flattens; try the 2-vector first). Exact per-LoRA ranges, maturity flags and the full contract: GET /v1/loras/comfy?modelId=<model>. Personal imports use authenticated GET /v1/loras/personal/catalog: use an owned ready personal- id, its modelIds, strength range and requirements. Never invent ids or silently omit a requested personal LoRA."
121
+ "description": "Ordered LoRA IDs to apply to a compatible image model. Use only when the user explicitly requests LoRAs or asks for an effect one of these names directly. Stack up to 8 in one request; order matters because the adapters apply in sequence and do not commute. Keep this array positionally aligned with loraStrengths. The first render with an uncached LoRA takes longer to start while the worker downloads it.\n\nThe public Krea 2 catalog below is accepted by: krea2_turbo_fp8_scaled (text-to-image), krea2_identity_edit_v1_2 and krea2_identity_edit_sogni_v0_3_alpha (identity edit), and the dark_beast_krea2_fp8 / dark_beast_krea2_identity_edit_v1_2 community variants.\n\nBipolar sliders — each id names its POSITIVE direction, a negative strength applies the opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism (+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight (+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls (polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy and poses the base model flattens; try the 2-vector first). Exact per-LoRA ranges, maturity flags and the full contract: GET /v1/loras/comfy?modelId=<model>. Personal imports use authenticated GET /v1/loras/personal/catalog: use an owned ready personal- id, its modelIds, strength range and requirements. Compatible Personal LoRAs also work with FLUX 3 Image Klein and both MOSS presets; a MOSS 8-step personal adapter stacks after its built-in DMD adapter. Never invent ids or silently omit a requested personal LoRA."
120
122
  },
121
123
  "loraStrengths": {
122
124
  "type": "array",
@@ -552,7 +554,7 @@
552
554
  "type": "string",
553
555
  "minLength": 1
554
556
  },
555
- "description": "Ordered LoRA IDs for the edit. Public Krea sliders work with model=\"krea-identity-edit\" or model=\"dark-beast-krea2-identity-edit\". Ready personal imports also work on their listed compatible edit models, including Qwen; discover them through authenticated GET /v1/loras/personal/catalog and preserve their exact personal- IDs. GPT Image models do not support LoRAs. Use when the user asks to shift a trait such as age, build, skin, lighting or grain. Stack up to 8 in one request; order matters because the adapters apply in sequence and do not commute. Keep this array positionally aligned with loraStrengths. The first render with an uncached LoRA takes longer to start while the worker downloads it.\n\nBipolar sliders — each id names its POSITIVE direction, a negative strength applies the opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism (+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight (+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls (polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy and poses the base model flattens; try the 2-vector first). Exact per-LoRA ranges, maturity flags and the full contract: GET /v1/loras/comfy?modelId=<model>. Personal imports use authenticated GET /v1/loras/personal/catalog: use an owned ready personal- id, its modelIds, strength range and requirements. Never invent ids or silently omit a requested personal LoRA."
557
+ "description": "Ordered LoRA IDs for the edit. Public Krea sliders work with model=\"krea-identity-edit\" or model=\"dark-beast-krea2-identity-edit\". Ready personal imports also work on their listed compatible edit models, including Qwen; discover them through authenticated GET /v1/loras/personal/catalog and preserve their exact personal- IDs. GPT Image models do not support LoRAs. Use when the user asks to shift a trait such as age, build, skin, lighting or grain. Stack up to 8 in one request; order matters because the adapters apply in sequence and do not commute. Keep this array positionally aligned with loraStrengths. The first render with an uncached LoRA takes longer to start while the worker downloads it.\n\nBipolar sliders — each id names its POSITIVE direction, a negative strength applies the opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism (+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight (+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls (polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy and poses the base model flattens; try the 2-vector first). Exact per-LoRA ranges, maturity flags and the full contract: GET /v1/loras/comfy?modelId=<model>. Personal imports use authenticated GET /v1/loras/personal/catalog: use an owned ready personal- id, its modelIds, strength range and requirements. Compatible Personal LoRAs also work with FLUX 3 Image Klein and both MOSS presets; a MOSS 8-step personal adapter stacks after its built-in DMD adapter. Never invent ids or silently omit a requested personal LoRA."
556
558
  },
557
559
  "loraStrengths": {
558
560
  "type": "array",
@@ -1751,6 +1751,30 @@ export const QUALITY_TIERS = Object.freeze({
1751
1751
  }
1752
1752
  });
1753
1753
  export const IMAGE_MODEL_DEFAULTS = Object.freeze({
1754
+ moss_image_sft_int8_convrot: {
1755
+ family: 'moss-image',
1756
+ defaultWidth: 1024,
1757
+ defaultHeight: 1024,
1758
+ minDimension: 512,
1759
+ maxDimension: 2048,
1760
+ dimensionMultiple: 16,
1761
+ steps: 50,
1762
+ guidance: 3.0,
1763
+ sampler: 'euler',
1764
+ scheduler: 'sgm_uniform'
1765
+ },
1766
+ moss_image_sft_dmd8_int8_convrot: {
1767
+ family: 'moss-image',
1768
+ defaultWidth: 1024,
1769
+ defaultHeight: 1024,
1770
+ minDimension: 512,
1771
+ maxDimension: 2048,
1772
+ dimensionMultiple: 16,
1773
+ steps: 8,
1774
+ guidance: 1.0,
1775
+ sampler: 'euler',
1776
+ scheduler: 'sgm_uniform'
1777
+ },
1754
1778
  krea2_identity_edit_v1_2: {
1755
1779
  family: 'krea2-identity-edit',
1756
1780
  defaultWidth: 1024,
@@ -1777,6 +1801,9 @@ export const IMAGE_MODEL_DEFAULTS = Object.freeze({
1777
1801
  }
1778
1802
  });
1779
1803
  export const IMAGE_MODEL_ALIASES = Object.freeze({
1804
+ 'moss-image': 'moss_image_sft_int8_convrot',
1805
+ 'moss-image-sft': 'moss_image_sft_int8_convrot',
1806
+ 'moss-image-8step': 'moss_image_sft_dmd8_int8_convrot',
1780
1807
  'krea-identity-edit': 'krea2_identity_edit_v1_2',
1781
1808
  'krea-2-identity-edit': 'krea2_identity_edit_v1_2',
1782
1809
  'krea2-identity-edit': 'krea2_identity_edit_v1_2',