@sogni-ai/sogni-creative-agent-skill 3.54.3 → 3.54.4

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.
@@ -11,7 +11,11 @@ connection open for its whole life.
11
11
  # Submit and return at once; prints the project id and the follow-up commands.
12
12
  sogni-agent --video -m minimax-h3-ref2va-fp8_r2v --workflow r2v -c face.png --detach --json "A slow dolly toward the subject"
13
13
 
14
- # State, and while queued, why it is waiting.
14
+ # Wait for it over the live connection, then save the media (one call; bounded by -t,
15
+ # default 1800 s). Repeat this same call if the host cut it short.
16
+ sogni-agent --result <projectId> --wait -o clip.mp4 --json
17
+
18
+ # One look at its state and, while queued, why it is waiting (at most once a minute).
15
19
  sogni-agent --status <projectId> --json
16
20
 
17
21
  # Finished media (-o saves it; several renders get -2, -3 suffixes like a normal run).
@@ -71,9 +75,22 @@ fetch it later (`details.waitingReason` says why it was still waiting).
71
75
  `--cancel-on-timeout` restores the old behavior of cancelling on timeout.
72
76
 
73
77
  Hosts that cap a single tool call (often around 10 minutes) cannot wait out a
74
- long video in one call. Submit it with `--detach`, check back with `--status`,
75
- and collect it with `--result <id> -o <file>` in later calls, instead of
76
- raising `-t`.
78
+ long video in one call. Submit it with `--detach`, then wait for it with
79
+ `sogni-agent --result <id> --wait -o <file>` in a later call, instead of raising
80
+ `-t`. `--wait` follows the project over the live connection and makes no
81
+ requests while it waits; if the host cuts the call short, run the same command
82
+ again.
83
+
84
+ ## Do not poll
85
+
86
+ Never re-run `--status` in a loop to see whether a project finished. Each run is
87
+ a new connection plus an API request, and Sogni limits requests per network:
88
+ too many in a minute block that network for a while, including the user's own
89
+ browser. Use `--wait`. When you must look without waiting, do it at most once a
90
+ minute. An error with `errorType: "RATE_LIMITED"` (HTTP 429) says how many
91
+ seconds to wait (`metadata.retryAfterSeconds`); make no Sogni request before
92
+ then.
77
93
 
78
94
  `--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
79
- later; an older installation says so and asks for a skill update.
95
+ later, and `--wait` needs 5.58.0; an older installation says so and asks for a
96
+ skill update.
@@ -14,7 +14,7 @@ Use this workflow for one-command requests to turn a folder of still images into
14
14
  - Pin both endpoint strengths to `1` and disable SDK asset auto-resizing after choosing a valid LTX canvas.
15
15
  - Target a 768px short side unless the user requests another resolution. Choose dimensions divisible by 64, preserve the dominant source aspect ratio, and keep the long side at or below 2048px. For a 4:3 source set, use `1024x768`.
16
16
  - Normalize the stitched result to 32 fps.
17
- - Generate instrumental ACE-Step 1.5 XL Turbo music unless the user supplies audio or requests `music=none`.
17
+ - Generate instrumental MiniMax Music 3 music unless the user supplies audio or requests `music=none`. Use ACE-Step 1.5 XL Turbo only when the soundtrack must be longer than Music 3's 300-second limit, and tell the user why.
18
18
  - Save the final beside the source folder as `sogni-loop-final.mp4`, choosing a non-overwriting numbered name when it already exists.
19
19
 
20
20
  The default stack is Sogni generation plus the Sogni CLI's local FFmpeg wrappers. Do not initialize or depend on HyperFrames or Remotion for generation, assembly, or validation. If either compositor is already installed, use it only when the user explicitly asks for timed text, titles, overlays, or effects that the wrappers cannot provide; preserve the approved picture track and loop anchors through that optional pass.
@@ -147,7 +147,18 @@ The opener may appear at the first and final boundary only to close the loop. No
147
147
 
148
148
  If the user supplies music, use that frozen local file. If the user requests `music=none`, keep the picture-only output. Otherwise derive a coherent instrumental style from the images. When no direction is given, use subtle melodic electronic music with eclectic tropical and futuristic accents, polished atmosphere, light rhythm, warm texture, and restrained energy.
149
149
 
150
- Generate ACE-Step 1.5 XL Turbo music at least 6 seconds longer than the stitched picture:
150
+ The soundtrack must be at least 6 seconds longer than the stitched picture. Generate it with MiniMax Music 3, the default music model. Music 3 treats the duration as a ceiling and can end early on a musical resolution, so ask for about 20 seconds more than the picture (at most 300). With no `--lyrics`, the CLI sends an instrumental section skeleton (`[Intro]`, `[Verse]`, `[Chorus]`, `[Verse]`, `[Chorus]`, `[Bridge]`, `[Outro]`); for a picture over about two minutes, pass a longer skeleton with more `[Verse]`/`[Chorus]` tags so the piece fills the time. Put tempo and key in the prompt text:
151
+
152
+ ```bash
153
+ sogni-agent -q --token-type auto --music \
154
+ --duration <video-seconds-plus-20, at most 300> \
155
+ -o ./working/soundtrack.mp3 \
156
+ "<instrumental music direction, with tempo and key>"
157
+ ```
158
+
159
+ Measure the result before applying it (`ffprobe -v error -show_entries format=duration -of csv=p=0 ./working/soundtrack.mp3`). A track that ended less than 6 seconds past the picture is a failed music stage: render it again once with a longer section skeleton.
160
+
161
+ Only when the picture plus 6 seconds exceeds 300 seconds, use ACE-Step 1.5 XL Turbo, which plays up to 600 seconds and keeps the requested length, and say in the handoff that the reel was too long for Music 3:
151
162
 
152
163
  ```bash
153
164
  sogni-agent -q --token-type auto --music --music-model turbo \
@@ -53,8 +53,8 @@ Availability, worker counts, media types, network coverage, and tags come from
53
53
  selected network are returned. Discovery does not require an API key.
54
54
 
55
55
  Use each model's dedicated input contract: `--image-to-3d` for Pixal3D,
56
- `--remove-background` for BiRefNet, `--music -m music3` for MiniMax Music 3,
57
- and `--speech` for Qwen3-TTS. A catalog ID alone does not supply its required
56
+ `--remove-background` for BiRefNet, `--music` for MiniMax Music 3 (the default
57
+ music model; `-m turbo` for ACE-Step), and `--speech` for Qwen3-TTS. A catalog ID alone does not supply its required
58
58
  inputs. Read the mode-specific commands and controls below.
59
59
 
60
60
  `--list-api-models` is different: it lists Sogni Intelligence language models
@@ -382,41 +382,57 @@ edges survive.
382
382
 
383
383
  | Model | Use Case |
384
384
  |-------|----------|
385
- | `ace_step_1.5_xl_turbo` | Default direct music generation model (ACE-Step 1.5 XL Turbo) |
386
- | `ace_step_1.5_xl_sft` | Quality variant (ACE-Step 1.5 XL SFT) with stronger lyric handling |
387
- | `minimax_music3` | MiniMax Music 3; direct `--music -m music3` or hosted `generate_music` with `model: "music3"` |
385
+ | `minimax_music3` | Default music model (MiniMax Music 3): best vocals, lyric adherence and song structure, 10–300 s |
386
+ | `ace_step_1.5_xl_turbo` | ACE-Step 1.5 XL Turbo: a cheap draft with exact BPM/key/time-signature controls, up to 600 s |
387
+ | `ace_step_1.5_xl_sft` | ACE-Step 1.5 XL SFT, with stronger lyric handling than Turbo |
388
388
 
389
- The `--music-model` keys are `music3`, `turbo` (default), and `sft`. ACE selectors
389
+ The `--music-model` keys are `music3` (default), `turbo`, and `sft`. ACE selectors
390
390
  map to the XL ids (`turbo` → `ace_step_1.5_xl_turbo`, `sft` →
391
- `ace_step_1.5_xl_sft`). The legacy `ace_step_1.5_turbo` / `ace_step_1.5_sft`
392
- models are no longer the default.
391
+ `ace_step_1.5_xl_sft`); the legacy `ace_step_1.5_turbo` / `ace_step_1.5_sft` ids
392
+ still work by name. Both `--music` and hosted `generate_music` default to
393
+ MiniMax Music 3. Name ACE-Step only when the user asks for it, for a quick or
394
+ cheap draft, for exact BPM/key controls, or for a track longer than 300 seconds.
395
+
396
+ Use `--music` for direct audio-only generation. Keep `--audio` for video
397
+ reference audio (`--ref-audio` alias); do not use it for direct music
398
+ generation. Output formats are MP3 (default), FLAC, and WAV. Audio batches
399
+ (`-n`) save all results, appending `-2`, `-3`, etc. to the requested output
400
+ filename.
401
+
402
+ **MiniMax Music 3 (default).** 10–300 seconds, default 60; the duration is a
403
+ ceiling, so a song can finish early at a musical resolution. Defaults: 30
404
+ steps (10–100), guidance 1.7 (1–5), `euler`, `simple`; `--prompt-strength`
405
+ (0–10) is available. It has no shift, BPM, key, time-signature, language, or
406
+ composer controls: put tempo, key and language in the prompt. Write lyrics
407
+ with plain section tags on their own lines (`[Verse]`, `[Chorus]`, no
408
+ modifiers inside the brackets) and enough sections to fill the length. An
409
+ instrumental needs a section skeleton or it ends early; the CLI sends
410
+ `[Intro] [Verse] [Chorus] [Verse] [Chorus] [Bridge] [Outro]` (one per line)
411
+ when no `--lyrics` are given, and keeps lyrics you supply.
393
412
 
394
- Use `--music` for direct audio-only generation. Defaults: 30 seconds, `mp3`,
395
- `ace_step_1.5_xl_turbo`, 8 steps, `euler` sampler, `simple` scheduler. Keep
396
- `--audio` for video reference audio (`--ref-audio` alias); do not use it for
397
- direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
398
- (30-300), `--keyscale`, `--timesig` (2|3|4|6), `--composer-mode`,
399
- `--prompt-strength` (0-10), `--creativity` (0-2), `--music-shift` (1-6),
400
- `--audio-format mp3|flac|wav`.
413
+ ```bash
414
+ sogni-agent --music -o score.mp3 "Instrumental orchestral score, 90 BPM, D minor, slow build to a full-string climax"
415
+ sogni-agent --music --duration 120 --lyrics $'[Verse]\nCity lights are calling\n[Chorus]\nWe run tonight' -o song.mp3 "Synth-pop anthem, 118 BPM, F major, bright female vocal"
416
+ ```
401
417
 
402
- Hosted `generate_music` defaults to MiniMax Music 3 (`model: "music3"`); direct
403
- `--music` still defaults to ACE-Step. Music 3 supports 10–300 seconds, with
404
- duration as a ceiling: it can finish early at a musical resolution. Put tempo
405
- and key in its prompt; BPM/key/time-signature controls do not apply. Use plain
406
- section tags in lyrics; instrumental tracks also need a section-tag skeleton
407
- to give the composer enough structure. The CLI preserves supplied lyrics:
418
+ Without `--music-model`, `--bpm`, `--keyscale`, `--timesig` and `--language`
419
+ are written into the Music 3 prompt (for example `Tempo: 92 BPM. Key: A
420
+ minor.`) with a note on stderr. A setting only ACE-Step has (`--music-shift`,
421
+ `--composer-mode` / `--no-composer-mode`, `--creativity`, `--duration` over
422
+ 300, `--steps` under 10, `--sampler euler_ancestral`) runs that command on
423
+ ACE-Step 1.5 XL Turbo instead and says so on stderr. With an explicit
424
+ `-m music3`, the ACE-only controls are refused.
425
+
426
+ **ACE-Step 1.5 XL (`-m turbo` or `-m sft`).** 10–600 seconds, default 30.
427
+ Turbo: 8 steps (4–16), `euler`, `simple`, shift 3. SFT: 50 steps, guidance 5,
428
+ `er_sde`, `linear_quadratic`. Controls: `--lyrics`, `--language`, `--bpm`
429
+ (30-300), `--keyscale`, `--timesig` (2|3|4|6), `--composer-mode`,
430
+ `--prompt-strength` (0-10), `--creativity` (0-2), `--music-shift` (1-6).
408
431
 
409
432
  ```bash
410
- sogni-agent --music -m music3 --duration 60 --lyrics $'[Intro]\n[Verse]\n[Chorus]\n[Outro]' -o score.mp3 "Instrumental orchestral score, 90 BPM, D minor"
433
+ sogni-agent --music -m turbo --duration 420 --bpm 128 --keyscale "C major" -o draft.mp3 "long driving synthwave mix"
411
434
  ```
412
435
 
413
- Music 3 defaults to 60 seconds, 30 steps, guidance 1.7, `euler`, and `simple`.
414
- It rejects ACE-only shift, BPM, key, time-signature, language, and composer
415
- controls; put that direction in the prompt or lyrics. `--prompt-strength`
416
- (0–10), `--creativity` (0–2), `--guidance` (1–5), and `--steps` (10–100) are
417
- available. Output formats are MP3, FLAC, and WAV. Audio batches (`-n`) save
418
- all results, appending `-2`, `-3`, etc. to the requested output filename.
419
-
420
436
  ## Speech models
421
437
 
422
438
  Qwen3-TTS is available through direct `--speech`, hosted `generate_speech`,
@@ -429,6 +445,17 @@ sogni-agent --speech --speech-mode clone --voice-reference voice.wav --voice-tra
429
445
  sogni-agent --speech --speech-mode design --voice-description "A warm, low-pitched narrator with a gentle Scottish accent" -o designed.wav "The journey begins."
430
446
  ```
431
447
 
448
+ **A designed voice is a new person on every call.** `design` invents a voice
449
+ from the description each time, so a narrator or character designed separately
450
+ for each line or scene sounds like a different speaker each time. When the same
451
+ voice speaks more than once, design it once (a neutral 10–20 s passage), keep
452
+ that take, then clone it with its exact script for every line:
453
+
454
+ ```bash
455
+ sogni-agent --speech --speech-mode design --voice-description "A warm, relaxed American man in his forties" -o narrator.designed.wav "<a fixed 15-second passage>"
456
+ sogni-agent --speech --speech-mode clone --voice-reference narrator.designed.wav --voice-transcript "<that same passage>" -o line-1.wav "First line."
457
+ ```
458
+
432
459
  Default mode is `voice`, default speaker `serena`, format WAV, language `auto`.
433
460
  `--speech-voice` accepts `serena`, `vivian`, `uncle_fu`, `ryan`, `aiden`,
434
461
  `ono_anna`, `sohee`, `eric`, or `dylan`. It is only valid in `voice` mode.
@@ -1208,9 +1235,9 @@ model recommendations.
1208
1235
  | Remove a background | `--remove-background original.png` (BiRefNet); add `--matte` for a soft mask |
1209
1236
  | Turn one image into a textured 3D model (GLB) | `--image-to-3d original.png -o object.glb` (Pixal3D), no prompt |
1210
1237
  | Turn several photos of one object into a 3D model | `--image-to-3d front.png` plus `--left-view` / `--back-view` / `--right-view` (Pixal3D multi-view; views named by the subject's own sides) |
1211
- | Direct music generation | `ace_step_1.5_xl_turbo` (or `--music-model turbo`) |
1212
- | Music with stronger lyric handling | `ace_step_1.5_xl_sft` (or `--music-model sft`) |
1213
- | MiniMax Music 3 songs and instrumentals | `--music -m music3` or hosted `generate_music` |
1238
+ | Songs and instrumentals (default) | `minimax_music3` (`--music`, or hosted `generate_music`) |
1239
+ | Quick, cheap music draft, exact BPM/key, or over 300 s | `ace_step_1.5_xl_turbo` (`--music-model turbo`) |
1240
+ | ACE-Step with stronger lyric handling | `ace_step_1.5_xl_sft` (`--music-model sft`) |
1214
1241
  | Spoken audio, voice cloning, or voice design | `--speech --speech-mode voice/clone/design` or hosted `generate_speech` |
1215
1242
  | Text-to-video with native dialogue/audio | `ltx25` |
1216
1243
  | Image-to-video from one start frame (default) | `wan_v2.2-14b-fp8_i2v_lightx2v` |
@@ -21,7 +21,7 @@ CLI defaults are 512×512 images, count 1, spark tokens, prompt-hash seeds):
21
21
  "defaultImageModel": "z_image_turbo_bf16",
22
22
  "defaultEditModel": "qwen_image_edit_2511_fp8_lightning",
23
23
  "defaultPhotoboothModel": "coreml-sogniXLturbo_alpha1_ad",
24
- "defaultMusicModel": "ace_step_1.5_xl_turbo",
24
+ "defaultMusicModel": "minimax_music3",
25
25
  "videoModels": {
26
26
  "t2v": "ltx25-22b-int8_t2v_distilled",
27
27
  "i2v": "wan_v2.2-14b-fp8_i2v_lightx2v",
@@ -55,7 +55,7 @@ CLI defaults are 512×512 images, count 1, spark tokens, prompt-hash seeds):
55
55
  "defaultDurationSec": 5,
56
56
  "defaultImageTimeoutSec": 30,
57
57
  "defaultVideoTimeoutSec": 1800,
58
- "defaultMusicDurationSec": 30,
58
+ "defaultMusicDurationSec": 60,
59
59
  "defaultMusicTimeoutSec": 600,
60
60
  "credentialsPath": "~/.config/sogni/credentials",
61
61
  "lastRenderPath": "~/.config/sogni/last-render.json",
@@ -9,7 +9,7 @@ sogni-agent --get-personal-lora personal-REPLACE-WITH-RETURNED-ID
9
9
  sogni-agent --list-loras --include-personal-loras --lora-catalog-model krea2_turbo_fp8_scaled
10
10
  ```
11
11
 
12
- The import command starts asynchronous validation. Poll `--get-personal-lora` at a reasonable interval and show `reason`/`failureCode` on failure. Only `ready` entries can render; `queued`, `validating`, and `review` need more time. `rejected` and `revoked` cannot render. Do not re-import repeatedly to poll. `--list-personal-loras` returns supported import models and current limits; discover model IDs there.
12
+ The import command starts asynchronous validation, which reports no live events. Check it with `--get-personal-lora` at most once a minute and show `reason`/`failureCode` on failure; on `errorType: "RATE_LIMITED"`, make no Sogni request for `metadata.retryAfterSeconds`. Only `ready` entries can render; `queued`, `validating`, and `review` need more time. `rejected` and `revoked` cannot render. Do not re-import repeatedly to poll. `--list-personal-loras` returns supported import models and current limits; discover model IDs there.
13
13
 
14
14
  Set `--confirm-lora-rights` only when the user has confirmed permission to use that file. Hugging Face safetensors links and Civitai model/version links are accepted. An import does not train a new adapter.
15
15
 
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "4.6.3",
6
+ "@sogni-ai/sogni-intelligence-client": "4.7.1",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.4"
@@ -18,8 +18,8 @@ Pre-render planning tools. Each one returns plans, prompts, or text — none of
18
18
  ## Tools
19
19
 
20
20
  - `enhance_prompt` — enhance or adapt a source prompt into a model-ready image, video, music, or edit prompt. Use for prompt expansion and model-specific prompt preparation. Not for lyrics or full scripts.
21
- - `compose_lyrics` — compose vocal song lyrics and suggested musical parameters (ACE-Step). Use for songs with words, choruses, verses, jingles, vocal hooks, or lyric rewrites. Not for instrumental-only music.
22
- - `compose_instrumental` — compose an instrumental music structure and suggested musical parameters (ACE-Step). Use for background scores, beds, cues, themes, and music requests without lyrics.
21
+ - `compose_lyrics` — compose vocal song lyrics and suggested musical parameters. Use for songs with words, choruses, verses, jingles, vocal hooks, or lyric rewrites. Not for instrumental-only music.
22
+ - `compose_instrumental` — compose an instrumental music structure and suggested musical parameters. Use for background scores, beds, cues, themes, and music requests without lyrics.
23
23
  - `compose_script` — compose scripts, storyboards, video prompts, ad concepts, trailers, social shorts, campaign beats, and talking-head plans. Use for creative writing artifacts.
24
24
  - `compose_workflow` — turn a creative brief into a runnable ONE-SHOT durable creative workflow plan (the same shape `POST /v1/creative-agent/workflows` accepts). Use when the user wants to RUN a multi-step pipeline once.
25
25
  - `compose_workflow_template` — turn a creative brief into a savable, parameterized workflow template plus a concrete example plan. Use when the user wants to CREATE / SAVE / DESIGN a reusable workflow recipe, or to EDIT a saved workflow.