@sogni-ai/sogni-intelligence-client 3.29.2 → 3.30.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/contracts/imagePrompt.d.ts.map +1 -1
- package/dist/contracts/imagePrompt.js +6 -2
- package/dist/contracts/imagePrompt.js.map +1 -1
- package/dist/media/generationJob.d.ts.map +1 -1
- package/dist/media/generationJob.js +29 -0
- package/dist/media/generationJob.js.map +1 -1
- package/dist/media/gptImage.d.ts +23 -2
- package/dist/media/gptImage.d.ts.map +1 -1
- package/dist/media/gptImage.js +96 -4
- package/dist/media/gptImage.js.map +1 -1
- package/dist/media/imageEditRouting.d.ts +1 -1
- package/dist/media/imageEditRouting.d.ts.map +1 -1
- package/dist/media/imageEditRouting.js +2 -0
- package/dist/media/imageEditRouting.js.map +1 -1
- package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
- package/dist/openai-tools/_manifests.generated.js +50 -8
- package/dist/openai-tools/_manifests.generated.js.map +1 -1
- package/dist/openai-tools/generation-tools.json +50 -8
- package/dist/public-skill-runtime/index.d.ts +1 -1
- package/dist/public-skill-runtime/index.d.ts.map +1 -1
- package/dist/public-skill-runtime/index.js +54 -41
- package/dist/public-skill-runtime/index.js.map +1 -1
- package/dist/schemas/tools/edit_image.schema.json +26 -4
- package/dist/schemas/tools/generate_image.schema.json +22 -4
- package/dist/tools/definitions/edit-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/edit-image/definition.js +21 -4
- package/dist/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/generate-image/definition.js +15 -4
- package/dist/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist/tools/shared/modelRegistry.d.ts +6 -0
- package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
- package/dist/tools/shared/modelRegistry.js +4 -0
- package/dist/tools/shared/modelRegistry.js.map +1 -1
- package/dist/utils/imageReferenceModelIds.d.ts.map +1 -1
- package/dist/utils/imageReferenceModelIds.js +1 -1
- package/dist/utils/imageReferenceModelIds.js.map +1 -1
- package/dist-esm/contracts/imagePrompt.js +6 -2
- package/dist-esm/contracts/imagePrompt.js.map +1 -1
- package/dist-esm/media/generationJob.js +29 -0
- package/dist-esm/media/generationJob.js.map +1 -1
- package/dist-esm/media/gptImage.js +90 -3
- package/dist-esm/media/gptImage.js.map +1 -1
- package/dist-esm/media/imageEditRouting.js +2 -0
- package/dist-esm/media/imageEditRouting.js.map +1 -1
- package/dist-esm/openai-tools/_manifests.generated.js +50 -8
- package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
- package/dist-esm/openai-tools/generation-tools.json +50 -8
- package/dist-esm/public-skill-runtime/index.js +54 -41
- package/dist-esm/public-skill-runtime/index.js.map +1 -1
- package/dist-esm/schemas/tools/edit_image.schema.json +26 -4
- package/dist-esm/schemas/tools/generate_image.schema.json +22 -4
- package/dist-esm/tools/definitions/edit-image/definition.js +21 -4
- package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-image/definition.js +15 -4
- package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist-esm/tools/shared/modelRegistry.js +4 -0
- package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
- package/dist-esm/utils/imageReferenceModelIds.js +1 -1
- package/dist-esm/utils/imageReferenceModelIds.js.map +1 -1
- package/package.json +4 -4
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
"type": "string",
|
|
16
16
|
"enum": [
|
|
17
17
|
"gpt-image-2",
|
|
18
|
+
"gpt-image-2.5-sunburst",
|
|
19
|
+
"gpt-image-2.5-flare",
|
|
18
20
|
"qwen-lightning",
|
|
19
21
|
"qwen",
|
|
20
22
|
"krea-identity-edit",
|
|
21
23
|
"dark-beast-krea2-identity-edit"
|
|
22
24
|
],
|
|
23
|
-
"description": "The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen only for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set \"krea-identity-edit\" whenever an edit of a referenced person or character must keep likeness or character identity while changing clothing, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a non-Pro single-character sheet. This default applies even when the user did not name Krea; an explicitly requested model always wins. Set \"dark-beast-krea2-identity-edit\" only when the user explicitly requests that model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set \"gpt-image-2\" when the user explicitly names GPT/OpenAI/ChatGPT Image, or when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets may retain GPT Image 2. If GPT Image 2 is unavailable for detail-critical layout work, fall back to full \"qwen\", never \"qwen-lightning\". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Let the model tier and worker choose current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. When Krea is selected, override the generic prompt-length guidance with a concise 1-4 sentence delta instruction; name only the requested change and details that must remain fixed. Put the base scene/image first and an optional person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity."
|
|
25
|
+
"description": "The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen only for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set \"krea-identity-edit\" whenever an edit of a referenced person or character must keep likeness or character identity while changing clothing, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a non-Pro single-character sheet. This default applies even when the user did not name Krea; an explicitly requested model always wins. Set \"dark-beast-krea2-identity-edit\" only when the user explicitly requests that model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set \"gpt-image-2\" when the user explicitly names GPT/OpenAI/ChatGPT Image, or when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets may retain GPT Image 2. If GPT Image 2 is unavailable for detail-critical layout work, fall back to full \"qwen\", never \"qwen-lightning\". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Let the model tier and worker choose current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. When Krea is selected, override the generic prompt-length guidance with a concise 1-4 sentence delta instruction; name only the requested change and details that must remain fixed. Put the base scene/image first and an optional person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity. 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."
|
|
24
26
|
},
|
|
25
27
|
"sourceImageIndex": {
|
|
26
28
|
"type": "number",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
},
|
|
43
45
|
"aspectRatio": {
|
|
44
46
|
"type": "string",
|
|
45
|
-
"description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\".\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated reference-guided image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2
|
|
47
|
+
"description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\".\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated reference-guided image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. Sogni does not expose transparent output for GPT Image 2.0. For transparent assets, select GPT Image 2.5 Sunburst or Flare with gptImageBackground=transparent and PNG or WebP output."
|
|
46
48
|
},
|
|
47
49
|
"gptImageQuality": {
|
|
48
50
|
"type": "string",
|
|
@@ -50,9 +52,10 @@
|
|
|
50
52
|
"low",
|
|
51
53
|
"medium",
|
|
52
54
|
"high",
|
|
53
|
-
"
|
|
55
|
+
"xhigh",
|
|
56
|
+
"max"
|
|
54
57
|
],
|
|
55
|
-
"description": "Optional GPT Image
|
|
58
|
+
"description": "Optional GPT Image rendering quality. Only set it when the user explicitly asks for low/fast, medium/balanced, high/final, xhigh/extra high, or max/maximum quality; xhigh and max require GPT Image 2.5 Sunburst or Flare. Provider-chosen (auto) quality is never used. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high. The same quality label does not promise equivalent results across models."
|
|
56
59
|
},
|
|
57
60
|
"outputFormat": {
|
|
58
61
|
"type": "string",
|
|
@@ -67,6 +70,25 @@
|
|
|
67
70
|
"personaName": {
|
|
68
71
|
"type": "string",
|
|
69
72
|
"description": "RARE — only set this when the user EXPLICITLY asks for solo images of one specific person (\"a portrait of just [name]\", \"4 solos of [name] alone\"). When set, the handler filters context to ONLY that persona's reference photo, so any other personas in your prompt will be missing their reference. DEFAULT for multi-persona requests is to OMIT this and put both faces in one combined call. Never set this for \"make us as X\", \"the two of us\", \"my wife and I\", or any phrasing that puts both personas in the same scene — that's a single combined call with no personaName."
|
|
73
|
+
},
|
|
74
|
+
"gptImageBackground": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"auto",
|
|
78
|
+
"opaque",
|
|
79
|
+
"transparent"
|
|
80
|
+
],
|
|
81
|
+
"description": "GPT Image background: auto or opaque; transparent is supported by GPT Image 2.5 Sunburst and Flare with PNG or WebP output. JPEG cannot preserve transparency."
|
|
82
|
+
},
|
|
83
|
+
"gptImageOutputCompression": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"minimum": 0,
|
|
86
|
+
"maximum": 100,
|
|
87
|
+
"description": "Optional GPT Image JPEG/WebP output compression, from 0 to 100. Omit for PNG."
|
|
88
|
+
},
|
|
89
|
+
"mask_image_url": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Optional GPT Image edit mask URL or inline data:image/png;base64 URI. Requires a PNG alpha mask matching the first source reference dimensions; the source itself may be JPEG, PNG or WebP. Transparent mask regions identify edits; opaque regions are preserved as guidance. With multiple references the mask applies only to the first image."
|
|
70
92
|
}
|
|
71
93
|
},
|
|
72
94
|
"required": [
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"type": "string",
|
|
16
16
|
"enum": [
|
|
17
17
|
"gpt-image-2",
|
|
18
|
+
"gpt-image-2.5-sunburst",
|
|
19
|
+
"gpt-image-2.5-flare",
|
|
18
20
|
"z-turbo",
|
|
19
21
|
"z-image",
|
|
20
22
|
"krea-2-turbo",
|
|
@@ -40,7 +42,7 @@
|
|
|
40
42
|
"pony-faetality",
|
|
41
43
|
"dreamshaper-xl"
|
|
42
44
|
],
|
|
43
|
-
"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\" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 image/model, when they explicitly request very strong text rendering, or by default for 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. 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-2\"/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."
|
|
45
|
+
"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\" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 image/model, when they explicitly request very strong text rendering, or by default for 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. 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-2\"/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."
|
|
44
46
|
},
|
|
45
47
|
"width": {
|
|
46
48
|
"type": "number",
|
|
@@ -82,9 +84,10 @@
|
|
|
82
84
|
"low",
|
|
83
85
|
"medium",
|
|
84
86
|
"high",
|
|
85
|
-
"
|
|
87
|
+
"xhigh",
|
|
88
|
+
"max"
|
|
86
89
|
],
|
|
87
|
-
"description": "Optional GPT Image
|
|
90
|
+
"description": "Optional GPT Image rendering quality. Only set it when the user explicitly asks for low/fast, medium/balanced, high/final, xhigh/extra high, or max/maximum quality; xhigh and max require GPT Image 2.5 Sunburst or Flare. Provider-chosen (auto) quality is never used. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high. The same quality label does not promise equivalent results across models."
|
|
88
91
|
},
|
|
89
92
|
"outputFormat": {
|
|
90
93
|
"type": "string",
|
|
@@ -98,7 +101,22 @@
|
|
|
98
101
|
},
|
|
99
102
|
"aspectRatio": {
|
|
100
103
|
"type": "string",
|
|
101
|
-
"description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\".\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2
|
|
104
|
+
"description": "Do NOT set unless the user explicitly requests an aspect ratio, format, orientation, or exact pixel dimensions. When a reference/source image is used and the user did not ask to change its shape, omit this field so the handler preserves the selected source image's own ratio.\n\nFormats: \"16:9\", \"9:16\", \"4:5\", \"1:1\", \"4:3\", \"3:2\", \"21:9\", or exact pixels like \"1920x1080\".\n\nCRITICAL: When the user specifies exact pixel dimensions (e.g., \"1280x720\", \"1080x1920\", \"1920x1080\", \"3840x2160\") or an orientation-qualified named resolution (e.g., \"720p landscape\", \"720p portrait\"), use the exact pixel format, NOT a ratio like \"16:9\" or \"9:16\". Exact user-requested dimensions override the selected default media quality, including Pro/HQ defaults. A bare named video resolution like \"720p resolution\" is only a resolution tier/short-side request; do not turn it into landscape pixels and do not set aspectRatio unless the user also states landscape, portrait, vertical, horizontal, or exact pixels. If requested pixels are in bounds but not on the model's pixel step, still pass the user's exact pixel request; the handler snaps to the nearest supported size internally. Only use ratio format when the user says a generic format name without pixel dimensions.\n\nMappings (use ONLY when user does NOT specify pixel dimensions): landscape/widescreen/YouTube/cinematic → \"16:9\". portrait → \"9:16\". TikTok/Reels/IG Reels → \"1080x1920\". ultrawide/cinema scope → \"21:9\". Instagram post → \"4:5\". square → \"1:1\". standard/TV → \"4:3\". 720p landscape → \"1280x720\". 720p portrait → \"720x1280\". 1080p landscape → \"1920x1080\". 1080p portrait/HD portrait → \"1080x1920\". 4K landscape → \"3840x2160\". 4K portrait → \"2160x3840\". Never set for generic requests like \"make a video\".\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. Sogni does not expose transparent output for GPT Image 2.0. For transparent assets, select GPT Image 2.5 Sunburst or Flare with gptImageBackground=transparent and PNG or WebP output."
|
|
105
|
+
},
|
|
106
|
+
"gptImageBackground": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"auto",
|
|
110
|
+
"opaque",
|
|
111
|
+
"transparent"
|
|
112
|
+
],
|
|
113
|
+
"description": "GPT Image background: auto or opaque; transparent is supported by GPT Image 2.5 Sunburst and Flare with PNG or WebP output. JPEG cannot preserve transparency."
|
|
114
|
+
},
|
|
115
|
+
"gptImageOutputCompression": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0,
|
|
118
|
+
"maximum": 100,
|
|
119
|
+
"description": "Optional GPT Image JPEG/WebP output compression, from 0 to 100. Omit for PNG."
|
|
102
120
|
}
|
|
103
121
|
},
|
|
104
122
|
"required": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AASlD,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AASlD,eAAO,MAAM,UAAU,EAAE,cA+KxB,CAAC"}
|
|
@@ -88,12 +88,14 @@ COMPOSITE GPT IMAGE 2 STORYBOARD SHEETS: When numberOfVariations=1 and the user
|
|
|
88
88
|
type: 'string',
|
|
89
89
|
enum: [
|
|
90
90
|
'gpt-image-2',
|
|
91
|
+
'gpt-image-2.5-sunburst',
|
|
92
|
+
'gpt-image-2.5-flare',
|
|
91
93
|
'qwen-lightning',
|
|
92
94
|
'qwen',
|
|
93
95
|
'krea-identity-edit',
|
|
94
96
|
'dark-beast-krea2-identity-edit',
|
|
95
97
|
],
|
|
96
|
-
description: 'The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set "krea-identity-edit" (Krea 2 Identity Edit LoRA v1.2) whenever an edit of a referenced person or character must keep likeness or character identity while changing clothes, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a single-character sheet in non-Pro mode. This semantic default applies even when the user did not name Krea; an explicitly user-requested model always wins. Set "dark-beast-krea2-identity-edit" only when the user explicitly asks for Dark Beast Krea 2 Identity Edit, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set "gpt-image-2" when the user explicitly names GPT/OpenAI/ChatGPT Image, or when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets may retain GPT Image 2. If GPT Image 2 is unavailable for detail-critical layout work, fall back to full "qwen", never "qwen-lightning". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Let the model tier and worker choose their current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. Put the base scene/image first and a person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity.',
|
|
98
|
+
description: 'The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set "krea-identity-edit" (Krea 2 Identity Edit LoRA v1.2) whenever an edit of a referenced person or character must keep likeness or character identity while changing clothes, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a single-character sheet in non-Pro mode. This semantic default applies even when the user did not name Krea; an explicitly user-requested model always wins. Set "dark-beast-krea2-identity-edit" only when the user explicitly asks for Dark Beast Krea 2 Identity Edit, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set "gpt-image-2" when the user explicitly names GPT/OpenAI/ChatGPT Image, or when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets may retain GPT Image 2. If GPT Image 2 is unavailable for detail-critical layout work, fall back to full "qwen", never "qwen-lightning". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Let the model tier and worker choose their current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. Put the base scene/image first and a person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity. 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.',
|
|
97
99
|
},
|
|
98
100
|
sourceImageIndex: {
|
|
99
101
|
type: 'number',
|
|
@@ -131,12 +133,27 @@ ${loraGuidance_js_1.KREA2_LORA_CATALOG_REFERENCE}`,
|
|
|
131
133
|
},
|
|
132
134
|
aspectRatio: {
|
|
133
135
|
type: 'string',
|
|
134
|
-
description: `${index_js_1.ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated reference-guided image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2
|
|
136
|
+
description: `${index_js_1.ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated reference-guided image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. Sogni does not expose transparent output for GPT Image 2.0. For transparent assets, select GPT Image 2.5 Sunburst or Flare with gptImageBackground=transparent and PNG or WebP output.`,
|
|
135
137
|
},
|
|
136
138
|
gptImageQuality: {
|
|
137
139
|
type: 'string',
|
|
138
|
-
enum: ['low', 'medium', 'high'],
|
|
139
|
-
description: 'Optional GPT Image
|
|
140
|
+
enum: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
141
|
+
description: 'Optional GPT Image rendering quality. Only set it when the user explicitly asks for low/fast, medium/balanced, high/final, xhigh/extra high, or max/maximum quality; xhigh and max require GPT Image 2.5 Sunburst or Flare. Provider-chosen (auto) quality is never used. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high. The same quality label does not promise equivalent results across models.',
|
|
142
|
+
},
|
|
143
|
+
mask_image_url: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
description: 'Optional GPT Image edit mask URL or inline data:image/png;base64 URI. Requires a PNG alpha mask matching the first source reference dimensions; the source itself may be JPEG, PNG or WebP. Transparent mask regions identify edits; opaque regions are preserved as guidance. With multiple references the mask applies only to the first image.',
|
|
146
|
+
},
|
|
147
|
+
gptImageBackground: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
enum: ['auto', 'opaque', 'transparent'],
|
|
150
|
+
description: 'GPT Image background: auto or opaque; transparent is supported by GPT Image 2.5 Sunburst and Flare with PNG or WebP output. JPEG cannot preserve transparency.',
|
|
151
|
+
},
|
|
152
|
+
gptImageOutputCompression: {
|
|
153
|
+
type: 'integer',
|
|
154
|
+
minimum: 0,
|
|
155
|
+
maximum: 100,
|
|
156
|
+
description: 'Optional GPT Image JPEG/WebP output compression, from 0 to 100. Omit for PNG.',
|
|
140
157
|
},
|
|
141
158
|
outputFormat: {
|
|
142
159
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAIsC;AACtC,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0+BAA0+B;QAC5+B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBAkEsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,gBAAgB;wBAChB,MAAM;wBACN,oBAAoB;wBACpB,gCAAgC;qBACjC;oBACD,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAIsC;AACtC,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0+BAA0+B;QAC5+B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBAkEsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,wBAAwB;wBACxB,qBAAqB;wBACrB,gBAAgB;wBAChB,MAAM;wBACN,oBAAoB;wBACpB,gCAAgC;qBACjC;oBACD,WAAW,EACT,0qEAA0qE;iBAC7qE;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kiBAAk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AAS;oBACf,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,GAAG;oBACZ,WAAW,EAAE,+EAA+E;iBAC7F;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2jBAA2jB;iBAC9jB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAWlD,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAWlD,eAAO,MAAM,UAAU,EAAE,cAyIxB,CAAC"}
|
|
@@ -48,7 +48,7 @@ VIDEO KEYFRAMES: When generating images intended as first+last frames for video
|
|
|
48
48
|
model: {
|
|
49
49
|
type: 'string',
|
|
50
50
|
enum: modelRegistry_js_1.GENERATE_IMAGE_MODELS.map(model => model.key),
|
|
51
|
-
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" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 image/model, when they explicitly request very strong text rendering, or by default for 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. 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-2" 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.',
|
|
51
|
+
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" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 image/model, when they explicitly request very strong text rendering, or by default for 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. 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-2" 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.',
|
|
52
52
|
},
|
|
53
53
|
width: {
|
|
54
54
|
type: 'number',
|
|
@@ -100,8 +100,19 @@ VIDEO KEYFRAMES: When generating images intended as first+last frames for video
|
|
|
100
100
|
},
|
|
101
101
|
gptImageQuality: {
|
|
102
102
|
type: 'string',
|
|
103
|
-
enum: ['low', 'medium', 'high'],
|
|
104
|
-
description: 'Optional GPT Image
|
|
103
|
+
enum: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
104
|
+
description: 'Optional GPT Image rendering quality. Only set it when the user explicitly asks for low/fast, medium/balanced, high/final, xhigh/extra high, or max/maximum quality; xhigh and max require GPT Image 2.5 Sunburst or Flare. Provider-chosen (auto) quality is never used. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high. The same quality label does not promise equivalent results across models.',
|
|
105
|
+
},
|
|
106
|
+
gptImageBackground: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
enum: ['auto', 'opaque', 'transparent'],
|
|
109
|
+
description: 'GPT Image background: auto or opaque; transparent is supported by GPT Image 2.5 Sunburst and Flare with PNG or WebP output. JPEG cannot preserve transparency.',
|
|
110
|
+
},
|
|
111
|
+
gptImageOutputCompression: {
|
|
112
|
+
type: 'integer',
|
|
113
|
+
minimum: 0,
|
|
114
|
+
maximum: 100,
|
|
115
|
+
description: 'Optional GPT Image JPEG/WebP output compression, from 0 to 100. Omit for PNG.',
|
|
105
116
|
},
|
|
106
117
|
outputFormat: {
|
|
107
118
|
type: 'string',
|
|
@@ -110,7 +121,7 @@ VIDEO KEYFRAMES: When generating images intended as first+last frames for video
|
|
|
110
121
|
},
|
|
111
122
|
aspectRatio: {
|
|
112
123
|
type: 'string',
|
|
113
|
-
description: `${index_js_1.ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2
|
|
124
|
+
description: `${index_js_1.ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. Sogni does not expose transparent output for GPT Image 2.0. For transparent assets, select GPT Image 2.5 Sunburst or Flare with gptImageBackground=transparent and PNG or WebP output.`,
|
|
114
125
|
},
|
|
115
126
|
},
|
|
116
127
|
required: ['prompt'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAKsC;AACtC,wFAAqF;AACrF,sDAAmE;AACnE,oEAAsE;AAEzD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,g0BAAg0B;QACl0B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;siBA0B6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,wCAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;oBACnD,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAKsC;AACtC,wFAAqF;AACrF,sDAAmE;AACnE,oEAAsE;AAEzD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,g0BAAg0B;QACl0B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;siBA0B6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,wCAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;oBACnD,WAAW,EACT,2iEAA2iE;iBAC9iE;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,q/BAAq/B;iBACx/B;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,s/BAAs/B;iBACz/B;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,s9CAAs9C;oBACx9C,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,oJAAoJ;iBACvJ;gBACD,uBAAuB,EAAE;oBACvB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT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C,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,mCAAwB,upBAAupB;iBACrrB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -5,6 +5,12 @@ export interface ModelOption {
|
|
|
5
5
|
export declare const GENERATE_IMAGE_MODELS: readonly [{
|
|
6
6
|
readonly key: "gpt-image-2";
|
|
7
7
|
readonly displayName: "GPT Image 2";
|
|
8
|
+
}, {
|
|
9
|
+
readonly key: "gpt-image-2.5-sunburst";
|
|
10
|
+
readonly displayName: "GPT Image 2.5 Sunburst";
|
|
11
|
+
}, {
|
|
12
|
+
readonly key: "gpt-image-2.5-flare";
|
|
13
|
+
readonly displayName: "GPT Image 2.5 Flare";
|
|
8
14
|
}, {
|
|
9
15
|
readonly key: "z-turbo";
|
|
10
16
|
readonly displayName: "Z-Image Turbo";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelRegistry.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"modelRegistry.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BS,CAAC;AAM5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAqFxD,CAAC;AAkBF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvD;AAGD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE3D;AAGD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CAE/D;AAGD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,MAAM,GACvB,WAAW,EAAE,CAIf"}
|
|
@@ -16,6 +16,8 @@ const QUALITY_ONLY_MODELS = [
|
|
|
16
16
|
];
|
|
17
17
|
exports.GENERATE_IMAGE_MODELS = [
|
|
18
18
|
{ key: 'gpt-image-2', displayName: 'GPT Image 2' },
|
|
19
|
+
{ key: 'gpt-image-2.5-sunburst', displayName: 'GPT Image 2.5 Sunburst' },
|
|
20
|
+
{ key: 'gpt-image-2.5-flare', displayName: 'GPT Image 2.5 Flare' },
|
|
19
21
|
{ key: 'z-turbo', displayName: 'Z-Image Turbo' },
|
|
20
22
|
{ key: 'z-image', displayName: 'Z-Image' },
|
|
21
23
|
{ key: 'krea-2-turbo', displayName: 'Krea 2 Turbo' },
|
|
@@ -46,6 +48,8 @@ exports.MODELS_BY_TOOL = {
|
|
|
46
48
|
generate_image: [...exports.GENERATE_IMAGE_MODELS],
|
|
47
49
|
edit_image: [
|
|
48
50
|
{ key: 'gpt-image-2', displayName: 'GPT Image 2' },
|
|
51
|
+
{ key: 'gpt-image-2.5-sunburst', displayName: 'GPT Image 2.5 Sunburst' },
|
|
52
|
+
{ key: 'gpt-image-2.5-flare', displayName: 'GPT Image 2.5 Flare' },
|
|
49
53
|
{ key: 'qwen-lightning', displayName: 'Qwen Image Edit Lightning' },
|
|
50
54
|
{ key: 'qwen', displayName: 'Qwen Image Edit 2511' },
|
|
51
55
|
{ key: 'krea-identity-edit', displayName: 'Krea 2 Identity Edit LoRA v1.2' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelRegistry.js","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"modelRegistry.js","sourceRoot":"","sources":["../../../src/tools/shared/modelRegistry.ts"],"names":[],"mappings":";;;AAsKA,wCAGC;AAGD,8CAEC;AAGD,0CAEC;AAGD,oDAOC;AA9KD,MAAM,mBAAmB,GAAkB;IACzC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE;IAC9D,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE;IAClD,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,4BAA4B,EAAE;CAC1D,CAAC;AAGF,MAAM,mBAAmB,GAAkB;IACzC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE;IAC9D,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE;CACnD,CAAC;AAGW,QAAA,qBAAqB,GAAG;IACnC,EAAE,GAAG,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE;IAClD,EAAE,GAAG,EAAE,wBAAwB,EAAE,WAAW,EAAE,wBAAwB,EAAE;IACxE,EAAE,GAAG,EAAE,qBAAqB,EAAE,WAAW,EAAE,qBAAqB,EAAE;IAClE,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE;IAChD,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE;IAC1C,EAAE,GAAG,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE;IACpD,EAAE,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAC7D,EAAE,GAAG,EAAE,oBAAoB,EAAE,WAAW,EAAE,0BAA0B,EAAE;IACtE,EAAE,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAC7D,EAA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C;AACtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageReferenceModelIds.d.ts","sourceRoot":"","sources":["../../src/utils/imageReferenceModelIds.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GACvC,aAAa,GACb,iBAAiB,GACjB,oBAAoB,GACpB,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"imageReferenceModelIds.d.ts","sourceRoot":"","sources":["../../src/utils/imageReferenceModelIds.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GACvC,aAAa,GACb,iBAAiB,GACjB,oBAAoB,GACpB,MAAM,CAAC;AAuCX,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,MAAM,GACd,+BAA+B,GAAG,IAAI,CAOxC"}
|
|
@@ -4,7 +4,7 @@ exports.resolveRegisteredImageReferenceModelId = resolveRegisteredImageReference
|
|
|
4
4
|
function normalizeImageReferenceModelId(modelId) {
|
|
5
5
|
return modelId.trim().toLowerCase().replace(/[_.\s]+/g, '-').replace(/-+/g, '-');
|
|
6
6
|
}
|
|
7
|
-
const GPT_IMAGE_2_REFERENCE_MODEL_IDS = new Set(['gpt-image-2']);
|
|
7
|
+
const GPT_IMAGE_2_REFERENCE_MODEL_IDS = new Set(['gpt-image-2', 'gpt-image-2-5-sunburst', 'gpt-image-2-5-flare']);
|
|
8
8
|
const QWEN_EDIT_REFERENCE_MODEL_IDS = new Set([
|
|
9
9
|
'qwen',
|
|
10
10
|
'qwen-lightning',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageReferenceModelIds.js","sourceRoot":"","sources":["../../src/utils/imageReferenceModelIds.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"imageReferenceModelIds.js","sourceRoot":"","sources":["../../src/utils/imageReferenceModelIds.ts"],"names":[],"mappings":";;AA2CA,wFASC;AA9CD,SAAS,8BAA8B,CAAC,OAAe;IACrD,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACnF,CAAC;AAID,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC,CAAC,aAAa,EAAE,wBAAwB,EAAE,qBAAqB,CAAC,CAAC,CAAC;AAElH,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC;IAC5C,MAAM;IACN,gBAAgB;IAChB,iBAAiB;IACjB,sBAAsB;IACtB,gCAAgC;IAChC,0BAA0B;IAC1B,oCAAoC;CACrC,CAAC,CAAC;AAEH,MAAM,sCAAsC,GAAG,IAAI,GAAG,CAAC;IACrD,oBAAoB;IACpB,sBAAsB;IACtB,qBAAqB;IACrB,0BAA0B;IAC1B,gCAAgC;IAChC,iCAAiC;IACjC,qCAAqC;IACrC,sCAAsC;IACtC,sCAAsC;CACvC,CAAC,CAAC;AASH,SAAgB,sCAAsC,CACpD,OAAe;IAEf,MAAM,UAAU,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAC3D,IAAI,+BAA+B,CAAC,GAAG,CAAC,UAAU,CAAC;QAAE,OAAO,aAAa,CAAC;IAC1E,IAAI,6BAA6B,CAAC,GAAG,CAAC,UAAU,CAAC;QAAE,OAAO,iBAAiB,CAAC;IAC5E,IAAI,sCAAsC,CAAC,GAAG,CAAC,UAAU,CAAC;QAAE,OAAO,oBAAoB,CAAC;IACxF,IAAI,UAAU,KAAK,MAAM;QAAE,OAAO,MAAM,CAAC;IACzC,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -295,6 +295,8 @@ const KREA2_EDIT_MODEL_NAMES = new Set([
|
|
|
295
295
|
]);
|
|
296
296
|
const GPT_IMAGE_MODEL_NAMES = new Set([
|
|
297
297
|
"gpt-image-2",
|
|
298
|
+
"gpt-image-2-5-sunburst",
|
|
299
|
+
"gpt-image-2-5-flare",
|
|
298
300
|
"gpt-image2",
|
|
299
301
|
"gpt-2-image",
|
|
300
302
|
"openai-gpt-image-2",
|
|
@@ -354,9 +356,11 @@ export function resolveImagePromptAuthoringProfile(targetModel, requestedOperati
|
|
|
354
356
|
if (intrinsicEdit && operation !== "edit")
|
|
355
357
|
return null;
|
|
356
358
|
if (GPT_IMAGE_MODEL_NAMES.has(model)) {
|
|
359
|
+
const variant = model === "gpt-image-2-5-sunburst" ? "sunburst" : model === "gpt-image-2-5-flare" ? "flare" : null;
|
|
360
|
+
const modelId = variant ? `gpt-image-2.5-${variant}` : "gpt-image-2";
|
|
357
361
|
return imageProfile({
|
|
358
|
-
id: operation
|
|
359
|
-
modelTitle: "GPT Image 2",
|
|
362
|
+
id: `${modelId}-${operation}`,
|
|
363
|
+
modelTitle: variant ? `GPT Image 2.5 ${variant === "sunburst" ? "Sunburst" : "Flare"}` : "GPT Image 2",
|
|
360
364
|
promptingType: operation === "edit" ? "gpt-image-edit" : "gpt-image",
|
|
361
365
|
operation,
|
|
362
366
|
...(operation === "edit" ? { maxReferenceImages: 16 } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imagePrompt.js","sourceRoot":"","sources":["../../src/contracts/imagePrompt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgDnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAE5C,MAAM,YAAY,GAAG;;;;;;;;gGAQ2E,CAAC;AAEjG,MAAM,mBAAmB,GAAG;;;;;;;4IAOgH,CAAC;AAE7I,MAAM,UAAU,GAAG;;;;;;;sUAOmT,CAAC;AAEvU,MAAM,UAAU,GAAG;;;;;;;8QAO2P,CAAC;AAE/Q,MAAM,UAAU,GAAG;;;;;;;;;4IASyH,CAAC;AAE7I,MAAM,UAAU,GAAG;;;;;;gEAM6C,CAAC;AAEjE,MAAM,SAAS,GAAG;;;;;;qDAMmC,CAAC;AAEtD,MAAM,WAAW,GAAG;;;;;;4HAMwG,CAAC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CAAC,CAAC,CAAC,EAC/C,CAAC;YACD,MAAM,IAAI,KAAK,CACb,mGAAmG,CACpG,CAAC;QACJ,CAAC;QACD,OAAO;IACT,CAAC;IACD,IAAI,yCAAyC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACnG,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import { parseAspectRatio } from './imageDimensions.js';
|
|
2
|
+
import { isGptImage25Model, isGptImageModel, normalizeGptImageModelAlias } from './gptImage.js';
|
|
3
|
+
const GPT_IMAGE_ONLY_ARG_KEYS = [
|
|
4
|
+
'gptImageQuality',
|
|
5
|
+
'gpt_image_quality',
|
|
6
|
+
'gptImageBackground',
|
|
7
|
+
'gpt_image_background',
|
|
8
|
+
'gptImageOutputCompression',
|
|
9
|
+
'gpt_image_output_compression',
|
|
10
|
+
'mask_image_url',
|
|
11
|
+
];
|
|
12
|
+
function dropGptImageOptionsUnsupportedBy(args, modelKey) {
|
|
13
|
+
const model = normalizeGptImageModelAlias(modelKey);
|
|
14
|
+
if (!isGptImageModel(model)) {
|
|
15
|
+
for (const key of GPT_IMAGE_ONLY_ARG_KEYS)
|
|
16
|
+
delete args[key];
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (isGptImage25Model(model))
|
|
20
|
+
return;
|
|
21
|
+
for (const key of ['gptImageQuality', 'gpt_image_quality']) {
|
|
22
|
+
if (args[key] === 'xhigh' || args[key] === 'max')
|
|
23
|
+
delete args[key];
|
|
24
|
+
}
|
|
25
|
+
for (const key of ['gptImageBackground', 'gpt_image_background']) {
|
|
26
|
+
if (args[key] === 'transparent')
|
|
27
|
+
delete args[key];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
2
30
|
function normalizePositiveNumber(value) {
|
|
3
31
|
if (typeof value !== 'number' || !Number.isFinite(value) || value <= 0)
|
|
4
32
|
return undefined;
|
|
@@ -51,6 +79,7 @@ export function applyGenerationJobOverridesToArgs(args, overrides, options = {})
|
|
|
51
79
|
if (overrides.modelKey) {
|
|
52
80
|
const modelArgKey = options.modelArgKey ?? 'model';
|
|
53
81
|
nextArgs[modelArgKey] = overrides.modelKey;
|
|
82
|
+
dropGptImageOptionsUnsupportedBy(nextArgs, overrides.modelKey);
|
|
54
83
|
}
|
|
55
84
|
if (overrides.dimensionMode === 'dimensions') {
|
|
56
85
|
const width = normalizePositiveNumber(overrides.width);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generationJob.js","sourceRoot":"","sources":["../../src/media/generationJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"generationJob.js","sourceRoot":"","sources":["../../src/media/generationJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAEhG,MAAM,uBAAuB,GAAG;IAC9B,iBAAiB;IACjB,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,2BAA2B;IAC3B,8BAA8B;IAC9B,gBAAgB;CACR,CAAC;AAGX,SAAS,gCAAgC,CAAC,IAA6B,EAAE,QAAgB;IACvF,MAAM,KAAK,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,KAAK,MAAM,GAAG,IAAI,uBAAuB;YAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5D,OAAO;IACT,CAAC;IACD,IAAI,iBAAiB,CAAC,KAAK,CAAC;QAAE,OAAO;IACrC,KAAK,MAAM,GAAG,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,EAAE,CAAC;QAC3D,IAAI,IAAI,CAA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