@sogni-ai/sogni-creative-agent-skill 3.30.0 → 3.31.1
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 +14 -0
- package/README.md +3 -2
- package/SKILL.md +14 -2
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +106 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/hosted-api.md +1 -1
- package/references/models.md +12 -3
- package/references/openclaw-config.md +1 -1
- package/skill-package.json +1 -1
- package/skills/README.md +1 -1
- package/skills/image_editing.md +5 -2
- package/sogni-agent.mjs +175 -2
- package/version.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.1",
|
|
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,17 @@
|
|
|
1
|
+
# [3.31.1](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.31.0...v3.31.1) (2026-08-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** align shared media releases ([e1a3bed](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/e1a3bed4ae688c7497c0690126e78102cd24d758))
|
|
7
|
+
|
|
8
|
+
# [3.31.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.30.0...v3.31.0) (2026-08-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
# [3.30.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.29.0...v3.30.0) (2026-08-14)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -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` |
|
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.1"
|
|
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
|
|
|
@@ -217,6 +221,9 @@ sogni-agent doctor --json
|
|
|
217
221
|
| `-Q fast\|hq\|pro` | Quality preset (model+steps+size); `-m` overrides model | - |
|
|
218
222
|
| `-o <path>` | Save output locally (relative → PWD) | prints URL |
|
|
219
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 |
|
|
220
227
|
| `-m <id>` | Explicit model | `z_image_turbo_bf16` |
|
|
221
228
|
| `-w` / `-h` | Width / height | 512×512 |
|
|
222
229
|
| `-n <num>` | Output count (`{a\|b\|c}` prompt variations cycle); capped at 16, raise with `SOGNI_MAX_COUNT` | 1 |
|
|
@@ -245,6 +252,11 @@ sogni-agent doctor --json
|
|
|
245
252
|
|
|
246
253
|
## Routing Rules (always apply)
|
|
247
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
|
+
|
|
248
260
|
### Photobooth vs. context editing
|
|
249
261
|
|
|
250
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).
|
|
@@ -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.1",
|
|
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",
|
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.1",
|
|
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.1",
|
|
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,13 +92,13 @@
|
|
|
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.2",
|
|
96
96
|
"execa": "^9.6.1",
|
|
97
97
|
"json5": "^2.2.3",
|
|
98
98
|
"sharp": "^0.34.5"
|
|
99
99
|
},
|
|
100
100
|
"overrides": {
|
|
101
|
-
"@sogni-ai/sogni-client": "5.
|
|
101
|
+
"@sogni-ai/sogni-client": "5.15.0"
|
|
102
102
|
},
|
|
103
103
|
"openclaw": {
|
|
104
104
|
"extensions": [
|
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
|
|
@@ -561,7 +570,7 @@ model recommendations.
|
|
|
561
570
|
|------|----------------------|
|
|
562
571
|
| Default images | `z_image_turbo_bf16` |
|
|
563
572
|
| OpenAI GPT Image generation, editing, or strong text rendering | `gpt-image-2` |
|
|
564
|
-
| Highest-quality images | `
|
|
573
|
+
| Highest-quality images | `qwen_image_2512_fp8` (or `-Q pro`) |
|
|
565
574
|
| Image editing | `qwen_image_edit_2511_fp8_lightning` |
|
|
566
575
|
| Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
|
|
567
576
|
| Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
|
|
@@ -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,
|
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
|
@@ -1299,6 +1299,64 @@ function parsePositiveIntegerValue(raw, flagName, min = 1, max = Infinity) {
|
|
|
1299
1299
|
// just large enough to catch obvious typos (e.g. a stray extra zero) before
|
|
1300
1300
|
// they waste a round-trip or blow up local memory.
|
|
1301
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
|
+
}
|
|
1302
1360
|
|
|
1303
1361
|
// Safety cap for -n/--count: every output is a paid generation, so a typo like
|
|
1304
1362
|
// `-n 1000` (meant `-n 10`) must not launch a thousand-render batch. Raise
|
|
@@ -2379,6 +2437,9 @@ const options = {
|
|
|
2379
2437
|
outpaintPosition: null, // LTX v2v outpaint canvas anchor
|
|
2380
2438
|
outpaintAspectRatio: null, // Optional target aspect ratio for outpaint canvas growth
|
|
2381
2439
|
contextImages: [], // Context images for image editing
|
|
2440
|
+
upscaleImage: null, // Source image for promptless RTX VSR upscaling
|
|
2441
|
+
upscaleScale: 2,
|
|
2442
|
+
upscaleTargetLongestEdge: null,
|
|
2382
2443
|
looping: false, // Create looping video (i2v only): generate A→B then B→A and concatenate
|
|
2383
2444
|
photobooth: false, // Photobooth mode (InstantID face transfer)
|
|
2384
2445
|
cnStrength: null, // ControlNet strength override
|
|
@@ -2548,6 +2609,9 @@ const cliSet = {
|
|
|
2548
2609
|
outpaintPosition: false,
|
|
2549
2610
|
outpaintAspectRatio: false,
|
|
2550
2611
|
context: false,
|
|
2612
|
+
upscaleImage: false,
|
|
2613
|
+
upscaleScale: false,
|
|
2614
|
+
upscaleTargetLongestEdge: false,
|
|
2551
2615
|
looping: false,
|
|
2552
2616
|
photobooth: false,
|
|
2553
2617
|
cnStrength: false,
|
|
@@ -2895,6 +2959,26 @@ for (let i = 0; i < args.length; i++) {
|
|
|
2895
2959
|
i++;
|
|
2896
2960
|
options.contextImages.push(raw);
|
|
2897
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;
|
|
2898
2982
|
} else if (arg === '--photobooth') {
|
|
2899
2983
|
options.photobooth = true;
|
|
2900
2984
|
cliSet.photobooth = true;
|
|
@@ -3488,6 +3572,9 @@ Image Options:
|
|
|
3488
3572
|
--lora-strengths <n> Comma-separated LoRA strengths
|
|
3489
3573
|
-c, --context <path> Context image for editing (can use multiple)
|
|
3490
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)
|
|
3491
3578
|
|
|
3492
3579
|
Photobooth (Face Transfer):
|
|
3493
3580
|
--photobooth Face transfer mode (InstantID + SDXL Turbo)
|
|
@@ -3692,9 +3779,10 @@ Image Models:
|
|
|
3692
3779
|
krea2_identity_edit_v1_2 Krea 2 Identity Edit LoRA (up to 2 context images)
|
|
3693
3780
|
dark_beast_krea2_identity_edit_v1_2 Dark Beast Krea 2 Identity Edit (up to 2 context images)
|
|
3694
3781
|
flux1-schnell-fp8 Very fast
|
|
3695
|
-
|
|
3782
|
+
qwen_image_2512_fp8 High quality
|
|
3696
3783
|
qwen_image_edit_2511_fp8 Image editing with context (up to 3 images)
|
|
3697
3784
|
qwen_image_edit_2511_fp8_lightning Fast image editing
|
|
3785
|
+
rtx_vsr_pro Promptless deterministic RTX VSR upscale (--upscale)
|
|
3698
3786
|
|
|
3699
3787
|
Recommended LTX 2.5 Video Models:
|
|
3700
3788
|
ltx25 / ltx25-t2v Distilled text-to-video with native dialogue/audio
|
|
@@ -4550,6 +4638,17 @@ if (options.music) {
|
|
|
4550
4638
|
if (!cliSet.timeout && !timeoutFromConfig && options.timeout === 30000) {
|
|
4551
4639
|
options.timeout = 1800000; // 30 min for queued and long-running video jobs
|
|
4552
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
|
+
}
|
|
4553
4652
|
} else if (options.photobooth) {
|
|
4554
4653
|
// Photobooth uses SDXL Turbo + InstantID ControlNet
|
|
4555
4654
|
options.model = options.model || openclawConfig?.defaultPhotoboothModel || 'coreml-sogniXLturbo_alpha1_ad';
|
|
@@ -4659,6 +4758,7 @@ const commandUsesGenerationSeed = !options.apiChat &&
|
|
|
4659
4758
|
!options.concatVideos &&
|
|
4660
4759
|
!options.sourceReelDir &&
|
|
4661
4760
|
!options.remixAudio &&
|
|
4761
|
+
!options.upscaleImage &&
|
|
4662
4762
|
!options.listMedia &&
|
|
4663
4763
|
!options.memoryAction &&
|
|
4664
4764
|
!options.personalityAction &&
|
|
@@ -4679,7 +4779,7 @@ if (!liveModelUtilityAction && (options.liveModelMedia !== 'all' || options.live
|
|
|
4679
4779
|
if (typeof options.prompt === 'string' && options.prompt.trim() === '') {
|
|
4680
4780
|
options.prompt = '';
|
|
4681
4781
|
}
|
|
4682
|
-
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) {
|
|
4683
4783
|
fatalCliError('No prompt provided. Use --help for usage.', { code: 'INVALID_ARGUMENT' });
|
|
4684
4784
|
}
|
|
4685
4785
|
|
|
@@ -4694,6 +4794,34 @@ if (options.apiChat && !options.prompt && getApiModeMediaReferences().length ===
|
|
|
4694
4794
|
fatalCliError('--api-chat requires a prompt or media reference for planning.', { code: 'INVALID_ARGUMENT' });
|
|
4695
4795
|
}
|
|
4696
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
|
+
|
|
4697
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)) {
|
|
4698
4826
|
fatalCliError('Video-only options (--workflow/--frames/--target-resolution/--ref-audio/--ref-video/--mask/--outpaint-position/--reference-audio-identity/--voice-persona) require --video.', {
|
|
4699
4827
|
code: 'INVALID_ARGUMENT'
|
|
@@ -11353,6 +11481,51 @@ async function main() {
|
|
|
11353
11481
|
if (audioResult?.error || audioResult?.message) {
|
|
11354
11482
|
throw buildProjectResultError(audioResult);
|
|
11355
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
|
+
}
|
|
11356
11529
|
} else if (options.contextImages.length > 0) {
|
|
11357
11530
|
// Image editing with context images
|
|
11358
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.1';
|