@sogni-ai/sogni-creative-agent-skill 3.29.0 → 3.31.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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +6 -4
- package/SKILL.md +19 -6
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +123 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/references/hosted-api.md +1 -1
- package/references/models.md +33 -17
- package/references/openclaw-config.md +1 -1
- package/references/video-prompting.md +6 -5
- package/skill-package.json +1 -1
- package/skills/README.md +1 -1
- package/skills/image_editing.md +5 -2
- package/sogni-agent.mjs +245 -23
- package/version.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.0",
|
|
4
4
|
"description": "Sogni Creative Agent: image, 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,23 @@
|
|
|
1
|
+
# [3.31.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.30.0...v3.31.0) (2026-08-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **cli:** add RTX VSR upscale surface and route pro tier to live models ([d6ab96a](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/d6ab96a957999f223b85efd07964d6143815b6ee))
|
|
7
|
+
|
|
8
|
+
# [3.30.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.29.0...v3.30.0) (2026-08-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** adopt intelligence-client 3.16.2 ([0413dcc](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/0413dcc51549d71585708a2f49dd485c1a080eef))
|
|
14
|
+
* **video:** adopt the client's model-aware dimension ceilings ([bcb1c65](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/bcb1c654532b4162060456ddf3e33b53f2ed65a9))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **video:** expose MiniMax H3 R2V Turbo ([813aa66](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/813aa66e3ad612ab579ea9e06eadec7df21e8476))
|
|
20
|
+
|
|
1
21
|
# [3.29.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.28.0...v3.29.0) (2026-08-13)
|
|
2
22
|
|
|
3
23
|
|
package/README.md
CHANGED
|
@@ -543,7 +543,7 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
|
|
|
543
543
|
| `--target-resolution <px>` | Target the short side, preserving aspect ratio |
|
|
544
544
|
| `--workflow <type>` | Force `t2v`, `i2v`, `r2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
|
|
545
545
|
| `--generate-audio`, `--no-generate-audio` | Keep or strip MiniMax H3's generated audio track; also controls generated-keyframe workflows |
|
|
546
|
-
| `--sampler <name>` | Image/music sampler;
|
|
546
|
+
| `--sampler <name>` | Image/music sampler; FL2VA H3 Turbo accepts `euler`, `er_sde`, or `sa_solver` and defaults to `er_sde` on Socket. Ref2VA Turbo accepts Euler only. The CLI omits this field unless explicitly set. |
|
|
547
547
|
| `--api-chat` | Use `/v1/chat/completions` with Sogni creative-agent tools |
|
|
548
548
|
| `--api-workflow` | Start a `/v1/creative-agent/workflows` durable workflow with explicit `input.steps`; optional `storyboard-video` preset |
|
|
549
549
|
| `--workflow-input <json\|@path>` | Explicit durable workflow input JSON. Use `@path` to load JSON from a file. |
|
|
@@ -581,7 +581,7 @@ Skip remembering model IDs — `--quality` / `-Q` selects the right model, steps
|
|
|
581
581
|
|--------|-------|-------|------|-------|
|
|
582
582
|
| `fast` | `z_image_turbo_bf16` | 8 | 512×512 | ~5–10s |
|
|
583
583
|
| `hq` | `z_image_turbo_bf16` | default | 768×768 | ~10–15s |
|
|
584
|
-
| `pro` | `
|
|
584
|
+
| `pro` | `qwen_image_2512_fp8` | 20 | 1024×1024 | ~30 sec |
|
|
585
585
|
|
|
586
586
|
Explicit `--model` overrides the preset's model. Explicit `-w`/`-h` overrides dimensions.
|
|
587
587
|
|
|
@@ -593,8 +593,9 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
|
|
|
593
593
|
|------|----------------------|
|
|
594
594
|
| Default images | `z_image_turbo_bf16` |
|
|
595
595
|
| OpenAI GPT Image generation, editing, or strong text rendering | `gpt-image-2` |
|
|
596
|
-
| Highest-quality images | `
|
|
596
|
+
| Highest-quality images | `qwen_image_2512_fp8` (or `-Q pro`) |
|
|
597
597
|
| Image editing | `qwen_image_edit_2511_fp8_lightning` |
|
|
598
|
+
| Deterministic image upscaling | `rtx_vsr_pro` via `--upscale` |
|
|
598
599
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
599
600
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
600
601
|
| Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
|
|
@@ -608,6 +609,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
|
|
|
608
609
|
| MiniMax H3 Turbo text-to-video | `minimax-h3-turbo` or `minimax-h3-t2v-turbo` |
|
|
609
610
|
| MiniMax H3 Turbo image-to-video | `minimax-h3-i2v-turbo` with `--ref` |
|
|
610
611
|
| MiniMax H3 Turbo first-frame → last-frame video | `minimax-h3-flf2v-turbo` with `--ref A --ref-end B` |
|
|
612
|
+
| MiniMax H3 Turbo reference-to-video | `minimax-h3-r2v-turbo` with up to 9 images, 3 videos, 3 audios / 12 files total |
|
|
611
613
|
| Text-to-video with native dialogue/audio | `ltx25` (Distilled) or `ltx25-22b-int8_t2v_dev` (Dev/HQ) |
|
|
612
614
|
| Explicit uncensored image-to-video on 30GB+ GPUs | `ltx23-eros` with `--no-filter` |
|
|
613
615
|
| Image or first/last frames to video | `ltx25-i2v` (FLF shares the I2V model ID) |
|
|
@@ -628,7 +630,7 @@ Music generation uses `--music` and outputs `mp3` by default. `--audio` remains
|
|
|
628
630
|
## Video Sizing & Aspect Ratios
|
|
629
631
|
|
|
630
632
|
- **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
|
|
631
|
-
- **MiniMax H3 and H3 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
|
|
633
|
+
- **MiniMax H3 and H3 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 and FL2VA Turbo normally default to 1344×768 or 768×1344; Ref2VA Turbo defaults to 960×544 but supports other valid shapes. `--duration` snaps to the frame grid, so H3 delivers the nearest grid point rather than the exact requested seconds. Standard H3 uses 20 steps; Turbo uses 4 steps. FL2VA H3 Turbo defaults to `er_sde` on Socket, and the CLI omits the sampler unless `--sampler` is passed; FL2VA A/B tests may select `euler`, `er_sde`, or `sa_solver`. Ref2VA Turbo follows its exact upstream Euler/simple recipe and accepts only `--sampler euler`. Guidance 1 is fixed and there is no negative-prompt input. Base and Turbo t2v/i2v/flf2v prompts use the exact ordered three fields; standard and Turbo Ref2VA use exactly `subject_definitions`, `summary`, `retention_analysis`, `detailed_description`, `overall_soundscape`, and `non_diegetic_music`. Both Ref2VA selectors accept up to 9 images, 3 videos, and 3 audios, capped at 12 files; at least one visual reference is required, audio-only input is invalid, and r2v is never inferred. `--no-generate-audio` strips the jointly generated track from the result. This is the 768p-class open-weights release, not MiniMax's hosted 2K stage. FL2VA/Turbo and image-only R2V require 32 GB-class workers; video-conditioned R2V requires above 40 GB. See `references/video-prompting.md` § MiniMax H3 Prompting for the exact contracts.
|
|
632
634
|
- **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.
|
|
633
635
|
- **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` renders 4–30 s single clips but caps at 480p/720p (no 1080p or 4K). Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
634
636
|
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
|
-
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports 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 Turbo/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\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
3
|
+
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports promptless RTX VSR image upscaling, 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 Turbo/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\", \"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.31.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -153,6 +153,10 @@ sogni-agent -q -n 3 -o ./cars.png "a {red|blue|green} sports car"
|
|
|
153
153
|
# Edit an existing image (source-preserving)
|
|
154
154
|
sogni-agent -q -c /path/to/input.jpg -o ./edited.png "make it pop art style"
|
|
155
155
|
|
|
156
|
+
# Deterministic RTX VSR upscale (promptless; 2x by default, up to an 8192px longest edge)
|
|
157
|
+
sogni-agent -q --upscale /path/to/input.jpg -o ./upscaled.png
|
|
158
|
+
sogni-agent -q --upscale /path/to/input.jpg --target-longest-edge 4096 -o ./upscaled-4k.png
|
|
159
|
+
|
|
156
160
|
# Photobooth (face transfer — new portrait from a face photo)
|
|
157
161
|
sogni-agent -q --photobooth --ref /path/to/face.jpg -o ./stylized.png "80s fashion portrait"
|
|
158
162
|
|
|
@@ -180,7 +184,7 @@ sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "A polish
|
|
|
180
184
|
|
|
181
185
|
# MiniMax H3 (fixed 24fps, native stereo audio + dialogue; use the official
|
|
182
186
|
# ordered-field prompt contract — see references/video-prompting.md).
|
|
183
|
-
# Standard H3 has four modes; 4-step H3 Turbo
|
|
187
|
+
# Standard H3 has four modes; 4-step H3 Turbo covers all four.
|
|
184
188
|
sogni-agent --video -m minimax-h3 --duration 10 -w 1344 -h 768 "<three-field H3 prompt>"
|
|
185
189
|
sogni-agent --video -m minimax-h3-i2v --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
|
|
186
190
|
sogni-agent --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 "<FLF2V preamble plus three-field H3 prompt>"
|
|
@@ -188,6 +192,7 @@ sogni-agent --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-v
|
|
|
188
192
|
sogni-agent --video -m minimax-h3-turbo --duration 8 "<three-field H3 prompt>"
|
|
189
193
|
sogni-agent --video -m minimax-h3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
|
|
190
194
|
sogni-agent --video -m minimax-h3-flf2v-turbo --ref first.png --ref-end last.png --duration 8 "<FLF2V preamble plus three-field H3 prompt>"
|
|
195
|
+
sogni-agent --video -m minimax-h3-r2v-turbo -w 960 -h 544 --ref identity.png -c wardrobe.png --ref-audio voice.m4a "<six-field Ref2VA prompt>"
|
|
191
196
|
|
|
192
197
|
# HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
|
|
193
198
|
# i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
|
|
@@ -216,6 +221,9 @@ sogni-agent doctor --json
|
|
|
216
221
|
| `-Q fast\|hq\|pro` | Quality preset (model+steps+size); `-m` overrides model | - |
|
|
217
222
|
| `-o <path>` | Save output locally (relative → PWD) | prints URL |
|
|
218
223
|
| `-c <path>` | Context image for editing (repeatable) | - |
|
|
224
|
+
| `--upscale <path\|url>` | Promptless deterministic RTX VSR upscale | - |
|
|
225
|
+
| `--upscale-scale 2\|3\|4` | Upscale factor when no explicit target is supplied | 2 |
|
|
226
|
+
| `--target-longest-edge <px>` | RTX VSR target longest edge, preserving aspect ratio | 512–8192 box |
|
|
219
227
|
| `-m <id>` | Explicit model | `z_image_turbo_bf16` |
|
|
220
228
|
| `-w` / `-h` | Width / height | 512×512 |
|
|
221
229
|
| `-n <num>` | Output count (`{a\|b\|c}` prompt variations cycle); capped at 16, raise with `SOGNI_MAX_COUNT` | 1 |
|
|
@@ -223,7 +231,7 @@ sogni-agent doctor --json
|
|
|
223
231
|
| `--workflow <t>` | Force `t2v\|i2v\|r2v\|s2v\|ia2v\|a2v\|v2v\|animate-move\|animate-replace` | inferred |
|
|
224
232
|
| `--ref`, `-c`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` | Frame / loose image / audio / video / mask references; audio/video repeat for H3 r2v | - |
|
|
225
233
|
| `--generate-audio`, `--no-generate-audio` | Keep or strip MiniMax H3's jointly generated audio track | keep |
|
|
226
|
-
| `--sampler <name>` | Image/music sampler;
|
|
234
|
+
| `--sampler <name>` | Image/music sampler; FL2VA H3 Turbo: `euler\|er_sde\|sa_solver`; Ref2VA Turbo: `euler` only | FL2VA H3 Turbo defaults to `er_sde` on Socket; CLI omits unless set |
|
|
227
235
|
| `--control-type`, `--outpaint-position`, `--outpaint-aspect-ratio` | LTX v2v control mode and outpaint canvas controls (`ltx25-v2v` default) | - |
|
|
228
236
|
| `--duration <sec>` | Video or music length | video 5, music 30 |
|
|
229
237
|
| `--target-resolution <px>` | Short-side target preserving aspect ratio (use `2160` for Seedance 4K) | - |
|
|
@@ -244,6 +252,11 @@ sogni-agent doctor --json
|
|
|
244
252
|
|
|
245
253
|
## Routing Rules (always apply)
|
|
246
254
|
|
|
255
|
+
### Upscaling vs. generative editing
|
|
256
|
+
|
|
257
|
+
- For a pure resolution increase that must preserve the source composition, use `--upscale` in direct CLI mode or `upscale_image` on hosted tool surfaces. RTX VSR is deterministic and promptless: never invent a prompt, and never route this request through `restore_photo`, `refine_result`, or `edit_image`.
|
|
258
|
+
- `--upscale-scale` accepts 2, 3, or 4; `--target-longest-edge` overrides it. The CLI derives an aspect-preserving target box and aligns both edges to the worker's 8-pixel step. Both output edges must remain within 512–8192px. If a scale would make the short edge smaller than 512px, the CLI reports the minimum valid `--target-longest-edge` instead of stretching the image; aspect ratios that cannot fit the box are rejected.
|
|
259
|
+
|
|
247
260
|
### Photobooth vs. context editing
|
|
248
261
|
|
|
249
262
|
- `--photobooth` is **face-reference generation**, not full-image editing: it generates a *new* portrait from a face photo and may change pose, clothing, background, framing, and composition. Use it when the user explicitly asks for photobooth/face-transfer, a new portrait/headshot from their face, or to place their face into a different concept. Cannot be combined with `--video` or `-c/--context`. Tune with `--cn-strength` (default 0.8) and `--cn-guidance-end` (default 0.3).
|
|
@@ -269,9 +282,9 @@ tokens in that scoped reference rather than ordinary model recommendations.
|
|
|
269
282
|
|
|
270
283
|
### High-res video
|
|
271
284
|
|
|
272
|
-
MiniMax H3 is an explicit model choice, not a universal default. All **
|
|
285
|
+
MiniMax H3 is an explicit model choice, not a universal default. All **eight current H3 modes** are available in the Creative Agent Skill and direct Sogni API: four standard workflows and four Turbo workflows. Use `-m minimax-h3` for text-to-video, `-m minimax-h3-i2v --ref A` for first-frame animation, `-m minimax-h3-flf2v --ref A --ref-end B` for a first/last-frame transition, or explicitly select `-m minimax-h3-r2v` for a loose reference set. Use `-m minimax-h3-turbo` for automatic Turbo t2v/i2v/flf2v routing and explicit `--workflow r2v`, or select `minimax-h3-t2v-turbo`, `minimax-h3-i2v-turbo`, `minimax-h3-flf2v-turbo`, or `minimax-h3-r2v-turbo` directly. Turbo is the fixed 4-step execution path; standard H3 uses 20 steps. Do not claim a quality or speed multiple without current production-parity measurements and manual output review.
|
|
273
286
|
|
|
274
|
-
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. 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)
|
|
287
|
+
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. 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 and FL2VA Turbo default to `1344x768`; Ref2VA Turbo defaults to `960x544`, with other supported 32 px-grid shapes allowed. Send no steps, guidance, scheduler, or negative prompt. Standard H3 accepts no sampler override. FL2VA H3 Turbo defaults to `er_sde` on Socket, and the CLI omits the sampler unless `--sampler` is passed; direct FL2VA A/B tests may use `euler`, `er_sde`, or `sa_solver`. Ref2VA Turbo follows its exact upstream Euler/simple recipe and accepts only `--sampler euler`. It is the 768p-class open-weights release — do not claim 2K. FL2VA/Turbo and image-only R2V require 32 GB-class workers; video-conditioned R2V is reserved for workers above 40 GB.
|
|
275
288
|
|
|
276
289
|
**H3 requires MiniMax's official ordered-field prompt contract.** Base and Turbo T2V/I2V/FLF2V use `integrated_multimodal_description`, `overall_soundscape`, then `non_diegetic_music`, with the mode-specific alignment preamble for I2V or FLF2V. Use `[Shot N]` notation, stable `(S1)` speaker IDs, and exact dialogue as `<d>[Language] words</d>`; do not substitute quoted prose or bracketed timecode lists. Ref2VA uses its separate six-field contract. Negative direction belongs inside the structured prompt because there is no negative-prompt field. Read [`references/video-prompting.md`](./references/video-prompting.md) § MiniMax H3 Prompting before writing any H3 prompt.
|
|
277
290
|
|
|
@@ -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.31.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",
|
|
@@ -26,6 +26,7 @@ const GATING_POLICIES = [
|
|
|
26
26
|
"generate_image",
|
|
27
27
|
"edit_image",
|
|
28
28
|
"restore_photo",
|
|
29
|
+
"upscale_image",
|
|
29
30
|
"apply_style",
|
|
30
31
|
"refine_result",
|
|
31
32
|
"animate_photo",
|
|
@@ -59,6 +60,7 @@ const GATING_POLICIES = [
|
|
|
59
60
|
"generate_image",
|
|
60
61
|
"edit_image",
|
|
61
62
|
"restore_photo",
|
|
63
|
+
"upscale_image",
|
|
62
64
|
"apply_style",
|
|
63
65
|
"refine_result",
|
|
64
66
|
"animate_photo",
|
|
@@ -91,6 +93,7 @@ const GATING_POLICIES = [
|
|
|
91
93
|
"generate_image",
|
|
92
94
|
"edit_image",
|
|
93
95
|
"restore_photo",
|
|
96
|
+
"upscale_image",
|
|
94
97
|
"apply_style",
|
|
95
98
|
"refine_result",
|
|
96
99
|
"animate_photo",
|
|
@@ -124,6 +127,7 @@ const GATING_POLICIES = [
|
|
|
124
127
|
"generate_image",
|
|
125
128
|
"edit_image",
|
|
126
129
|
"restore_photo",
|
|
130
|
+
"upscale_image",
|
|
127
131
|
"apply_style",
|
|
128
132
|
"refine_result",
|
|
129
133
|
"animate_photo",
|
|
@@ -414,6 +418,15 @@ const REPAIR_RECIPES = [
|
|
|
414
418
|
"maxRetries": 0,
|
|
415
419
|
"repairNoteTemplate": "I need more details before I can run {{toolName}}. {{missingDetail}}"
|
|
416
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"recipeId": "upscale_image.user_input_incomplete",
|
|
423
|
+
"version": "1.0.0",
|
|
424
|
+
"toolName": "upscale_image",
|
|
425
|
+
"errorCode": "USER_INPUT_INCOMPLETE",
|
|
426
|
+
"mode": "stopAndAsk",
|
|
427
|
+
"maxRetries": 0,
|
|
428
|
+
"repairNoteTemplate": "I need more details before I can run {{toolName}}. {{missingDetail}}"
|
|
429
|
+
},
|
|
417
430
|
{
|
|
418
431
|
"recipeId": "apply_style.user_input_incomplete",
|
|
419
432
|
"version": "1.0.0",
|
|
@@ -576,6 +589,15 @@ const REPAIR_RECIPES = [
|
|
|
576
589
|
"maxRetries": 0,
|
|
577
590
|
"repairNoteTemplate": "You have hit the credit limit for this turn. Buy Spark Packs to continue: https://docs.sogni.ai/pricing/#spark-packs"
|
|
578
591
|
},
|
|
592
|
+
{
|
|
593
|
+
"recipeId": "upscale_image.cost_limit_exceeded",
|
|
594
|
+
"version": "1.0.0",
|
|
595
|
+
"toolName": "upscale_image",
|
|
596
|
+
"errorCode": "COST_LIMIT_EXCEEDED",
|
|
597
|
+
"mode": "stopAndAsk",
|
|
598
|
+
"maxRetries": 0,
|
|
599
|
+
"repairNoteTemplate": "You have hit the credit limit for this turn. Buy Spark Packs to continue: https://docs.sogni.ai/pricing/#spark-packs"
|
|
600
|
+
},
|
|
579
601
|
{
|
|
580
602
|
"recipeId": "apply_style.cost_limit_exceeded",
|
|
581
603
|
"version": "1.0.0",
|
|
@@ -738,6 +760,15 @@ const REPAIR_RECIPES = [
|
|
|
738
760
|
"maxRetries": 0,
|
|
739
761
|
"repairNoteTemplate": "I cannot find the asset that {{toolName}} needs. {{message}} Which uploaded or generated asset did you want?"
|
|
740
762
|
},
|
|
763
|
+
{
|
|
764
|
+
"recipeId": "upscale_image.asset_not_found",
|
|
765
|
+
"version": "1.0.0",
|
|
766
|
+
"toolName": "upscale_image",
|
|
767
|
+
"errorCode": "ASSET_NOT_FOUND",
|
|
768
|
+
"mode": "stopAndAsk",
|
|
769
|
+
"maxRetries": 0,
|
|
770
|
+
"repairNoteTemplate": "I cannot find the asset that {{toolName}} needs. {{message}} Which uploaded or generated asset did you want?"
|
|
771
|
+
},
|
|
741
772
|
{
|
|
742
773
|
"recipeId": "apply_style.asset_not_found",
|
|
743
774
|
"version": "1.0.0",
|
|
@@ -927,6 +958,15 @@ const REPAIR_RECIPES = [
|
|
|
927
958
|
"maxRetries": 0,
|
|
928
959
|
"repairNoteTemplate": "{{toolName}} could not run: {{message}}"
|
|
929
960
|
},
|
|
961
|
+
{
|
|
962
|
+
"recipeId": "upscale_image.workflow_validation_failed",
|
|
963
|
+
"version": "1.0.0",
|
|
964
|
+
"toolName": "upscale_image",
|
|
965
|
+
"errorCode": "WORKFLOW_VALIDATION_FAILED",
|
|
966
|
+
"mode": "stopAndAsk",
|
|
967
|
+
"maxRetries": 0,
|
|
968
|
+
"repairNoteTemplate": "{{toolName}} could not run: {{message}}"
|
|
969
|
+
},
|
|
930
970
|
{
|
|
931
971
|
"recipeId": "apply_style.workflow_validation_failed",
|
|
932
972
|
"version": "1.0.0",
|
|
@@ -1089,6 +1129,15 @@ const REPAIR_RECIPES = [
|
|
|
1089
1129
|
"maxRetries": 0,
|
|
1090
1130
|
"repairNoteTemplate": "{{toolName}} rejected the arguments: {{message}}"
|
|
1091
1131
|
},
|
|
1132
|
+
{
|
|
1133
|
+
"recipeId": "upscale_image.parameter_invalid",
|
|
1134
|
+
"version": "1.0.0",
|
|
1135
|
+
"toolName": "upscale_image",
|
|
1136
|
+
"errorCode": "PARAMETER_INVALID",
|
|
1137
|
+
"mode": "stopAndAsk",
|
|
1138
|
+
"maxRetries": 0,
|
|
1139
|
+
"repairNoteTemplate": "{{toolName}} rejected the arguments: {{message}}"
|
|
1140
|
+
},
|
|
1092
1141
|
{
|
|
1093
1142
|
"recipeId": "apply_style.parameter_invalid",
|
|
1094
1143
|
"version": "1.0.0",
|
|
@@ -1233,6 +1282,15 @@ const REPAIR_RECIPES = [
|
|
|
1233
1282
|
"maxRetries": 0,
|
|
1234
1283
|
"repairNoteTemplate": "The {{toolName}} worker failed. {{message}} Want me to try again or change the request?"
|
|
1235
1284
|
},
|
|
1285
|
+
{
|
|
1286
|
+
"recipeId": "upscale_image.gpu_worker_failed",
|
|
1287
|
+
"version": "1.0.0",
|
|
1288
|
+
"toolName": "upscale_image",
|
|
1289
|
+
"errorCode": "GPU_WORKER_FAILED",
|
|
1290
|
+
"mode": "stopAndAsk",
|
|
1291
|
+
"maxRetries": 0,
|
|
1292
|
+
"repairNoteTemplate": "The {{toolName}} worker failed. {{message}} Want me to try again or change the request?"
|
|
1293
|
+
},
|
|
1236
1294
|
{
|
|
1237
1295
|
"recipeId": "apply_style.gpu_worker_failed",
|
|
1238
1296
|
"version": "1.0.0",
|
|
@@ -1386,6 +1444,15 @@ const REPAIR_RECIPES = [
|
|
|
1386
1444
|
"maxRetries": 0,
|
|
1387
1445
|
"repairNoteTemplate": "The model {{toolName}} wanted is offline. {{message}} Pick a different model or try again later."
|
|
1388
1446
|
},
|
|
1447
|
+
{
|
|
1448
|
+
"recipeId": "upscale_image.model_unavailable",
|
|
1449
|
+
"version": "1.0.0",
|
|
1450
|
+
"toolName": "upscale_image",
|
|
1451
|
+
"errorCode": "MODEL_UNAVAILABLE",
|
|
1452
|
+
"mode": "stopAndAsk",
|
|
1453
|
+
"maxRetries": 0,
|
|
1454
|
+
"repairNoteTemplate": "The model {{toolName}} wanted is offline. {{message}} Pick a different model or try again later."
|
|
1455
|
+
},
|
|
1389
1456
|
{
|
|
1390
1457
|
"recipeId": "apply_style.model_unavailable",
|
|
1391
1458
|
"version": "1.0.0",
|
|
@@ -1548,6 +1615,15 @@ const REPAIR_RECIPES = [
|
|
|
1548
1615
|
"maxRetries": 0,
|
|
1549
1616
|
"repairNoteTemplate": "{{toolName}} needs permission you have not granted yet. {{message}}"
|
|
1550
1617
|
},
|
|
1618
|
+
{
|
|
1619
|
+
"recipeId": "upscale_image.permission_required",
|
|
1620
|
+
"version": "1.0.0",
|
|
1621
|
+
"toolName": "upscale_image",
|
|
1622
|
+
"errorCode": "PERMISSION_REQUIRED",
|
|
1623
|
+
"mode": "stopAndAsk",
|
|
1624
|
+
"maxRetries": 0,
|
|
1625
|
+
"repairNoteTemplate": "{{toolName}} needs permission you have not granted yet. {{message}}"
|
|
1626
|
+
},
|
|
1551
1627
|
{
|
|
1552
1628
|
"recipeId": "apply_style.permission_required",
|
|
1553
1629
|
"version": "1.0.0",
|
|
@@ -1810,6 +1886,15 @@ const REPAIR_RECIPES = [
|
|
|
1810
1886
|
"maxRetries": 0,
|
|
1811
1887
|
"repairNoteTemplate": "{{toolName}} timed out. {{message}} Want me to retry, or simplify the request?"
|
|
1812
1888
|
},
|
|
1889
|
+
{
|
|
1890
|
+
"recipeId": "upscale_image.provider_timeout",
|
|
1891
|
+
"version": "1.0.0",
|
|
1892
|
+
"toolName": "upscale_image",
|
|
1893
|
+
"errorCode": "PROVIDER_TIMEOUT",
|
|
1894
|
+
"mode": "stopAndAsk",
|
|
1895
|
+
"maxRetries": 0,
|
|
1896
|
+
"repairNoteTemplate": "{{toolName}} timed out. {{message}} Want me to retry, or simplify the request?"
|
|
1897
|
+
},
|
|
1813
1898
|
{
|
|
1814
1899
|
"recipeId": "apply_style.provider_timeout",
|
|
1815
1900
|
"version": "1.0.0",
|
|
@@ -1972,6 +2057,15 @@ const REPAIR_RECIPES = [
|
|
|
1972
2057
|
"maxRetries": 0,
|
|
1973
2058
|
"repairNoteTemplate": "The {{toolName}} run was cancelled by the user. I will stop here unless you ask me to try again."
|
|
1974
2059
|
},
|
|
2060
|
+
{
|
|
2061
|
+
"recipeId": "upscale_image.user_cancelled",
|
|
2062
|
+
"version": "1.0.0",
|
|
2063
|
+
"toolName": "upscale_image",
|
|
2064
|
+
"errorCode": "USER_CANCELLED",
|
|
2065
|
+
"mode": "stopAndAsk",
|
|
2066
|
+
"maxRetries": 0,
|
|
2067
|
+
"repairNoteTemplate": "The {{toolName}} run was cancelled by the user. I will stop here unless you ask me to try again."
|
|
2068
|
+
},
|
|
1975
2069
|
{
|
|
1976
2070
|
"recipeId": "apply_style.user_cancelled",
|
|
1977
2071
|
"version": "1.0.0",
|
|
@@ -2113,7 +2207,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2113
2207
|
"contractId": "restore_photo_v1",
|
|
2114
2208
|
"version": "1.0.0",
|
|
2115
2209
|
"toolName": "restore_photo",
|
|
2116
|
-
"baseDescription": "restore_photo edits or restores the ORIGINAL uploaded photograph. Use this for the first\nrestoration/edit on an upload, or when the user explicitly asks to start over from the\noriginal/source photo. Use refine_result for follow-up edits to an existing generated result.\n\nFor photos with people, front-load identity preservation before the restoration or edit.\nUse positive constraints such as preserve exact facial likeness, face structure, apparent\nage, pose, and composition. End with preservation of unmentioned details.\n\nUse Dynamic Prompt syntax only when the user explicitly asks to compare multiple restoration\napproaches. Default restoration batches should keep the same prompt and vary only by seed.",
|
|
2210
|
+
"baseDescription": "restore_photo edits or restores the ORIGINAL uploaded photograph. Use this for the first\nrestoration/edit on an upload, or when the user explicitly asks to start over from the\noriginal/source photo. Use refine_result for follow-up edits to an existing generated result.\n\nFor photos with people, front-load identity preservation before the restoration or edit.\nUse positive constraints such as preserve exact facial likeness, face structure, apparent\nage, pose, and composition. End with preservation of unmentioned details.\n\nUse Dynamic Prompt syntax only when the user explicitly asks to compare multiple restoration\napproaches. Default restoration batches should keep the same prompt and vary only by seed.\nIf the user only wants a larger, higher-resolution copy without restoration or other creative\nchanges, use upscale_image instead. restore_photo is a generative edit and is not a substitute\nfor deterministic upscaling.",
|
|
2117
2211
|
"parameterDocs": {
|
|
2118
2212
|
"prompt": "Natural-language edit/restoration prompt. Start with identity preservation for people, then requested restoration/edit, then preserve unmentioned details.",
|
|
2119
2213
|
"numberOfVariations": "Use 1 unless the user explicitly asks for multiple outputs or comparison options.",
|
|
@@ -2121,6 +2215,17 @@ const PROMPT_CONTRACTS = [
|
|
|
2121
2215
|
"quality": "Omit unless the user explicitly asks for fast or high quality."
|
|
2122
2216
|
}
|
|
2123
2217
|
},
|
|
2218
|
+
{
|
|
2219
|
+
"contractId": "upscale_image_v1",
|
|
2220
|
+
"version": "1.0.0",
|
|
2221
|
+
"toolName": "upscale_image",
|
|
2222
|
+
"baseDescription": "upscale_image performs promptless, deterministic NVIDIA RTX VSR enlargement of exactly one\nuploaded or generated image. Use it when the user asks for a larger copy, higher resolution,\n2x/3x/4x enlargement, 4K/8K output, or more pixels while preserving the source composition.\n\nDo not invent a prompt and do not route a pure upscale through restore_photo, refine_result,\nedit_image, or apply_style. Those tools are generative and can change image content.\n\nOmit sourceImageIndex to use the latest generated image, falling back to the first upload.\nUse zero-based non-negative indices for generated results; -1 selects the first upload and\n-2 the second upload. Set either scale (2, 3, or 4) or targetLongestEdge (512-8192).\ntargetLongestEdge takes precedence. Never request a target at or below the source size.\nBoth 8px-aligned output edges must remain between 512 and 8192px. If a wide or tall source\nneeds a larger target to preserve its aspect ratio, use the minimum target returned by the tool.",
|
|
2223
|
+
"parameterDocs": {
|
|
2224
|
+
"sourceImageIndex": "Omit for the latest generated image, then first upload. Generated results are zero-based; -1/-2 select uploaded images.",
|
|
2225
|
+
"scale": "Integer enlargement factor 2, 3, or 4. Defaults to 2 and is ignored when targetLongestEdge is set. A too-small result is rejected rather than stretched to the 512px edge minimum.",
|
|
2226
|
+
"targetLongestEdge": "Explicit output longest edge in pixels, 512-8192. Must be larger than the source, and large enough that the other 8px-aligned edge remains at least 512px; aspect ratio is preserved."
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2124
2229
|
{
|
|
2125
2230
|
"contractId": "apply_style_v1",
|
|
2126
2231
|
"version": "1.0.0",
|
|
@@ -2585,6 +2690,23 @@ export function createPublicSkillDefaultContractRuntime(input = {}) {
|
|
|
2585
2690
|
});
|
|
2586
2691
|
}
|
|
2587
2692
|
|
|
2693
|
+
import { resolveLtx25WorkflowModelForQuality as resolveUpstreamLtx25WorkflowModelForQuality, selectDefaultVideoModel as selectUpstreamDefaultVideoModel, } from '@sogni-ai/sogni-intelligence-client/public-skill-runtime';
|
|
2694
|
+
function forceLtx25DistilledModel(modelId) {
|
|
2695
|
+
return modelId?.startsWith('ltx25-') && modelId.endsWith('_dev')
|
|
2696
|
+
? `${modelId.slice(0, -'_dev'.length)}_distilled`
|
|
2697
|
+
: modelId;
|
|
2698
|
+
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Keep every public LTX 2.5 quality tier on the release-validated Distilled
|
|
2701
|
+
* workflows even while older intelligence-client installations still map Pro
|
|
2702
|
+
* to the unpublished Dev recipe.
|
|
2703
|
+
*/
|
|
2704
|
+
export function resolveLtx25WorkflowModelForQuality(workflow, qualityTier) {
|
|
2705
|
+
return forceLtx25DistilledModel(resolveUpstreamLtx25WorkflowModelForQuality(workflow, qualityTier));
|
|
2706
|
+
}
|
|
2707
|
+
export function selectDefaultVideoModel(workflow, opts = {}, config) {
|
|
2708
|
+
return forceLtx25DistilledModel(selectUpstreamDefaultVideoModel(workflow, opts, config));
|
|
2709
|
+
}
|
|
2588
2710
|
// Moved to @sogni-ai/sogni-intelligence-client/skill-runtime-source in Phase 8.4 follow-up.
|
|
2589
2711
|
// This file is kept as a thin re-export so existing internal `testing/`
|
|
2590
2712
|
// callers keep working. New code should import from the public mid-tier:
|
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.31.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.31.0",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"sogni-agent.mjs"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@sogni-ai/sogni-intelligence-client": "3.
|
|
95
|
+
"@sogni-ai/sogni-intelligence-client": "3.17.0",
|
|
96
96
|
"execa": "^9.6.1",
|
|
97
97
|
"json5": "^2.2.3",
|
|
98
98
|
"sharp": "^0.34.5"
|
package/references/hosted-api.md
CHANGED
|
@@ -71,7 +71,7 @@ server-side, so do not rely on `--no-thinking` as a hard suppression switch).
|
|
|
71
71
|
|
|
72
72
|
- `creative-tools` — the public API default when `sogni_tools` is omitted or
|
|
73
73
|
true. Generation/editing tools (`generate_image`, `generate_video`,
|
|
74
|
-
`generate_music`, `edit_image`, `apply_style`, `restore_photo`,
|
|
74
|
+
`generate_music`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
|
|
75
75
|
`refine_result`, `animate_photo`, `change_angle`, `video_to_video`,
|
|
76
76
|
`stitch_video`, `orbit_video`, `dance_montage`, `sound_to_video`,
|
|
77
77
|
`extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles`),
|
package/references/models.md
CHANGED
|
@@ -40,7 +40,7 @@ from `/v1/models`, not Supernet media models.
|
|
|
40
40
|
|--------|-------|-------|------|-------|
|
|
41
41
|
| `fast` | `z_image_turbo_bf16` | 8 | 512x512 | ~5-10s |
|
|
42
42
|
| `hq` | `z_image_turbo_bf16` | default | 768x768 | ~10-15s |
|
|
43
|
-
| `pro` | `
|
|
43
|
+
| `pro` | `qwen_image_2512_fp8` | 20 | 1024x1024 | ~30sec |
|
|
44
44
|
|
|
45
45
|
Explicit `-m` overrides the preset's model. Explicit `-w`/`-h` overrides
|
|
46
46
|
dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts →
|
|
@@ -53,7 +53,7 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
|
|
|
53
53
|
| `z_image_turbo_bf16` | Fast (~5-10s) | General purpose, default |
|
|
54
54
|
| `gpt-image-2` | Variable | OpenAI GPT Image 2 text-to-image and edit, strong prompt and text rendering |
|
|
55
55
|
| `flux1-schnell-fp8` | Very fast | Quick iterations |
|
|
56
|
-
| `
|
|
56
|
+
| `qwen_image_2512_fp8` | Medium (~30s) | High quality |
|
|
57
57
|
| `krea2_turbo_fp8_scaled` | Fast | Krea 2 Turbo text-to-image, fast high-quality generations with strong prompt adherence |
|
|
58
58
|
| `dark_beast_krea2_fp8` | Fast | Dark Beast Krea 2 community text-to-image fine-tune |
|
|
59
59
|
| `krea2_identity_edit_v1_2` | Fast | Krea 2 Identity Edit LoRA v1.2, identity-preserving edits with 1-2 references |
|
|
@@ -62,6 +62,15 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
|
|
|
62
62
|
| `qwen_image_edit_2511_fp8` | Medium | Image editing with context (up to 3), strongest preservation |
|
|
63
63
|
| `qwen_image_edit_2511_fp8_lightning` | Fast | Quick image editing (default for `-c`) |
|
|
64
64
|
| `coreml-sogniXLturbo_alpha1_ad` | Fast | Photobooth face transfer (SDXL Turbo) |
|
|
65
|
+
| `rtx_vsr_pro` | Fast | Promptless, deterministic NVIDIA RTX VSR upscale from one starting image; 512-8192 target box, 8px step |
|
|
66
|
+
|
|
67
|
+
RTX VSR is not a text-to-image or restoration model. Invoke it with
|
|
68
|
+
`sogni-agent --upscale <path|url>` (optionally `--upscale-scale 2|3|4` or
|
|
69
|
+
`--target-longest-edge <px>`), or use the hosted `upscale_image` tool. The
|
|
70
|
+
source is sent through `startingImage`, the prompt stays empty, and the worker
|
|
71
|
+
fits the result inside the requested box without cropping or stretching. Both
|
|
72
|
+
8px-aligned output edges must be 512-8192px. If a scale leaves the short edge
|
|
73
|
+
below 512px, use the minimum target longest edge reported by the CLI/tool.
|
|
65
74
|
|
|
66
75
|
For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
|
|
67
76
|
`krea-2-turbo`; direct CLI `-m` uses the worker model ID
|
|
@@ -306,15 +315,16 @@ and short in-scene text.
|
|
|
306
315
|
|
|
307
316
|
## MiniMax H3 models
|
|
308
317
|
|
|
309
|
-
MiniMax H3 is a Sogni-hosted video family with **
|
|
310
|
-
standard workflows plus
|
|
318
|
+
MiniMax H3 is a Sogni-hosted video family with **eight current modes**: four
|
|
319
|
+
standard workflows plus four 4-step H3 Turbo workflows. Every mode
|
|
311
320
|
generates picture and **native 32 kHz stereo audio jointly**.
|
|
312
321
|
`--no-generate-audio` (SDK `generateAudio=false`) strips the generated track
|
|
313
322
|
from the delivered file rather than skipping audio generation. It is an explicit model choice, never a
|
|
314
323
|
universal default. The bare `minimax-h3` selector resolves to the mode inferred
|
|
315
|
-
from your references; `minimax-h3-turbo` does the same for Turbo t2v/i2v/flf2v
|
|
324
|
+
from your references; `minimax-h3-turbo` does the same for Turbo t2v/i2v/flf2v
|
|
325
|
+
and accepts an explicit `--workflow r2v`.
|
|
316
326
|
**`minimax-h3-r2v` is never inferred** — it runs a different checkpoint and must
|
|
317
|
-
be asked for by name.
|
|
327
|
+
be asked for by name. Its Turbo counterpart is `minimax-h3-r2v-turbo`.
|
|
318
328
|
|
|
319
329
|
| Model | Mode | Use Case |
|
|
320
330
|
|-------|------|----------|
|
|
@@ -325,6 +335,7 @@ be asked for by name. There is no Turbo Ref2VA workflow.
|
|
|
325
335
|
| `minimax-h3-turbo` / `minimax-h3-t2v-turbo` | Turbo text-to-video | 4-step prompt-only path; generic `minimax-h3-turbo` infers the frame workflow |
|
|
326
336
|
| `minimax-h3-i2v-turbo` | Turbo image-to-video | 4-step animation from one first frame |
|
|
327
337
|
| `minimax-h3-flf2v-turbo` | Turbo first → last frame | 4-step interpolation between `--ref` and `--ref-end` |
|
|
338
|
+
| `minimax-h3-r2v-turbo` | Turbo reference-to-video | Dedicated 4-step Ref2VA LoRA; Euler/simple and 960×544 by default |
|
|
328
339
|
|
|
329
340
|
The three standard frame modes share the FL2VA checkpoint: worker ids
|
|
330
341
|
`minimax-h3-fl2va-fp8_t2v`, `minimax-h3-fl2va-fp8_i2v`, and
|
|
@@ -335,7 +346,9 @@ LightX2V's 4-step distillation LoRA to those same workflows through worker ids
|
|
|
335
346
|
`minimax-h3-fl2va-fp8_flf2v_turbo`. Reference-to-video is a
|
|
336
347
|
SEPARATE checkpoint — worker id `minimax-h3-ref2va-fp8_r2v` — selected directly
|
|
337
348
|
with `-m minimax-h3-r2v`, or through the creative-agent `generate_video` tool
|
|
338
|
-
with `videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat).
|
|
349
|
+
with `videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). The
|
|
350
|
+
dedicated LightX2V LoRA exposes it as `minimax-h3-ref2va-fp8_r2v_turbo` through
|
|
351
|
+
the public `minimax-h3-r2v-turbo` selector.
|
|
339
352
|
|
|
340
353
|
The **fl2va** modes (t2v / i2v / flf2v) take image references only — they do not
|
|
341
354
|
accept reference video or reference audio, because audio is generated natively.
|
|
@@ -350,13 +363,15 @@ video-conditioned R2V requires a worker above 40 GB.
|
|
|
350
363
|
- **Frames on the `124 + n×17` grid**, `124` through `362` — **5.17 s to
|
|
351
364
|
15.08 s**. `--duration` snaps onto that grid; an off-grid explicit `--frames`
|
|
352
365
|
is a hard error.
|
|
353
|
-
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**.
|
|
354
|
-
|
|
366
|
+
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Standard and
|
|
367
|
+
FL2VA Turbo default to `1344×768`; Ref2VA Turbo defaults to `960×544`.
|
|
355
368
|
- **20 steps for standard H3; 4 steps for H3 Turbo; guidance/CFG 1** — send no
|
|
356
|
-
steps, guidance, scheduler, or **negative prompt**. Standard H3
|
|
357
|
-
|
|
358
|
-
omits the sampler unless `--sampler` is passed. Direct CLI A/B tests may pass
|
|
359
|
-
exactly `--sampler euler`, `--sampler er_sde`, or `--sampler sa_solver`.
|
|
369
|
+
steps, guidance, scheduler, or **negative prompt**. Standard H3 accepts no
|
|
370
|
+
sampler override. FL2VA H3 Turbo defaults to `er_sde` on Socket, and the CLI
|
|
371
|
+
omits the sampler unless `--sampler` is passed. Direct FL2VA CLI A/B tests may pass
|
|
372
|
+
exactly `--sampler euler`, `--sampler er_sde`, or `--sampler sa_solver`.
|
|
373
|
+
Ref2VA Turbo uses the exact upstream Euler/simple recipe and accepts only
|
|
374
|
+
`--sampler euler`. The checkpoint is CFG-distilled with
|
|
360
375
|
guidance locked at 1, so there is no negative branch and a `negativePrompt`
|
|
361
376
|
parameter is ignored wherever it is accepted. Put negative direction in the
|
|
362
377
|
prompt text instead.
|
|
@@ -450,8 +465,8 @@ overall_soundscape:
|
|
|
450
465
|
non_diegetic_music:
|
|
451
466
|
```
|
|
452
467
|
|
|
453
|
-
This is a different prompt contract from
|
|
454
|
-
|
|
468
|
+
This is a different prompt contract from FL2VA H3. Standard and Turbo Ref2VA
|
|
469
|
+
share it.
|
|
455
470
|
|
|
456
471
|
#### Ordinals and the prompt tag form
|
|
457
472
|
|
|
@@ -555,7 +570,7 @@ model recommendations.
|
|
|
555
570
|
|------|----------------------|
|
|
556
571
|
| Default images | `z_image_turbo_bf16` |
|
|
557
572
|
| OpenAI GPT Image generation, editing, or strong text rendering | `gpt-image-2` |
|
|
558
|
-
| Highest-quality images | `
|
|
573
|
+
| Highest-quality images | `qwen_image_2512_fp8` (or `-Q pro`) |
|
|
559
574
|
| Image editing | `qwen_image_edit_2511_fp8_lightning` |
|
|
560
575
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
561
576
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
@@ -585,12 +600,13 @@ model recommendations.
|
|
|
585
600
|
| MiniMax H3 Turbo text-to-video | `minimax-h3-turbo` or `minimax-h3-t2v-turbo` |
|
|
586
601
|
| MiniMax H3 Turbo image-to-video from one first frame | `minimax-h3-i2v-turbo` with `--ref` |
|
|
587
602
|
| MiniMax H3 Turbo first frame → last frame transition | `minimax-h3-flf2v-turbo` with `--ref A --ref-end B` |
|
|
603
|
+
| MiniMax H3 Turbo from loose references | `minimax-h3-r2v-turbo` with `--ref`/`-c`, repeatable `--ref-video`, and repeatable `--ref-audio` |
|
|
588
604
|
| Face lip-sync with uploaded audio | `wan_v2.2-14b-fp8_s2v_lightx2v` |
|
|
589
605
|
|
|
590
606
|
## Video sizing & aspect ratios
|
|
591
607
|
|
|
592
608
|
- **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
|
|
593
|
-
- **MiniMax H3 and H3 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
|
|
609
|
+
- **MiniMax H3 and H3 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/FL2VA Turbo default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard H3 uses 20 steps; Turbo uses 4. FL2VA H3 Turbo defaults to `er_sde` on Socket and accepts `euler`, `er_sde`, or `sa_solver`; Ref2VA Turbo uses Euler/simple only. The CLI omits the sampler unless `--sampler` is passed. Guidance 1 and native stereo audio apply to all, with no negative-prompt input. FL2VA/Turbo and image-only R2V require 32 GB-class workers; video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
|
|
594
610
|
- **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.
|
|
595
611
|
- **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` renders 4–30 s single clips (97–721 frames) but caps at 480p/720p (max dimension 1280) — it cannot render 1080p or 4K. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
596
612
|
- **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.
|
|
@@ -46,7 +46,7 @@ CLI defaults are 512×512 images, count 1, spark tokens, prompt-hash seeds):
|
|
|
46
46
|
"seedStrategy": "prompt-hash",
|
|
47
47
|
"modelDefaults": {
|
|
48
48
|
"flux1-schnell-fp8": { "steps": 4, "guidance": 3.5 },
|
|
49
|
-
"
|
|
49
|
+
"qwen_image_2512_fp8": { "steps": 20, "guidance": 7.5 }
|
|
50
50
|
},
|
|
51
51
|
"defaultWidth": 512,
|
|
52
52
|
"defaultHeight": 512,
|
|
@@ -89,9 +89,9 @@ are part of the model contract.
|
|
|
89
89
|
Applies to standard `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v`, and
|
|
90
90
|
`minimax-h3-flf2v`; their 4-step `minimax-h3-turbo`,
|
|
91
91
|
`minimax-h3-i2v-turbo`, and `minimax-h3-flf2v-turbo` variants; and—with its own
|
|
92
|
-
six-field contract—to standard `minimax-h3-r2v`. The exact worker
|
|
92
|
+
six-field contract—to standard `minimax-h3-r2v` and `minimax-h3-r2v-turbo`. The exact worker
|
|
93
93
|
ids are `minimax-h3-fl2va-fp8_{t2v,i2v,flf2v}` with an optional `_turbo`
|
|
94
|
-
suffix, plus `minimax-h3-ref2va-fp8_r2v
|
|
94
|
+
suffix, plus `minimax-h3-ref2va-fp8_r2v` and `minimax-h3-ref2va-fp8_r2v_turbo`. See
|
|
95
95
|
[MiniMax H3 reference-to-video (r2v)](#minimax-h3-reference-to-video-r2v) below
|
|
96
96
|
before writing an r2v prompt.
|
|
97
97
|
|
|
@@ -108,10 +108,11 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
|
108
108
|
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
109
109
|
- **20 steps for standard H3; 4 steps for H3 Turbo; guidance/CFG 1.** Do not
|
|
110
110
|
send steps, guidance, scheduler, or a **negative prompt**. Standard H3 and
|
|
111
|
-
R2V accept no sampler override. H3 Turbo defaults to `er_sde` on Socket, and
|
|
112
|
-
the CLI omits the sampler unless `--sampler` is passed. Direct CLI A/B tests
|
|
111
|
+
R2V accept no sampler override. FL2VA H3 Turbo defaults to `er_sde` on Socket, and
|
|
112
|
+
the CLI omits the sampler unless `--sampler` is passed. Direct FL2VA CLI A/B tests
|
|
113
113
|
may pass exactly `--sampler euler`, `--sampler er_sde`, or
|
|
114
|
-
`--sampler sa_solver`.
|
|
114
|
+
`--sampler sa_solver`. Ref2VA Turbo uses the exact upstream Euler/simple recipe,
|
|
115
|
+
defaults to 960×544, and accepts only `--sampler euler`. The checkpoint is CFG-distilled with
|
|
115
116
|
guidance locked at 1, so there is no negative branch at all: a
|
|
116
117
|
`negativePrompt` parameter is ignored wherever it is accepted. Negative
|
|
117
118
|
direction goes in the prompt text instead.
|
package/skill-package.json
CHANGED
package/skills/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Available to every per-skill consumer. Sogni-hosted chat loads all capabilities
|
|
|
21
21
|
| Skill | Tools |
|
|
22
22
|
|---|---|
|
|
23
23
|
| [`image_generation`](./image_generation.md) | `generate_image` |
|
|
24
|
-
| [`image_editing`](./image_editing.md) | `edit_image`, `restore_photo`, `apply_style`, `change_angle`, `refine_result` |
|
|
24
|
+
| [`image_editing`](./image_editing.md) | `edit_image`, `upscale_image`, `restore_photo`, `apply_style`, `change_angle`, `refine_result` |
|
|
25
25
|
| [`video_generation`](./video_generation.md) | `generate_video` |
|
|
26
26
|
| [`video_editing`](./video_editing.md) | `animate_photo`, `sound_to_video`, `video_to_video`, `stitch_video`, `orbit_video`, `dance_montage`, `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles` |
|
|
27
27
|
| [`music_generation`](./music_generation.md) | `generate_music` |
|
package/skills/image_editing.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: image_editing
|
|
3
|
-
description: Edit, restore, restyle, refine, or change the camera angle of an existing image.
|
|
3
|
+
description: Edit, restore, restyle, refine, upscale, or change the camera angle of an existing image.
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- edit_image
|
|
7
7
|
- restore_photo
|
|
8
|
+
- upscale_image
|
|
8
9
|
- apply_style
|
|
9
10
|
- change_angle
|
|
10
11
|
- refine_result
|
|
@@ -12,12 +13,13 @@ tool_names:
|
|
|
12
13
|
|
|
13
14
|
# Image editing
|
|
14
15
|
|
|
15
|
-
Edit, restore, restyle, refine, or change the camera angle of an existing image. Includes persona-conditioned edits — persona images must always be produced with `edit_image` and reference photos, never via text-to-image.
|
|
16
|
+
Edit, restore, restyle, refine, upscale, or change the camera angle of an existing image. Includes deterministic RTX VSR upscaling and persona-conditioned edits — persona images must always be produced with `edit_image` and reference photos, never via text-to-image.
|
|
16
17
|
|
|
17
18
|
## Tools
|
|
18
19
|
|
|
19
20
|
- `edit_image` — instruction-based image editing including persona-reference flows.
|
|
20
21
|
- `restore_photo` — AI photo restoration (Qwen Image Edit).
|
|
22
|
+
- `upscale_image` — promptless deterministic NVIDIA RTX VSR enlargement.
|
|
21
23
|
- `apply_style` — artistic style transfer.
|
|
22
24
|
- `change_angle` — camera-angle synthesis over an existing subject.
|
|
23
25
|
- `refine_result` — iterative refinement of a prior result in the session.
|
|
@@ -28,5 +30,6 @@ Edit, restore, restyle, refine, or change the camera angle of an existing image.
|
|
|
28
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.
|
|
29
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.
|
|
30
32
|
- `refine_result` acts on a prior generation in the session; do not call it before any image has been produced or uploaded.
|
|
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-8192px; 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.
|
|
31
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.
|
|
32
35
|
- Photobooth/face-transfer is for generating a new portrait from a face reference. It is not full-image editing and may change pose, clothing, background, framing, and composition.
|
package/sogni-agent.mjs
CHANGED
|
@@ -231,7 +231,11 @@ const {
|
|
|
231
231
|
SogniClientWrapper,
|
|
232
232
|
ClientEvent,
|
|
233
233
|
getMaxContextImages: getWrapperMaxContextImages,
|
|
234
|
-
parseCreativeWorkflowSseChunk
|
|
234
|
+
parseCreativeWorkflowSseChunk,
|
|
235
|
+
// Model-aware wrapper dimension rules (intelligence-client > 3.15.1). On
|
|
236
|
+
// older pinned clients this is undefined and the CLI falls back to the
|
|
237
|
+
// historical mirror constants below.
|
|
238
|
+
getVideoDimensionRules: getWrapperVideoDimensionRules
|
|
235
239
|
} = rootClientModule;
|
|
236
240
|
|
|
237
241
|
// ---------------------------------------------------------------------------
|
|
@@ -1295,6 +1299,64 @@ function parsePositiveIntegerValue(raw, flagName, min = 1, max = Infinity) {
|
|
|
1295
1299
|
// just large enough to catch obvious typos (e.g. a stray extra zero) before
|
|
1296
1300
|
// they waste a round-trip or blow up local memory.
|
|
1297
1301
|
const MAX_IMAGE_DIMENSION = 8192;
|
|
1302
|
+
const RTX_VSR_MODEL_ID = 'rtx_vsr_pro';
|
|
1303
|
+
const RTX_VSR_MIN_DIMENSION = 512;
|
|
1304
|
+
const RTX_VSR_DIMENSION_STEP = 8;
|
|
1305
|
+
|
|
1306
|
+
function alignRtxVsrDimension(value) {
|
|
1307
|
+
return Math.floor(value / RTX_VSR_DIMENSION_STEP) * RTX_VSR_DIMENSION_STEP;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
function resolveRtxVsrDimensions(sourceWidth, sourceHeight, { scale = 2, targetLongestEdge = null } = {}) {
|
|
1311
|
+
if (!Number.isFinite(sourceWidth) || sourceWidth <= 0 || !Number.isFinite(sourceHeight) || sourceHeight <= 0) {
|
|
1312
|
+
fatalCliError('Could not determine the source image dimensions for RTX VSR upscaling.', {
|
|
1313
|
+
code: 'INVALID_UPSCALE_SOURCE'
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
const sourceLongestEdge = Math.max(sourceWidth, sourceHeight);
|
|
1318
|
+
if (sourceLongestEdge >= MAX_IMAGE_DIMENSION) {
|
|
1319
|
+
fatalCliError(`RTX VSR cannot enlarge an image whose longest edge is already ${MAX_IMAGE_DIMENSION}px or larger.`, {
|
|
1320
|
+
code: 'INVALID_UPSCALE_SIZE',
|
|
1321
|
+
details: { sourceWidth, sourceHeight, maxDimension: MAX_IMAGE_DIMENSION }
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
const requestedLongestEdge = targetLongestEdge ?? sourceLongestEdge * scale;
|
|
1326
|
+
if (requestedLongestEdge <= sourceLongestEdge) {
|
|
1327
|
+
fatalCliError('RTX VSR output must be larger than the source image.', {
|
|
1328
|
+
code: 'INVALID_UPSCALE_SIZE',
|
|
1329
|
+
details: { sourceWidth, sourceHeight, requestedLongestEdge }
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
const factor = Math.min(requestedLongestEdge / sourceLongestEdge, MAX_IMAGE_DIMENSION / sourceLongestEdge);
|
|
1333
|
+
const width = alignRtxVsrDimension(sourceWidth * factor);
|
|
1334
|
+
const height = alignRtxVsrDimension(sourceHeight * factor);
|
|
1335
|
+
if (width < RTX_VSR_MIN_DIMENSION || height < RTX_VSR_MIN_DIMENSION) {
|
|
1336
|
+
const sourceShortestEdge = Math.min(sourceWidth, sourceHeight);
|
|
1337
|
+
const minimumLongestEdge = Math.ceil(
|
|
1338
|
+
(sourceLongestEdge * RTX_VSR_MIN_DIMENSION / sourceShortestEdge) / RTX_VSR_DIMENSION_STEP
|
|
1339
|
+
) * RTX_VSR_DIMENSION_STEP;
|
|
1340
|
+
const message = minimumLongestEdge <= MAX_IMAGE_DIMENSION
|
|
1341
|
+
? `The requested RTX VSR output would be ${width}×${height}px. To preserve aspect ratio, choose --target-longest-edge ${minimumLongestEdge} or larger so every output edge is at least ${RTX_VSR_MIN_DIMENSION}px.`
|
|
1342
|
+
: `The ${sourceWidth}×${sourceHeight}px source aspect ratio cannot fit RTX VSR's supported ${RTX_VSR_MIN_DIMENSION}–${MAX_IMAGE_DIMENSION}px output bounds without stretching.`;
|
|
1343
|
+
fatalCliError(message, {
|
|
1344
|
+
code: 'INVALID_UPSCALE_SIZE',
|
|
1345
|
+
details: {
|
|
1346
|
+
sourceWidth,
|
|
1347
|
+
sourceHeight,
|
|
1348
|
+
requestedLongestEdge,
|
|
1349
|
+
minimumLongestEdge,
|
|
1350
|
+
minDimension: RTX_VSR_MIN_DIMENSION,
|
|
1351
|
+
maxDimension: MAX_IMAGE_DIMENSION
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
return {
|
|
1356
|
+
width,
|
|
1357
|
+
height
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1298
1360
|
|
|
1299
1361
|
// Safety cap for -n/--count: every output is a paid generation, so a typo like
|
|
1300
1362
|
// `-n 1000` (meant `-n 10`) must not launch a thousand-render batch. Raise
|
|
@@ -1471,13 +1533,14 @@ const DEFAULT_VIDEO_DIMENSION_RULES = {
|
|
|
1471
1533
|
const WRAPPER_MAX_VIDEO_DIMENSION = 2048;
|
|
1472
1534
|
const WRAPPER_MAX_WAN_VIDEO_DIMENSION = 1536;
|
|
1473
1535
|
|
|
1474
|
-
// SogniClientWrapper.normalizeVideoDimensions in
|
|
1475
|
-
//
|
|
1476
|
-
//
|
|
1477
|
-
//
|
|
1478
|
-
//
|
|
1479
|
-
//
|
|
1480
|
-
//
|
|
1536
|
+
// Historical mirror of SogniClientWrapper.normalizeVideoDimensions in
|
|
1537
|
+
// @sogni-ai/sogni-intelligence-client, which used to clamp every model to
|
|
1538
|
+
// MAX_VIDEO_DIMENSION = 1536 before resizing a reference image and overwriting
|
|
1539
|
+
// the project dimensions with the resized reference's — silently downscaling
|
|
1540
|
+
// LTX-2.5 1920x1088 requests to 1536x864. Newer clients export
|
|
1541
|
+
// getVideoDimensionRules() with per-family envelopes (LTX-2.x up to 3840) and
|
|
1542
|
+
// these constants only apply as a fallback when the pinned client predates it
|
|
1543
|
+
// (see wrapperMaxVideoDimension / wrapperRefVideoDimensionCeiling).
|
|
1481
1544
|
const WRAPPER_MAX_REF_VIDEO_DIMENSION = 1536;
|
|
1482
1545
|
const VIDEO_DIMENSION_MULTIPLE = DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple;
|
|
1483
1546
|
|
|
@@ -1625,6 +1688,9 @@ function videoDurationLimitsLikeWrapper(modelId) {
|
|
|
1625
1688
|
// explicit -w/-h/--target-resolution, config, and prompt-derived dimensions
|
|
1626
1689
|
// still win (see the video preflight defaults block).
|
|
1627
1690
|
function videoModelDimensionDefaultsLikeWrapper(modelId) {
|
|
1691
|
+
if (String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_TURBO_MODEL_ID) {
|
|
1692
|
+
return { defaultWidth: 960, defaultHeight: 544, maxDimension: 1344, dimensionMultiple: 32 };
|
|
1693
|
+
}
|
|
1628
1694
|
if (isMiniMaxH3Model(modelId)) {
|
|
1629
1695
|
return { defaultWidth: 1344, defaultHeight: 768, maxDimension: 1344, dimensionMultiple: 32 };
|
|
1630
1696
|
}
|
|
@@ -1635,9 +1701,28 @@ function videoModelDimensionDefaultsLikeWrapper(modelId) {
|
|
|
1635
1701
|
}
|
|
1636
1702
|
|
|
1637
1703
|
function wrapperMaxVideoDimension(modelId) {
|
|
1704
|
+
// Prefer the wrapper's own model-aware envelope so the CLI ceiling can never
|
|
1705
|
+
// drift from what the pinned client will actually accept (LTX-2.x: 3840).
|
|
1706
|
+
if (typeof getWrapperVideoDimensionRules === 'function') {
|
|
1707
|
+
const rules = getWrapperVideoDimensionRules(modelId);
|
|
1708
|
+
if (Number.isFinite(rules?.maxDimension) && rules.maxDimension > 0) {
|
|
1709
|
+
return rules.maxDimension;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1638
1712
|
return isWanVideoModelId(modelId) ? WRAPPER_MAX_WAN_VIDEO_DIMENSION : WRAPPER_MAX_VIDEO_DIMENSION;
|
|
1639
1713
|
}
|
|
1640
1714
|
|
|
1715
|
+
// Ceiling for reference-bearing workflows: the wrapper resizes the reference
|
|
1716
|
+
// and adopts its dimensions, so the CLI must pick sizes the wrapper will not
|
|
1717
|
+
// re-clamp. Model-aware on newer clients; the blanket 1536 applies only to
|
|
1718
|
+
// legacy pinned clients that still clamp every model.
|
|
1719
|
+
function wrapperRefVideoDimensionCeiling(modelId) {
|
|
1720
|
+
if (typeof getWrapperVideoDimensionRules === 'function') {
|
|
1721
|
+
return wrapperMaxVideoDimension(modelId);
|
|
1722
|
+
}
|
|
1723
|
+
return WRAPPER_MAX_REF_VIDEO_DIMENSION;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1641
1726
|
function videoDimensionRulesFromDefaults(modelDefaults, modelId) {
|
|
1642
1727
|
const wrapperMax = wrapperMaxVideoDimension(modelId);
|
|
1643
1728
|
// Fall back to skill-local dimension rules for models the intel registry does
|
|
@@ -1894,17 +1979,20 @@ const MINIMAX_H3_MODEL_MODES = new Map([
|
|
|
1894
1979
|
['minimax-h3-ref2va-fp8_r2v', 'r2v'],
|
|
1895
1980
|
['minimax-h3-fl2va-fp8_t2v_turbo', 't2v'],
|
|
1896
1981
|
['minimax-h3-fl2va-fp8_i2v_turbo', 'i2v'],
|
|
1897
|
-
['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v']
|
|
1982
|
+
['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v'],
|
|
1983
|
+
['minimax-h3-ref2va-fp8_r2v_turbo', 'r2v']
|
|
1898
1984
|
]);
|
|
1899
1985
|
const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
|
|
1900
1986
|
const MINIMAX_H3_TURBO_MODEL_IDS = new Set([
|
|
1901
1987
|
'minimax-h3-fl2va-fp8_t2v_turbo',
|
|
1902
1988
|
'minimax-h3-fl2va-fp8_i2v_turbo',
|
|
1903
|
-
'minimax-h3-fl2va-fp8_flf2v_turbo'
|
|
1989
|
+
'minimax-h3-fl2va-fp8_flf2v_turbo',
|
|
1990
|
+
'minimax-h3-ref2va-fp8_r2v_turbo'
|
|
1904
1991
|
]);
|
|
1905
1992
|
const MINIMAX_H3_TURBO_SAMPLERS = Object.freeze(['euler', 'er_sde', 'sa_solver']);
|
|
1906
1993
|
const MINIMAX_H3_TURBO_SAMPLER_SET = new Set(MINIMAX_H3_TURBO_SAMPLERS);
|
|
1907
1994
|
const MINIMAX_H3_R2V_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v';
|
|
1995
|
+
const MINIMAX_H3_R2V_TURBO_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v_turbo';
|
|
1908
1996
|
const MINIMAX_H3_REFERENCE_LIMITS = Object.freeze({
|
|
1909
1997
|
images: 9,
|
|
1910
1998
|
videos: 3,
|
|
@@ -1976,12 +2064,10 @@ function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = fal
|
|
|
1976
2064
|
if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
|
|
1977
2065
|
if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
|
|
1978
2066
|
if (normalized === 'minimax-h3-r2v') return MINIMAX_H3_R2V_MODEL_ID;
|
|
2067
|
+
if (normalized === 'minimax-h3-r2v-turbo') return MINIMAX_H3_R2V_TURBO_MODEL_ID;
|
|
1979
2068
|
if (normalized === 'minimax-h3-turbo' && workflow) {
|
|
1980
2069
|
if (workflow === 'r2v') {
|
|
1981
|
-
|
|
1982
|
-
code: 'INVALID_ARGUMENT',
|
|
1983
|
-
details: { workflow, model: normalized }
|
|
1984
|
-
});
|
|
2070
|
+
return MINIMAX_H3_R2V_TURBO_MODEL_ID;
|
|
1985
2071
|
}
|
|
1986
2072
|
if (workflow === 'i2v') {
|
|
1987
2073
|
return hasEndFrame
|
|
@@ -2013,7 +2099,15 @@ function isMiniMaxH3TurboModel(modelId) {
|
|
|
2013
2099
|
}
|
|
2014
2100
|
|
|
2015
2101
|
function isMiniMaxH3R2vModel(modelId) {
|
|
2016
|
-
|
|
2102
|
+
const normalized = String(modelId || '').trim().toLowerCase();
|
|
2103
|
+
return normalized === MINIMAX_H3_R2V_MODEL_ID || normalized === MINIMAX_H3_R2V_TURBO_MODEL_ID;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
function isMiniMaxH3R2vTurboSelectionLocal(modelId, workflow = null) {
|
|
2107
|
+
const normalized = String(modelId || '').trim().toLowerCase();
|
|
2108
|
+
return normalized === 'minimax-h3-r2v-turbo'
|
|
2109
|
+
|| normalized === MINIMAX_H3_R2V_TURBO_MODEL_ID
|
|
2110
|
+
|| (normalized === 'minimax-h3-turbo' && workflow === 'r2v');
|
|
2017
2111
|
}
|
|
2018
2112
|
|
|
2019
2113
|
function isMiniMaxH3ModelSelectionLocal(modelId) {
|
|
@@ -2027,6 +2121,7 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
|
|
|
2027
2121
|
|| normalized === 'minimax-h3-t2v-turbo'
|
|
2028
2122
|
|| normalized === 'minimax-h3-i2v-turbo'
|
|
2029
2123
|
|| normalized === 'minimax-h3-flf2v-turbo'
|
|
2124
|
+
|| normalized === 'minimax-h3-r2v-turbo'
|
|
2030
2125
|
|| isMiniMaxH3Model(normalized);
|
|
2031
2126
|
}
|
|
2032
2127
|
|
|
@@ -2036,6 +2131,7 @@ function isMiniMaxH3TurboModelSelectionLocal(modelId) {
|
|
|
2036
2131
|
|| normalized === 'minimax-h3-t2v-turbo'
|
|
2037
2132
|
|| normalized === 'minimax-h3-i2v-turbo'
|
|
2038
2133
|
|| normalized === 'minimax-h3-flf2v-turbo'
|
|
2134
|
+
|| normalized === 'minimax-h3-r2v-turbo'
|
|
2039
2135
|
|| isMiniMaxH3TurboModel(normalized);
|
|
2040
2136
|
}
|
|
2041
2137
|
|
|
@@ -2048,6 +2144,7 @@ function miniMaxH3ModeFromModelId(modelId) {
|
|
|
2048
2144
|
if (normalized === 'minimax-h3-t2v-turbo') return 't2v';
|
|
2049
2145
|
if (normalized === 'minimax-h3-i2v-turbo') return 'i2v';
|
|
2050
2146
|
if (normalized === 'minimax-h3-flf2v-turbo') return 'flf2v';
|
|
2147
|
+
if (normalized === 'minimax-h3-r2v-turbo') return 'r2v';
|
|
2051
2148
|
return MINIMAX_H3_MODEL_MODES.get(normalized) || null;
|
|
2052
2149
|
}
|
|
2053
2150
|
|
|
@@ -2340,6 +2437,9 @@ const options = {
|
|
|
2340
2437
|
outpaintPosition: null, // LTX v2v outpaint canvas anchor
|
|
2341
2438
|
outpaintAspectRatio: null, // Optional target aspect ratio for outpaint canvas growth
|
|
2342
2439
|
contextImages: [], // Context images for image editing
|
|
2440
|
+
upscaleImage: null, // Source image for promptless RTX VSR upscaling
|
|
2441
|
+
upscaleScale: 2,
|
|
2442
|
+
upscaleTargetLongestEdge: null,
|
|
2343
2443
|
looping: false, // Create looping video (i2v only): generate A→B then B→A and concatenate
|
|
2344
2444
|
photobooth: false, // Photobooth mode (InstantID face transfer)
|
|
2345
2445
|
cnStrength: null, // ControlNet strength override
|
|
@@ -2509,6 +2609,9 @@ const cliSet = {
|
|
|
2509
2609
|
outpaintPosition: false,
|
|
2510
2610
|
outpaintAspectRatio: false,
|
|
2511
2611
|
context: false,
|
|
2612
|
+
upscaleImage: false,
|
|
2613
|
+
upscaleScale: false,
|
|
2614
|
+
upscaleTargetLongestEdge: false,
|
|
2512
2615
|
looping: false,
|
|
2513
2616
|
photobooth: false,
|
|
2514
2617
|
cnStrength: false,
|
|
@@ -2856,6 +2959,26 @@ for (let i = 0; i < args.length; i++) {
|
|
|
2856
2959
|
i++;
|
|
2857
2960
|
options.contextImages.push(raw);
|
|
2858
2961
|
cliSet.context = true;
|
|
2962
|
+
} else if (arg === '--upscale') {
|
|
2963
|
+
const raw = expandHomePath(requireFlagValue(args, i, arg));
|
|
2964
|
+
i++;
|
|
2965
|
+
options.upscaleImage = raw;
|
|
2966
|
+
cliSet.upscaleImage = true;
|
|
2967
|
+
} else if (arg === '--upscale-scale') {
|
|
2968
|
+
const raw = requireFlagValue(args, i, arg);
|
|
2969
|
+
i++;
|
|
2970
|
+
options.upscaleScale = parsePositiveIntegerValue(raw, arg, 2, 4);
|
|
2971
|
+
cliSet.upscaleScale = true;
|
|
2972
|
+
} else if (arg === '--target-longest-edge') {
|
|
2973
|
+
const raw = requireFlagValue(args, i, arg);
|
|
2974
|
+
i++;
|
|
2975
|
+
options.upscaleTargetLongestEdge = parsePositiveIntegerValue(
|
|
2976
|
+
raw,
|
|
2977
|
+
arg,
|
|
2978
|
+
RTX_VSR_MIN_DIMENSION,
|
|
2979
|
+
MAX_IMAGE_DIMENSION
|
|
2980
|
+
);
|
|
2981
|
+
cliSet.upscaleTargetLongestEdge = true;
|
|
2859
2982
|
} else if (arg === '--photobooth') {
|
|
2860
2983
|
options.photobooth = true;
|
|
2861
2984
|
cliSet.photobooth = true;
|
|
@@ -3449,6 +3572,9 @@ Image Options:
|
|
|
3449
3572
|
--lora-strengths <n> Comma-separated LoRA strengths
|
|
3450
3573
|
-c, --context <path> Context image for editing (can use multiple)
|
|
3451
3574
|
--last-image Use last generated image as context
|
|
3575
|
+
--upscale <path|url> Promptless NVIDIA RTX VSR upscale (one source image)
|
|
3576
|
+
--upscale-scale <n> Enlarge longest edge by 2, 3, or 4 (default: 2)
|
|
3577
|
+
--target-longest-edge <px> Explicit output longest edge, up to 8192 (overrides scale)
|
|
3452
3578
|
|
|
3453
3579
|
Photobooth (Face Transfer):
|
|
3454
3580
|
--photobooth Face transfer mode (InstantID + SDXL Turbo)
|
|
@@ -3653,9 +3779,10 @@ Image Models:
|
|
|
3653
3779
|
krea2_identity_edit_v1_2 Krea 2 Identity Edit LoRA (up to 2 context images)
|
|
3654
3780
|
dark_beast_krea2_identity_edit_v1_2 Dark Beast Krea 2 Identity Edit (up to 2 context images)
|
|
3655
3781
|
flux1-schnell-fp8 Very fast
|
|
3656
|
-
|
|
3782
|
+
qwen_image_2512_fp8 High quality
|
|
3657
3783
|
qwen_image_edit_2511_fp8 Image editing with context (up to 3 images)
|
|
3658
3784
|
qwen_image_edit_2511_fp8_lightning Fast image editing
|
|
3785
|
+
rtx_vsr_pro Promptless deterministic RTX VSR upscale (--upscale)
|
|
3659
3786
|
|
|
3660
3787
|
Recommended LTX 2.5 Video Models:
|
|
3661
3788
|
ltx25 / ltx25-t2v Distilled text-to-video with native dialogue/audio
|
|
@@ -3712,10 +3839,12 @@ state negatives in the structured prompt.):
|
|
|
3712
3839
|
minimax-h3-t2v-turbo 4-step Turbo text-to-video
|
|
3713
3840
|
minimax-h3-i2v-turbo 4-step Turbo image-to-video (--ref)
|
|
3714
3841
|
minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
|
|
3715
|
-
|
|
3716
|
-
|
|
3842
|
+
minimax-h3-r2v-turbo 4-step Ref2VA Turbo with loose image/video/audio references
|
|
3843
|
+
(upstream default: 960x544, Euler/simple)
|
|
3844
|
+
H3 FL2VA Turbo sampler override --sampler euler|er_sde|sa_solver
|
|
3717
3845
|
(Socket default: er_sde; CLI omits unless set)
|
|
3718
3846
|
(scheduler remains fixed to simple)
|
|
3847
|
+
H3 Ref2VA Turbo sampler Euler only; CLI omits unless --sampler euler is passed
|
|
3719
3848
|
|
|
3720
3849
|
WAN 2.2 Video Models:
|
|
3721
3850
|
wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
|
|
@@ -4206,6 +4335,12 @@ if (options.video && options.sampler) {
|
|
|
4206
4335
|
details: { model: options.model, sampler: options.sampler, allowed: MINIMAX_H3_TURBO_SAMPLERS }
|
|
4207
4336
|
});
|
|
4208
4337
|
}
|
|
4338
|
+
if (isMiniMaxH3R2vTurboSelectionLocal(options.model, options.videoWorkflow) && options.sampler !== 'euler') {
|
|
4339
|
+
fatalCliError('MiniMax H3 Ref2VA Turbo --sampler must be euler.', {
|
|
4340
|
+
code: 'INVALID_ARGUMENT',
|
|
4341
|
+
details: { model: options.model, sampler: options.sampler, allowed: ['euler'] }
|
|
4342
|
+
});
|
|
4343
|
+
}
|
|
4209
4344
|
}
|
|
4210
4345
|
|
|
4211
4346
|
applyPersonaAndVoiceReferences();
|
|
@@ -4503,6 +4638,17 @@ if (options.music) {
|
|
|
4503
4638
|
if (!cliSet.timeout && !timeoutFromConfig && options.timeout === 30000) {
|
|
4504
4639
|
options.timeout = 1800000; // 30 min for queued and long-running video jobs
|
|
4505
4640
|
}
|
|
4641
|
+
} else if (options.upscaleImage) {
|
|
4642
|
+
if (options.model && options.model !== RTX_VSR_MODEL_ID) {
|
|
4643
|
+
fatalCliError(`--upscale requires model ${RTX_VSR_MODEL_ID}.`, {
|
|
4644
|
+
code: 'INVALID_ARGUMENT',
|
|
4645
|
+
details: { model: options.model, requiredModel: RTX_VSR_MODEL_ID }
|
|
4646
|
+
});
|
|
4647
|
+
}
|
|
4648
|
+
options.model = RTX_VSR_MODEL_ID;
|
|
4649
|
+
if (!cliSet.timeout && !timeoutFromConfig && options.timeout === 30000) {
|
|
4650
|
+
options.timeout = 120000;
|
|
4651
|
+
}
|
|
4506
4652
|
} else if (options.photobooth) {
|
|
4507
4653
|
// Photobooth uses SDXL Turbo + InstantID ControlNet
|
|
4508
4654
|
options.model = options.model || openclawConfig?.defaultPhotoboothModel || 'coreml-sogniXLturbo_alpha1_ad';
|
|
@@ -4612,6 +4758,7 @@ const commandUsesGenerationSeed = !options.apiChat &&
|
|
|
4612
4758
|
!options.concatVideos &&
|
|
4613
4759
|
!options.sourceReelDir &&
|
|
4614
4760
|
!options.remixAudio &&
|
|
4761
|
+
!options.upscaleImage &&
|
|
4615
4762
|
!options.listMedia &&
|
|
4616
4763
|
!options.memoryAction &&
|
|
4617
4764
|
!options.personalityAction &&
|
|
@@ -4632,7 +4779,7 @@ if (!liveModelUtilityAction && (options.liveModelMedia !== 'all' || options.live
|
|
|
4632
4779
|
if (typeof options.prompt === 'string' && options.prompt.trim() === '') {
|
|
4633
4780
|
options.prompt = '';
|
|
4634
4781
|
}
|
|
4635
|
-
if (!options.prompt && !options.apiChat && !apiWorkflowUtilityAction && !apiWorkflowStartAction && !apiModelUtilityAction && !liveModelUtilityAction && !apiReplayUtilityAction && !contractUtilityAction && !storyboardPlanUtilityAction && !options.estimateVideoCost && !options.multiAngle && !options.showBalance && !options.showVersion && !options.doctor && !options.extractLastFrame && !options.extractFirstFrame && !options.extractFrameAt && !options.verifyVideo && !options.concatVideos && !options.sourceReelDir && !options.remixAudio && !options.listMedia && !options.memoryAction && !options.personalityAction && !personaUtilityAction) {
|
|
4782
|
+
if (!options.prompt && !options.upscaleImage && !options.apiChat && !apiWorkflowUtilityAction && !apiWorkflowStartAction && !apiModelUtilityAction && !liveModelUtilityAction && !apiReplayUtilityAction && !contractUtilityAction && !storyboardPlanUtilityAction && !options.estimateVideoCost && !options.multiAngle && !options.showBalance && !options.showVersion && !options.doctor && !options.extractLastFrame && !options.extractFirstFrame && !options.extractFrameAt && !options.verifyVideo && !options.concatVideos && !options.sourceReelDir && !options.remixAudio && !options.listMedia && !options.memoryAction && !options.personalityAction && !personaUtilityAction) {
|
|
4636
4783
|
fatalCliError('No prompt provided. Use --help for usage.', { code: 'INVALID_ARGUMENT' });
|
|
4637
4784
|
}
|
|
4638
4785
|
|
|
@@ -4647,6 +4794,34 @@ if (options.apiChat && !options.prompt && getApiModeMediaReferences().length ===
|
|
|
4647
4794
|
fatalCliError('--api-chat requires a prompt or media reference for planning.', { code: 'INVALID_ARGUMENT' });
|
|
4648
4795
|
}
|
|
4649
4796
|
|
|
4797
|
+
if (options.upscaleImage) {
|
|
4798
|
+
if (options.prompt) {
|
|
4799
|
+
fatalCliError('--upscale is promptless and does not accept a prompt.', { code: 'INVALID_ARGUMENT' });
|
|
4800
|
+
}
|
|
4801
|
+
if (options.video || options.music || options.photobooth || options.contextImages.length > 0 || options.refImage || options.refImageEnd) {
|
|
4802
|
+
fatalCliError('--upscale cannot be combined with video, music, photobooth, --ref, --ref-end, or -c/--context.', {
|
|
4803
|
+
code: 'INVALID_ARGUMENT'
|
|
4804
|
+
});
|
|
4805
|
+
}
|
|
4806
|
+
if (options.count !== 1) {
|
|
4807
|
+
fatalCliError('--upscale produces exactly one output; omit -n/--count or set it to 1.', {
|
|
4808
|
+
code: 'INVALID_ARGUMENT',
|
|
4809
|
+
details: { count: options.count }
|
|
4810
|
+
});
|
|
4811
|
+
}
|
|
4812
|
+
if (cliSet.width || cliSet.height) {
|
|
4813
|
+
fatalCliError('--upscale derives dimensions from the source; use --upscale-scale or --target-longest-edge.', {
|
|
4814
|
+
code: 'INVALID_ARGUMENT'
|
|
4815
|
+
});
|
|
4816
|
+
}
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
if (!options.upscaleImage && (cliSet.upscaleScale || cliSet.upscaleTargetLongestEdge)) {
|
|
4820
|
+
fatalCliError('--upscale-scale and --target-longest-edge require --upscale <path|url>.', {
|
|
4821
|
+
code: 'INVALID_ARGUMENT'
|
|
4822
|
+
});
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4650
4825
|
if (!options.video && !options.apiChat && !options.apiWorkflowAction && (options.refAudio || options.refVideo || options.refMask || options.referenceAudioIdentity || options.voicePersonaName || options.videoWorkflow || options.frames || options.targetResolution || options.audioStart !== null || options.audioDuration !== null || options.videoStart !== null || options.outpaintPosition || options.outpaintAspectRatio)) {
|
|
4651
4826
|
fatalCliError('Video-only options (--workflow/--frames/--target-resolution/--ref-audio/--ref-video/--mask/--outpaint-position/--reference-audio-identity/--voice-persona) require --video.', {
|
|
4652
4827
|
code: 'INVALID_ARGUMENT'
|
|
@@ -5038,14 +5213,16 @@ if (options.video && !options.frames) {
|
|
|
5038
5213
|
// That means a "valid" requested size can still fail if the resized ref lands off the model divisor.
|
|
5039
5214
|
if (options.video) {
|
|
5040
5215
|
const baseVideoDimensionRules = videoDimensionRulesFromDefaults(getModelDefaults(options.model, openclawConfig), options.model);
|
|
5041
|
-
// A reference image routes through the wrapper's resize,
|
|
5042
|
-
//
|
|
5043
|
-
//
|
|
5216
|
+
// A reference image routes through the wrapper's resize, and the wrapper then adopts the
|
|
5217
|
+
// resized reference's dimensions as the project's. Honour the wrapper's ceiling up front so
|
|
5218
|
+
// the CLI picks a divisor-valid size instead of letting the wrapper clamp blindly (on modern
|
|
5219
|
+
// clients that ceiling is model-aware — e.g. 3840 for LTX-2.x — on legacy clients it is a
|
|
5220
|
+
// blanket 1536).
|
|
5044
5221
|
const hasVideoReference = Boolean(options.refImage || options.refImageEnd);
|
|
5045
5222
|
const videoDimensionRules = hasVideoReference
|
|
5046
5223
|
? {
|
|
5047
5224
|
...baseVideoDimensionRules,
|
|
5048
|
-
maxDimension: Math.min(baseVideoDimensionRules.maxDimension,
|
|
5225
|
+
maxDimension: Math.min(baseVideoDimensionRules.maxDimension, wrapperRefVideoDimensionCeiling(options.model))
|
|
5049
5226
|
}
|
|
5050
5227
|
: baseVideoDimensionRules;
|
|
5051
5228
|
|
|
@@ -11304,6 +11481,51 @@ async function main() {
|
|
|
11304
11481
|
if (audioResult?.error || audioResult?.message) {
|
|
11305
11482
|
throw buildProjectResultError(audioResult);
|
|
11306
11483
|
}
|
|
11484
|
+
} else if (options.upscaleImage) {
|
|
11485
|
+
log(`Upscaling with ${RTX_VSR_MODEL_ID}...`);
|
|
11486
|
+
const sourceBuffer = await fetchMediaBuffer(options.upscaleImage);
|
|
11487
|
+
const sourceDimensions = getImageDimensionsFromBuffer(sourceBuffer);
|
|
11488
|
+
const targetDimensions = resolveRtxVsrDimensions(
|
|
11489
|
+
sourceDimensions?.width,
|
|
11490
|
+
sourceDimensions?.height,
|
|
11491
|
+
{
|
|
11492
|
+
scale: options.upscaleScale,
|
|
11493
|
+
targetLongestEdge: options.upscaleTargetLongestEdge
|
|
11494
|
+
}
|
|
11495
|
+
);
|
|
11496
|
+
options.width = targetDimensions.width;
|
|
11497
|
+
options.height = targetDimensions.height;
|
|
11498
|
+
log(
|
|
11499
|
+
`Source ${sourceDimensions.width}x${sourceDimensions.height}; ` +
|
|
11500
|
+
`target box ${options.width}x${options.height} (aspect ratio preserved).`
|
|
11501
|
+
);
|
|
11502
|
+
|
|
11503
|
+
const upscaleConfig = {
|
|
11504
|
+
modelId: RTX_VSR_MODEL_ID,
|
|
11505
|
+
positivePrompt: '',
|
|
11506
|
+
negativePrompt: '',
|
|
11507
|
+
stylePrompt: '',
|
|
11508
|
+
numberOfMedia: 1,
|
|
11509
|
+
tokenType: options.tokenType || 'spark',
|
|
11510
|
+
waitForCompletion: false,
|
|
11511
|
+
sizePreset: 'custom',
|
|
11512
|
+
width: options.width,
|
|
11513
|
+
height: options.height,
|
|
11514
|
+
steps: 1,
|
|
11515
|
+
guidance: 1,
|
|
11516
|
+
outputFormat: 'png',
|
|
11517
|
+
disableNSFWFilter: true,
|
|
11518
|
+
startingImage: sourceBuffer,
|
|
11519
|
+
startingImageStrength: 1,
|
|
11520
|
+
sourceType: 'upscale-rtx-vsr'
|
|
11521
|
+
};
|
|
11522
|
+
|
|
11523
|
+
const upscaleResult = trackProjectResult(
|
|
11524
|
+
await client.createImageProject(withBillingMode(upscaleConfig))
|
|
11525
|
+
);
|
|
11526
|
+
if (upscaleResult?.error || upscaleResult?.message) {
|
|
11527
|
+
throw buildProjectResultError(upscaleResult);
|
|
11528
|
+
}
|
|
11307
11529
|
} else if (options.contextImages.length > 0) {
|
|
11308
11530
|
// Image editing with context images
|
|
11309
11531
|
log(`Editing with ${options.model}...`);
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.31.0';
|