@sogni-ai/sogni-creative-agent-skill 3.56.2 → 3.58.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/.agents/skills/sogni-creative-agent-skill/SKILL.md +3 -3
- package/.agents/skills/sogni-creative-agent-skill/references/image-prompting.md +14 -0
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +36 -3
- package/.agents/skills/sogni-creative-agent-skill/references/personal-loras.md +7 -0
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +3 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +4 -1
- package/SKILL.md +5 -5
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +2 -2
- package/llm.txt +11 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/image-prompting.md +14 -0
- package/references/models.md +36 -3
- package/references/personal-loras.md +7 -0
- package/references/video-prompting.md +3 -1
- package/skill-package.json +3 -3
- package/skills/image_editing.md +1 -1
- package/skills/image_generation.md +3 -2
- package/sogni-agent.mjs +123 -3
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
|
|
|
3
3
|
description: "Generate and edit images, create Pixal3D 3D models, remove backgrounds with BiRefNet, synthesize Qwen3-TTS speech, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, apply a saved identity, or refine an earlier Sogni result."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: "3.
|
|
6
|
+
version: "3.58.0"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -149,8 +149,8 @@ and Music 3 section tags. Discover 3D with `--search-models pixal3d` or
|
|
|
149
149
|
one render: read [krea2-loras.md](references/krea2-loras.md).
|
|
150
150
|
- Video prompts, reference roles, LTX, WAN 2.2, Wan 3, MiniMax, Seedance, and HappyHorse:
|
|
151
151
|
read [video-prompting.md](references/video-prompting.md).
|
|
152
|
-
- Prompt-only image deliverables for SD/SDXL, FLUX.1 Schnell,
|
|
153
|
-
Z-Image, GPT Image, and model-specific editing: read
|
|
152
|
+
- Prompt-only image deliverables for SD/SDXL, FLUX.1 Schnell, FLUX 3 Image Klein,
|
|
153
|
+
Chroma, Krea 2, Qwen, Z-Image, GPT Image, and model-specific editing: read
|
|
154
154
|
[image-prompting.md](references/image-prompting.md).
|
|
155
155
|
- Local video cutting, stitching, overlays, subtitles, audio remixing, and
|
|
156
156
|
verification: read [video-editing.md](references/video-editing.md).
|
|
@@ -13,8 +13,10 @@ substitute another destination model's prompt contract.
|
|
|
13
13
|
| SD 1.5 | Weighted or comma-separated tags; quality/medium, subject, environment, lighting/camera | `positive_prompt:` plus `negative_prompt:` |
|
|
14
14
|
| SDXL | Hybrid natural language plus selective comma-separated style/quality terms; Pony variants start with their score tags | `positive_prompt:` plus `negative_prompt:` |
|
|
15
15
|
| FLUX.1 Schnell | One concise natural-language visual description centered on the subject, composition, light, and style; no SD score/tag soup | Prompt text only |
|
|
16
|
+
| FLUX 3 Image Klein | A full scene caption in plain sentences: subject, framing, setting, lighting, and style; for reference edits, what to take from each reference and how they combine; no negative prompt (guidance is fixed at 1) | Prompt text only |
|
|
16
17
|
| Chroma 1 / v.46 / Detail | One coherent natural-language visual description; exact visible text in quotes; no SD score/tag soup | Prompt text only |
|
|
17
18
|
| Krea 2 / Krea 2 Turbo | Dense, fluent rich caption emphasizing observable composition, palette, light, texture, and atmosphere; no SD weighting syntax | Prompt text only |
|
|
19
|
+
| MOSS-Image SFT | Detailed natural-language caption, tags, or a supplied experimental JSON layout; preserve exact visible text and line breaks | Prompt text only; generation only |
|
|
18
20
|
| Qwen Image 2512 | Detailed natural-language description with explicit spatial relationships and exact quoted typography | `positive_prompt:` plus `negative_prompt:` |
|
|
19
21
|
| Z-Image | Compact instruction-aware natural-language caption | Foundation model: positive plus negative; Turbo: prompt text only |
|
|
20
22
|
| GPT Image 2 | Direct natural-language creative direction with explicit layout, hierarchy, and exact quoted copy | Prompt text only |
|
|
@@ -33,6 +35,15 @@ Markdown fence, preamble, explanation, or render offer.
|
|
|
33
35
|
|
|
34
36
|
## Selector and operation discipline
|
|
35
37
|
|
|
38
|
+
- MOSS-Image SFT uses hosted selector `moss-image` and direct CLI model ID
|
|
39
|
+
`moss_image_sft_int8_convrot`. The 8-step preset uses hosted selector
|
|
40
|
+
`moss-image-8step` or direct ID `moss_image_sft_dmd8_int8_convrot`, with exactly
|
|
41
|
+
8 steps and guidance 1. Both accept compatible Personal LoRAs. MOSS generates
|
|
42
|
+
from text and has no uploaded-photo
|
|
43
|
+
editing or reference-image input. JSON layouts use centered absolute pixel
|
|
44
|
+
boxes in `[y_min,x_min,y_max,x_max]` order, `bbox_format: "yxyx"`, and
|
|
45
|
+
`bbox_coord_space: "abs_centralized"`; match the generation canvas to the layout.
|
|
46
|
+
|
|
36
47
|
- Treat a model selector as an exact capability declaration, not a name to
|
|
37
48
|
fuzzy-match into a convenient family. Every selector exposed by
|
|
38
49
|
`generate_image` and `edit_image` must resolve in the shared registry.
|
|
@@ -40,6 +51,9 @@ Markdown fence, preamble, explanation, or render offer.
|
|
|
40
51
|
registered generation and edit contracts. A generation-only selector such
|
|
41
52
|
as `flux1-schnell-fp8` or `krea-2-turbo` must not silently accept an edit
|
|
42
53
|
request.
|
|
54
|
+
- `flux-3-klein` (FLUX 3 Image Klein) is one selector for both operations:
|
|
55
|
+
generation with no references, a start image, or edits guided by up to ten
|
|
56
|
+
references.
|
|
43
57
|
- Use `qwen` / `qwen-lightning` as edit selectors and
|
|
44
58
|
`qwen-2512` / `qwen-2512-lightning` as generation selectors.
|
|
45
59
|
- Use `krea-identity-edit` or
|
|
@@ -87,7 +87,10 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
|
|
|
87
87
|
| `flux1-schnell-fp8` | Very fast | Quick iterations |
|
|
88
88
|
| `qwen_image_2512_fp8` | Medium (~30s) | High quality |
|
|
89
89
|
| `qwen_image_2512_fp8_lightning` | Variable | Qwen Image 2512 Lightning |
|
|
90
|
+
| `flux3_image_klein_sd_int8_convrot` | Variable | FLUX 3 Image Klein (Black Forest Labs): text-to-image, image-to-image, and edits from up to 10 optional context images |
|
|
90
91
|
| `krea2_turbo_fp8_scaled` | Fast | Krea 2 Turbo text-to-image, fast high-quality generations with strong prompt adherence |
|
|
92
|
+
| `moss_image_sft_int8_convrot` | Full-step | Uncensored MOSS-Image SFT text-to-image with compatible Personal LoRAs; natural-language captions, tags and experimental JSON layouts; 50 steps, CFG 3, Euler / sgm_uniform |
|
|
93
|
+
| `moss_image_sft_dmd8_int8_convrot` | 8-step | Uncensored MOSS-Image with the built-in DMD adapter; CFG 1, Euler / sgm_uniform; compatible Personal LoRAs |
|
|
91
94
|
| `dark_beast_krea2_fp8` | Fast | Dark Beast Krea 2 community text-to-image fine-tune |
|
|
92
95
|
| `krea2_identity_edit_v1_2` | Fast | Krea 2 Identity Edit LoRA v1.2, identity-preserving edits with 1-2 references |
|
|
93
96
|
| `dark_beast_krea2_identity_edit_v1_2` | Fast | Dark Beast Krea 2 Identity Edit community LoRA with 1-2 references |
|
|
@@ -130,6 +133,34 @@ reads the exact frame count and rate with a local ffprobe. The server sets the
|
|
|
130
133
|
maximum clip length; do not quote a fixed limit. Relay a server rejection if
|
|
131
134
|
the source is too long, without trimming it or switching to a generative tool.
|
|
132
135
|
|
|
136
|
+
FLUX 3 Image Klein is one model for three jobs: text-to-image from a prompt
|
|
137
|
+
alone, image-to-image from a start image, and edits or compositions guided by
|
|
138
|
+
1-10 context images (`-c`, repeatable). References are optional, unlike the
|
|
139
|
+
Qwen and Krea identity edit models. Hosted/chat planning uses the selector
|
|
140
|
+
`flux-3-klein` on both `generate_image` and `edit_image`; direct CLI `-m` uses
|
|
141
|
+
`flux3_image_klein_sd_int8_convrot`. Output is 256-4096 px per side (step 16,
|
|
142
|
+
default 1440x1440, about 2 MP) at 4-16 steps (default 16), including 4K: 3840x2160,
|
|
143
|
+
2160x3840 and 4096x4096 for prompts and several references. Renders above
|
|
144
|
+
2048x2048 pixels run on 30 GB+ GPUs and take longer. An edit of one photo
|
|
145
|
+
renders at that photo's own shape, up to 4 megapixels (for example 2352x1776 for
|
|
146
|
+
a 4:3 photo; never enlarged): the CLI picks that size when you give none, and
|
|
147
|
+
caps a larger one, because the server refuses one-photo edits above 4 MP (larger
|
|
148
|
+
than its photo the edit breaks). With several references the first sets the
|
|
149
|
+
shape at up to 2 MP. A different shape recomposes the photo. Guidance is fixed
|
|
150
|
+
at 1, so a negative prompt has no effect; write a full scene caption instead,
|
|
151
|
+
as Black Forest Labs recommends. It has no catalog LoRAs; personal LoRAs
|
|
152
|
+
imported for FLUX 3 Image Klein work (`--lora personal-<id> --no-filter`; see
|
|
153
|
+
[`personal-loras.md`](./personal-loras.md)). It does not
|
|
154
|
+
render nudity: for mature requests use `dark_beast_krea2_fp8`, or with
|
|
155
|
+
references `dark_beast_krea2_identity_edit_v1_2`. Leave steps, guidance,
|
|
156
|
+
sampler, and scheduler unset to use the live tier defaults. Each reference adds
|
|
157
|
+
render time and cost, so pass only the references the result needs.
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
sogni-agent -m flux3_image_klein_sd_int8_convrot -c mug.png -c kitchen.jpg \
|
|
161
|
+
"product photo of the mug on the kitchen's oak counter, morning window light"
|
|
162
|
+
```
|
|
163
|
+
|
|
133
164
|
For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
|
|
134
165
|
`krea-2-turbo`; direct CLI `-m` uses the worker model ID
|
|
135
166
|
`krea2_turbo_fp8_scaled`.
|
|
@@ -182,8 +213,9 @@ defaults.
|
|
|
182
213
|
`gpt-image-2` supports flexible OpenAI image sizes up to `3840px` on either
|
|
183
214
|
edge, max `3:1` aspect ratio, and total pixels from `655,360` through
|
|
184
215
|
`8,294,400`; the API snaps dimensions to valid multiples of 16. For image
|
|
185
|
-
editing with `gpt-image-2`, you can pass up to 16 context images (
|
|
186
|
-
support up to 3; Krea identity edit models
|
|
216
|
+
editing with `gpt-image-2`, you can pass up to 16 context images (FLUX 3 Image
|
|
217
|
+
Klein supports up to 10; Qwen models support up to 3; Krea identity edit models
|
|
218
|
+
support up to 2).
|
|
187
219
|
|
|
188
220
|
## Utility and 3D models
|
|
189
221
|
|
|
@@ -1302,6 +1334,7 @@ model recommendations.
|
|
|
1302
1334
|
| Image editing | `qwen_image_edit_2511_fp8_lightning` |
|
|
1303
1335
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
1304
1336
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
1337
|
+
| Text-to-image, image-to-image, or edits from up to ten references in one model | `flux3_image_klein_sd_int8_convrot` |
|
|
1305
1338
|
| Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
|
|
1306
1339
|
| Photobooth face transfer | `coreml-sogniXLturbo_alpha1_ad` |
|
|
1307
1340
|
| Select or cut out an object in an image | `sam3_image_segment_bf16` |
|
|
@@ -1356,7 +1389,7 @@ model recommendations.
|
|
|
1356
1389
|
- **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
|
|
1357
1390
|
- **Wan 3** uses fixed 30 fps, fixed or smart 2–30 s output, and 480P/720P/1080P buckets with `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, and `9:16`; see [Alibaba Wan 3](#alibaba-wan-3).
|
|
1358
1391
|
- **Wan 3.0 Enhanced** uses fixed 30 fps, fixed or smart 2–30 s output, 480P/720P/1080P buckets, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`; see [Wan 3.0 Enhanced](#wan-30-enhanced).
|
|
1359
|
-
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
|
|
1392
|
+
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels (Ref2VA Turbo: 522,240, its own 960×544 canvas; the CLI fits larger requests inside it). Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
|
|
1360
1393
|
- **LTX family** (`ltx2-*`, `ltx23-*`, `ltx25-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
1361
1394
|
- **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, `seedance2-mini-uncensored`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini`, `seedance2-mini-uncensored` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` and `seedance2-5-uncensored` render 4–30 s single clips (97–721 frames) with 480p/720p/1080p output (no 4K). Select `--output-format mov` for editing or `--return-last-frame` to receive the final frame as an image for the next clip. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
1362
1395
|
- **HappyHorse 1.1** runs at fixed 24 fps and supports 3–15 s durations at 720P or 1080P, with always-on native audio (no negative prompt, no ControlNet). Accepted aspect ratios are `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `4:5`, `5:4`, `9:21`, and `21:9`. i2v takes one first-frame image (`--ref`); r2v takes 1–9 reference images (`-c`/`--context`); it accepts no reference video or audio.
|
|
@@ -17,9 +17,16 @@ Once ready, use the actual returned ID:
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
sogni-agent -m krea2_turbo_fp8_scaled --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "a glass sculpture"
|
|
20
|
+
sogni-agent -m flux3_image_klein_sd_int8_convrot --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "an old fisherman mending a net on a wooden dock at dawn"
|
|
20
21
|
sogni-agent --video -m minimax-h3-fasth3-t2v-turbo-2stage --target-resolution 1080p --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "the user's H3 prompt"
|
|
21
22
|
```
|
|
22
23
|
|
|
24
|
+
MOSS supports Personal LoRAs on `moss_image_sft_int8_convrot` and
|
|
25
|
+
`moss_image_sft_dmd8_int8_convrot`. Import for either preset; compatible entries
|
|
26
|
+
are shared across both. The 8-step preset keeps its built-in DMD adapter at 1.0
|
|
27
|
+
and applies the personal adapter after it. Personal strength controls only the
|
|
28
|
+
personal adapter. MOSS LoRAs cannot be used on Krea or FLUX.
|
|
29
|
+
|
|
23
30
|
First confirm the selected model occurs in the entry's `modelIds`. Preserve the user's selected model. The CLI discovers owned entries through the authenticated catalog and uses catalog defaults when strengths are omitted; repeat `--lora-strength` to set explicit ordered strengths. Follow the entry's prompt and workflow requirements. Personal imports require `--no-filter`; explain that setting when it was not already requested. H3 audio-guided modes do not support LoRAs.
|
|
24
31
|
|
|
25
32
|
`--list-loras` remains public and requires no account; add `--include-personal-loras` to merge owned ready imports. Catalog responses are account-specific. Do not share them between users.
|
|
@@ -122,7 +122,9 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
|
122
122
|
i.e. **5.17 s to 15.08 s**. The CLI snaps `--duration` onto that grid; an
|
|
123
123
|
off-grid explicit `--frames` is a hard error.
|
|
124
124
|
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
125
|
-
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
125
|
+
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait). The exception
|
|
126
|
+
is `minimax-h3-r2v-turbo`: at most **522,240** pixels, its own canvas, so use
|
|
127
|
+
`-w 960 -h 544` or `-w 544 -h 960`; larger requests are fitted inside it.
|
|
126
128
|
- **1080p and 2K output is the FastH3 Two-Stage model, not a canvas.**
|
|
127
129
|
`-m minimax-h3-fasth3-turbo-2stage` (or `minimax-h3-fasth3-t2v-turbo-2stage`,
|
|
128
130
|
`minimax-h3-fasth3-i2v-turbo-2stage`, `minimax-h3-fasth3-flf2v-turbo-2stage`)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.58.0",
|
|
4
4
|
"description": "Sogni Creative Agent: image, 3D, speech, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sogni AI",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## [3.58.0] - 2026-10-18
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
* Generate uncensored images from text with MOSS-Image and MOSS-Image 8-Step, including compatible Personal LoRAs.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
* Use the published MOSS contracts in intelligence client 4.15.0 and SDK 5.65.0.
|
|
10
|
+
|
|
11
|
+
## [3.57.1] - 2026-10-17
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* FLUX 3 Image Klein now renders at about 2 megapixels when no size is given, the 2K that Black Forest Labs recommends for its best results: a text-to-image renders at 1440x1440 (was 1024x1024), and an edit with several references sizes from the first one at up to 2 megapixels (was 1), never enlarged. An edit of one photo still keeps that photo's own shape up to 4 megapixels, and a size you give is kept. This matches Sogni Web, chat and the hosted agent.
|
|
16
|
+
* Update the intelligence client to 4.14.1 (creative agent 2.15.1) and the Sogni SDK (`@sogni-ai/sogni-client`) to 5.64.0 with protocol 1.0.0-alpha.51, the versions Sogni Web, chat and the hosted API run. 3.57.0 listed SDK 5.64.0 but still installed 5.63.3; this release installs 5.64.0, which routes Klein with up to ten references at up to 4096 px a side.
|
|
17
|
+
|
|
18
|
+
## [3.57.0] - 2026-10-16
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* Add FLUX 3 Image Klein (`-m flux3_image_klein_sd_int8_convrot`; hosted selector `flux-3-klein`), Black Forest Labs' fast open image model: text-to-image, image-to-image, and edits from up to ten references, at up to 4096 px a side. A text-to-image with no size given renders at Klein's native 1024x1024. An edit of one photo now renders at that photo's own shape up to 4 megapixels when no size is given (larger sizes are capped, since the server refuses them), and several references size from the first at up to 1 megapixel, matching Sogni Web and the hosted agent. Personal LoRAs imported for Klein work with `--lora personal-<id> --no-filter`.
|
|
23
|
+
* Update the intelligence client to 4.13.0 (creative agent 2.13.0, Sogni SDK 5.64.0, protocol 1.0.0-alpha.51) for the Klein selector, its ten-reference limit and its prompt guides.
|
|
24
|
+
|
|
1
25
|
## [3.56.2] - 2026-10-14
|
|
2
26
|
|
|
3
27
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -26,6 +26,8 @@ It ships four ways:
|
|
|
26
26
|
|
|
27
27
|
With this skill, an agent can:
|
|
28
28
|
|
|
29
|
+
- generate with MOSS-Image SFT from captions, tags, or JSON layouts (`-m moss_image_sft_int8_convrot`), or the 8-step preset (`-m moss_image_sft_dmd8_int8_convrot`); both accept compatible Personal LoRAs. See the [model recipes](./references/models.md).
|
|
30
|
+
|
|
29
31
|
- generate images from prompts and edit/restyle existing images
|
|
30
32
|
- select an object in an original image and return its SAM 3 mask (`--segment`; see the [object selection guide](references/object-selection.md))
|
|
31
33
|
- create videos from text, images, first/last frames, audio, or source video (LTX-2.5), with LTX-2.3 retained for voice ID, transition, and 10Eros workflows
|
|
@@ -739,6 +741,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
|
|
|
739
741
|
| Object masks from points, boxes, or a description | `sam3_image_segment_bf16` via `--segment` |
|
|
740
742
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
741
743
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
744
|
+
| Text-to-image, image-to-image, or edits from up to ten references in one model (FLUX 3 Image Klein) | `flux3_image_klein_sd_int8_convrot` |
|
|
742
745
|
| Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
|
|
743
746
|
| Photobooth face transfer | `coreml-sogniXLturbo_alpha1_ad` |
|
|
744
747
|
| Songs and instrumentals (default) | `minimax_music3` (`--music`) |
|
|
@@ -799,7 +802,7 @@ sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video s
|
|
|
799
802
|
- **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
|
|
800
803
|
- **Wan 3** (`wan3.0-video`) is a Premium Spark Alibaba model with fixed 30 fps, fixed or smart 2–30 s output, native audio, 480P/720P/1080P tiers, and `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, or `9:16` output. It accepts one first frame plus an optional last frame, or loose references up to 10 images, 5 videos, and 5 audio clips. It can also use one public document (PDF/Office/text/Markdown/Keynote/Pages/Numbers, up to 100 MB; PDF/DOCX/DOC/PPTX/PPT/Keynote/Pages up to 50 pages) or one public webpage; file and link context are mutually exclusive and cannot be combined with first/last anchors. Each video/audio reference is 1–15 s and each modality's clips total at most 15 s. Video references condition a new generation; Alibaba exposes no edit/extend task mode or task-type field, so use a dedicated video-to-video model when source-preserving editing is required. Provider prompt expansion defaults on; `--no-expand-prompt` preserves the exact prompt. Watermark defaults off. Send no negative prompt, steps, guidance, sampler, scheduler, ControlNet, or mask. Sogni retail rates before subscription discounts are $0.065/$0.13/$0.26 per output second at 480p/720p/1080p (as of 2026-08). The CLI renders 720P unless `--target-resolution 480` or `1080` is given, sending Alibaba's exact size for that tier and ratio; image-to-video keeps the first frame's shape with its short side at the tier.
|
|
801
804
|
- **Wan 3.0 Enhanced** (`wan3.0-spicy-video`; MuleRouter provider ID `w3.0-video`; aliases `wan3-enhanced`, `wan3-spicy`) runs at fixed 30 fps with fixed or smart 2–30 s output, native audio, prompt expansion, 480P/720P/1080P, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`. It accepts either first/last-frame anchors or up to 10 image, 5 video, and 5 audio loose references; the two modes cannot be mixed. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode. Standard PAYG is $0.08/$0.16/$0.32 per output second at 480P/720P/1080P (as of 2026-09). Existing paid subscribers receive a one-time $10 Unlimited / $20 Unlimited Pro model credit through September 1, 2026 00:00 UTC (August 31 at 5:00 PM PT); this is a launch credit, not subscription coverage.
|
|
802
|
-
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 normally default to 1344×768 or 768×1344; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. FL2VA H3 Turbo defaults to `er_sde` on Socket and permits `euler`, `er_sde`, or `sa_solver`; Ref2VA Turbo and the separate FastVideo VSA FastH3 engine use Euler/simple only. The CLI omits the sampler unless `--sampler` is passed. FastH3 is about 2x faster than LightX2V Turbo and up to 6x faster than Standard for comparable 768p, 15-second requests; it supports T2V/I2V/FLF2V, never R2V. Guidance 1 is fixed and there is no negative-prompt input. Every Ref2VA tier accepts up to 9 images, 3 videos, and 3 audios, capped at 12 files; at least one visual reference is required. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo and image-only R2V paths require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See `references/video-prompting.md` § MiniMax H3 Prompting for the exact contracts.
|
|
805
|
+
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap; Ref2VA Turbo's cap is 522,240 pixels, its own 960×544 canvas, and the CLI fits larger requests inside it. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 normally default to 1344×768 or 768×1344; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. FL2VA H3 Turbo defaults to `er_sde` on Socket and permits `euler`, `er_sde`, or `sa_solver`; Ref2VA Turbo and the separate FastVideo VSA FastH3 engine use Euler/simple only. The CLI omits the sampler unless `--sampler` is passed. FastH3 is about 2x faster than LightX2V Turbo and up to 6x faster than Standard for comparable 768p, 15-second requests; it supports T2V/I2V/FLF2V, never R2V. Guidance 1 is fixed and there is no negative-prompt input. Every Ref2VA tier accepts up to 9 images, 3 videos, and 3 audios, capped at 12 files; at least one visual reference is required. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo and image-only R2V paths require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See `references/video-prompting.md` § MiniMax H3 Prompting for the exact contracts.
|
|
803
806
|
- **LTX family** (`ltx2-*`, `ltx23-*`, `ltx25-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
804
807
|
- **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, Seedance 2.0 Mini Uncensored `seedance2-mini-uncensored`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini`, `seedance2-mini-uncensored` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` and Seedance 2.5 Uncensored (`seedance2-5-uncensored`) render 4–30 s single clips at 480p/720p/1080p (no 4K), with `--output-format mov` and `--return-last-frame` for the final frame as an image. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
805
808
|
- For spoken dialogue, budget roughly 3 words per second plus about 1 second for each meaningful acting beat or pause. Keep quoted speech under the model's hard per-clip word budget.
|
package/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
3
|
description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR video upscaling to 1080p/1440p, one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"upscale an image\", \"upscale a video\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.
|
|
5
|
+
version: "3.58.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -341,13 +341,13 @@ sogni-agent -c photo.jpg -m qwen_image_edit_2511_fp8 "turn this into anime style
|
|
|
341
341
|
|
|
342
342
|
- For an edit of a referenced person or character that must preserve likeness or character identity while changing clothing, hair or makeup, pose or position, face/head/body, background, lighting, or visual style, default to `-m krea2_identity_edit_v1_2` with `-c`. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a single-character sheet unless Pro/detail-critical layout requirements favor GPT Image 2. An explicitly requested model always wins; use `-m dark_beast_krea2_identity_edit_v1_2` only when the creator explicitly requests that community/uncensored variant. Both accept 1-2 references at 512-2048 px. For two references, pass the base scene first and the person/detail/outfit/pose/style reference second. Write a concise 1-4 sentence delta instruction, do not send a negative prompt, and leave steps, guidance, sampler, and scheduler unset so the current model tier and worker choose their optimized defaults.
|
|
343
343
|
- For Krea 2 style/control LoRAs, use the base text-to-image model `-m krea2_turbo_fp8_scaled` with repeatable ordered `--lora <id> --lora-strength <n>` arguments (or comma-separated `--loras` / `--lora-strengths`). Up to 8 LoRAs may be stacked. Order matters, strengths are positional, omitted strengths default to 1, and many Krea 2 LoRAs are bipolar sliders whose negative values apply the inverse effect. Do not clamp them to 0-2. The first use of an uncached LoRA may pause while the worker downloads it. All 25 published Krea 2 LoRAs work on every Krea 2 based model, including the identity-edit and Dark Beast variants, so a context edit with `-m krea2_identity_edit_v1_2 -c` can stack LoRAs to shift age, build, skin, or lighting while the identity LoRA holds the likeness. Never combine a negative `krea2-age` with `krea2-mystic-x` or `krea2-realism-engine`; the platform rejects that outright. Read [`references/krea2-loras.md`](./references/krea2-loras.md) for the IDs and per-LoRA ranges, and run `--list-loras` / `--search-loras` for the live catalog before relying on an exact range.
|
|
344
|
-
- Do not route to `--photobooth` merely because the user asks to preserve a face in a style edit — face-preserving full-image edits use `-c` with Krea 2 Identity Edit by the semantic rule above. The bare CLI still defaults context edits without `-m` to `qwen_image_edit_2511_fp8_lightning`, so agents must pass the Krea model explicitly for identity-sensitive edits. Select `-m gpt-image-2` for up to 16 reference images and OpenAI-backed editing (Qwen supports up to 3; Krea identity edit supports up to 2).
|
|
344
|
+
- Do not route to `--photobooth` merely because the user asks to preserve a face in a style edit — face-preserving full-image edits use `-c` with Krea 2 Identity Edit by the semantic rule above. The bare CLI still defaults context edits without `-m` to `qwen_image_edit_2511_fp8_lightning`, so agents must pass the Krea model explicitly for identity-sensitive edits. Select `-m gpt-image-2` for up to 16 reference images and OpenAI-backed editing (FLUX 3 Image Klein `flux3_image_klein_sd_int8_convrot` supports up to 10; Qwen supports up to 3; Krea identity edit supports up to 2).
|
|
345
345
|
|
|
346
346
|
### Prompt-only model authoring
|
|
347
347
|
|
|
348
348
|
When the creator asks only to write, draft, return, or generate a prompt for **any image or video model/workflow**, the prompt text is the final deliverable. Require the named model/version and operation, apply its registered model-native contract, and return only the directly runnable prompt. Do not invoke the CLI, hosted API, or any media-generation tool; do not add a Markdown fence, preamble, generic tips, explanation, render offer, or follow-up question after a completed prompt. If the target is omitted, ask which model to tune for. If the model/version/operation has no validated contract, say so and ask for the exact target; never substitute a generic prompt or another model's format. If the same request also asks to render the media now, that execution request wins and the shaped prompt becomes the generation input.
|
|
349
349
|
|
|
350
|
-
For image prompt-only requests, **read [`references/image-prompting.md`](./references/image-prompting.md)** before writing. SD 1.5, SDXL/Pony, FLUX.1 Schnell, Chroma, Krea 2, Qwen Image, Z-Image, GPT Image, and their edit operations do not share one prompt syntax or output envelope.
|
|
350
|
+
For image prompt-only requests, **read [`references/image-prompting.md`](./references/image-prompting.md)** before writing. SD 1.5, SDXL/Pony, FLUX.1 Schnell, FLUX 3 Image Klein, Chroma, Krea 2, Qwen Image, Z-Image, GPT Image, and their edit operations do not share one prompt syntax or output envelope.
|
|
351
351
|
|
|
352
352
|
### LTX video prompts
|
|
353
353
|
|
|
@@ -363,7 +363,7 @@ tokens in that scoped reference rather than ordinary model recommendations.
|
|
|
363
363
|
|
|
364
364
|
MiniMax H3 is an explicit model choice, not a universal default. Twenty hosted workflow selectors expose **twenty-five prompt/input shapes**: T2VA, I2VA, L2VA, FL2VA, and Ref2VA in Standard, Balanced, and LightX2V Turbo form, plus T2VA/I2VA/L2VA/FL2VA on the separate FastH3 Turbo engine and again on FastH3 Two-Stage, plus Standard and Balanced Ref2VA Two-Stage. L2VA deliberately reuses each engine's I2V selector: `-m minimax-h3-i2v --ref-end B`, `minimax-h3-i2v-balanced`, `minimax-h3-i2v-turbo`, or `minimax-h3-fasth3-i2v-turbo` supplies only the closing frame; never invent an `minimax-h3-l2v` model key. Use the matching I2V selector for one endpoint and FLF2V selector for both. Standard, Balanced, and LightX2V Turbo have explicit `minimax-h3-r2v*` selectors for loose references. `minimax-h3-fasth3-turbo`, `minimax-h3-fasth3-t2v-turbo`, `minimax-h3-fasth3-i2v-turbo`, and `minimax-h3-fasth3-flf2v-turbo` are FastVideo VSA routes and FastH3 has no R2V mode. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. The qualified FastH3 recipe is Euler/simple only and is about 2x faster than LightX2V Turbo and up to 6x faster than Standard for comparable 768p, 15-second requests; keep the existing `minimax-h3-*-turbo` selectors on LightX2V.
|
|
365
365
|
|
|
366
|
-
H3 r2v accepts up to **9 images** (`--ref` then repeatable `-c`), **3 videos** (repeat `--ref-video`), and **3 audio clips** (repeat `--ref-audio`), with **12 files total** and at least one visual reference (image or video); it is never inferred. A video can be the only visual input, while audio alone is invalid. Address references as `<Picture 1>`, `<Video 1>`, and `<Audio 1>` in per-type submission order, give every reference one job, and never use `--ref-end` for r2v. Reference videos must themselves be exactly 24 fps; normalize other rates without changing duration or audio timing before submission. H3 generates picture and **native 32 kHz stereo audio jointly** at fixed 24 fps, so dialogue, foley, and score must be described in the prompt. `--no-generate-audio` strips that generated track from the delivered file; it does not skip audio generation. Frames snap to the `124 + n×17` grid (5.17-15.08 s). Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to `1344x768`; Ref2VA Turbo defaults to `960x544`. Send no steps, guidance, scheduler, or negative prompt. Standard and Balanced accept no sampler override. LightX2V FL2VA H3 Turbo defaults to `er_sde` on Socket and permits explicit `euler`, `er_sde`, or `sa_solver` A/B variants; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. Every one-stage H3 tier delivers the 768p-class canvas it renders — do not claim 2K for them. 1080p and 2K frame or text video is only FastH3 Two-Stage: `minimax-h3-fasth3-turbo-2stage` (infers the frame mode like `minimax-h3-fasth3-turbo`) or `minimax-h3-fasth3-t2v-turbo-2stage` / `minimax-h3-fasth3-i2v-turbo-2stage` / `minimax-h3-fasth3-flf2v-turbo-2stage` renders FastH3 on a half-size canvas and delivers exactly twice it with the same frames and audio. `--target-resolution` names the delivered size: `2K` (default) renders 1344x768 → 2688x1536, `1080` renders 960x544 → 1920x1088, `720` renders 672x384 → 1344x768, in the prompt's or reference's aspect; any other value is refused. 1080p costs 10 Spark per second (FastH3 plus 6), 2K costs 16 (plus 12), 720p costs the FastH3 rate of 4, and it has no R2V. **1080p and 2K reference-to-video is Ref2VA Two-Stage:** `minimax-h3-r2v-2stage` (Standard, 20 steps) and `minimax-h3-r2v-balanced-2stage` (Balanced, 8 steps) take exactly the references, limits, durations, LoRAs and prompt contract of `minimax-h3-r2v` / `minimax-h3-r2v-balanced`, are never Turbo, and read `--target-resolution` the same way (2K default, `1080`, `720`; the canvas is sized like FastH3 Two-Stage text-to-video, and a reference image never sets its aspect). Each bills its tier's reference rate plus the two-stage surcharge of the delivered class; quote it with `--estimate-video-cost`, which prices the `_2stage` id on the half canvas. Use Two-Stage when the user asks for 1080p, 1440p or 2K, two-stage, or the sharpest H3 output; keep ordinary 768p on the one-stage FastH3 or R2V selectors. If the server is not serving two-stage it refuses before charging, and the CLI prints that message unchanged. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo modes and image-only R2V require 32 GB-class workers, while video-conditioned R2V is reserved for workers above 40 GB. **FastH3 audio-to-video drives H3 with the user's own audio.** When the user supplies a voice, song, or soundtrack for an H3 video, use `-m minimax-h3-fasth3-ia2v-turbo --ref first.png --ref-audio track` (first frame + audio), `-m minimax-h3-fasth3-flfa2v-turbo --ref A --ref-end B --ref-audio track` (first and last frame + audio), or `-m minimax-h3-fasth3-a2v-turbo --ref-audio track` (audio only); `-m minimax-h3-fasth3-turbo --ref-audio track` picks the mode from the frames supplied. The upload drives the picture, lips included, from frame 0 and is the delivered soundtrack, trimmed to the clip: `--duration`/`--frames` set the length on the usual grid (up to 15.08 s) and `--audio-start` picks where the window begins. The CLI refuses LoRAs, `--audio-duration`, `--no-generate-audio`, and any upload the mode does not take. Every other H3 mode except r2v refuses `--ref-audio` and names the audio selector to use. Add `-2stage` (`minimax-h3-fasth3-ia2v-turbo-2stage`, …) for Two-Stage delivery with `--target-resolution`; like the other two-stage models, a server refusal is printed unchanged. Write any spoken words exactly as heard inside `<d>[Language] …</d>` so the text matches the audio. Use LTX `ltx25-ia2v`/`ltx25-a2v` when the user did not ask for H3.
|
|
366
|
+
H3 r2v accepts up to **9 images** (`--ref` then repeatable `-c`), **3 videos** (repeat `--ref-video`), and **3 audio clips** (repeat `--ref-audio`), with **12 files total** and at least one visual reference (image or video); it is never inferred. A video can be the only visual input, while audio alone is invalid. Address references as `<Picture 1>`, `<Video 1>`, and `<Audio 1>` in per-type submission order, give every reference one job, and never use `--ref-end` for r2v. Reference videos must themselves be exactly 24 fps; normalize other rates without changing duration or audio timing before submission. H3 generates picture and **native 32 kHz stereo audio jointly** at fixed 24 fps, so dialogue, foley, and score must be described in the prompt. `--no-generate-audio` strips that generated track from the delivered file; it does not skip audio generation. Frames snap to the `124 + n×17` grid (5.17-15.08 s). Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to `1344x768`; Ref2VA Turbo defaults to `960x544`. Send no steps, guidance, scheduler, or negative prompt. Standard and Balanced accept no sampler override. LightX2V FL2VA H3 Turbo defaults to `er_sde` on Socket and permits explicit `euler`, `er_sde`, or `sa_solver` A/B variants; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. Every one-stage H3 tier delivers the 768p-class canvas it renders — do not claim 2K for them; Ref2VA Turbo is capped at 522,240 pixels (its 960×544 canvas), so a 720p or 1080p request there is fitted inside that cap: 960×544 for 16:9, 544×960 for 9:16, smaller for other shapes. 1080p and 2K frame or text video is only FastH3 Two-Stage: `minimax-h3-fasth3-turbo-2stage` (infers the frame mode like `minimax-h3-fasth3-turbo`) or `minimax-h3-fasth3-t2v-turbo-2stage` / `minimax-h3-fasth3-i2v-turbo-2stage` / `minimax-h3-fasth3-flf2v-turbo-2stage` renders FastH3 on a half-size canvas and delivers exactly twice it with the same frames and audio. `--target-resolution` names the delivered size: `2K` (default) renders 1344x768 → 2688x1536, `1080` renders 960x544 → 1920x1088, `720` renders 672x384 → 1344x768, in the prompt's or reference's aspect; any other value is refused. 1080p costs 10 Spark per second (FastH3 plus 6), 2K costs 16 (plus 12), 720p costs the FastH3 rate of 4, and it has no R2V. **1080p and 2K reference-to-video is Ref2VA Two-Stage:** `minimax-h3-r2v-2stage` (Standard, 20 steps) and `minimax-h3-r2v-balanced-2stage` (Balanced, 8 steps) take exactly the references, limits, durations, LoRAs and prompt contract of `minimax-h3-r2v` / `minimax-h3-r2v-balanced`, are never Turbo, and read `--target-resolution` the same way (2K default, `1080`, `720`; the canvas is sized like FastH3 Two-Stage text-to-video, and a reference image never sets its aspect). Each bills its tier's reference rate plus the two-stage surcharge of the delivered class; quote it with `--estimate-video-cost`, which prices the `_2stage` id on the half canvas. Use Two-Stage when the user asks for 1080p, 1440p or 2K, two-stage, or the sharpest H3 output; keep ordinary 768p on the one-stage FastH3 or R2V selectors. If the server is not serving two-stage it refuses before charging, and the CLI prints that message unchanged. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo modes and image-only R2V require 32 GB-class workers, while video-conditioned R2V is reserved for workers above 40 GB. **FastH3 audio-to-video drives H3 with the user's own audio.** When the user supplies a voice, song, or soundtrack for an H3 video, use `-m minimax-h3-fasth3-ia2v-turbo --ref first.png --ref-audio track` (first frame + audio), `-m minimax-h3-fasth3-flfa2v-turbo --ref A --ref-end B --ref-audio track` (first and last frame + audio), or `-m minimax-h3-fasth3-a2v-turbo --ref-audio track` (audio only); `-m minimax-h3-fasth3-turbo --ref-audio track` picks the mode from the frames supplied. The upload drives the picture, lips included, from frame 0 and is the delivered soundtrack, trimmed to the clip: `--duration`/`--frames` set the length on the usual grid (up to 15.08 s) and `--audio-start` picks where the window begins. The CLI refuses LoRAs, `--audio-duration`, `--no-generate-audio`, and any upload the mode does not take. Every other H3 mode except r2v refuses `--ref-audio` and names the audio selector to use. Add `-2stage` (`minimax-h3-fasth3-ia2v-turbo-2stage`, …) for Two-Stage delivery with `--target-resolution`; like the other two-stage models, a server refusal is printed unchanged. Write any spoken words exactly as heard inside `<d>[Language] …</d>` so the text matches the audio. Use LTX `ltx25-ia2v`/`ltx25-a2v` when the user did not ask for H3.
|
|
367
367
|
|
|
368
368
|
**Music-locked video is immutable.** When the user asks for the same/specific/original/trending song or choreography tied to it, never invent, imitate, recompose, remix, replace, or add a copyright-avoidance mutation. For H3 Ref2VA use `audio reuse`, `<Audio N>: fully_copy`, and explicit source action times; then stream-copy/remux the original soundtrack into the final deliverable. `audio reference` means a newly generated signal and is allowed only when explicitly requested. Ref2VA is loose conditioning: if edit-level choreography timing is mandatory, use a pose/edit-controlled workflow or stop before spending compute rather than promise exact sync.
|
|
369
369
|
|
|
@@ -483,7 +483,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
|
|
|
483
483
|
| Read this | When the task involves |
|
|
484
484
|
|-----------|------------------------|
|
|
485
485
|
| [`references/interactive-worlds.md`](./references/interactive-worlds.md) | Building an explorable world end to end: the nine-model stack in order, the prepare/render/verify/retain loop, and the measured failure modes of each stage — segmentation prompts, matte thresholds, 3D input resolution, single-keyframe clips and reverse playback, dialogue loudness spread, voice-clone transcripts, on-camera lip-sync |
|
|
486
|
-
| [`references/image-prompting.md`](./references/image-prompting.md) | Writing prompt-only image deliverables for SD/SDXL/Pony, FLUX.1 Schnell, Chroma, Krea 2, Qwen, Z-Image, GPT Image, or model-specific edit operations |
|
|
486
|
+
| [`references/image-prompting.md`](./references/image-prompting.md) | Writing prompt-only image deliverables for SD/SDXL/Pony, FLUX.1 Schnell, FLUX 3 Image Klein, Chroma, Krea 2, Qwen, Z-Image, MOSS-Image, GPT Image, or model-specific edit operations |
|
|
487
487
|
| [`references/video-prompting.md`](./references/video-prompting.md) | Writing LTX video prompts; writing MiniMax H3 official ordered-field prompts, mode preambles, shot notation, speaker IDs, dialogue tags, and intermediate keyframes; high-res/4K routing; orientation/aspect mapping; camera language |
|
|
488
488
|
| [`references/private-mature-video.md`](./references/private-mature-video.md) | Mature-theme video model, LoRA, frame modes, and prompt tokens |
|
|
489
489
|
| [`references/video-editing.md`](./references/video-editing.md) | Animate between images, continue/bridge videos, 360 turnarounds, concat, audio remix/layering, v2v ControlNet |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.58.0",
|
|
6
6
|
"description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
|
|
7
7
|
"author": { "name": "Sogni AI", "url": "https://sogni.ai" },
|
|
8
8
|
"homepage": "https://sogni.ai",
|
|
@@ -2852,7 +2852,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2852
2852
|
"contractId": "edit_image_v1",
|
|
2853
2853
|
"version": "1.0.0",
|
|
2854
2854
|
"toolName": "edit_image",
|
|
2855
|
-
"baseDescription": "edit_image applies instruction-based edits to uploaded or generated images. Use when\nuploaded or reference images must guide identity or likeness.\n\nImage-to-Image prompt order: [IDENTITY LOCK] → [REQUESTED EDIT] → [REFERENCE ROLE\nMAPPING] → [POSE/COMPOSITION] → [STYLE] → [LIGHTING/REALISM] → [PRESERVE ALL\nUNMENTIONED DETAILS]. GOLDEN RULE: When editing a person, state which image owns\nidentity so it is not ambiguous. Describe only the DELTA — what changes. Don't\nrewrite the entire image; the base image already contains most of the truth. Default to minimal\nchange. For multi-image edits, assign one primary role per reference image (identity, pose,\noutfit, style, environment). Do not let a style/pose/clothing reference silently override the face.\nUse positive constraints — \"preserve exact facial likeness, face structure, eye shape, nose\nshape, mouth shape, jawline, skin tone, hairline, apparent age, and overall recognizability\"\n— not vague negatives like \"don't mess up the face\".\n\nKREA IDENTITY EDIT: Use model=\"krea-identity-edit\" whenever an edit of a referenced\nperson or character must keep likeness or character identity while changing clothing,\nhair or makeup, pose or position, face/head/body, background, lighting, or visual style.\nInfer that semantic intent in any language; never route from keyword or regex matching.\nAlso use it for a non-Pro single-character sheet. An explicitly requested model always\nwins. Use model=\"dark-beast-krea2-identity-edit\" only when the user explicitly requests\nthat model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2.\nThese models require one reference image, accept up to two context images, and work best\nat 512-2048 px. Let the model tier and worker choose current execution defaults, and do\nnot use negative prompts. Put the primary scene/base image first and an optional\nperson/detail reference second; reference them with context_image_0 and context_image_1\nwhen model_ref tokens are needed.\n\nKREA 2 IDENTITY EDIT PROMPTING: Use a concise 1-4 sentence delta instruction instead of\nthe generic 50-200 word expansion. Name the requested change and only the details that\nmust remain fixed; do not restate the whole image or dump a facial-feature inventory.\nWith two references, assign their roles compactly: base scene/image first, then the\nperson/detail/outfit/pose/style reference. Longer structured prompts remain appropriate\nfor character sheets, grids, editorial layouts, or exact visible text.\n\nUPLOADED IMAGE VARIANT SETS: When the user supplies a photo/portrait/reference image and\nasks for N distinct generated images deriving from that source while changing paired\nper-output details, prefer one edit_image call with sourceImageIndex=-1,\nnumberOfVariations=N, and ONE Dynamic Prompt branch with N complete options. Each option\nmust be a full concrete image prompt for one output, including the uploaded subject/reference\nanchor, requested pose or placement preservation, the specific changed appearance/style/role,\nclothing or surface details when relevant, setting/background, and any requested label text or\nvisual symbol. If one option is a remade original/preserved source and the rest are themed\nvariants, the original option should explicitly say to preserve the original clothing/wardrobe/outfit\nand background/setting, plus any requested added label, flag, logo, symbol, or prop.\nDo not call generate_image, analyze_image, or multiple serial edit_image calls first.\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, prefer one edit_image call with numberOfVariations=N\nand one Dynamic Prompt branch. After images are created, stop and ask the user to choose\nunless the user explicitly asked to run the later stage immediately.\n\nMULTI-PERSONA (COMBINED): When multiple personas must appear in the SAME scene, make\none edit_image call with all persona faces in one prompt and omit personaName.\nPer-persona splits (one call each with personaName set) are RARE — only when the user\nexplicitly asks for solo images of each person individually.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one edit_image batch for all scene keyframes, then one\nanimate_photo batch for all video clips in parallel.\nException: if the storyboard/shot sheet is already uploaded and the user asks to make a\ntrailer/video/movie/clip from that uploaded board, do not extract panels or redraw keyframes.\nUse generate_video with Seedance references for one continuous clip unless the user explicitly\nasks for separate image keyframes or a storyboard sheet output.\n\nDIRECT UPLOADED GPT IMAGE STORYBOARD SHEETS: If the user uploaded reference images and\nasks for one finished GPT Image storyboard/keyframe sheet now, call edit_image directly\nwith sourceImageIndex=-1, model=\"gpt-image-2.5-sunburst\", numberOfVariations=1, and the requested\ncanvas/aspect settings. Preserve another explicit GPT Image model named by the user.\nIf the user did not explicitly specify a storyboard page/canvas/sheet\nshape, default the GPT Image 2.5 storyboard sheet pixel dimensions to a balanced grid that hosts\nthe target cell aspect ratio natively (e.g., 12 cells with 9:16 portrait video target -> ~3:4\nportrait sheet around 1728x2304; 12 cells with 16:9 landscape video target -> ~4:3 landscape\nsheet around 2304x1728; 6 cells with 9:16 target -> ~27:32 portrait sheet around 1840x2176). Do\nNOT default the sheet to 2560x1440 landscape when cells are portrait — a landscape sheet with\na portrait-cell grid physically forces cells to ~4:3 landscape and the model will not render\n9:16 portrait rectangles inside it. Keep individual scene-cell/frame areas at the target video\naspect ratio. Do not call map_assets_for_model, analyze_image, generate_image, or a separate\nplanning tool first. The uploaded files are already available as references; describe their\nroles plainly in the edit_image prompt and generate the sheet in that call.\n\nDO NOT USE edit_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says the\nsame uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call edit_image for that\nrequest. Call animate_photo once with repeated uploaded source indices and per-scene prompts.",
|
|
2855
|
+
"baseDescription": "edit_image applies instruction-based edits to uploaded or generated images. Use when\nuploaded or reference images must guide identity or likeness.\n\nImage-to-Image prompt order: [IDENTITY LOCK] → [REQUESTED EDIT] → [REFERENCE ROLE\nMAPPING] → [POSE/COMPOSITION] → [STYLE] → [LIGHTING/REALISM] → [PRESERVE ALL\nUNMENTIONED DETAILS]. GOLDEN RULE: When editing a person, state which image owns\nidentity so it is not ambiguous. Describe only the DELTA — what changes. Don't\nrewrite the entire image; the base image already contains most of the truth. Default to minimal\nchange. For multi-image edits, assign one primary role per reference image (identity, pose,\noutfit, style, environment). Do not let a style/pose/clothing reference silently override the face.\nUse positive constraints — \"preserve exact facial likeness, face structure, eye shape, nose\nshape, mouth shape, jawline, skin tone, hairline, apparent age, and overall recognizability\"\n— not vague negatives like \"don't mess up the face\".\n\nKREA IDENTITY EDIT: Use model=\"krea-identity-edit\" whenever an edit of a referenced\nperson or character must keep likeness or character identity while changing clothing,\nhair or makeup, pose or position, face/head/body, background, lighting, or visual style.\nInfer that semantic intent in any language; never route from keyword or regex matching.\nAlso use it for a non-Pro single-character sheet. An explicitly requested model always\nwins. Use model=\"dark-beast-krea2-identity-edit\" only when the user explicitly requests\nthat model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2.\nThese models require one reference image, accept up to two context images, and work best\nat 512-2048 px. Let the model tier and worker choose current execution defaults, and do\nnot use negative prompts. Put the primary scene/base image first and an optional\nperson/detail reference second; reference them with context_image_0 and context_image_1\nwhen model_ref tokens are needed.\n\nFLUX 3 IMAGE KLEIN: Use model=\"flux-3-klein\" when the user asks for FLUX 3 or FLUX 3 Image\nKlein. It accepts 1-10 reference images and works at 256-4096 px, including 4K. Guidance is\nfixed and a negative prompt has no effect, so do not send one. Unlike the Krea delta\ninstruction, describe the whole result as a full scene caption (subject, framing, background,\nlighting) that folds the requested change into a description of the reference, and refer to\nreferences in order as the first image, the second image, and so on.\n\nKREA 2 IDENTITY EDIT PROMPTING: Use a concise 1-4 sentence delta instruction instead of\nthe generic 50-200 word expansion. Name the requested change and only the details that\nmust remain fixed; do not restate the whole image or dump a facial-feature inventory.\nWith two references, assign their roles compactly: base scene/image first, then the\nperson/detail/outfit/pose/style reference. Longer structured prompts remain appropriate\nfor character sheets, grids, editorial layouts, or exact visible text.\n\nUPLOADED IMAGE VARIANT SETS: When the user supplies a photo/portrait/reference image and\nasks for N distinct generated images deriving from that source while changing paired\nper-output details, prefer one edit_image call with sourceImageIndex=-1,\nnumberOfVariations=N, and ONE Dynamic Prompt branch with N complete options. Each option\nmust be a full concrete image prompt for one output, including the uploaded subject/reference\nanchor, requested pose or placement preservation, the specific changed appearance/style/role,\nclothing or surface details when relevant, setting/background, and any requested label text or\nvisual symbol. If one option is a remade original/preserved source and the rest are themed\nvariants, the original option should explicitly say to preserve the original clothing/wardrobe/outfit\nand background/setting, plus any requested added label, flag, logo, symbol, or prop.\nDo not call generate_image, analyze_image, or multiple serial edit_image calls first.\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, prefer one edit_image call with numberOfVariations=N\nand one Dynamic Prompt branch. After images are created, stop and ask the user to choose\nunless the user explicitly asked to run the later stage immediately.\n\nMULTI-PERSONA (COMBINED): When multiple personas must appear in the SAME scene, make\none edit_image call with all persona faces in one prompt and omit personaName.\nPer-persona splits (one call each with personaName set) are RARE — only when the user\nexplicitly asks for solo images of each person individually.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one edit_image batch for all scene keyframes, then one\nanimate_photo batch for all video clips in parallel.\nException: if the storyboard/shot sheet is already uploaded and the user asks to make a\ntrailer/video/movie/clip from that uploaded board, do not extract panels or redraw keyframes.\nUse generate_video with Seedance references for one continuous clip unless the user explicitly\nasks for separate image keyframes or a storyboard sheet output.\n\nDIRECT UPLOADED GPT IMAGE STORYBOARD SHEETS: If the user uploaded reference images and\nasks for one finished GPT Image storyboard/keyframe sheet now, call edit_image directly\nwith sourceImageIndex=-1, model=\"gpt-image-2.5-sunburst\", numberOfVariations=1, and the requested\ncanvas/aspect settings. Preserve another explicit GPT Image model named by the user.\nIf the user did not explicitly specify a storyboard page/canvas/sheet\nshape, default the GPT Image 2.5 storyboard sheet pixel dimensions to a balanced grid that hosts\nthe target cell aspect ratio natively (e.g., 12 cells with 9:16 portrait video target -> ~3:4\nportrait sheet around 1728x2304; 12 cells with 16:9 landscape video target -> ~4:3 landscape\nsheet around 2304x1728; 6 cells with 9:16 target -> ~27:32 portrait sheet around 1840x2176). Do\nNOT default the sheet to 2560x1440 landscape when cells are portrait — a landscape sheet with\na portrait-cell grid physically forces cells to ~4:3 landscape and the model will not render\n9:16 portrait rectangles inside it. Keep individual scene-cell/frame areas at the target video\naspect ratio. Do not call map_assets_for_model, analyze_image, generate_image, or a separate\nplanning tool first. The uploaded files are already available as references; describe their\nroles plainly in the edit_image prompt and generate the sheet in that call.\n\nDO NOT USE edit_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says the\nsame uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call edit_image for that\nrequest. Call animate_photo once with repeated uploaded source indices and per-scene prompts.",
|
|
2856
2856
|
"parameterDocs": {
|
|
2857
2857
|
"sourceImageIndex": "Index of uploaded/generated image. Use -1 for the first uploaded image.",
|
|
2858
2858
|
"numberOfVariations": "Number of output variants. When > 1, use a Dynamic Prompt branch with one complete prompt per output.",
|
|
@@ -2863,7 +2863,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2863
2863
|
"contractId": "generate_image_v1",
|
|
2864
2864
|
"version": "1.1.0",
|
|
2865
2865
|
"toolName": "generate_image",
|
|
2866
|
-
"baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nIMAGE PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1 and distinct content is requested, use\nDynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nbatch counts or the words \"versions\"/\"variations\" into scene content. Preserve authored\nsubject counts and requested visible words verbatim. The prompt describes one output image;\ntyped count and grouping arguments determine batching, not words inside the prompt.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups. Treat every batch-wide requirement\nquantified as \"each\", \"every\", or \"all\" as a hard per-option invariant: repeat it inside\nEVERY option, including identity/pose continuity, clothing/style, the concrete setting, and\nliteral visible names, labels, captions, flags, logos, or symbols. A shared prefix or another\noption is never a substitute for a complete standalone option.\nEach option must name its actual styling, setting, accessories, and requested literal text or\nsymbol. Never emit meta-placeholders such as \"variant-specific background\", \"requested\nsymbol\", \"humorous alternate name\", or \"bake the name and symbol into the image\".\nWhen one option remakes/preserves an original and the others are themed variants, make the\noriginal option equally concrete: specify the original clothing and setting plus every\nrequested label, flag, logo, symbol, or prop; do not write only \"the original\".\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, PG-13/non-explicit, and avoid minor-coded styling or school-coded\nsettings while still optimizing visual magnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Default to model=\"gpt-image-2.5-sunburst\" and preserve another\nexplicit GPT Image model named by the user. Use numberOfVariations=1 and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
|
|
2866
|
+
"baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor MOSS-Image or MOSS-Image SFT, choose model=\"moss-image\" for text-to-image generation.\nFor MOSS 8-step or DMD, choose model=\"moss-image-8step\" with 8 steps and guidance 1.\nBoth MOSS presets are uncensored and support compatible Personal LoRAs.\nMOSS-Image SFT does not accept uploaded image references or perform instruction editing. If they ask\nfor FLUX 3 or FLUX 3 Image Klein, choose model=\"flux-3-klein\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nIMAGE PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1 and distinct content is requested, use\nDynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nbatch counts or the words \"versions\"/\"variations\" into scene content. Preserve authored\nsubject counts and requested visible words verbatim. The prompt describes one output image;\ntyped count and grouping arguments determine batching, not words inside the prompt.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups. Treat every batch-wide requirement\nquantified as \"each\", \"every\", or \"all\" as a hard per-option invariant: repeat it inside\nEVERY option, including identity/pose continuity, clothing/style, the concrete setting, and\nliteral visible names, labels, captions, flags, logos, or symbols. A shared prefix or another\noption is never a substitute for a complete standalone option.\nEach option must name its actual styling, setting, accessories, and requested literal text or\nsymbol. Never emit meta-placeholders such as \"variant-specific background\", \"requested\nsymbol\", \"humorous alternate name\", or \"bake the name and symbol into the image\".\nWhen one option remakes/preserves an original and the others are themed variants, make the\noriginal option equally concrete: specify the original clothing and setting plus every\nrequested label, flag, logo, symbol, or prop; do not write only \"the original\".\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, PG-13/non-explicit, and avoid minor-coded styling or school-coded\nsettings while still optimizing visual magnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Default to model=\"gpt-image-2.5-sunburst\" and preserve another\nexplicit GPT Image model named by the user. Use numberOfVariations=1 and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
|
|
2867
2867
|
"parameterDocs": {
|
|
2868
2868
|
"prompt": "Text description of one output image. Put the subject first. Preserve authored subject counts and requested visible words. Use Dynamic Prompt syntax for requested distinct content; a fully specified or consistent scene may use a plain prompt.",
|
|
2869
2869
|
"numberOfVariations": "Number of output images. Typed count and grouping arguments determine batching. Use Dynamic Prompt {|} syntax for requested distinct content; a fully specified or consistent scene may use a plain prompt. Preserve requested visible count or version words in the prompt.",
|
package/llm.txt
CHANGED
|
@@ -25,6 +25,10 @@ Music uses `--music`, MiniMax Music 3 by default (`-m turbo` for ACE-Step); Qwen
|
|
|
25
25
|
`--speech-mode voice|clone|design`. Read the model reference for required inputs,
|
|
26
26
|
allowed controls, and hosted alternatives.
|
|
27
27
|
|
|
28
|
+
MOSS-Image SFT uses `-m moss_image_sft_int8_convrot`: 50 steps, guidance 3,
|
|
29
|
+
Euler / sgm_uniform. It generates from text, tags or experimental JSON layouts
|
|
30
|
+
and accepts no reference images. Read `references/image-prompting.md` for layouts.
|
|
31
|
+
|
|
28
32
|
## Install (pick the integration that matches your environment)
|
|
29
33
|
|
|
30
34
|
```bash
|
|
@@ -159,6 +163,13 @@ retrying.
|
|
|
159
163
|
`-c <image> -m dark_beast_krea2_identity_edit_v1_2` for identity-preserving
|
|
160
164
|
Krea edits with 1-2 references, 512-2048 px output, 8-12 steps, and
|
|
161
165
|
guidance 1.
|
|
166
|
+
- FLUX 3 Image Klein: `-m flux3_image_klein_sd_int8_convrot` for text-to-image,
|
|
167
|
+
or add up to ten `-c <image>` references for edits (references optional);
|
|
168
|
+
256-4096 px (4K included for prompts and several references), 4-16 steps
|
|
169
|
+
(default 16), guidance fixed at 1, no negative prompt. A one-photo edit
|
|
170
|
+
renders at the photo's shape up to 4 MP (picked automatically, larger sizes
|
|
171
|
+
capped). Personal Klein LoRAs work; no nudity (use Dark Beast Krea 2).
|
|
172
|
+
Hosted selector: `flux-3-klein`.
|
|
162
173
|
- Cost policy: `--workflow-max-cost`, `--confirm-cost`, `--no-confirm-cost`.
|
|
163
174
|
- JSON errors include canonical `errorType`, `errorCategory`, and `retryable`.
|
|
164
175
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.58.0",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.58.0",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, 3D, speech, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
"media-utilities.mjs"
|
|
103
103
|
],
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@sogni-ai/sogni-intelligence-client": "4.
|
|
105
|
+
"@sogni-ai/sogni-intelligence-client": "4.15.0",
|
|
106
106
|
"execa": "^10.0.1",
|
|
107
107
|
"json5": "^2.2.3",
|
|
108
108
|
"sharp": "0.35.5"
|
|
109
109
|
},
|
|
110
110
|
"overrides": {
|
|
111
|
-
"@sogni-ai/sogni-client": "5.
|
|
111
|
+
"@sogni-ai/sogni-client": "5.65.0"
|
|
112
112
|
},
|
|
113
113
|
"openclaw": {
|
|
114
114
|
"extensions": [
|
|
@@ -13,8 +13,10 @@ substitute another destination model's prompt contract.
|
|
|
13
13
|
| SD 1.5 | Weighted or comma-separated tags; quality/medium, subject, environment, lighting/camera | `positive_prompt:` plus `negative_prompt:` |
|
|
14
14
|
| SDXL | Hybrid natural language plus selective comma-separated style/quality terms; Pony variants start with their score tags | `positive_prompt:` plus `negative_prompt:` |
|
|
15
15
|
| FLUX.1 Schnell | One concise natural-language visual description centered on the subject, composition, light, and style; no SD score/tag soup | Prompt text only |
|
|
16
|
+
| FLUX 3 Image Klein | A full scene caption in plain sentences: subject, framing, setting, lighting, and style; for reference edits, what to take from each reference and how they combine; no negative prompt (guidance is fixed at 1) | Prompt text only |
|
|
16
17
|
| Chroma 1 / v.46 / Detail | One coherent natural-language visual description; exact visible text in quotes; no SD score/tag soup | Prompt text only |
|
|
17
18
|
| Krea 2 / Krea 2 Turbo | Dense, fluent rich caption emphasizing observable composition, palette, light, texture, and atmosphere; no SD weighting syntax | Prompt text only |
|
|
19
|
+
| MOSS-Image SFT | Detailed natural-language caption, tags, or a supplied experimental JSON layout; preserve exact visible text and line breaks | Prompt text only; generation only |
|
|
18
20
|
| Qwen Image 2512 | Detailed natural-language description with explicit spatial relationships and exact quoted typography | `positive_prompt:` plus `negative_prompt:` |
|
|
19
21
|
| Z-Image | Compact instruction-aware natural-language caption | Foundation model: positive plus negative; Turbo: prompt text only |
|
|
20
22
|
| GPT Image 2 | Direct natural-language creative direction with explicit layout, hierarchy, and exact quoted copy | Prompt text only |
|
|
@@ -33,6 +35,15 @@ Markdown fence, preamble, explanation, or render offer.
|
|
|
33
35
|
|
|
34
36
|
## Selector and operation discipline
|
|
35
37
|
|
|
38
|
+
- MOSS-Image SFT uses hosted selector `moss-image` and direct CLI model ID
|
|
39
|
+
`moss_image_sft_int8_convrot`. The 8-step preset uses hosted selector
|
|
40
|
+
`moss-image-8step` or direct ID `moss_image_sft_dmd8_int8_convrot`, with exactly
|
|
41
|
+
8 steps and guidance 1. Both accept compatible Personal LoRAs. MOSS generates
|
|
42
|
+
from text and has no uploaded-photo
|
|
43
|
+
editing or reference-image input. JSON layouts use centered absolute pixel
|
|
44
|
+
boxes in `[y_min,x_min,y_max,x_max]` order, `bbox_format: "yxyx"`, and
|
|
45
|
+
`bbox_coord_space: "abs_centralized"`; match the generation canvas to the layout.
|
|
46
|
+
|
|
36
47
|
- Treat a model selector as an exact capability declaration, not a name to
|
|
37
48
|
fuzzy-match into a convenient family. Every selector exposed by
|
|
38
49
|
`generate_image` and `edit_image` must resolve in the shared registry.
|
|
@@ -40,6 +51,9 @@ Markdown fence, preamble, explanation, or render offer.
|
|
|
40
51
|
registered generation and edit contracts. A generation-only selector such
|
|
41
52
|
as `flux1-schnell-fp8` or `krea-2-turbo` must not silently accept an edit
|
|
42
53
|
request.
|
|
54
|
+
- `flux-3-klein` (FLUX 3 Image Klein) is one selector for both operations:
|
|
55
|
+
generation with no references, a start image, or edits guided by up to ten
|
|
56
|
+
references.
|
|
43
57
|
- Use `qwen` / `qwen-lightning` as edit selectors and
|
|
44
58
|
`qwen-2512` / `qwen-2512-lightning` as generation selectors.
|
|
45
59
|
- Use `krea-identity-edit` or
|
package/references/models.md
CHANGED
|
@@ -87,7 +87,10 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
|
|
|
87
87
|
| `flux1-schnell-fp8` | Very fast | Quick iterations |
|
|
88
88
|
| `qwen_image_2512_fp8` | Medium (~30s) | High quality |
|
|
89
89
|
| `qwen_image_2512_fp8_lightning` | Variable | Qwen Image 2512 Lightning |
|
|
90
|
+
| `flux3_image_klein_sd_int8_convrot` | Variable | FLUX 3 Image Klein (Black Forest Labs): text-to-image, image-to-image, and edits from up to 10 optional context images |
|
|
90
91
|
| `krea2_turbo_fp8_scaled` | Fast | Krea 2 Turbo text-to-image, fast high-quality generations with strong prompt adherence |
|
|
92
|
+
| `moss_image_sft_int8_convrot` | Full-step | Uncensored MOSS-Image SFT text-to-image with compatible Personal LoRAs; natural-language captions, tags and experimental JSON layouts; 50 steps, CFG 3, Euler / sgm_uniform |
|
|
93
|
+
| `moss_image_sft_dmd8_int8_convrot` | 8-step | Uncensored MOSS-Image with the built-in DMD adapter; CFG 1, Euler / sgm_uniform; compatible Personal LoRAs |
|
|
91
94
|
| `dark_beast_krea2_fp8` | Fast | Dark Beast Krea 2 community text-to-image fine-tune |
|
|
92
95
|
| `krea2_identity_edit_v1_2` | Fast | Krea 2 Identity Edit LoRA v1.2, identity-preserving edits with 1-2 references |
|
|
93
96
|
| `dark_beast_krea2_identity_edit_v1_2` | Fast | Dark Beast Krea 2 Identity Edit community LoRA with 1-2 references |
|
|
@@ -130,6 +133,34 @@ reads the exact frame count and rate with a local ffprobe. The server sets the
|
|
|
130
133
|
maximum clip length; do not quote a fixed limit. Relay a server rejection if
|
|
131
134
|
the source is too long, without trimming it or switching to a generative tool.
|
|
132
135
|
|
|
136
|
+
FLUX 3 Image Klein is one model for three jobs: text-to-image from a prompt
|
|
137
|
+
alone, image-to-image from a start image, and edits or compositions guided by
|
|
138
|
+
1-10 context images (`-c`, repeatable). References are optional, unlike the
|
|
139
|
+
Qwen and Krea identity edit models. Hosted/chat planning uses the selector
|
|
140
|
+
`flux-3-klein` on both `generate_image` and `edit_image`; direct CLI `-m` uses
|
|
141
|
+
`flux3_image_klein_sd_int8_convrot`. Output is 256-4096 px per side (step 16,
|
|
142
|
+
default 1440x1440, about 2 MP) at 4-16 steps (default 16), including 4K: 3840x2160,
|
|
143
|
+
2160x3840 and 4096x4096 for prompts and several references. Renders above
|
|
144
|
+
2048x2048 pixels run on 30 GB+ GPUs and take longer. An edit of one photo
|
|
145
|
+
renders at that photo's own shape, up to 4 megapixels (for example 2352x1776 for
|
|
146
|
+
a 4:3 photo; never enlarged): the CLI picks that size when you give none, and
|
|
147
|
+
caps a larger one, because the server refuses one-photo edits above 4 MP (larger
|
|
148
|
+
than its photo the edit breaks). With several references the first sets the
|
|
149
|
+
shape at up to 2 MP. A different shape recomposes the photo. Guidance is fixed
|
|
150
|
+
at 1, so a negative prompt has no effect; write a full scene caption instead,
|
|
151
|
+
as Black Forest Labs recommends. It has no catalog LoRAs; personal LoRAs
|
|
152
|
+
imported for FLUX 3 Image Klein work (`--lora personal-<id> --no-filter`; see
|
|
153
|
+
[`personal-loras.md`](./personal-loras.md)). It does not
|
|
154
|
+
render nudity: for mature requests use `dark_beast_krea2_fp8`, or with
|
|
155
|
+
references `dark_beast_krea2_identity_edit_v1_2`. Leave steps, guidance,
|
|
156
|
+
sampler, and scheduler unset to use the live tier defaults. Each reference adds
|
|
157
|
+
render time and cost, so pass only the references the result needs.
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
sogni-agent -m flux3_image_klein_sd_int8_convrot -c mug.png -c kitchen.jpg \
|
|
161
|
+
"product photo of the mug on the kitchen's oak counter, morning window light"
|
|
162
|
+
```
|
|
163
|
+
|
|
133
164
|
For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
|
|
134
165
|
`krea-2-turbo`; direct CLI `-m` uses the worker model ID
|
|
135
166
|
`krea2_turbo_fp8_scaled`.
|
|
@@ -182,8 +213,9 @@ defaults.
|
|
|
182
213
|
`gpt-image-2` supports flexible OpenAI image sizes up to `3840px` on either
|
|
183
214
|
edge, max `3:1` aspect ratio, and total pixels from `655,360` through
|
|
184
215
|
`8,294,400`; the API snaps dimensions to valid multiples of 16. For image
|
|
185
|
-
editing with `gpt-image-2`, you can pass up to 16 context images (
|
|
186
|
-
support up to 3; Krea identity edit models
|
|
216
|
+
editing with `gpt-image-2`, you can pass up to 16 context images (FLUX 3 Image
|
|
217
|
+
Klein supports up to 10; Qwen models support up to 3; Krea identity edit models
|
|
218
|
+
support up to 2).
|
|
187
219
|
|
|
188
220
|
## Utility and 3D models
|
|
189
221
|
|
|
@@ -1302,6 +1334,7 @@ model recommendations.
|
|
|
1302
1334
|
| Image editing | `qwen_image_edit_2511_fp8_lightning` |
|
|
1303
1335
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
1304
1336
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
1337
|
+
| Text-to-image, image-to-image, or edits from up to ten references in one model | `flux3_image_klein_sd_int8_convrot` |
|
|
1305
1338
|
| Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
|
|
1306
1339
|
| Photobooth face transfer | `coreml-sogniXLturbo_alpha1_ad` |
|
|
1307
1340
|
| Select or cut out an object in an image | `sam3_image_segment_bf16` |
|
|
@@ -1356,7 +1389,7 @@ model recommendations.
|
|
|
1356
1389
|
- **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
|
|
1357
1390
|
- **Wan 3** uses fixed 30 fps, fixed or smart 2–30 s output, and 480P/720P/1080P buckets with `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, and `9:16`; see [Alibaba Wan 3](#alibaba-wan-3).
|
|
1358
1391
|
- **Wan 3.0 Enhanced** uses fixed 30 fps, fixed or smart 2–30 s output, 480P/720P/1080P buckets, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`; see [Wan 3.0 Enhanced](#wan-30-enhanced).
|
|
1359
|
-
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
|
|
1392
|
+
- **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels (Ref2VA Turbo: 522,240, its own 960×544 canvas; the CLI fits larger requests inside it). Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
|
|
1360
1393
|
- **LTX family** (`ltx2-*`, `ltx23-*`, `ltx25-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
1361
1394
|
- **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, `seedance2-mini-uncensored`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini`, `seedance2-mini-uncensored` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` and `seedance2-5-uncensored` render 4–30 s single clips (97–721 frames) with 480p/720p/1080p output (no 4K). Select `--output-format mov` for editing or `--return-last-frame` to receive the final frame as an image for the next clip. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
1362
1395
|
- **HappyHorse 1.1** runs at fixed 24 fps and supports 3–15 s durations at 720P or 1080P, with always-on native audio (no negative prompt, no ControlNet). Accepted aspect ratios are `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `4:5`, `5:4`, `9:21`, and `21:9`. i2v takes one first-frame image (`--ref`); r2v takes 1–9 reference images (`-c`/`--context`); it accepts no reference video or audio.
|
|
@@ -17,9 +17,16 @@ Once ready, use the actual returned ID:
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
sogni-agent -m krea2_turbo_fp8_scaled --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "a glass sculpture"
|
|
20
|
+
sogni-agent -m flux3_image_klein_sd_int8_convrot --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "an old fisherman mending a net on a wooden dock at dawn"
|
|
20
21
|
sogni-agent --video -m minimax-h3-fasth3-t2v-turbo-2stage --target-resolution 1080p --lora personal-REPLACE-WITH-RETURNED-ID --no-filter "the user's H3 prompt"
|
|
21
22
|
```
|
|
22
23
|
|
|
24
|
+
MOSS supports Personal LoRAs on `moss_image_sft_int8_convrot` and
|
|
25
|
+
`moss_image_sft_dmd8_int8_convrot`. Import for either preset; compatible entries
|
|
26
|
+
are shared across both. The 8-step preset keeps its built-in DMD adapter at 1.0
|
|
27
|
+
and applies the personal adapter after it. Personal strength controls only the
|
|
28
|
+
personal adapter. MOSS LoRAs cannot be used on Krea or FLUX.
|
|
29
|
+
|
|
23
30
|
First confirm the selected model occurs in the entry's `modelIds`. Preserve the user's selected model. The CLI discovers owned entries through the authenticated catalog and uses catalog defaults when strengths are omitted; repeat `--lora-strength` to set explicit ordered strengths. Follow the entry's prompt and workflow requirements. Personal imports require `--no-filter`; explain that setting when it was not already requested. H3 audio-guided modes do not support LoRAs.
|
|
24
31
|
|
|
25
32
|
`--list-loras` remains public and requires no account; add `--include-personal-loras` to merge owned ready imports. Catalog responses are account-specific. Do not share them between users.
|
|
@@ -122,7 +122,9 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
|
122
122
|
i.e. **5.17 s to 15.08 s**. The CLI snaps `--duration` onto that grid; an
|
|
123
123
|
off-grid explicit `--frames` is a hard error.
|
|
124
124
|
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
125
|
-
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
125
|
+
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait). The exception
|
|
126
|
+
is `minimax-h3-r2v-turbo`: at most **522,240** pixels, its own canvas, so use
|
|
127
|
+
`-w 960 -h 544` or `-w 544 -h 960`; larger requests are fitted inside it.
|
|
126
128
|
- **1080p and 2K output is the FastH3 Two-Stage model, not a canvas.**
|
|
127
129
|
`-m minimax-h3-fasth3-turbo-2stage` (or `minimax-h3-fasth3-t2v-turbo-2stage`,
|
|
128
130
|
`minimax-h3-fasth3-i2v-turbo-2stage`, `minimax-h3-fasth3-flf2v-turbo-2stage`)
|
package/skill-package.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@sogni-ai/sogni-intelligence-client": "4.
|
|
6
|
+
"@sogni-ai/sogni-intelligence-client": "4.15.0",
|
|
7
7
|
"execa": "^10.0.1",
|
|
8
8
|
"json5": "^2.2.3",
|
|
9
|
-
"sharp": "0.35.
|
|
9
|
+
"sharp": "0.35.5"
|
|
10
10
|
},
|
|
11
11
|
"overrides": {
|
|
12
|
-
"@sogni-ai/sogni-client": "5.
|
|
12
|
+
"@sogni-ai/sogni-client": "5.65.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
package/skills/image_editing.md
CHANGED
|
@@ -28,7 +28,7 @@ Edit, restore, restyle, refine, upscale, or change the camera angle of an existi
|
|
|
28
28
|
|
|
29
29
|
- Persona images must always be produced with `edit_image` and a reference photo — never invoke `generate_image` for persona output.
|
|
30
30
|
- Use `-m krea2_identity_edit_v1_2` for identity-preserving Krea 2 edits with 1-2 context images; use `-m dark_beast_krea2_identity_edit_v1_2` for the Dark Beast Krea 2 identity edit LoRA. Both support 512-2048 px output, 8-12 steps, guidance 1, and default to 10 steps.
|
|
31
|
-
- Qwen Image Edit supports up to 3 context images, GPT Image 2 supports up to 16, and Krea identity edit models support up to 2.
|
|
31
|
+
- Qwen Image Edit supports up to 3 context images, GPT Image 2 supports up to 16, FLUX 3 Image Klein (`flux3_image_klein_sd_int8_convrot`, hosted `flux-3-klein`) supports up to 10, and Krea identity edit models support up to 2.
|
|
32
32
|
- `refine_result` acts on a prior generation in the session; do not call it before any image has been produced or uploaded.
|
|
33
33
|
- Use `upscale_image` when the user only wants a larger, higher-resolution copy. It takes one source image plus an optional 2x/3x/4x scale or target longest edge. Both 8px-aligned output edges must remain within 512-15360px; use 7680 for 8K or 15360 for 16K. Targets above 7680px return JPG. If a scale leaves the short edge below 512px, retry with the minimum target longest edge reported by the tool. Never stretch the image, invent a prompt, or substitute `restore_photo`, `refine_result`, or `edit_image` for a pure upscale.
|
|
34
34
|
- For source-preserving style edits such as "anime version of this image", "keep everything the same", or requests that preserve pose, clothing, background, framing, or composition, use image editing with the provided image as context. Do not switch to photobooth/face-transfer just because the user asks to preserve the face.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: image_generation
|
|
3
|
-
description: Text-to-image synthesis with Z-Image, Krea 2, Dark Beast Krea 2, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2 models.
|
|
3
|
+
description: Text-to-image synthesis with Z-Image, Krea 2, Dark Beast Krea 2, FLUX 3 Image Klein, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2 models.
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- generate_image
|
|
@@ -8,7 +8,7 @@ tool_names:
|
|
|
8
8
|
|
|
9
9
|
# Image generation
|
|
10
10
|
|
|
11
|
-
Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dark Beast Krea 2, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
|
|
11
|
+
Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dark Beast Krea 2, FLUX 3 Image Klein, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
|
|
12
12
|
|
|
13
13
|
## Tools
|
|
14
14
|
|
|
@@ -19,6 +19,7 @@ Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dar
|
|
|
19
19
|
- Use natural-language descriptions (subject, setting, composition, lighting, style) for Krea 2, Z-Image, FLUX.1 Schnell, Chroma, and Qwen rather than keyword lists.
|
|
20
20
|
- Krea 2 favors long, detailed prompts but also handles short ones; to render text in the image, wrap the exact words in quotes (e.g. a sign reading "OPEN").
|
|
21
21
|
- Use `-m dark_beast_krea2_fp8` when the user explicitly requests Dark Beast Krea 2 or the uncensored community Krea 2 fine-tune.
|
|
22
|
+
- FLUX 3 Image Klein (`-m flux3_image_klein_sd_int8_convrot`; hosted selector `flux-3-klein`) works best with a full scene caption. Its guidance is fixed at 1, so a negative prompt has no effect.
|
|
22
23
|
- The app applies model-specific prompt-enhancement automatically — pass the user's intent faithfully and avoid empty quality-booster spam.
|
|
23
24
|
|
|
24
25
|
## Constraints
|
package/sogni-agent.mjs
CHANGED
|
@@ -495,6 +495,9 @@ function defaultsFromModelTier(card) {
|
|
|
495
495
|
if (Number.isFinite(card?.width?.min)) defaults.minDimension = card.width.min;
|
|
496
496
|
if (Number.isFinite(card?.width?.max)) defaults.maxDimension = card.width.max;
|
|
497
497
|
if (Number.isFinite(card?.width?.step)) defaults.dimensionMultiple = card.width.step;
|
|
498
|
+
// The socket refuses a job above its tier's pixel cap (MiniMax H3 R2V Turbo:
|
|
499
|
+
// 522,240), which can sit below the bundled per-family budget.
|
|
500
|
+
if (Number.isFinite(card?.maxPixels)) defaults.maxPixels = card.maxPixels;
|
|
498
501
|
const defaultSize = String(card?.defaultSize || '').match(/^(\d+)x(\d+)$/i);
|
|
499
502
|
if (defaultSize) {
|
|
500
503
|
defaults.defaultWidth = Number(defaultSize[1]);
|
|
@@ -1881,6 +1884,42 @@ function getJpegDimensions(buffer) {
|
|
|
1881
1884
|
return null;
|
|
1882
1885
|
}
|
|
1883
1886
|
|
|
1887
|
+
const FLUX3_IMAGE_KLEIN_MODEL_ID = 'flux3_image_klein_sd_int8_convrot';
|
|
1888
|
+
const FLUX3_IMAGE_KLEIN_SINGLE_REFERENCE_MAX_PIXELS = 4 * 1024 * 1024;
|
|
1889
|
+
// About 2 megapixels: Black Forest Labs says Klein does best at 2K, and 2K is
|
|
1890
|
+
// 2 MP (Mark, 2026-10-17). The size of a text-to-image with no size given, and
|
|
1891
|
+
// the cap on an edit with several references.
|
|
1892
|
+
const FLUX3_IMAGE_KLEIN_DEFAULT_MAX_PIXELS = 2 * 1024 * 1024;
|
|
1893
|
+
const FLUX3_IMAGE_KLEIN_DEFAULT_SIZE = 1440;
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* FLUX 3 Image Klein's edit size from its first reference, the way Black Forest
|
|
1897
|
+
* Labs' pipeline sizes references (the rule sogni-creative-agent's
|
|
1898
|
+
* getFlux3ImageKleinEditOutputSize applies for web, chat and the hosted API):
|
|
1899
|
+
* one photo keeps its shape at up to 4 MiB pixels and 4096 px a side, never
|
|
1900
|
+
* enlarged; with several references the first sets the shape at up to 2 MiB.
|
|
1901
|
+
* Sides land on the 16 px grid (256 minimum). Null beyond a 4:1 shape.
|
|
1902
|
+
*/
|
|
1903
|
+
function flux3KleinEditOutputSize(width, height, referenceCount) {
|
|
1904
|
+
if (!(width > 0) || !(height > 0)) return null;
|
|
1905
|
+
const grid = 16;
|
|
1906
|
+
const maxPixels = referenceCount > 1 ? FLUX3_IMAGE_KLEIN_DEFAULT_MAX_PIXELS : FLUX3_IMAGE_KLEIN_SINGLE_REFERENCE_MAX_PIXELS;
|
|
1907
|
+
let scale = Math.min(1, Math.sqrt(maxPixels / (width * height)), 4096 / Math.max(width, height));
|
|
1908
|
+
if (Math.min(width, height) * scale < 256) scale = 256 / Math.min(width, height);
|
|
1909
|
+
let w = Math.round((width * scale) / grid) * grid;
|
|
1910
|
+
let h = Math.round((height * scale) / grid) * grid;
|
|
1911
|
+
const aspect = width / height;
|
|
1912
|
+
const shapeError = (a, b) => Math.abs(Math.log(a / b / aspect));
|
|
1913
|
+
while (w * h > maxPixels) {
|
|
1914
|
+
const narrower = shapeError(w - grid, h);
|
|
1915
|
+
const shorter = shapeError(w, h - grid);
|
|
1916
|
+
if (narrower < shorter - 1e-12 || (Math.abs(narrower - shorter) <= 1e-12 && w >= h)) w -= grid;
|
|
1917
|
+
else h -= grid;
|
|
1918
|
+
}
|
|
1919
|
+
if (Math.min(w, h) < 256 || Math.max(w, h) > 4096 || Math.max(w, h) / Math.min(w, h) > 4) return null;
|
|
1920
|
+
return { width: w, height: h };
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1884
1923
|
function getImageDimensionsFromBuffer(buffer) {
|
|
1885
1924
|
return getPngDimensions(buffer) || getJpegDimensions(buffer);
|
|
1886
1925
|
}
|
|
@@ -1924,6 +1963,8 @@ const VIDEO_DIMENSION_MULTIPLE = DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple
|
|
|
1924
1963
|
const VIDEO_REF_PRERESIZE_MIN_AREA_GAIN = 1.1;
|
|
1925
1964
|
const VIDEO_REF_PRERESIZE_MAX_ASPECT_DRIFT = 0.02;
|
|
1926
1965
|
const MINIMAX_H3_MAX_VIDEO_PIXELS = 1_032_192;
|
|
1966
|
+
// sogni-socket caps R2V Turbo at its 960x544 canvas (live catalog maxPixels).
|
|
1967
|
+
const MINIMAX_H3_R2V_TURBO_MAX_VIDEO_PIXELS = 522_240;
|
|
1927
1968
|
|
|
1928
1969
|
function isWanVideoModelId(modelId) {
|
|
1929
1970
|
return getSharedModelDefaults(modelId)?.family === 'wan22';
|
|
@@ -2324,7 +2365,7 @@ function videoModelDimensionDefaultsLikeWrapper(modelId) {
|
|
|
2324
2365
|
minDimension: 32,
|
|
2325
2366
|
maxDimension: 1344,
|
|
2326
2367
|
dimensionMultiple: 32,
|
|
2327
|
-
maxPixels:
|
|
2368
|
+
maxPixels: MINIMAX_H3_R2V_TURBO_MAX_VIDEO_PIXELS
|
|
2328
2369
|
};
|
|
2329
2370
|
}
|
|
2330
2371
|
if (isMiniMaxH3Model(modelId)) {
|
|
@@ -2483,7 +2524,8 @@ function normalizeVideoDimensionsLikeWrapper(width, height, rules = DEFAULT_VIDE
|
|
|
2483
2524
|
}
|
|
2484
2525
|
}
|
|
2485
2526
|
|
|
2486
|
-
|
|
2527
|
+
const cappedByPixels = Boolean(effectiveMaxPixels && targetWidth * targetHeight > effectiveMaxPixels);
|
|
2528
|
+
if (cappedByPixels) {
|
|
2487
2529
|
const scaleFactor = Math.sqrt(effectiveMaxPixels / (targetWidth * targetHeight));
|
|
2488
2530
|
targetWidth = Math.floor(targetWidth * scaleFactor);
|
|
2489
2531
|
targetHeight = Math.floor(targetHeight * scaleFactor);
|
|
@@ -2507,9 +2549,52 @@ function normalizeVideoDimensionsLikeWrapper(width, height, rules = DEFAULT_VIDE
|
|
|
2507
2549
|
adjusted = true;
|
|
2508
2550
|
}
|
|
2509
2551
|
|
|
2552
|
+
// Only a cap below the minimum side times the maximum side (MiniMax H3 R2V
|
|
2553
|
+
// Turbo: 522,240 < 480 x 1344) can be left exceeded by the steps above; every
|
|
2554
|
+
// other capped model keeps the sizes they produce.
|
|
2555
|
+
if (effectiveMaxPixels && effectiveMaxPixels < effectiveMin * effectiveMax &&
|
|
2556
|
+
(cappedByPixels || targetWidth * targetHeight > effectiveMaxPixels)) {
|
|
2557
|
+
const settled = settleVideoDimensionsAtPixelCap(targetWidth, targetHeight, Number(width) / Number(height), {
|
|
2558
|
+
maxPixels: effectiveMaxPixels,
|
|
2559
|
+
multiple: effectiveMultiple,
|
|
2560
|
+
minDimension: effectiveMin,
|
|
2561
|
+
maxDimension: effectiveMax,
|
|
2562
|
+
});
|
|
2563
|
+
if (settled.width !== targetWidth || settled.height !== targetHeight) adjusted = true;
|
|
2564
|
+
targetWidth = settled.width;
|
|
2565
|
+
targetHeight = settled.height;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2510
2568
|
return { width: targetWidth, height: targetHeight, adjusted };
|
|
2511
2569
|
}
|
|
2512
2570
|
|
|
2571
|
+
// A size scaled down to a pixel cap and floored to the grid can land a step
|
|
2572
|
+
// short of it (16:9 at MiniMax H3 R2V Turbo's 522,240 floors to 960x512, not
|
|
2573
|
+
// 960x544), and raising a side to the minimum can push an extreme ratio back
|
|
2574
|
+
// over it (32:9 there becomes 1184x480, which sogni-socket refuses). Shrink the
|
|
2575
|
+
// long side until the frame fits, then grow one side a grid step at a time
|
|
2576
|
+
// while the frame still fits and its shape moves closer to the request.
|
|
2577
|
+
function settleVideoDimensionsAtPixelCap(width, height, requestedAspect, { maxPixels, multiple, minDimension, maxDimension }) {
|
|
2578
|
+
let w = width;
|
|
2579
|
+
let h = height;
|
|
2580
|
+
while (w * h > maxPixels) {
|
|
2581
|
+
if (w >= h && w - multiple >= minDimension) w -= multiple;
|
|
2582
|
+
else if (h - multiple >= minDimension) h -= multiple;
|
|
2583
|
+
else if (w - multiple >= minDimension) w -= multiple;
|
|
2584
|
+
else break;
|
|
2585
|
+
}
|
|
2586
|
+
const shapeError = (cw, ch) => Math.abs(Math.log(cw / ch / requestedAspect));
|
|
2587
|
+
for (;;) {
|
|
2588
|
+
const grown = [[w + multiple, h], [w, h + multiple]]
|
|
2589
|
+
.filter(([cw, ch]) => cw <= maxDimension && ch <= maxDimension && cw * ch <= maxPixels &&
|
|
2590
|
+
shapeError(cw, ch) <= shapeError(w, h))
|
|
2591
|
+
.sort((a, b) => shapeError(...a) - shapeError(...b));
|
|
2592
|
+
if (grown.length === 0) break;
|
|
2593
|
+
[w, h] = grown[0];
|
|
2594
|
+
}
|
|
2595
|
+
return { width: w, height: h };
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2513
2598
|
function videoDimensionsAreIncompatible(dimensions, rules = DEFAULT_VIDEO_DIMENSION_RULES) {
|
|
2514
2599
|
if (!dimensions || !Number.isFinite(dimensions.width) || !Number.isFinite(dimensions.height)) return false;
|
|
2515
2600
|
const multiple = rules.dimensionMultiple || DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple;
|
|
@@ -5141,7 +5226,10 @@ Image Models:
|
|
|
5141
5226
|
gpt-image-2 OpenAI GPT Image 2 text-to-image and edit (up to 16 context images)
|
|
5142
5227
|
gpt-image-2.5-sunburst GPT Image 2.5 Sunburst: edits, masks, 16 references, transparency
|
|
5143
5228
|
gpt-image-2.5-flare GPT Image 2.5 Flare: edits, masks, 16 references, transparency
|
|
5229
|
+
flux3_image_klein_sd_int8_convrot FLUX 3 Image Klein: text-to-image, image-to-image, edits (up to 10 context images)
|
|
5144
5230
|
krea2_turbo_fp8_scaled Krea 2 Turbo text-to-image
|
|
5231
|
+
moss_image_sft_int8_convrot MOSS-Image SFT text-to-image (50 steps, no reference editing)
|
|
5232
|
+
moss_image_sft_dmd8_int8_convrot MOSS-Image 8-Step text-to-image (CFG 1, Personal LoRAs)
|
|
5145
5233
|
dark_beast_krea2_fp8 Dark Beast Krea 2 text-to-image
|
|
5146
5234
|
krea2_identity_edit_v1_2 Krea 2 Identity Edit LoRA (up to 2 context images)
|
|
5147
5235
|
dark_beast_krea2_identity_edit_v1_2 Dark Beast Krea 2 Identity Edit (up to 2 context images)
|
|
@@ -5310,6 +5398,7 @@ Examples:
|
|
|
5310
5398
|
sogni-agent -c photo.jpg "make the background a beach" -m qwen_image_edit_2511_fp8
|
|
5311
5399
|
sogni-agent -c person.jpg -m krea2_identity_edit_v1_2 "editorial portrait, same identity, new wardrobe"
|
|
5312
5400
|
sogni-agent -c subject.jpg -c style.jpg "apply the style to the subject"
|
|
5401
|
+
sogni-agent -m flux3_image_klein_sd_int8_convrot -c mug.png -c kitchen.jpg "the mug from the first image on the oak counter from the second image, morning window light"
|
|
5313
5402
|
sogni-agent --photobooth --ref face.jpg "80s fashion portrait"
|
|
5314
5403
|
sogni-agent --photobooth --ref face.jpg -n 4 "LinkedIn professional headshot"
|
|
5315
5404
|
sogni-agent -Q pro "a beautiful mountain landscape at sunset"
|
|
@@ -7822,7 +7911,7 @@ if (options.contextImages.length > 0 && !options.video) {
|
|
|
7822
7911
|
fatalCliError(`Model ${options.model} does not support context images.`, {
|
|
7823
7912
|
code: 'INVALID_ARGUMENT',
|
|
7824
7913
|
details: { model: options.model },
|
|
7825
|
-
hint: 'Try: qwen_image_edit_2511_fp8, qwen_image_edit_2511_fp8_lightning, krea2_identity_edit_v1_2, or dark_beast_krea2_identity_edit_v1_2'
|
|
7914
|
+
hint: 'Try: qwen_image_edit_2511_fp8, qwen_image_edit_2511_fp8_lightning, flux3_image_klein_sd_int8_convrot (up to 10), krea2_identity_edit_v1_2, or dark_beast_krea2_identity_edit_v1_2'
|
|
7826
7915
|
});
|
|
7827
7916
|
}
|
|
7828
7917
|
if (options.contextImages.length > maxImages) {
|
|
@@ -15535,6 +15624,27 @@ async function main() {
|
|
|
15535
15624
|
const contextBuffers = await Promise.all(
|
|
15536
15625
|
options.contextImages.map(img => fetchMediaBuffer(img))
|
|
15537
15626
|
);
|
|
15627
|
+
// FLUX 3 Image Klein: an edit in another shape recomposes the photo, and the
|
|
15628
|
+
// socket refuses a one-photo edit above 4 MiB pixels (larger than its photo
|
|
15629
|
+
// the edit breaks). Size it from the first reference unless a size was asked for.
|
|
15630
|
+
if (options.model === FLUX3_IMAGE_KLEIN_MODEL_ID) {
|
|
15631
|
+
const meta = await sharp(contextBuffers[0]).metadata().catch(() => null);
|
|
15632
|
+
const swapsAxes = meta?.orientation >= 5 && meta?.orientation <= 8;
|
|
15633
|
+
const photo = meta?.width && meta?.height
|
|
15634
|
+
? { width: swapsAxes ? meta.height : meta.width, height: swapsAxes ? meta.width : meta.height }
|
|
15635
|
+
: null;
|
|
15636
|
+
const fitted = photo && flux3KleinEditOutputSize(photo.width, photo.height, contextBuffers.length);
|
|
15637
|
+
const askedForSize = cliSet.width || cliSet.height || widthFromPrompt || heightFromPrompt;
|
|
15638
|
+
if (fitted && !askedForSize) {
|
|
15639
|
+
options.width = fitted.width;
|
|
15640
|
+
options.height = fitted.height;
|
|
15641
|
+
log(`Edit size ${fitted.width}x${fitted.height} from the ${contextBuffers.length > 1 ? 'first reference' : 'photo'} (${photo.width}x${photo.height})`);
|
|
15642
|
+
} else if (fitted && contextBuffers.length === 1 && options.width * options.height > FLUX3_IMAGE_KLEIN_SINGLE_REFERENCE_MAX_PIXELS) {
|
|
15643
|
+
if (!options.quiet) console.error(`FLUX 3 Image Klein edits one photo at up to 4 megapixels; rendering at ${fitted.width}x${fitted.height} instead of ${options.width}x${options.height}.`);
|
|
15644
|
+
options.width = fitted.width;
|
|
15645
|
+
options.height = fitted.height;
|
|
15646
|
+
}
|
|
15647
|
+
}
|
|
15538
15648
|
const modelDefaults = getModelDefaults(options.model, openclawConfig);
|
|
15539
15649
|
const steps = options.steps ?? modelDefaults?.steps ?? (isLightningImageModelSelection(options.model) ? 4 : 20);
|
|
15540
15650
|
const guidance = options.guidance ?? modelDefaults?.guidance ?? (isLightningImageModelSelection(options.model) ? 3.5 : 7.5);
|
|
@@ -15647,6 +15757,16 @@ async function main() {
|
|
|
15647
15757
|
log(`Generating with ${options.model}...`);
|
|
15648
15758
|
if (options.seed !== null && options.seed !== undefined) log(`Using seed: ${options.seed}`);
|
|
15649
15759
|
const modelDefaults = getModelDefaults(options.model, openclawConfig);
|
|
15760
|
+
// FLUX 3 Image Klein with no size given renders at about 2 MP (1440x1440),
|
|
15761
|
+
// the 2K Black Forest Labs recommends, as web, chat and the hosted tools do;
|
|
15762
|
+
// not the CLI's generic 512x512 starting size or the API's 1024x1024 default.
|
|
15763
|
+
if (
|
|
15764
|
+
options.model === FLUX3_IMAGE_KLEIN_MODEL_ID
|
|
15765
|
+
&& !(cliSet.width || cliSet.height || widthFromConfig || heightFromConfig || widthFromPrompt || heightFromPrompt)
|
|
15766
|
+
) {
|
|
15767
|
+
options.width = FLUX3_IMAGE_KLEIN_DEFAULT_SIZE;
|
|
15768
|
+
options.height = FLUX3_IMAGE_KLEIN_DEFAULT_SIZE;
|
|
15769
|
+
}
|
|
15650
15770
|
const guidance = options.guidance ?? modelDefaults?.guidance ?? 1.0;
|
|
15651
15771
|
const steps = options.steps ?? modelDefaults?.steps;
|
|
15652
15772
|
const gptImageQuality = isGptImage2ModelSelection(options.model)
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.58.0';
|