@sogni-ai/sogni-creative-agent-skill 3.63.0 → 3.65.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.
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
3
3
  description: "Generate and edit images, create Pixal3D 3D models, remove backgrounds with BiRefNet, synthesize Qwen3-TTS speech, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, build a playable world, apply a saved identity, or refine an earlier Sogni result."
4
4
  license: MIT
5
5
  metadata:
6
- version: "3.63.0"
6
+ version: "3.65.0"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -29,6 +29,11 @@ have identical flags and output; the Hermes launcher adds host attribution.
29
29
 
30
30
  ## Set up the CLI
31
31
 
32
+ This skill runs the local CLI. For local versus hosted MCP setup and hosted
33
+ availability, read [the MCP guide](https://docs.sogni.ai/agents/mcp/).
34
+ A hosted connection does not install this skill or access its local files,
35
+ personas or memories.
36
+
32
37
  Only perform setup when the user asks to install or upgrade the skill, or when
33
38
  a command fails because the CLI is missing.
34
39
 
@@ -165,6 +170,20 @@ https://github.com/Sogni-AI/sogni-creative-agent-skill/issues/new?template=lesso
165
170
 
166
171
  ## Load detailed guidance only when needed
167
172
 
173
+ **Seedance draft mode is opt-in.** Before adding a paid 480p draft, explain
174
+ that it can test motion, composition, or lighting before committing to 1080p;
175
+ quote the actual draft, direct-final, and combined cost, then ask which the user
176
+ prefers and wait. Draft cost is extra, not credit toward the final; video-input
177
+ drafts can be costly. If a 720p/1080p attempt fails or produces an unusable take,
178
+ suggest testing the revision in 480p draft mode before another expensive attempt:
179
+ roughly 5.5 times cheaper than 1080p, with actual estimates for the comparison.
180
+ Get consent before switching. An explicit draft request or agreed draft plan supplies
181
+ consent within its scope. A later higher-quality/final request supersedes that
182
+ plan: finalize an approved unchanged draft, or render revised content directly
183
+ at the requested final resolution. Another draft needs renewed consent. Read
184
+ [the Seedance 2.5 draft guide](references/models.md#seedance-25) before
185
+ using `--seedance-draft` or `--seedance-finalize`.
186
+
168
187
  Seedance 2.5 supports 4–30s at 480p/720p/1080p, including edit/extend,
169
188
  with optional `--output-format mov` and `--return-last-frame`. Seedance 2.5
170
189
  Uncensored (`seedance2-5-uncensored`) has the same limits and Seedance 2.0 Mini
@@ -229,3 +248,5 @@ and Music 3 section tags. Discover 3D with `--search-models pixal3d` or
229
248
  Where a reference says `sogni-agent`, substitute `sogni-agent-hermes`.
230
249
 
231
250
  Personal LoRA imports and library management: read [Personal LoRAs](./references/personal-loras.md) for account-bound discovery, asynchronous import status, consent, compatible models, and rendering with owned adapters.
251
+
252
+ Use `--network fast|relaxed` for a direct render. Use `--priority` only after the user opts in to earlier Fast queue placement at 1.5× fair-use consumption on paid Unlimited. Worker models only; hosted chat and hosted workflows do not accept it. See the long-jobs-and-queues reference for details.
@@ -14,6 +14,27 @@ the operation (`generate` or `edit`). If either is missing, ask for it. If the
14
14
  exact pair is not registered, report that limitation;
15
15
  never substitute another destination model's prompt contract.
16
16
 
17
+ ## GPT Image 2.6 GIFs and annotations
18
+
19
+ Select `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` explicitly. For a GIF,
20
+ describe the action and return to the starting pose, then use `--output-format gif`,
21
+ `--image-frame-count 9`, and `--image-frame-duration-ms 200`. Nine frames at 200 ms
22
+ give a 1.8-second animation. GIFs accept text only: no context image, mask, markup,
23
+ transparent background, or compression setting. Frames must be 2–16; each edge
24
+ is a multiple of 16, and width × height × frames must not exceed 8,294,400.
25
+
26
+ ```bash
27
+ sogni-agent -m gpt-image-2.6-flare --output-format gif --width 320 --height 320 --image-quality medium --image-complexity high --image-frame-count 9 --image-frame-duration-ms 200 "A monkey lifts a lantern, blinks, and lowers it to its exact starting pose. Locked camera, seamless loop."
28
+ ```
29
+
30
+ `--image-complexity low|medium|high` controls planning separately from rendering
31
+ quality. For annotation-guided still edits, use `--image-markup-url` with a
32
+ separate transparent PNG matching the first `--context` image after orientation.
33
+ Describe the requested edit in the prompt. Do not combine an annotation with a mask.
34
+ Use a concrete size and quality when comparing prices. GIF quotes reserve an output
35
+ budget and settle downward to confirmed provider usage when lower. Limits checked
36
+ November 4, 2026 PT; the live API enforces 16 frames despite the guide's higher limit.
37
+
17
38
  ## Output contracts by family
18
39
 
19
40
  | Target family | Native prompt shape | Output envelope |
@@ -42,7 +63,7 @@ Prompt-only families return the directly runnable prompt with no label,
42
63
  Markdown fence, preamble, explanation, or render offer.
43
64
 
44
65
  <!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
45
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
66
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
46
67
 
47
68
  ## Per-model rules from Sogni's image prompt writer
48
69
 
@@ -5,6 +5,26 @@ going when the CLI stops waiting, when its connection drops, and when no agent
5
5
  is connected at all. These commands follow a project by id instead of holding a
6
6
  connection open for its whole life.
7
7
 
8
+ ## Rendering on Relaxed
9
+
10
+ `--network relaxed` (or `defaultNetwork: "relaxed"` in the plugin config) sends a
11
+ render to the Relaxed Supernet. It is included in Sogni Unlimited, including while
12
+ Fast is paused at the plan's fair-use capacity. Relaxed has far fewer workers, so a
13
+ video can wait for hours. Anything unfinished 24 hours after you submit it is
14
+ cancelled, and a project no online worker can run is cancelled much sooner. Always
15
+ submit Relaxed video with `--detach` and collect it with `--result <id> --wait`.
16
+
17
+ `sogni-agent --list-models --model-network relaxed` shows what runs there for
18
+ Unlimited members; a job paid with Spark or SOGNI, or from a trial, can still be
19
+ refused for a listed model. To stay on Fast once its capacity is used up, pay with
20
+ Premium Spark using `--billing-mode tokens`.
21
+
22
+ A plain render on Relaxed waits at least 30 minutes before the CLI stops waiting,
23
+ and stopping leaves the project running. `--source-reel` waits the same time for
24
+ each clip and fails if one takes longer. To run a reel there, pick a model that runs
25
+ on Relaxed and pass a long `-t`, for example
26
+ `--reel-model minimax-h3-fastvideo-int8_i2v_turbo -t 14400`.
27
+
8
28
  ## Commands
9
29
 
10
30
  ```bash
@@ -94,3 +114,11 @@ then.
94
114
  `--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
95
115
  later, and `--wait` needs 5.58.0; an older installation says so and asks for a
96
116
  skill update.
117
+
118
+ ## Fast, Relaxed and Priority
119
+
120
+ `--network fast|relaxed` selects the worker network for a render. `--priority` is a per-run opt-in for paid Unlimited or Unlimited Pro on Fast: earlier queue placement behind Premium Spark, with daily and monthly fair-use consumption at 1.5×. Explain that tradeoff and use it only when requested. It applies to covered worker models, excluding third-party vendor models, Relaxed, token billing, hosted chat and hosted workflows. It does not make the GPU faster. If refused, show the error and let the user choose standard Fast or Relaxed. Never retry or spend Premium Spark automatically.
121
+
122
+ ```bash
123
+ sogni-agent --priority --network fast --video -m minimax-h3-fasth3-t2v-turbo --duration 5 -o ./priority.mp4 "A paper bird flies across a sunlit courtyard"
124
+ ```
@@ -26,6 +26,7 @@ answering "which model should I use for X". For everyday generation prefer
26
26
  - Recommended model selectors by need
27
27
  - Video sizing & aspect ratios
28
28
  - GPT Image 2.5 controls (as of 2026-09)
29
+ - GPT Image 2.6 GIFs and annotations (as of 2026-11)
29
30
 
30
31
  ## Live model discovery
31
32
 
@@ -85,6 +86,8 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
85
86
  | `gpt-image-2` | Variable | OpenAI GPT Image 2 text-to-image and edit, strong prompt and text rendering |
86
87
  | `gpt-image-2.5-sunburst` | Variable | GPT Image 2.5 Sunburst; explicit selection, edits, masks and transparency; the best edit when the user has Premium Spark or asks for top quality |
87
88
  | `gpt-image-2.5-flare` | Variable | GPT Image 2.5 Flare; explicit selection, edits, masks and transparency |
89
+ | `gpt-image-2.6-sunburst` | Variable | Explicit GPT Image 2.6 generation, edits, GIFs and annotation-guided still edits |
90
+ | `gpt-image-2.6-flare` | Variable | Explicit GPT Image 2.6 generation, edits, GIFs and annotation-guided still edits |
88
91
  | `seedream-5-0-pro-uncensored` | Slow (~35-95s) | Seedream 5.0 Pro Uncensored: text-to-image and edits from 1-10 context images; only when asked for; needs the Seedance Uncensored likeness agreement |
89
92
  | `flux1-schnell-fp8` | Very fast | Quick iterations |
90
93
  | `qwen_image_2512_fp8` | Medium (~30s) | High quality |
@@ -752,8 +755,28 @@ no negative prompt and no ControlNet.
752
755
  fail asynchronously after inferring the task.
753
756
  - **Audio-only reference**: unlike 2.0, Seedance 2.5 accepts standalone audio as
754
757
  its only loose reference.
755
- - **Draft mode** (Seedance 2.5 and 2.5 Uncensored): iterate at 480p, then render
756
- the take you keep at 1080p. `--seedance-draft` renders a 480p draft at the
758
+ - **Draft mode is opt-in** (Seedance 2.5 and 2.5 Uncensored). Before adding a
759
+ paid draft, explain the choice and ask the user's preference; wait for their
760
+ answer. A 480p preview can help judge uncertain motion, composition, lighting,
761
+ or prompt adherence before paying for 1080p, especially when rejected takes
762
+ would otherwise be full-resolution renders. It does not guarantee a better
763
+ result or lower total cost. If a 720p/1080p attempt fails or produces an unusable
764
+ take, suggest testing the revision in 480p draft mode before spending on another
765
+ high-resolution attempt. A 480p draft is roughly 5.5 times cheaper than 1080p;
766
+ compare actual estimates for the same inputs rather than guaranteeing that ratio.
767
+ Explain the recovery plan and get consent before switching; failure does not
768
+ authorize paid drafts or repeated high-resolution retries. Estimate the draft, direct final, and
769
+ combined draft-plus-final cost with `--estimate-video-cost`, keeping the model,
770
+ duration, aspect ratio, audio, and references matched to the planned job.
771
+ Video-input estimates can be conservative when source metadata is unavailable.
772
+ Label them as estimates, not actual charges or flat pricing.
773
+ Each draft is an extra charge, not credit toward the final; video-input drafts
774
+ use video-input pricing and must not be described as inherently cheap.
775
+ An explicit draft request or agreed draft plan supplies consent within its
776
+ scope; approval of one draft does not authorize an unbounded series of drafts.
777
+ If the user already requested final quality, render it directly without adding
778
+ a draft. If final resolution is unclear, ask whether they prefer 720p or 1080p.
779
+ `--seedance-draft` renders a 480p draft at the
757
780
  480p price; any normal Seedance 2.5 input works, and the size must be 480p
758
781
  (the CLI picks it when you give none). An ordinary 480p render cannot be
759
782
  finalized later. Only a job submitted as a draft can. `--seedance-finalize
@@ -764,6 +787,12 @@ no negative prompt and no ControlNet.
764
787
  again at 1080p for the draft's length, at the video-input rate when the draft
765
788
  had a video input. Judge the draft before finalizing: the final is the same
766
789
  video, not a new take.
790
+ A higher-quality/final request after a draft supersedes draft-first iteration:
791
+ finalize the approved draft only if its content is to stay unchanged. A change
792
+ to lighting, prompt, media, duration, or audio cannot be applied by finalizing;
793
+ render the revision directly at the requested final resolution. Another paid
794
+ draft requires renewed consent after explaining its additional cost. A request
795
+ for a 480p deliverable alone does not authorize a draft-plus-final workflow.
767
796
 
768
797
  The bundled CLI and pinned SDKs recognize `seedance-2-5` and transport typed
769
798
  tasks; see `package.json` for the current dependency versions. The direct CLI
@@ -1623,4 +1652,15 @@ Dimensions default to 1024×1024: multiples of 16, at most 3840 per edge,
1623
1652
  3:1 maximum aspect ratio, 655,360–8,294,400 pixels. Above 3,686,400 pixels is
1624
1653
  experimental. Transparency is integrated but clean cutout edges failed the
1625
1654
  initial Flare canaries; inspect native output against a contrasting background.
1626
- These source changes still require the coordinated package release and server rollout.
1655
+
1656
+
1657
+ ## GPT Image 2.6 GIFs and annotations (as of 2026-11)
1658
+
1659
+ Select `-m gpt-image-2.6-sunburst` or `-m gpt-image-2.6-flare`; existing image defaults stay the same. Both support the 2.5 still-image controls above, plus `--image-complexity low|medium|high`. Use `--output-format gif` for an animation, `--image-frame-count 2..16` (default 9), and `--image-frame-duration-ms 20..2000` (default 200). Describe the motion in the prompt. GIF sizing depends on the frame count; let the CLI fit a supported sheet and quote the actual settings.
1660
+
1661
+ For a still-image edit, supply the original as the first `-c` reference and its aligned transparent annotation PNG URL with `--image-markup-url`. The marks guide the changes and are separate from an alpha mask. The CLI accepts a prepared annotation image; it has no drawing canvas.
1662
+
1663
+ ```bash
1664
+ sogni-agent -m gpt-image-2.6-flare --output-format gif --image-frame-count 9 --image-frame-duration-ms 200 -o ./wave.gif "A small robot waves, seamless loop"
1665
+ sogni-agent -m gpt-image-2.6-sunburst -c original.jpg --image-markup-url https://example.com/annotation.png -o ./edited.png "Replace the circled chair with a red armchair"
1666
+ ```
@@ -9,6 +9,19 @@ multi-persona scenes, or style transformations of a referenced individual.
9
9
  Personas enable identity-preserving generation across sessions. Stored at
10
10
  `~/.config/sogni/personas/`.
11
11
 
12
+ ### Personas saved in your Sogni account
13
+
14
+ The Web and Chat share account Personas. The CLI keeps its local library and offers an explicit snapshot import; it never syncs or replaces local Personas automatically.
15
+
16
+ ```bash
17
+ sogni-agent --persona-list-account --json
18
+ sogni-agent --persona-list-account --persona-account-after "<nextCursor>" --json
19
+ sogni-agent --persona-import-account "<persona-id>" --json
20
+ sogni-agent --persona "Alice" -o ./portrait.png "Alice in a sunlit courtyard"
21
+ ```
22
+
23
+ Listing reads one page and returns `nextCursor`. Import copies the selected Persona’s original reference files through the authenticated API, including saved photos, character sheets and audio voice recordings. It also saves the description, appearance, attire, voice description and transcript. A matching local name is refused without replacing anything. The imported snapshot keeps working locally; later account edits require an explicit new import after you resolve the name conflict. The first identity photo anchors a frame-guided video; image edits and explicit reference-to-video runs can use its other saved images. All downloaded reference paths appear in the imported Persona JSON. A voice supplied only as a video is retained as a file, but must be extracted as audio before using it as a local voice clip.
24
+
12
25
  ### Managing Personas
13
26
 
14
27
  ```bash
@@ -124,7 +124,7 @@ LTX-2.5 text-to-video, one shot, so one sentence: "A medium shot frames a woman
124
124
  ```
125
125
 
126
126
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.5 -->
127
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
127
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
128
128
 
129
129
  ### Sogni's prompt rules: ltx-2.5
130
130
 
@@ -179,7 +179,7 @@ Preserve requested visual style and production value without adding new objects,
179
179
  <!-- END GENERATED PROMPT GUIDE: ltx-2.5 -->
180
180
 
181
181
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.3 -->
182
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
182
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
183
183
 
184
184
  ### Sogni's prompt rules: ltx-2.3
185
185
 
@@ -823,6 +823,15 @@ guarantees pixel-exact preservation or exact choreography. `video continuation`
823
823
  still needs an actual continuation workflow. Use I2VA, L2VA, or FL2VA when an
824
824
  endpoint must be locked.
825
825
 
826
+ **Inspect identity throughout motion transfer.** In a 2026-11-03 fifteen-second
827
+ Balanced photo-plus-video canary, the output switched to the source video's
828
+ performer midway through the shot even without reference-token compression.
829
+ Completing the requested duration and retaining the replacement in the first
830
+ and last frames did not establish quality. Inspect at least 24 native frames
831
+ across the whole take and both sides of every identity switch or cut. When
832
+ testing compression, include a matched uncompressed control before assigning
833
+ the defect to compression; one seed does not establish equivalence.
834
+
826
835
  For voice references, bind the voice to the speaking subject by reusing that
827
836
  subject's `(Sx)` in `subject_definitions`; do not put the speaker ID in
828
837
  `retention_analysis`. A timbre/rhythm/emotion/delivery reference must not import
@@ -964,7 +973,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
964
973
  audio references keep their existing handling.
965
974
 
966
975
  <!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
967
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
976
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
968
977
 
969
978
  ### Sogni's prompt rules: minimax-h3
970
979
 
@@ -1182,7 +1191,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
1182
1191
  ```
1183
1192
 
1184
1193
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
1185
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1194
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1186
1195
 
1187
1196
  ### Sogni's prompt rules: seedance-2.5
1188
1197
 
@@ -1256,7 +1265,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
1256
1265
  <!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
1257
1266
 
1258
1267
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
1259
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1268
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1260
1269
 
1261
1270
  ### Sogni's prompt rules: seedance-2.0
1262
1271
 
@@ -1365,7 +1374,7 @@ writer uses close this section.
1365
1374
  motion timing, camera path, framing, and background.
1366
1375
 
1367
1376
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
1368
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1377
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1369
1378
 
1370
1379
  ### Sogni's prompt rules: wan-2.2
1371
1380
 
@@ -1455,7 +1464,7 @@ The rules Sogni's own prompt writer uses close this section.
1455
1464
  - Prompts may run to 20,000 characters.
1456
1465
 
1457
1466
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
1458
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1467
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1459
1468
 
1460
1469
  ### Sogni's prompt rules: wan-3
1461
1470
 
@@ -1510,7 +1519,7 @@ audio that is always on. What it renders well and the reference limits are in
1510
1519
  [models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
1511
1520
 
1512
1521
  <!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
1513
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1522
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1514
1523
 
1515
1524
  ### Sogni's prompt rules: happyhorse-1.1
1516
1525
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "description": "Sogni Creative Agent: image, 3D, speech, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "description": "Create images, 3D models, speech, generative video, music, and image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [3.65.0] - 2026-11-05
2
+
3
+ - Keep `test:all` offline and require an explicit environment opt-in for paid integration tests. Release checks never enable real GPU jobs automatically.
4
+ - Add explicit `--priority` for covered Fast renders on paid Unlimited, with 1.5× daily and monthly fair-use consumption. The default stays ordinary Fast.
5
+ - List account Personas with `--persona-list-account` and copy a selected one into the local library with `--persona-import-account`. Imports retain original photos, character sheets, audio voice recordings and descriptions; existing local Personas are preserved.
6
+ - Desktop tools now forward Fast/Relaxed choices, Priority and GPT Image 2.6 GIF, complexity and annotation controls. Model references and prompt guides match the current SDK chain.
7
+
8
+ ## [3.64.0] - 2026-11-05
9
+
10
+ - Render on Relaxed from the CLI: `--network fast|relaxed` picks the Supernet for one run, and `defaultNetwork` now applies to renders. Before this, both only changed the connection and every job still ran on Fast. If you already set `defaultNetwork: "relaxed"`, renders now go to Relaxed: models with no Relaxed workers are refused with a hint rather than moved to Fast, and vendor models stay on Fast. Renders on Relaxed wait at least 30 minutes by default. Fast fair-use refusals (4087, 4089) now explain how to reach Relaxed, and hints for these refusals also show without `--json`.
11
+ - Add GPT Image 2.6 Sunburst and Flare as explicit choices, with animated GIF generation, planning complexity, and annotation-guided still-image edits. GIF settings and quoted costs stay together through submission.
12
+ * Seedance draft workflows require the user's choice after explaining their purpose and the draft, direct-final, and combined costs. After a failed or unusable 720p/1080p attempt, agents suggest testing the revision in a 480p draft, roughly 5.5 times cheaper than 1080p, and wait for consent before switching. Final-quality requests proceed to an unchanged approved draft's finalization or a revised final-resolution render without adding another unrequested draft.
13
+
1
14
  ## [3.63.0] - 2026-11-03
2
15
 
3
16
  ### Features
package/README.md CHANGED
@@ -48,6 +48,7 @@ With this skill, an agent can:
48
48
 
49
49
  ## Table of Contents
50
50
 
51
+ - [Connecting with MCP](#connecting-with-mcp)
51
52
  - [Quick Start](#quick-start)
52
53
  - [Requirements](#requirements)
53
54
  - [Installation](#installation)
@@ -86,6 +87,27 @@ With this skill, an agent can:
86
87
 
87
88
  ---
88
89
 
90
+ ## Connecting with MCP
91
+
92
+ The skill includes a **local MCP server**, `sogni-agent-mcp`, which runs the
93
+ installed CLI on your computer. Use it when your MCP client needs local media,
94
+ saved personas and memories, or video editing with ffmpeg. See the
95
+ [Claude Desktop](#claude-desktop), [Codex](#also-works-in-openai-codex) and [Goose](#goose)
96
+ instructions for local setup.
97
+
98
+ Sogni also documents a separate **hosted MCP** integration for remote clients
99
+ that support Streamable HTTP and Bearer-token authentication. Check the
100
+ [MCP connection guide](https://docs.sogni.ai/agents/mcp/) for its current
101
+ availability and configuration. Hosted tools do not require this skill or CLI,
102
+ but they cannot read your local files or use your saved local personas and
103
+ memories. References must be uploaded; a local path is not a hosted asset.
104
+
105
+ MCP exposes callable tools. This skill supplies creative instructions and local
106
+ workflows; the [Worlds Kit](https://github.com/Sogni-AI/sogni-worlds-kit) supplies
107
+ the world-building pipeline and player. Connecting a hosted server does not
108
+ install either. Existing CLI and local MCP users can keep their setup and their
109
+ account's normal billing, including eligible Unlimited coverage.
110
+
89
111
  ## Quick Start
90
112
 
91
113
  1. Get a Sogni API key from [the API Keys page](https://dashboard.sogni.ai/api-key) and save it — see [Setup](#setup-sogni-api-key).
@@ -698,6 +720,7 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
698
720
  | `--list-api-models`, `--get-api-model <id>` | Inspect Sogni Intelligence LLM models |
699
721
  | `--list-models [query]`, `--search-models <query>` | List or search currently available Supernet image, video, and audio models |
700
722
  | `--model-media <type>`, `--model-network <network>` | Filter live model discovery by media or Fast/Relaxed network |
723
+ | `--network <fast\|relaxed>` | Render on this Supernet for one run; overrides the configured `defaultNetwork` (default: Fast) |
701
724
  | `--model-tag <tag>` | Filter by an official catalog tag such as `spicy` or `uncensored`; repeat for AND matching |
702
725
  | `--list-loras [query]`, `--search-loras <query>` | List or search the live LoRA catalog with each LoRA's hard range, recommended range, default, and slider direction |
703
726
  | `--lora-catalog-model <id>`, `--lora-category <category>` | Filter LoRA discovery to one model's compatible LoRAs or one catalog category |
@@ -803,10 +826,14 @@ sogni-agent --video -m seedance2-5-v2v --seedance-task-type edit --ref-video sou
803
826
  sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video source.mp4 --duration 8 --target-resolution 720 "Extend @Video1. <the new footage after its ending, in time-coded beats>"
804
827
  ```
805
828
 
806
- Seedance 2.5 draft mode lets you iterate on 480p drafts and pay for 1080p only on the take you keep. `--seedance-draft` renders a 480p draft at the 480p price. `--seedance-finalize <job-id>` renders that same video at 1080p, with the draft's prompt, media, length, ratio, seed and audio, before the draft's `seedanceDraftExpiresAt` (about three hours).
829
+ Seedance 2.5 draft mode is opt-in. A 480p preview can help check uncertain motion, composition, or lighting before committing to 1080p. Before adding a paid draft, the agent must explain that benefit, quote the actual draft, direct-final, and combined draft-plus-final estimates, ask which workflow the user prefers, and wait for their choice. If a 720p/1080p attempt fails or produces an unusable take, the agent should suggest testing the revision in 480p draft mode before another expensive attempt, then get consent before switching. A 480p draft is roughly 5.5 times cheaper than 1080p; compare actual estimates for the same inputs. A draft is an extra charge, not credit toward the final; video-input drafts can be costly. An explicit draft request or agreed draft plan already supplies consent within its scope.
830
+
831
+ `--seedance-draft` renders a 480p draft at the 480p price. `--seedance-finalize <job-id>` renders that same video at 1080p for a separate 1080p charge, with the draft's prompt, media, length, ratio, seed and audio, before the draft's `seedanceDraftExpiresAt` (about three hours). It cannot change lighting or other content. A later higher-quality/final request supersedes draft-first iteration: finalize an approved unchanged draft, or render the revision directly at the requested final resolution. Another paid draft requires renewed consent. See [the full draft guide](references/models.md#seedance-25).
807
832
 
808
833
  ```bash
834
+ # Only after the user chooses the quoted draft workflow:
809
835
  sogni-agent --video -m seedance2-5 --seedance-draft --json "<Seedance prompt>" # results[0].jobId
836
+ # After approval of the unchanged take and its separately quoted 1080p cost:
810
837
  sogni-agent --video -m seedance2-5 --seedance-finalize <job-id> -o final.mp4
811
838
  ```
812
839
 
@@ -1024,6 +1051,18 @@ Do not use `tokenType: "spark"` by itself to determine that Spark paid for a ren
1024
1051
 
1025
1052
  With an active subscription, the CLI also skips its client-side "insufficient SPARK" pre-flight for covered video renders — a low token balance no longer blocks jobs the plan pays for. Vendor models and `--billing-mode tokens` keep the pre-flight, and the server remains authoritative either way.
1026
1053
 
1054
+ ### Rendering on Relaxed
1055
+
1056
+ Fast plan rendering pauses when the plan's daily or monthly fair-use capacity is used up (errors 4087 and 4089). Relaxed stays included, so you can keep rendering there:
1057
+
1058
+ ```bash
1059
+ sogni-agent --video --network relaxed --billing-mode subscription --detach --json \
1060
+ -m minimax-h3-fastvideo-int8_i2v_turbo_2stage --ref start.png "A slow push-in"
1061
+ sogni-agent --result <projectId> --wait -o clip.mp4 --json
1062
+ ```
1063
+
1064
+ Set `defaultNetwork` to `"relaxed"` in the plugin config to make it the default, or pass `--network fast` to override that for one run. Relaxed has far fewer workers, so a video can wait for hours, and anything unfinished 24 hours after you submit it is cancelled. Not every model runs there: `sogni-agent --list-models --model-network relaxed` shows which do for Unlimited members, and a job paid with Spark or SOGNI, or from a trial, can still be refused for a listed model. The CLI waits at least 30 minutes for a render on Relaxed by default. A render that takes longer keeps running, and `--result` collects it. With a configured default, a model with no Relaxed workers is refused rather than moved to Fast, except vendor models, which stay on Fast. Hosted chat and hosted workflows always run on Fast.
1065
+
1027
1066
  ### Free-trial access
1028
1067
 
1029
1068
  Trials include evaluation limits on generation volume, media size, and API access. Full plan limits apply once the trial converts to paid. Cancelling during the trial prevents the first charge and keeps trial access, with the same trial limits, until the original trial end date.
@@ -1045,6 +1084,10 @@ Actual throughput varies with demand, available Supernet capacity, and fair-use
1045
1084
  - **Grace / payment retry:** if a renewal payment fails, the provider retries it and **Unlimited access is paused** during the retry window — covered renders are declined with a renewal-retry error, and access resumes automatically once payment succeeds. You can keep rendering with Spark or SOGNI in the meantime.
1046
1085
  - **Refunds:** mid-term refunds are not offered by default; App Store / Google Play purchases follow the store's refund process, and Stripe (web) refunds are handled by Sogni support.
1047
1086
 
1087
+ ### Priority Fast
1088
+
1089
+ `--priority` explicitly selects earlier Fast queue placement for a covered worker render on paid Unlimited or Unlimited Pro, behind Premium Spark. Daily and monthly fair-use consumption is 1.5×. It sets subscription billing and never falls back to token payment. Vendor models, Relaxed, hosted chat and hosted workflows are excluded. Existing render defaults stay the same.
1090
+
1048
1091
  ### Subscription billing errors
1049
1092
 
1050
1093
  When a generation cannot bill to the subscription, the CLI surfaces a structured error (`--json` includes `errorCode`, `errorCategory`, and a `hint`):
@@ -1055,6 +1098,7 @@ When a generation cannot bill to the subscription, the CLI surfaces a structured
1055
1098
  | `4079` | Maximum queued jobs reached for the plan. | Wait for queued jobs to finish, then submit more. |
1056
1099
  | `4080` | Renewal payment is being retried; Unlimited access is paused. | Pay for this render with Spark or SOGNI (`--token-type spark` / `sogni`) for now. **Do not auto-retry the covered job** — access resumes on its own once renewal succeeds. |
1057
1100
  | `4081` | The feature requires a higher subscription plan. | Upgrade to Unlimited Pro. |
1101
+ | `4087`, `4089` | The plan's daily or monthly Fast capacity is used up. | Render on Relaxed with `--network relaxed`, pay with Premium Spark using `--billing-mode tokens`, or wait for the reset. Don't retry on Fast. |
1058
1102
 
1059
1103
  ### Worker revenue share
1060
1104
 
@@ -1066,7 +1110,7 @@ Sogni workers that power subscription-covered jobs earn from a separate monthly
1066
1110
 
1067
1111
  - **Exit codes:** failures use a non-zero exit code with human-readable stderr.
1068
1112
  - **Structured output:** add `--json` when an agent needs machine-parseable success/error data, or `--last` to inspect the last render. JSON failures include canonical `errorType`, `errorCategory`, and `retryable` fields where the shared runtime can classify the error.
1069
- - **Subscription billing errors:** subscription-billing failures carry `errorCode` `4078` / `4079` / `4080` / `4081`, `errorCategory: "subscription_billing"`, and an actionable `hint`. See [Subscription billing errors](#subscription-billing-errors) for what each means; in particular, do not auto-retry a `4080` (grace / renewal-retry) covered job — pay with Spark or SOGNI instead.
1113
+ - **Subscription billing errors:** subscription-billing failures carry `errorCode` `4078` / `4079` / `4080` / `4081` / `4087` / `4089`, `errorCategory: "subscription_billing"`, and an actionable `hint`. See [Subscription billing errors](#subscription-billing-errors) for what each means; in particular, do not auto-retry a `4080` (grace / renewal-retry) covered job — pay with Spark or SOGNI instead.
1070
1114
  - **stdout stays parseable in `--json` mode:** progress lines, SSE workflow frames, and warnings go to stderr; stdout carries exactly one JSON object. `--last --json` wraps the record in a `{ "success": true, ... }` envelope and exits 1 with `errorCode: "NO_LAST_RENDER"` when nothing has been rendered yet.
1071
1115
  - **Output files:** use `-o <path>` to save locally; otherwise the CLI prints a result URL.
1072
1116
  - **Quiet mode:** `-q` / `--quiet` suppresses progress output without changing exit semantics.
@@ -1106,7 +1150,7 @@ Run the unit test suite (works without any Sogni credentials or private repos):
1106
1150
  npm test
1107
1151
  ```
1108
1152
 
1109
- Paid integration tests are opt-in: `npm run test:integration` (requires a Sogni API key and submits real GPU jobs).
1153
+ Paid integration tests require a separately authorized, bounded live run: explicitly set `SOGNI_INTEGRATION=1` when running `npm run test:integration` (requires a Sogni API key and submits real GPU jobs). Ordinary tests, `test:all`, CI and release checks stay offline.
1110
1154
 
1111
1155
  Architecture notes, the private-runtime sync workflow, code-placement policy, and the release process live in [`CONTRIBUTING.md`](./CONTRIBUTING.md).
1112
1156
 
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR video upscaling to 1080p/1440p, one-click image-folder loop reels, personas (people with saved photos and voices), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"upscale an image\", \"upscale a video\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"build a playable world\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.63.0"
5
+ version: "3.65.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -25,7 +25,7 @@ metadata:
25
25
 
26
26
  # Sogni Image, Video & Music Generation
27
27
 
28
- Generate **images, videos, and music** using Sogni AI's decentralized GPU network through the `sogni-agent` CLI.
28
+ Generate **images, videos, and music** using Sogni AI's decentralized GPU network through the `sogni-agent` CLI. Choose Fast/Relaxed with `--network`; use `--priority` only after explaining its 1.5× fair-use tradeoff and the user opts in ([network guide](./references/long-jobs-and-queues.md#fast-relaxed-and-priority)). For local and hosted MCP connection choices and availability, read [Connecting with MCP](./README.md#connecting-with-mcp).
29
29
 
30
30
  > **Deep-dive references:** this file holds the rules you must always follow plus the everyday commands. Detailed guides live in [`references/`](./references/) — read the matching file *before* acting on those tasks (table at the end of this file). If the `references/` directory is not present in your install, run `sogni-agent --help` for the full flag reference or fetch the guides from `https://raw.githubusercontent.com/Sogni-AI/sogni-creative-agent-skill/main/references/`.
31
31
  >
@@ -122,6 +122,8 @@ sogni-agent -o /tmp/cat.png "a cat wearing a hat" # ✗ avoid — user can't
122
122
 
123
123
  Preserve the requested deliverable: capability questions need an answer, a writing/review request stops at the draft, and a storyboard-image request stops at the still. Continue through images, animation, and stitching when the user requested that full sequence; pause only at their requested review points. Keep exact prompts, model choices, source references, output counts, and the latest duration. Each variation needs its own complete prompt, including every shared lettering, visual, dialogue, or loop requirement. Once a stage succeeds, continue to the next requested stage instead of generating it again.
124
124
 
125
+ **Seedance draft mode is opt-in.** Before adding a paid 480p draft, explain why it could help check motion, composition, or lighting before committing to 1080p; quote the draft, direct-final, and combined draft-plus-final estimates for the actual model, duration, resolution, and references; then ask whether the user prefers a draft or direct final and wait for their choice. If a 720p/1080p attempt fails or produces an unusable take, suggest testing the revision in 480p draft mode before another expensive attempt. A 480p draft is roughly 5.5 times cheaper than 1080p; use actual estimates for the comparison. The draft is an extra charge, not credit toward the final; video-input drafts can be costly. An explicit draft request or agreed draft plan already supplies consent within its scope. A later higher-quality/final request supersedes draft-first iteration: finalize an approved unchanged draft, or render revised content directly at the requested final resolution. Never insert another draft without renewed consent. Read [the Seedance 2.5 draft guide](./references/models.md#seedance-25) before using `--seedance-draft` or `--seedance-finalize`.
126
+
125
127
  You (the calling LLM) are almost always more capable than Sogni's hosted planning model, so **do the planning and tool selection yourself** and let the hosted endpoints do what only the server can — run on the GPU network, persist assets/manifests, orchestrate durable multi-step runs with replay, and apply structured-contract repair. Don't flatten a rich request into a single natural-language string and hand planning back to a weaker model. Match the mode to the work:
126
128
 
127
129
  - **One-shot generation** → direct-to-SDK flags (the Core Commands below). You pick the tool and model. The direct path runs no model-aware prompt shaper (Wan 3 aside), so before running it, run `sogni-agent prompt-guide <model> --mode <mode>` (free and offline: the rules Sogni's own prompt writer uses) and write the prompt in that model's grammar from those rules and its section of [`references/video-prompting.md`](./references/video-prompting.md) or [`references/image-prompting.md`](./references/image-prompting.md). No LLM round-trip, lowest latency/cost.
@@ -146,7 +148,6 @@ SOGNI_SKILL_USE_SDK_TRANSPORT=1 sogni-agent --durable-chat "Create a launch camp
146
148
  ```
147
149
 
148
150
  Hosted modes require `SOGNI_API_KEY`. Local file references are uploaded to Sogni media storage and forwarded as retrievable URLs — **use direct CLI mode for private media that must not leave the local machine.**
149
-
150
151
  ## Core Commands (direct-to-SDK)
151
152
 
152
153
  ```bash
@@ -196,9 +197,7 @@ sogni-agent --music --lyrics $'[Verse]\nRise with the morning light\n[Chorus]\nW
196
197
  # Seedance 2.0 4K (4-15s vendor video with native audio)
197
198
  sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "<Seedance prompt with time-coded beats>"
198
199
 
199
- # Seedance 2.5 loose-reference operations (fixed 24fps, 480p/720p/1080p; same for -m seedance2-5-uncensored; -m seedance2-mini-uncensored follows seedance2-mini).
200
- # Edit inherits @Video1's ratio and uses its source duration; extend inherits
201
- # the ratio but uses the requested continuation duration.
200
+ # Seedance 2.5 loose-reference operations: fixed 24fps, 480p/720p/1080p; edit inherits source ratio/duration, extend source ratio and requested continuation duration. Same for -m seedance2-5-uncensored; -m seedance2-mini-uncensored follows seedance2-mini.
202
201
  sogni-agent --video -m seedance2-5 --target-resolution 1080 --seedance-task-type reference --ref-audio voice.m4a "<one job for @Audio1, then the Seedance prompt>"
203
202
  sogni-agent --video -m seedance2-5-v2v --seedance-task-type edit --ref-video source.mp4 --duration 8 --target-resolution 720 "Edit @Video1. Replace <what changes>. Keep the subject, camera path, and timing."
204
203
  sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video source.mp4 --duration 8 --target-resolution 720 "Extend @Video1. <the new footage after its ending, in time-coded beats>"
@@ -280,7 +279,7 @@ sogni-agent doctor --json
280
279
  | `--video`, `--music` | Generate video / music instead of image | - |
281
280
  | `--workflow <t>` | Force `t2v\|i2v\|r2v\|s2v\|ia2v\|a2v\|v2v\|animate-move\|animate-replace` | inferred |
282
281
  | `--ref`, `-c`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` | Frame / loose image / audio / video / mask references; audio/video repeat for H3 r2v; `--keyframe <image>@<sec>` pins an H3 keyframe (repeat, up to 8) | - |
283
- | `--seedance-task-type reference\|edit\|extend`; `--seedance-draft`, `--seedance-finalize <jobId>` | Seedance 2.5 loose-reference operation (v2v defaults to edit). Draft mode: iterate on 480p drafts (480p price), then render the kept draft at 1080p with all its inputs, before its `seedanceDraftExpiresAt` (~3 h); see `references/models.md` § Seedance 2.5 | - |
282
+ | `--seedance-task-type reference\|edit\|extend`; `--seedance-draft`, `--seedance-finalize <jobId>` | Seedance 2.5 loose-reference operation (v2v defaults to edit). Drafts require user consent after explaining their added cost; finalize an unchanged kept draft at 1080p before `seedanceDraftExpiresAt` (~3 h). See `references/models.md` § Seedance 2.5 | - |
284
283
  | `--wan3-ratio`, `--smart-duration` | Wan 3 adaptive/fixed ratio and provider-selected 2–30s duration | adaptive / fixed |
285
284
  | `--reference-file-url`, `--reference-link-url` | One public Wan 3 document or webpage context URL (mutually exclusive) | - |
286
285
  | `--expand-prompt`, `--no-expand-prompt`, `--watermark`, `--no-watermark` | Local video prompt guardrails (quote and duration checks, storyboard fallback) plus Sogni's server-side Wan 3 rewrite; `--no-expand-prompt` sends the prompt literally. Wan 3 watermark control | on / watermark off |
@@ -296,7 +295,7 @@ sogni-agent doctor --json
296
295
  | `--last`, `--last-image` | Inspect last render / reuse it as context or ref | - |
297
296
  | `--list-models [query]`, `--search-models <query>` | List or search the live Supernet image/video/audio model catalog | - |
298
297
  | `--model-media image\|video\|audio\|all` | Filter live model discovery by output media | all |
299
- | `--model-network fast\|relaxed` | Select the Supernet used for live model discovery | configured network or fast |
298
+ | `--network fast\|relaxed`; `--model-network fast\|relaxed` | Supernet for this render (Relaxed queues can take hours and not every model runs there, so pair long renders with `--detach`); Supernet for live model discovery | configured `defaultNetwork` or fast |
300
299
  | `--model-tag <tag>` | Filter by an official catalog tag such as `spicy` or `uncensored`; repeat for AND matching | - |
301
300
  | `--json` | Machine-parseable stdout (progress goes to stderr) | false |
302
301
  | `-q, --quiet` | Suppress progress output | false |
@@ -416,11 +415,11 @@ On a **Sogni Unlimited** subscription, Sogni-hosted (Supernet) image, video, and
416
415
  Unlimited is fair-use, not unmetered. Describe only the concurrency and queue limits shown in the current plan catalog; actual throughput can vary with demand, available Supernet capacity, and fair-use controls. If generation is temporarily at capacity, ask the user to wait for active jobs to finish or try again later, or offer Premium Spark for fastest priority. Do not speculate about unpublished scheduling mechanics or availability windows, and never describe the plan as "relaxed." **Queued work, long jobs, and results after a session.** Start each session with `sogni-agent --recent --json` and offer results the user has not seen; projects finish on Sogni even when no agent is connected. A queued project is not lost: never resubmit or cancel it. `--status <id>` says whether the account's own plan limit holds it (Unlimited runs one standard MiniMax H3 video at a time; it starts by itself when one of the account's jobs finishes, and it is not a worker shortage) or it is waiting for a worker. A batch of standard H3 videos on Unlimited runs one after another; say so and estimate the whole wait. On hosts that cap a tool call, submit long videos with `--detach` and wait for them with one `--result <id> --wait -o <file>` call (repeat that call if the host cuts it short). Never loop `--status`: Sogni rate-limits requests per network, which also locks out the user's browser; look at most once a minute. A timeout exits with `PROJECT_TIMEOUT_STILL_RUNNING` and never cancels. Details: [`references/long-jobs-and-queues.md`](./references/long-jobs-and-queues.md).
417
416
 
418
417
  When a generation cannot bill to the subscription, the CLI returns a structured error (`errorCategory: "subscription_billing"`). Respond by the `errorCode`, and **do not** collect payment details or simulate a purchase:
419
-
420
418
  - **`4078` — Unlimited billing unavailable for this generation.** Either a vendor model the subscription never covers (use Premium Spark for GPT Image 2 / Seedance / HappyHorse / Wan 3), or no verified entitlement right now (reconnect and retry). Offer the Premium Spark / `--token-type` path; do not claim the subscription will cover a vendor model.
421
419
  - **`4079` — Maximum queued jobs reached.** Ask the user to wait for queued jobs to finish before submitting more; this resolves on its own.
422
420
  - **`4080` — Renewal payment is being retried; access is paused.** Tell the user Unlimited resumes automatically once the renewal succeeds and that they can render now with Spark or SOGNI (`--token-type spark` / `sogni`). **Never auto-retry the covered job in a loop** — it will keep failing until billing recovers.
423
421
  - **`4081` — Higher plan required.** Suggest upgrading to Unlimited Pro.
422
+ - **`4087` daily, `4089` monthly — Fast capacity used up.** Fast plan rendering is paused until the reset, so don't retry on Fast. Offer the choice: Relaxed (`--network relaxed`, included in the plan, slower, only for models `sogni-agent --list-models --model-network relaxed` lists; use `--detach`), Premium Spark on Fast (`--billing-mode tokens`), or waiting for the reset. Never switch networks without asking, because Relaxed can take hours.
424
423
 
425
424
  Cancelling a paid subscription keeps access until the end of the paid period; cancelling during the trial prevents the first charge and keeps trial access until the original trial end. Manage billing where it was purchased (Stripe portal for web, App Store / Google Play settings for mobile) — the CLI does not change plans.
426
425
 
@@ -0,0 +1,50 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
3
+ import { join } from 'node:path';
4
+
5
+ const EXTENSIONS = {
6
+ 'image/jpeg': '.jpg', 'image/png': '.png', 'image/webp': '.webp',
7
+ 'audio/wav': '.wav', 'audio/x-wav': '.wav', 'audio/mpeg': '.mp3',
8
+ 'audio/webm': '.webm', 'audio/ogg': '.ogg', 'audio/mp4': '.m4a',
9
+ 'video/mp4': '.mp4', 'video/webm': '.webm',
10
+ };
11
+
12
+ /** Explicit snapshot import: originals come from the authenticated content
13
+ * route, never expiring preview URLs. Existing local personas are untouched. */
14
+ export async function importAccountPersona({ id, requestJson, requestBytes, directory, existingPersonas = [] }) {
15
+ const envelope = await requestJson(`/v1/personas/${encodeURIComponent(id)}`);
16
+ const character = envelope.data;
17
+ if (!character?.id || typeof character.name !== 'string' || !character.name.trim()) throw new Error('Sogni returned an incomplete persona.');
18
+ if (existingPersonas.some((persona) => persona.name.toLowerCase() === character.name.toLowerCase())) {
19
+ throw new Error(`A local persona named "${character.name}" already exists. Import did not replace it.`);
20
+ }
21
+ const slug = `account-${randomUUID()}`;
22
+ const folder = join(directory, slug);
23
+ mkdirSync(folder, { recursive: true });
24
+ try {
25
+ const references = [];
26
+ for (const reference of character.references ?? []) {
27
+ const content = await requestBytes(`/v1/personas/${encodeURIComponent(character.id)}/references/${encodeURIComponent(reference.id)}/content`);
28
+ // Neither a display name nor a remote asset id becomes a filesystem path.
29
+ const path = join(folder, `reference-${references.length + 1}${EXTENSIONS[reference.contentType] ?? '.bin'}`);
30
+ writeFileSync(path, content, { flag: 'wx', mode: 0o600 });
31
+ references.push({ id: reference.id, role: reference.role, name: reference.name, contentType: reference.contentType, path });
32
+ }
33
+ const images = references.filter((reference) => reference.contentType?.startsWith('image/') && reference.role !== 'thumbnail');
34
+ const identity = images.find((reference) => reference.id === character.identityReferenceId) ?? images[0];
35
+ const photoPaths = identity ? [identity, ...images.filter((reference) => reference !== identity)].map((reference) => reference.path) : [];
36
+ const voice = references.find((reference) => reference.role === 'voice' && reference.contentType?.startsWith('audio/'));
37
+ return {
38
+ id: randomUUID(), name: character.name, slug, relationship: character.relationship || 'friend',
39
+ description: [character.description, character.appearance, character.attire].filter(Boolean).join('\n'),
40
+ tags: character.tags ?? [], voice: character.voiceDescription || null,
41
+ photoPath: identity?.path ?? null, photoPaths, voiceClipPath: voice?.path ?? null,
42
+ voiceTranscript: character.voiceTranscript || '', references,
43
+ accountPersonaId: character.id, accountPersonaRevision: character.revision,
44
+ createdAt: Date.now(), updatedAt: Date.now(),
45
+ };
46
+ } catch (error) {
47
+ if (existsSync(folder)) rmSync(folder, { recursive: true });
48
+ throw error;
49
+ }
50
+ }
@@ -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.63.0",
5
+ "version": "3.65.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",