@sogni-ai/sogni-creative-agent-skill 3.54.2 โ 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.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +4 -4
- package/.agents/skills/sogni-creative-agent-skill/references/hosted-api.md +4 -2
- package/.agents/skills/sogni-creative-agent-skill/references/interactive-worlds.md +3 -0
- package/.agents/skills/sogni-creative-agent-skill/references/long-jobs-and-queues.md +22 -5
- package/.agents/skills/sogni-creative-agent-skill/references/loop-maker.md +13 -2
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +67 -36
- package/.agents/skills/sogni-creative-agent-skill/references/personal-loras.md +1 -1
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +35 -15
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +22 -17
- package/SKILL.md +10 -10
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/tools.mjs +14 -8
- package/generated/creative-agent-runtime.mjs +4 -4
- package/llm.txt +1 -1
- package/openclaw.plugin.json +3 -3
- package/package.json +4 -2
- package/plugin-skills/sogni-creative-agent/SKILL.md +2 -2
- package/references/hosted-api.md +4 -2
- package/references/interactive-worlds.md +3 -0
- package/references/long-jobs-and-queues.md +22 -5
- package/references/loop-maker.md +13 -2
- package/references/models.md +67 -36
- package/references/openclaw-config.md +2 -2
- package/references/personal-loras.md +1 -1
- package/references/video-prompting.md +35 -15
- package/skill-package.json +1 -1
- package/skills/composition_planning.md +2 -2
- package/skills/video_editing.md +1 -1
- package/skills/video_generation.md +1 -1
- package/sogni-agent.mjs +401 -117
- package/sogni-app-id.mjs +50 -0
- package/version.mjs +1 -1
package/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
3
|
description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR video upscaling to 1080p/1440p, one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"upscale an image\", \"upscale a video\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.54.
|
|
5
|
+
version: "3.54.4"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "๐จ"
|
|
@@ -198,9 +198,9 @@ sogni-agent --video --ref face.jpg --ref-audio speech.m4a -m wan_v2.2-14b-fp8_s2
|
|
|
198
198
|
sogni-agent --video --ref cover.jpg --ref-audio song.mp3 "music video with synchronized motion"
|
|
199
199
|
sogni-agent --video --ref-audio song.mp3 "abstract audio-reactive visualizer"
|
|
200
200
|
|
|
201
|
-
# Music (
|
|
202
|
-
sogni-agent -q --music --duration 30 -o ./music.mp3 "uplifting cinematic synthwave theme"
|
|
203
|
-
sogni-agent --music --lyrics
|
|
201
|
+
# Music: MiniMax Music 3 by default (mp3; tempo and key in the prompt); -m turbo = ACE-Step for exact --bpm/--keyscale or >300s
|
|
202
|
+
sogni-agent -q --music --duration 30 -o ./music.mp3 "uplifting cinematic synthwave theme, 110 BPM, A minor"
|
|
203
|
+
sogni-agent --music --lyrics $'[Verse]\nRise with the morning light\n[Chorus]\nWe run' "bright indie pop chorus, 128 BPM, C major"
|
|
204
204
|
|
|
205
205
|
# Seedance 2.0 4K (4-15s vendor video with native audio)
|
|
206
206
|
sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "A polished product reveal with native ambient sound"
|
|
@@ -297,7 +297,7 @@ sogni-agent doctor --json
|
|
|
297
297
|
| `--generate-audio`, `--no-generate-audio` | Keep/strip MiniMax H3's track or enable/disable Wan 3 native audio | keep / enabled |
|
|
298
298
|
| `--sampler <name>` | Image/music sampler; LightX2V FL2VA H3 Turbo: `euler\|er_sde\|sa_solver`; Ref2VA Turbo and FastH3 Turbo: `euler` only | LightX2V FL2VA H3 Turbo defaults to `er_sde` on Socket; CLI omits unless set |
|
|
299
299
|
| `--control-type`, `--outpaint-position`, `--outpaint-aspect-ratio` | LTX v2v control mode and outpaint canvas controls (`ltx25-v2v` default) | - |
|
|
300
|
-
| `--duration <sec>` | Video or music length | video 5, music 30 |
|
|
300
|
+
| `--duration <sec>` | Video or music length | video 5, music 60 (Music 3; ACE-Step 30) |
|
|
301
301
|
| `--target-resolution <px>` | Short-side target preserving aspect ratio (use `2160` for Seedance 4K); on FastH3 and Ref2VA Two-Stage the delivered size `720`, `1080`, or `2K` | - (Two-Stage: 2K) |
|
|
302
302
|
| `--photobooth` | Face transfer mode (with `--ref`) | - |
|
|
303
303
|
| `--persona <name>` | Use a saved persona (photo + voice auto-attach) | - |
|
|
@@ -310,7 +310,7 @@ sogni-agent doctor --json
|
|
|
310
310
|
| `--model-tag <tag>` | Filter by an official catalog tag such as `spicy` or `uncensored`; repeat for AND matching | - |
|
|
311
311
|
| `--json` | Machine-parseable stdout (progress goes to stderr) | false |
|
|
312
312
|
| `-q, --quiet` | Suppress progress output | false |
|
|
313
|
-
| `-t <sec>` | Stop waiting (from submission; plan-limit queue time not counted); never cancels. Also `--detach`, `--status <id>`, `--result <id
|
|
313
|
+
| `-t <sec>` | Stop waiting (from submission; plan-limit queue time not counted); never cancels. Also `--detach`, `--status <id>`, `--result <id> [--wait]`, `--recent [h]` | 30 image / 1800 video / 600 music |
|
|
314
314
|
| `--strict-size` | Fail instead of auto-adjusting video size | false |
|
|
315
315
|
| `doctor`, `self-update`, `--whats-new`, `--snooze-update` | Health check / upgrade / changelog / snooze reminder | - |
|
|
316
316
|
|
|
@@ -328,7 +328,7 @@ sogni-agent doctor --json
|
|
|
328
328
|
- SDK callers: SAM 3 takes `sam3Prompt.applyMask: true` for a cutout; leave it off for the binary mask. If text matches too many instances, inspect `maskSelections` and refine with `maxInstances: 1` or points. BiRefNet uses top-level `applyMask` instead.
|
|
329
329
|
- Pixal3D (`pixal3d_int8_i23d`) reconstructs one `startingImage` into a textured GLB. When the user has more photos of the same object, add any of `--left-view`, `--back-view` and `--right-view` to `--image-to-3d front.png`; the CLI then uses `pixal3d_multiview_int8_i23d` (SDK `leftViewImage` / `backViewImage` / `rightViewImage`) at the same options and price. Views are named by the subject's own sides, not the viewer's: left = the subject turned so its own left side faces the camera (it faces screen-left), right = its own right side (it faces screen-right), back = seen from behind. Never follow turnaround templates that label the subject's right side "left" โ swapped sides build a model turned 180 degrees. Its supported graph is promptless: omit `templateVariant` or use `i23d-birefnet`; the old prompted `i23d` variant is removed. Shape resolution defaults to 1024, with 1536 available at a higher price. Set `meshTargetFaces` below the 700000 maximum for a real-time asset. Discovery supports `--search-models pixal3d` and `--model-media model`; generate with `--image-to-3d object.png --mesh-faces 30000 -o object.glb`. Save the binary result as `.glb`, never process it as an image.
|
|
330
330
|
- `birefnet_image_background_removal_fp16` is available on Supernet for promptless soft-matte background removal. SDK callers pass `startingImage` and top-level `applyMask: true` for an RGBA cutout. Use `--remove-background original.png -o cutout.png`; add `--matte` for a soft mask. Preserve original bytes and dimensions.
|
|
331
|
-
- SAM 3 and BiRefNet are flat-priced; Pixal3D pricing changes with `shapeResolution`.
|
|
331
|
+
- SAM 3 and BiRefNet are flat-priced; Pixal3D pricing changes with `shapeResolution`. `--music` uses MiniMax Music 3 by default (`-m turbo` for ACE-Step); use `--speech --speech-mode voice|clone|design` for Qwen3-TTS. Read [`references/models.md`](./references/models.md) before these modes: it covers promptless mesh/cutout controls, Music 3 section tags, exact speech scripts, studio voices, and 3โ30s clone recordings. Speech never accepts music duration or diffusion controls.
|
|
332
332
|
|
|
333
333
|
### Photobooth vs. context editing
|
|
334
334
|
|
|
@@ -369,7 +369,7 @@ H3 r2v accepts up to **9 images** (`--ref` then repeatable `-c`), **3 videos** (
|
|
|
369
369
|
|
|
370
370
|
[Personal LoRA library management](./references/personal-loras.md) covers imports, consent, status and compatible models. **MiniMax H3 is the only video family that loads LoRAs**, including its FastH3 audio-to-video modes. Attach them with the same repeatable `--lora <id> --lora-strength <n>` arguments the image models take, and name the explicit H3 mode in the same command โ availability differs per mode, and bare `-m minimax-h3` cannot be validated. Video LoRAs are positive-only: a negative value is not an inverse effect and `0` is off, unlike the bipolar Krea 2 image sliders. Omit `--lora-strengths` to apply each adapter's catalog default rather than the worker's 1.0 fallback. `h3-realism-people` needs its trigger word `r34l1sm` near the FRONT of the prompt or it renders as ordinary H3 with no error. The CLI validates every id against the live catalog for the model you selected, so a wrong id fails before it costs a render instead of being dropped silently. LTX, WAN, Seedance, and HappyHorse load none. Read [`references/h3-video-loras.md`](./references/h3-video-loras.md) for per-mode availability and ranges.
|
|
371
371
|
|
|
372
|
-
**H3 requires MiniMax's official ordered-field prompt contract.** Standard, Balanced, LightX2V Turbo, and FastH3 T2V/I2V/L2V/FLF2V (and the FastH3 audio modes, with the I2V or FLF2V preamble when frames are supplied) use `integrated_multimodal_description`, `overall_soundscape`, then `non_diegetic_music`, with the mode-specific alignment preamble for endpoint-conditioned modes. Use `[Shot N]` notation, stable `(S1)` speaker IDs, and dialogue as `<d>[Language] words</d>`. Preserve supplied dialogue exactly; author one concise line only when the user explicitly asks for speech/dialogue/lyrics without supplying words, and otherwise invent no speech. Use `<scenetrans>` at both connecting points when one line crosses a cut and `<cutoff>` only when the video ending truncates speech. Do not substitute quoted prose, bracketed timecode lists, or tokenizer-internal `<|...|>` markers. Ref2VA uses its separate six-field contract and exact task/retention vocabulary; loose video references do not promise editing or continuation. Negative direction belongs inside the structured prompt because there is no negative-prompt field. **Keyframes:** when one H3 clip must pass through extra images at chosen moments, add repeatable `--keyframe image@seconds` (up to 8, strictly inside the clip; i2v/flf2v, FastH3 Sound to Video, and Ref2VA only) and make the clip long enough to hold them.
|
|
372
|
+
**H3 requires MiniMax's official ordered-field prompt contract.** Standard, Balanced, LightX2V Turbo, and FastH3 T2V/I2V/L2V/FLF2V (and the FastH3 audio modes, with the I2V or FLF2V preamble when frames are supplied) use `integrated_multimodal_description`, `overall_soundscape`, then `non_diegetic_music`, with the mode-specific alignment preamble for endpoint-conditioned modes. Use `[Shot N]` notation, stable `(S1)` speaker IDs, and dialogue as `<d>[Language] words</d>`. Preserve supplied dialogue exactly; author one concise line only when the user explicitly asks for speech/dialogue/lyrics without supplying words, and otherwise invent no speech. Use `<scenetrans>` at both connecting points when one line crosses a cut and `<cutoff>` only when the video ending truncates speech. Do not substitute quoted prose, bracketed timecode lists, or tokenizer-internal `<|...|>` markers. Ref2VA uses its separate six-field contract and exact task/retention vocabulary; loose video references do not promise editing or continuation. Negative direction belongs inside the structured prompt because there is no negative-prompt field. **Keyframes:** when one H3 clip must pass through extra images at chosen moments, add repeatable `--keyframe image@seconds` (up to 8, strictly inside the clip; i2v/flf2v, FastH3 Sound to Video, and Ref2VA only) and make the clip long enough to hold them. Name each keyframe `<Picture N>`, numbered in time order after the mode's own pictures (the first/last frame or the Ref2VA references), list it in the alignment line (Ref2VA: a keyframe entry, `keyframe completion`, and a retention entry), and describe what it shows where it lands, because H3's text encoder never sees keyframe images; start a new shot at a keyframe that changes the angle, place, or light. Two are included in the price; each extra keyframe adds a little. Read [`references/video-prompting.md`](./references/video-prompting.md) ยง MiniMax H3 Prompting before writing any H3 prompt.
|
|
373
373
|
|
|
374
374
|
For an H3 prompt-only request, the general prompt-authoring rule above requires returning only the applicable ordered-field contract. The fields themselves are the directly runnable deliverable; do not wrap them in commentary.
|
|
375
375
|
|
|
@@ -417,7 +417,7 @@ On a **Sogni Unlimited** subscription, Sogni-hosted (Supernet) image, video, and
|
|
|
417
417
|
|
|
418
418
|
**Do not infer a Spark charge from `tokenType: "spark"`.** `tokenType` is the quote/accounting denomination and may remain `spark` on a covered Unlimited job. Billing is decided separately by the server's `paymentModel`: `subscription` means the artist Spark/SOGNI debit was skipped; `paid_spark`, `free_spark`, or `sogni` means token billing. If a result does not expose `paymentModel`, treat the payment source as unknown rather than warning that Spark was spent. Check the structured subscription state or transaction history when available. A successful request made with `--billing-mode subscription` is covered: if the server cannot use Unlimited, it rejects the request with `4078` or `4080` instead of silently falling back to Spark.
|
|
419
419
|
|
|
420
|
-
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
|
|
420
|
+
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).
|
|
421
421
|
|
|
422
422
|
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:
|
|
423
423
|
|
|
@@ -476,7 +476,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
|
|
|
476
476
|
- **Error 4061 / too many app IDs:** the CLI leases stable IDs from the persistent pool in `~/.config/sogni/app-ids/`. Do not delete that directory between runs. For ephemeral/container homes, set the same `SOGNI_APP_ID` on every session. An existing block may require waiting before retrying after upgrading.
|
|
477
477
|
- **Kicked mid-render / SWITCH_CONNECTION 4015:** two processes shared one app ID. The slot pool prevents this for concurrent CLI runs; if a long-lived daemon also uses this account, give it its own pinned `SOGNI_APP_ID`.
|
|
478
478
|
- **Video size errors:** sizes are model-specific (WAN 2.2 รท16, sides 480โ1536, at most 1,048,576 pixels, so no 1080p; Wan 3 uses its exact 480P/720P/1080P ratio buckets, 720P unless `--target-resolution 1080`; LTX รท64, long side โค2048). The CLI auto-adjusts for local refs; `--strict-size` makes it fail with a suggested size instead. Details in [`references/models.md`](./references/models.md).
|
|
479
|
-
- **Timeouts / no workers:** a timeout never cancels; the project finishes on Sogni and `sogni-agent --result <id>` fetches it (`details.resultCommands`). For long videos use `--detach`, not a large `-t`. `--status <id>` says whether it waits on the plan limit or on workers; for network status see https://sogni.ai.
|
|
479
|
+
- **Timeouts / no workers:** a timeout never cancels; the project finishes on Sogni and `sogni-agent --result <id>` fetches it (`details.resultCommands`). For long videos use `--detach` and then `--result <id> --wait`, not a large `-t`. On `errorType: "RATE_LIMITED"` (HTTP 429), make no Sogni request for `metadata.retryAfterSeconds`. `--status <id>` says whether it waits on the plan limit or on workers; for network status see https://sogni.ai.
|
|
480
480
|
|
|
481
481
|
## Reference Index (read before acting)
|
|
482
482
|
|
|
@@ -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.54.
|
|
5
|
+
"version": "3.54.4",
|
|
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",
|
|
@@ -158,18 +158,24 @@ export const TOOLS = [
|
|
|
158
158
|
{
|
|
159
159
|
name: 'generate_music',
|
|
160
160
|
description:
|
|
161
|
-
'Generate music/audio from a text prompt. Omit lyrics for an instrumental. ' +
|
|
162
|
-
'
|
|
161
|
+
'Generate music/audio from a text prompt with MiniMax Music 3 by default. Omit lyrics for an instrumental. ' +
|
|
162
|
+
'Music 3 plays 10-300 seconds (default 60; the length is a ceiling, so a song may end early). ' +
|
|
163
|
+
'Put tempo and key in the prompt; with no music_model, bpm and keyscale are added to the prompt for you. ' +
|
|
164
|
+
'Prefer output_path (absolute .mp3/.wav/.flac).',
|
|
163
165
|
inputSchema: {
|
|
164
166
|
type: 'object',
|
|
165
167
|
properties: {
|
|
166
|
-
prompt: str('Style/mood description'),
|
|
168
|
+
prompt: str('Style/mood description; include tempo and key, e.g. "warm acoustic ballad, 92 BPM, A minor"'),
|
|
167
169
|
output_path: str('Absolute audio file path to save (optional)'),
|
|
168
|
-
lyrics: str('Song lyrics (optional)'),
|
|
169
|
-
duration: num('Seconds, 10-600
|
|
170
|
-
bpm: num('Beats per minute (30-300)'),
|
|
171
|
-
keyscale: str('Key/scale, e.g. "C major"'),
|
|
172
|
-
music_model: str(
|
|
170
|
+
lyrics: str('Song lyrics (optional). Music 3: plain section tags on their own lines ([Verse], [Chorus]), no modifiers inside brackets'),
|
|
171
|
+
duration: num('Seconds. Music 3 (default): 10-300, default 60. ACE-Step turbo/sft: 10-600, default 30'),
|
|
172
|
+
bpm: num('Beats per minute (30-300). An exact control only on ACE-Step (music_model turbo or sft)'),
|
|
173
|
+
keyscale: str('Key/scale, e.g. "C major". An exact control only on ACE-Step (music_model turbo or sft)'),
|
|
174
|
+
music_model: str(
|
|
175
|
+
'music3 (default): MiniMax Music 3. turbo: ACE-Step 1.5 XL Turbo, a cheap draft with exact BPM/key and up to 600 s. ' +
|
|
176
|
+
'sft: ACE-Step 1.5 XL SFT. Full model IDs (minimax_music3, ace_step_1.5_xl_turbo, ...) also work. ' +
|
|
177
|
+
'Leave unset unless the user asks for ACE-Step, a draft, or a track over 300 s.',
|
|
178
|
+
),
|
|
173
179
|
audio_format: { type: 'string', enum: ['mp3', 'flac', 'wav'] },
|
|
174
180
|
timeout_seconds: num('Generation timeout override (default 600)'),
|
|
175
181
|
},
|
|
@@ -2816,7 +2816,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2816
2816
|
"contractId": "animate_photo_v1",
|
|
2817
2817
|
"version": "1.3.0",
|
|
2818
2818
|
"toolName": "animate_photo",
|
|
2819
|
-
"baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes โ describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words รท 3 + beat count โค clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\nโ there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments โ do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total โ 4 segments ร 15s, NOT 6ร10s or 12ร5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES โ use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT โ one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING โ when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required โ pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field โ if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips โ call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns โ that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first โ the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn animate_photo keyframes work with every MiniMax H3 image-to-video and first-and-last-frame selector,\nwith any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. They are the\nH3 way to make one continuous clip pass through several images. Without an explicit MiniMax H3 request,\na multi-image sequence keeps the adjacent-clip chain described above.",
|
|
2819
|
+
"baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes โ describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words รท 3 + beat count โค clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\nโ there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments โ do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total โ 4 segments ร 15s, NOT 6ร10s or 12ร5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES โ use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT โ one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING โ when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required โ pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field โ if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips โ call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns โ that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first โ the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn animate_photo keyframes work with every MiniMax H3 image-to-video and first-and-last-frame selector,\nwith any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. They are the\nH3 way to make one continuous clip pass through several images. Without an explicit MiniMax H3 request,\na multi-image sequence keeps the adjacent-clip chain described above.",
|
|
2820
2820
|
"parameterDocs": {
|
|
2821
2821
|
"keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On animate_photo every MiniMax H3 image-to-video and first-and-last-frame selector takes keyframes, with any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. When one continuous H3 clip should pass through extra images, pass them here on that single call instead of chaining sourceImageIndices clips.",
|
|
2822
2822
|
"sourceImageIndices": "Batch source image indices. Read startIndex from prior generate_image/edit_image result. Negative = uploaded images (-1 = first upload). May be paired with frameRole=\"end\" only for explicit last/end-frame-only fan-out.",
|
|
@@ -2841,9 +2841,9 @@ const PROMPT_CONTRACTS = [
|
|
|
2841
2841
|
"contractId": "generate_video_v1",
|
|
2842
2842
|
"version": "1.5.0",
|
|
2843
2843
|
"toolName": "generate_video",
|
|
2844
|
-
"baseDescription": "generate_video produces text-to-video clips and multimodal reference videos.\nUse for text-only video generation with no source image input. For Seedance and Wan 3, also\nuse this tool when uploaded/generated images, videos, or audio are loose references. Use\nanimate_photo when a source image must become the first frame of an LTX/WAN animation.\n\nWAN 3: Use videoModel=\"wan3.0-video\" for explicit Wan 3 requests. The same canonical model\nsupports text, up to 10 reference images, 5 reference videos, and 5 reference audios. Refer\nto loose assets in English prompts as Image 1, Video 1, and Audio 1, numbered independently\nby type. Do not bracket or @-prefix these identifiers. Wan 3 renders 2-30 seconds at fixed\n30 fps, offers 480P/720P/1080P and 16:9/4:3/1:1/3:4/9:16, and can toggle native audio.\n\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook โ world โ disruption โ escalation โ reveal โ title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements โ describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words รท 3 + beats โค duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are
|
|
2844
|
+
"baseDescription": "generate_video produces text-to-video clips and multimodal reference videos.\nUse for text-only video generation with no source image input. For Seedance and Wan 3, also\nuse this tool when uploaded/generated images, videos, or audio are loose references. Use\nanimate_photo when a source image must become the first frame of an LTX/WAN animation.\n\nWAN 3: Use videoModel=\"wan3.0-video\" for explicit Wan 3 requests. The same canonical model\nsupports text, up to 10 reference images, 5 reference videos, and 5 reference audios. Refer\nto loose assets in English prompts as Image 1, Video 1, and Audio 1, numbered independently\nby type. Do not bracket or @-prefix these identifiers. Wan 3 renders 2-30 seconds at fixed\n30 fps, offers 480P/720P/1080P and 16:9/4:3/1:1/3:4/9:16, and can toggle native audio.\n\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook โ world โ disruption โ escalation โ reveal โ title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements โ describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words รท 3 + beats โค duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn generate_video only the MiniMax H3 reference-to-video selectors take keyframes, never text-to-video.\nKeyframe images are not references: they do not go in referenceImageIndices or the reference map, and\nR2V still needs its own image or video reference. The prompt names each keyframe <Picture N>, numbered\nafter the reference pictures in time order.",
|
|
2845
2845
|
"parameterDocs": {
|
|
2846
|
-
"keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On generate_video only the MiniMax H3 reference-to-video selectors (minimax-h3-r2v and its turbo, balanced and two-stage forms) take keyframes; text-to-video never does, and reference-to-video has no first or last frame to pin. Keyframes are not references: they do not go in referenceImageIndices
|
|
2846
|
+
"keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On generate_video only the MiniMax H3 reference-to-video selectors (minimax-h3-r2v and its turbo, balanced and two-stage forms) take keyframes; text-to-video never does, and reference-to-video has no first or last frame to pin. Keyframes are not references: they do not go in referenceImageIndices or count toward the reference limits, and R2V still needs its own image or video reference. The prompt names each keyframe <Picture N>, numbered after the reference pictures in time order.",
|
|
2847
2847
|
"prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
|
|
2848
2848
|
"duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
|
|
2849
2849
|
}
|
|
@@ -2946,7 +2946,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2946
2946
|
"contractId": "sound_to_video_v1",
|
|
2947
2947
|
"version": "1.2.0",
|
|
2948
2948
|
"toolName": "sound_to_video",
|
|
2949
|
-
"baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video โ it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music โ sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 โ never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are
|
|
2949
|
+
"baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video โ it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music โ sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 โ never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn sound_to_video every MiniMax H3 audio selector takes keyframes: the audio drives the performance and\nthe keyframes pin how it looks at their times. imageIndex follows endImageIndex (-1 = first upload), not\nthe 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the audio\nselectors render the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every\nkeyframe must fall inside that clip.",
|
|
2950
2950
|
"parameterDocs": {
|
|
2951
2951
|
"keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On sound_to_video every MiniMax H3 audio selector takes keyframes (image + audio, first and last frame + audio, and audio only, each one- and two-stage). imageIndex follows endImageIndex here too (-1 = first upload), not the 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the clip is then the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every keyframe must fall inside that. Without duration the host sizes the clip itself (to the audio from audioStart, or a 5.17 s default) and refuses keyframes that fall outside it.",
|
|
2952
2952
|
"audioSource": "Uploaded audio file or reference to a prior generate_music result. Auto-detected when omitted after generate_music.",
|
package/llm.txt
CHANGED
|
@@ -17,7 +17,7 @@ masks, and promptless FlashVSR video upscaling to 1080p/1440p.
|
|
|
17
17
|
Direct CLI: Pixal3D uses `--image-to-3d original.png -o object.glb` (add
|
|
18
18
|
`--left-view`, `--back-view`, `--right-view` for multi-view); BiRefNet
|
|
19
19
|
uses `--remove-background original.png -o cutout.png` (add `--matte` for a mask).
|
|
20
|
-
MiniMax Music 3
|
|
20
|
+
Music uses `--music`, MiniMax Music 3 by default (`-m turbo` for ACE-Step); Qwen3-TTS uses `--speech` with
|
|
21
21
|
`--speech-mode voice|clone|design`. Read the model reference for required inputs,
|
|
22
22
|
allowed controls, and hosted alternatives.
|
|
23
23
|
|
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.54.
|
|
5
|
+
"version": "3.54.4",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"defaultMusicModel": {
|
|
29
29
|
"type": "string",
|
|
30
|
-
"default": "
|
|
31
|
-
"description": "Default model for direct music/audio generation."
|
|
30
|
+
"default": "minimax_music3",
|
|
31
|
+
"description": "Default model for direct music/audio generation: MiniMax Music 3 (minimax_music3). Set ace_step_1.5_xl_turbo or ace_step_1.5_xl_sft to default to ACE-Step instead."
|
|
32
32
|
},
|
|
33
33
|
"videoModels": {
|
|
34
34
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.54.
|
|
3
|
+
"version": "3.54.4",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, 3D, speech, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"test:coverage": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
|
|
28
28
|
"test:coverage:full": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
|
|
29
29
|
"build:mcpb": "node scripts/build-mcpb.mjs",
|
|
30
|
+
"publish:clawhub": "node scripts/publish-clawhub.mjs",
|
|
31
|
+
"check:clawhub": "node scripts/publish-clawhub.mjs --check",
|
|
30
32
|
"prepack": "npm run check:version-sync && npm run check:creative-agent-source:strict && SOGNI_REQUIRE_RUNTIME_SYNC=1 npm run check:creative-agent-runtime",
|
|
31
33
|
"version": "npm run sync:version",
|
|
32
34
|
"prepare": "husky",
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
"media-utilities.mjs"
|
|
101
103
|
],
|
|
102
104
|
"dependencies": {
|
|
103
|
-
"@sogni-ai/sogni-intelligence-client": "4.
|
|
105
|
+
"@sogni-ai/sogni-intelligence-client": "4.7.1",
|
|
104
106
|
"execa": "^10.0.1",
|
|
105
107
|
"json5": "^2.2.3",
|
|
106
108
|
"sharp": "0.35.4"
|
|
@@ -45,7 +45,7 @@ Honor requests to wait for user input; model-specific policies still apply.
|
|
|
45
45
|
- Wan 3.0 Enhanced through MuleRouter: `sogni-agent --video -m wan3-enhanced --target-resolution 1080 --smart-duration --wan3-ratio adaptive "a presenter says 'Welcome' in a detailed studio"`
|
|
46
46
|
- One-click image-folder loop: `/sogni-creative-agent:loop-maker ./images`
|
|
47
47
|
- One-click image-folder loop in Codex: `$sogni-creative-agent:loop-maker ./images`
|
|
48
|
-
- Music: `sogni-agent --music "ambient drone,
|
|
48
|
+
- Music (MiniMax Music 3 by default): `sogni-agent --music --duration 30 "ambient drone, 60 BPM, D minor"`
|
|
49
49
|
- Hosted workflow: `sogni-agent --api-workflow storyboard-video --storyboard-frames 6 "9:16 bakery launch video"`
|
|
50
50
|
- List inbound media the user sent (Telegram etc.): `sogni-agent --json --list-media`
|
|
51
51
|
- Inspect the last render: `sogni-agent --last --json`
|
|
@@ -81,7 +81,7 @@ Pixal3D: `--image-to-3d original.png --mesh-faces 30000 -o object.glb`; add
|
|
|
81
81
|
subject's own sides: the left view shows it facing screen-left).
|
|
82
82
|
BiRefNet: `--remove-background original.png -o cutout.png`; add `--matte`
|
|
83
83
|
for a soft mask. Both are promptless and preserve the original input bytes.
|
|
84
|
-
Music
|
|
84
|
+
Music: `--music` uses MiniMax Music 3 (`-m turbo` for ACE-Step); speech: `--speech --speech-mode voice|clone|design`.
|
|
85
85
|
Read `../../references/models.md` for exact controls, studio voices, clone
|
|
86
86
|
recordings, and Music 3 section tags before generating. Discover 3D with
|
|
87
87
|
`--search-models pixal3d` or `--model-media model`. For explorable worlds,
|
package/references/hosted-api.md
CHANGED
|
@@ -370,8 +370,10 @@ H3 clip. Its schema description, identical on all three tools:
|
|
|
370
370
|
frame, or more than 8 is refused with a `PARAMETER_INVALID` error that says
|
|
371
371
|
what to change; nothing is clamped or dropped. Set `duration` so every keyframe
|
|
372
372
|
falls inside the clip.
|
|
373
|
-
- Keyframes add to the first and last frame and are
|
|
374
|
-
|
|
373
|
+
- Keyframes add to the first and last frame and are not references (on
|
|
374
|
+
`generate_video` they do not go in `referenceImageIndices`), but the H3
|
|
375
|
+
prompt names each one `<Picture N>`, numbered in time order after the
|
|
376
|
+
first/last-frame or reference pictures.
|
|
375
377
|
- Price: two keyframes are included; each additional keyframe adds 0.75 s of
|
|
376
378
|
output time on FastH3 (0.3 s on other tiers) at the job's rate.
|
|
377
379
|
- Error 4100 means no online worker serving that model can pin keyframes right
|
|
@@ -217,6 +217,9 @@ Two things to plan for:
|
|
|
217
217
|
- **It casts a new voice every time.** The same character will sound like a
|
|
218
218
|
different person in every scene. If a character recurs, clone a voice
|
|
219
219
|
(below) and plan from the start for how their lines get into the clips.
|
|
220
|
+
Qwen3-TTS voice *design* has the same trap: a narrator designed from its
|
|
221
|
+
description for each place is a different man in each place. Design the
|
|
222
|
+
voice once, keep that take, and clone it for every line.
|
|
220
223
|
- **Loudness varies enormously between clips.** Measured across 74 clips in one
|
|
221
224
|
build: a 25.5 dB spread, โ39.5 dB to โ14.0 dB mean. Two clips in the same
|
|
222
225
|
scene were 18 dB apart, which is roughly an eighth of the perceived loudness โ
|
|
@@ -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
|
-
#
|
|
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`,
|
|
75
|
-
|
|
76
|
-
|
|
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
|
|
95
|
+
later, and `--wait` needs 5.58.0; an older installation says so and asks for a
|
|
96
|
+
skill update.
|
package/references/loop-maker.md
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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 \
|