@sogni-ai/sogni-creative-agent-skill 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +1 -1
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +9 -2
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +7 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +11 -0
- package/README.md +2 -0
- package/SKILL.md +2 -1
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +9 -7
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/models.md +9 -2
- package/references/video-prompting.md +7 -0
- package/skill-package.json +1 -1
- package/sogni-agent.mjs +68 -3
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
|
|
|
3
3
|
description: "Generate and edit images, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, apply a saved identity, or refine an earlier Sogni result."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: "3.
|
|
6
|
+
version: "3.47.0"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -695,11 +695,18 @@ video-conditioned R2V requires a worker above 40 GB.
|
|
|
695
695
|
is fixed at 8 steps with Euler/simple; Turbo is fixed at 4 steps with the
|
|
696
696
|
`simple` scheduler; only Turbo's sampler has the three
|
|
697
697
|
explicit variants above.
|
|
698
|
-
- **
|
|
699
|
-
|
|
698
|
+
- **2K output is an opt-in delivery switch.** `--2k` (`--output-scale 2`) keeps
|
|
699
|
+
the requested canvas, length and audio and delivers the clip at twice its
|
|
700
|
+
width and height (1344×768 → 2688×1536; Ref2VA Turbo 960×544 → 1920×1088)
|
|
701
|
+
through a learned latent enlargement plus a short refinement on the worker.
|
|
702
|
+
Every H3 mode and tier accepts it; it adds 10 Spark per second at
|
|
703
|
+
544/768p-class sizes (6 at 480p) and needs 2K-capable workers, which the
|
|
704
|
+
server confirms before charging. This is Sogni's own 2K path; MiniMax's
|
|
705
|
+
hosted 2K stage is still not part of the open release.
|
|
700
706
|
|
|
701
707
|
```bash
|
|
702
708
|
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
|
|
709
|
+
sogni-agent -q --video -m minimax-h3-fasth3-turbo --2k --duration 8 -o ./video-2k.mp4 "<three-field H3 prompt>"
|
|
703
710
|
sogni-agent -q --video -m minimax-h3-i2v --ref first.png --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
|
|
704
711
|
sogni-agent -q --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
|
|
705
712
|
sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-video motion.mp4 --ref-audio voice.m4a -o ./video.mp4 "<six-field Ref2VA prompt>"
|
|
@@ -123,6 +123,13 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
|
123
123
|
off-grid explicit `--frames` is a hard error.
|
|
124
124
|
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
125
125
|
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
126
|
+
- **2K output is a delivery switch, not a canvas.** `--2k` (`--output-scale 2`)
|
|
127
|
+
keeps the same canvas, length and audio and delivers the clip at twice its
|
|
128
|
+
width and height (1344×768 → 2688×1536); every H3 mode and tier accepts it.
|
|
129
|
+
Do not enlarge `-w`/`-h` to reach 2K — the pixel budget still applies to the
|
|
130
|
+
requested canvas. It costs +10 Spark per second at 544/768p-class sizes
|
|
131
|
+
(+6 at 480p) and needs the 2K-capable worker fleet; use it only when the
|
|
132
|
+
user asks for 2K, 1440p-class or extra-sharp output.
|
|
126
133
|
- **20 steps for Standard; 8 for Balanced; 4 for both Turbo engines; guidance/CFG 1.** Do not
|
|
127
134
|
send steps, guidance, scheduler, or a **negative prompt**. Standard and
|
|
128
135
|
Balanced accept no sampler override; Balanced is fixed to Euler/simple.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.47.0",
|
|
4
4
|
"description": "Sogni Creative Agent: image, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sogni AI",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [3.47.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.46.0...v3.47.0) (2026-09-12)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* Add `--output-scale 2` (alias `--2k`) for MiniMax H3 2K delivery: the clip renders on the requested canvas and comes back at twice its width and height (1344x768 becomes 2688x1536) with the same length and audio, for +10 Spark per second at 544/768p-class sizes and +6 at 480p. Other models refuse the flag by name. While Sogni holds 2K behind its "available soon" message, the CLI reports that refusal as `MODEL_UNAVAILABLE` with a hint to retry at the standard size.
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* Align the public runtime with Sogni Client 5.46.0 and Intelligence Client 3.33.0, moving the exact pin, `skill-package.json` and the sogni-client override together. 5.46.0 stops the SDK cancelling a project after its render moves to another worker, which killed the live retry.
|
|
10
|
+
* The bundled creative-agent runtime is regenerated from 1.65.0; its public contracts are unchanged.
|
|
11
|
+
|
|
1
12
|
## [3.46.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.43.0...v3.46.0) (2026-09-11)
|
|
2
13
|
|
|
3
14
|
3.44.0 and 3.45.0 were prepared but never published to npm; this release carries their changes too, so 3.43.0 is the last version npm actually shipped.
|
package/README.md
CHANGED
|
@@ -496,6 +496,7 @@ sogni-agent --video -m minimax-h3-flf2v-turbo --ref first.png --ref-end last.png
|
|
|
496
496
|
sogni-agent --video -m minimax-h3-fasth3-turbo --duration 8 "<three-field H3 prompt>"
|
|
497
497
|
sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
|
|
498
498
|
sogni-agent --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png --duration 8 "<FLF2V preamble plus three-field H3 prompt>"
|
|
499
|
+
sogni-agent --video -m minimax-h3-fasth3-turbo --2k --duration 8 "<three-field H3 prompt>" # 2K: delivered at 2x the canvas
|
|
499
500
|
|
|
500
501
|
# Image-to-video (i2v; defaults to wan_v2.2-14b-fp8_i2v_lightx2v)
|
|
501
502
|
sogni-agent --video --ref cat.jpg "gentle camera pan"
|
|
@@ -611,6 +612,7 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
|
|
|
611
612
|
| `--lyrics`, `--bpm`, `--keyscale`, `--timesig` | Music generation controls |
|
|
612
613
|
| `--ref`, `-c`, `--ref-audio`, `--ref-video` | Frame/loose image/audio/video references; audio/video repeat for H3 r2v and Seedance loose refs |
|
|
613
614
|
| `--target-resolution <px>` | Target the short side, preserving aspect ratio |
|
|
615
|
+
| `--output-scale <1\|2>`, `--2k` | MiniMax H3 only: deliver the clip at twice the requested canvas (2K); +10 Spark/s at 544/768p class, +6 at 480p |
|
|
614
616
|
| `--workflow <type>` | Force `t2v`, `i2v`, `r2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
|
|
615
617
|
| `--wan3-ratio`, `--smart-duration`, `--reference-file-url`, `--reference-link-url`, `--watermark` | Wan 3 adaptive/fixed ratio, smart timing, document/web context, and watermark controls |
|
|
616
618
|
| `--expand-prompt`, `--no-expand-prompt` | Enable provider prompt expansion for direct Wan 3 video, or preserve the exact submitted prompt |
|
package/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
3
|
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports 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/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.
|
|
5
|
+
version: "3.47.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -234,6 +234,7 @@ sogni-agent --video -m minimax-h3-r2v-turbo -w 960 -h 544 --ref identity.png -c
|
|
|
234
234
|
sogni-agent --video -m minimax-h3-fasth3-turbo --duration 8 "<three-field H3 prompt>"
|
|
235
235
|
sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
|
|
236
236
|
sogni-agent --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png --duration 8 "<FLF2V preamble plus three-field H3 prompt>"
|
|
237
|
+
sogni-agent --video -m minimax-h3-fasth3-turbo --2k --duration 8 "<three-field H3 prompt>" # 2K: any H3 tier, delivered at 2x the canvas, +10 Spark/s
|
|
237
238
|
|
|
238
239
|
# HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
|
|
239
240
|
# i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.47.0",
|
|
6
6
|
"description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
|
|
7
7
|
"author": { "name": "Sogni AI", "url": "https://sogni.ai" },
|
|
8
8
|
"homepage": "https://sogni.ai",
|
|
@@ -2499,15 +2499,16 @@ const PROMPT_CONTRACTS = [
|
|
|
2499
2499
|
},
|
|
2500
2500
|
{
|
|
2501
2501
|
"contractId": "animate_photo_v1",
|
|
2502
|
-
"version": "1.
|
|
2502
|
+
"version": "1.1.0",
|
|
2503
2503
|
"toolName": "animate_photo",
|
|
2504
|
-
"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.",
|
|
2504
|
+
"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 2K OUTPUT: outputScale=2 is available only on the MiniMax H3 selectors. It renders on\nthe normal H3 canvas and delivers the clip at twice its width and height (1344x768 becomes\n2688x1536) with the same length and audio, for +10 Spark per second (+6 at 480p). Set\noutputScale=2 only when the user asks for 2K, 1440p-class or extra-sharp H3 output; keep\ntargetResolution at 768 or omit it, never set 1080p, 1440p or 4K for H3, and leave outputScale\nunset otherwise. Do not set it for any other model.",
|
|
2505
2505
|
"parameterDocs": {
|
|
2506
2506
|
"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.",
|
|
2507
2507
|
"prompts": "Per-clip prompt array. Length MUST equal sourceImageIndices.length when both are set.",
|
|
2508
2508
|
"duration": "Per-clip duration in seconds. Target 15s when dialogue is involved and total length is given without per-clip spec.",
|
|
2509
2509
|
"frameRole": "Set to \"end\" for explicit last/end-frame-only fan-out; set to \"both\" for first+last frame transitions using sourceImageIndices + endImageIndices.",
|
|
2510
|
-
"endImageIndices": "End frames for adjacent-chain transitions. N images → N-1 clips."
|
|
2510
|
+
"endImageIndices": "End frames for adjacent-chain transitions. N images → N-1 clips.",
|
|
2511
|
+
"outputScale": "MiniMax H3 only: 2 = 2K delivery (twice the width and height, same length and audio, +10 Spark/s, +6 at 480p). Set only when the user asks for 2K, 1440p-class or extra-sharp H3 output; otherwise omit."
|
|
2511
2512
|
}
|
|
2512
2513
|
},
|
|
2513
2514
|
{
|
|
@@ -2523,12 +2524,13 @@ const PROMPT_CONTRACTS = [
|
|
|
2523
2524
|
},
|
|
2524
2525
|
{
|
|
2525
2526
|
"contractId": "generate_video_v1",
|
|
2526
|
-
"version": "1.
|
|
2527
|
+
"version": "1.3.0",
|
|
2527
2528
|
"toolName": "generate_video",
|
|
2528
|
-
"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.",
|
|
2529
|
+
"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 2K OUTPUT: outputScale=2 is available only on the MiniMax H3 selectors. It renders on\nthe normal H3 canvas and delivers the clip at twice its width and height (1344x768 becomes\n2688x1536) with the same length and audio, for +10 Spark per second (+6 at 480p). Set\noutputScale=2 only when the user asks for 2K, 1440p-class or extra-sharp H3 output; keep\ntargetResolution at 768 or omit it, never set 1080p, 1440p or 4K for H3, and leave outputScale\nunset otherwise. Do not set it for any other model.",
|
|
2529
2530
|
"parameterDocs": {
|
|
2530
2531
|
"prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
|
|
2531
|
-
"duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
|
|
2532
|
+
"duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling.",
|
|
2533
|
+
"outputScale": "MiniMax H3 only: 2 = 2K delivery (twice the width and height, same length and audio, +10 Spark/s, +6 at 480p). Set only when the user asks for 2K, 1440p-class or extra-sharp H3 output; otherwise omit."
|
|
2532
2534
|
}
|
|
2533
2535
|
},
|
|
2534
2536
|
{
|
|
@@ -2658,7 +2660,7 @@ const PROMPT_CONTRACTS = [
|
|
|
2658
2660
|
"parameterDocs": {
|
|
2659
2661
|
"prompt": "The literal words to speak, verbatim. Not a description of the audio.",
|
|
2660
2662
|
"voiceDescription": "Delivery direction for model=\"voice\"; the speaker to invent for model=\"design\". Never sent with model=\"clone\".",
|
|
2661
|
-
"voiceSourceIndex": "
|
|
2663
|
+
"voiceSourceIndex": "Which audio holds the voice to clone, same numbering as other tools use for audio: -1 is the first upload, -2 the second, and 0-based non-negative indices address audio generated earlier. Required for model=\"clone\".",
|
|
2662
2664
|
"voiceTranscript": "What the uploaded clip says. Optional, but it makes the clone markedly closer to the source."
|
|
2663
2665
|
}
|
|
2664
2666
|
},
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.47.0",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.47.0",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
"sam-segmentation.mjs"
|
|
100
100
|
],
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@sogni-ai/sogni-intelligence-client": "3.
|
|
102
|
+
"@sogni-ai/sogni-intelligence-client": "3.33.0",
|
|
103
103
|
"execa": "^10.0.1",
|
|
104
104
|
"json5": "^2.2.3",
|
|
105
105
|
"sharp": "0.35.4"
|
|
106
106
|
},
|
|
107
107
|
"overrides": {
|
|
108
|
-
"@sogni-ai/sogni-client": "5.
|
|
108
|
+
"@sogni-ai/sogni-client": "5.46.0"
|
|
109
109
|
},
|
|
110
110
|
"openclaw": {
|
|
111
111
|
"extensions": [
|
package/references/models.md
CHANGED
|
@@ -695,11 +695,18 @@ video-conditioned R2V requires a worker above 40 GB.
|
|
|
695
695
|
is fixed at 8 steps with Euler/simple; Turbo is fixed at 4 steps with the
|
|
696
696
|
`simple` scheduler; only Turbo's sampler has the three
|
|
697
697
|
explicit variants above.
|
|
698
|
-
- **
|
|
699
|
-
|
|
698
|
+
- **2K output is an opt-in delivery switch.** `--2k` (`--output-scale 2`) keeps
|
|
699
|
+
the requested canvas, length and audio and delivers the clip at twice its
|
|
700
|
+
width and height (1344×768 → 2688×1536; Ref2VA Turbo 960×544 → 1920×1088)
|
|
701
|
+
through a learned latent enlargement plus a short refinement on the worker.
|
|
702
|
+
Every H3 mode and tier accepts it; it adds 10 Spark per second at
|
|
703
|
+
544/768p-class sizes (6 at 480p) and needs 2K-capable workers, which the
|
|
704
|
+
server confirms before charging. This is Sogni's own 2K path; MiniMax's
|
|
705
|
+
hosted 2K stage is still not part of the open release.
|
|
700
706
|
|
|
701
707
|
```bash
|
|
702
708
|
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
|
|
709
|
+
sogni-agent -q --video -m minimax-h3-fasth3-turbo --2k --duration 8 -o ./video-2k.mp4 "<three-field H3 prompt>"
|
|
703
710
|
sogni-agent -q --video -m minimax-h3-i2v --ref first.png --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
|
|
704
711
|
sogni-agent -q --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
|
|
705
712
|
sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-video motion.mp4 --ref-audio voice.m4a -o ./video.mp4 "<six-field Ref2VA prompt>"
|
|
@@ -123,6 +123,13 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
|
123
123
|
off-grid explicit `--frames` is a hard error.
|
|
124
124
|
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
125
125
|
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
126
|
+
- **2K output is a delivery switch, not a canvas.** `--2k` (`--output-scale 2`)
|
|
127
|
+
keeps the same canvas, length and audio and delivers the clip at twice its
|
|
128
|
+
width and height (1344×768 → 2688×1536); every H3 mode and tier accepts it.
|
|
129
|
+
Do not enlarge `-w`/`-h` to reach 2K — the pixel budget still applies to the
|
|
130
|
+
requested canvas. It costs +10 Spark per second at 544/768p-class sizes
|
|
131
|
+
(+6 at 480p) and needs the 2K-capable worker fleet; use it only when the
|
|
132
|
+
user asks for 2K, 1440p-class or extra-sharp output.
|
|
126
133
|
- **20 steps for Standard; 8 for Balanced; 4 for both Turbo engines; guidance/CFG 1.** Do not
|
|
127
134
|
send steps, guidance, scheduler, or a **negative prompt**. Standard and
|
|
128
135
|
Balanced accept no sampler override; Balanced is fixed to Euler/simple.
|
package/skill-package.json
CHANGED
package/sogni-agent.mjs
CHANGED
|
@@ -1206,6 +1206,7 @@ function computePromptHashSeed(opts) {
|
|
|
1206
1206
|
musicCreativity: opts.musicCreativity ?? null,
|
|
1207
1207
|
musicShift: opts.musicShift ?? null,
|
|
1208
1208
|
targetResolution: opts.targetResolution ?? null,
|
|
1209
|
+
...(opts.outputScale === 2 ? { outputScale: 2 } : {}),
|
|
1209
1210
|
loras: opts.loras || [],
|
|
1210
1211
|
loraStrengths: opts.loraStrengths || [],
|
|
1211
1212
|
refImage: opts.refImage || '',
|
|
@@ -1291,6 +1292,17 @@ function parseIntegerValue(raw, flagName) {
|
|
|
1291
1292
|
return num;
|
|
1292
1293
|
}
|
|
1293
1294
|
|
|
1295
|
+
// MiniMax H3 2K delivery (--output-scale 2 / --2k): the clip renders on the
|
|
1296
|
+
// requested canvas and is delivered at twice its width and height.
|
|
1297
|
+
function parseOutputScaleValue(raw, flagName) {
|
|
1298
|
+
const normalized = String(raw ?? '').trim().toLowerCase();
|
|
1299
|
+
if (normalized === '1' || normalized === '2') return Number(normalized);
|
|
1300
|
+
fatalCliError(`${flagName} must be 1 or 2 (2 delivers MiniMax H3 2K output).`, {
|
|
1301
|
+
code: 'INVALID_ARGUMENT',
|
|
1302
|
+
details: { flag: flagName, value: raw }
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1294
1306
|
function parsePositiveIntegerValue(raw, flagName, min = 1, max = Infinity) {
|
|
1295
1307
|
const num = parseIntegerValue(raw, flagName);
|
|
1296
1308
|
if (num < min) {
|
|
@@ -1530,6 +1542,19 @@ async function probeVideoUpscaleSource(buffer, sourceLabel) {
|
|
|
1530
1542
|
// restating a limit.
|
|
1531
1543
|
const VIDEO_UPSCALE_TOO_LONG_PATTERN = /This video is too long to upscale\b.*$/s;
|
|
1532
1544
|
|
|
1545
|
+
const MINIMAX_H3_OUTPUT_SCALE_UNAVAILABLE_MESSAGE = 'MiniMax H3 2K output is not available right now';
|
|
1546
|
+
|
|
1547
|
+
// Only Comfy workers 1.0.212+ render 2K; the socket refuses before reserving
|
|
1548
|
+
// funds when none is connected, so say so and point at the standard size.
|
|
1549
|
+
function annotateMiniMaxH3OutputScaleError(error) {
|
|
1550
|
+
const message = String(error?.message || error?.originalError?.message || '');
|
|
1551
|
+
if (error && typeof error === 'object' && message.includes(MINIMAX_H3_OUTPUT_SCALE_UNAVAILABLE_MESSAGE)) {
|
|
1552
|
+
if (!error.code || error.code === 'PROJECT_ERROR') error.code = 'MODEL_UNAVAILABLE';
|
|
1553
|
+
error.hint = 'Workers that render MiniMax H3 2K are not online right now, so nothing was charged. Retry without --2k for the standard size, or try again later.';
|
|
1554
|
+
}
|
|
1555
|
+
return error;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1533
1558
|
function annotateVideoUpscaleError(error) {
|
|
1534
1559
|
const message = String(error?.message || error?.originalError?.message || '');
|
|
1535
1560
|
if (error && typeof error === 'object' && message.includes(FLASHVSR_UNAVAILABLE_MESSAGE)) {
|
|
@@ -2892,6 +2917,7 @@ const options = {
|
|
|
2892
2917
|
duration: 5,
|
|
2893
2918
|
frames: null,
|
|
2894
2919
|
targetResolution: null, // Short-side target for video, preserving aspect ratio
|
|
2920
|
+
outputScale: 1, // MiniMax H3 delivery scale: 2 = 2K, twice the requested canvas
|
|
2895
2921
|
autoResizeVideoAssets: null,
|
|
2896
2922
|
estimateVideoCost: false,
|
|
2897
2923
|
showBalance: false,
|
|
@@ -3087,6 +3113,7 @@ const cliSet = {
|
|
|
3087
3113
|
duration: false,
|
|
3088
3114
|
frames: false,
|
|
3089
3115
|
targetResolution: false,
|
|
3116
|
+
outputScale: false,
|
|
3090
3117
|
autoResizeVideoAssets: false,
|
|
3091
3118
|
angles360Video: false,
|
|
3092
3119
|
videoModel: false,
|
|
@@ -3430,6 +3457,14 @@ for (let i = 0; i < args.length; i++) {
|
|
|
3430
3457
|
i++;
|
|
3431
3458
|
options.targetResolution = parsePositiveIntegerValue(raw, arg);
|
|
3432
3459
|
cliSet.targetResolution = true;
|
|
3460
|
+
} else if (arg === '--output-scale') {
|
|
3461
|
+
const raw = requireFlagValue(args, i, arg);
|
|
3462
|
+
i++;
|
|
3463
|
+
options.outputScale = parseOutputScaleValue(raw, arg);
|
|
3464
|
+
cliSet.outputScale = true;
|
|
3465
|
+
} else if (arg === '--2k') {
|
|
3466
|
+
options.outputScale = 2;
|
|
3467
|
+
cliSet.outputScale = true;
|
|
3433
3468
|
} else if (arg === '--auto-resize-assets') {
|
|
3434
3469
|
options.autoResizeVideoAssets = true;
|
|
3435
3470
|
cliSet.autoResizeVideoAssets = true;
|
|
@@ -4222,6 +4257,9 @@ Video Options:
|
|
|
4222
4257
|
--duration <sec> Duration in seconds (default: 5); Seedance 2.5 edit requires @Video1's source duration
|
|
4223
4258
|
--frames <num> Override total frames (optional)
|
|
4224
4259
|
--target-resolution <px> Short-side target that preserves aspect ratio (Seedance 2.5: 480 or 720)
|
|
4260
|
+
--output-scale <1|2> MiniMax H3 only: 2 delivers 2K, twice the requested canvas (1344x768 -> 2688x1536),
|
|
4261
|
+
same length and audio; +10 Spark/s at 544/768p class, +6 at 480p (workers 1.0.212+)
|
|
4262
|
+
--2k Shorthand for --output-scale 2
|
|
4225
4263
|
--auto-resize-assets Auto-resize video reference assets (default)
|
|
4226
4264
|
--no-auto-resize-assets Disable auto-resize for video assets
|
|
4227
4265
|
--estimate-video-cost Estimate video cost and exit
|
|
@@ -5698,8 +5736,8 @@ if (options.legacyWan3TaskType !== null) {
|
|
|
5698
5736
|
);
|
|
5699
5737
|
}
|
|
5700
5738
|
|
|
5701
|
-
if (!options.video && !options.apiChat && !options.apiWorkflowAction && (options.refAudio || options.refVideo || options.refMask || options.referenceAudioIdentity || options.voicePersonaName || options.videoWorkflow || options.seedanceTaskType || options.wan3SmartDuration || options.wan3ReferenceFileUrl || options.wan3ReferenceLinkUrl || options.wan3Watermark || cliSet.wan3Ratio || options.frames || options.targetResolution || options.audioStart !== null || options.audioDuration !== null || options.videoStart !== null || options.outpaintPosition || options.outpaintAspectRatio)) {
|
|
5702
|
-
fatalCliError('Video-only options (--workflow/--seedance-task-type/--wan3-ratio/--smart-duration/--reference-file-url/--reference-link-url/--watermark/--frames/--target-resolution/--ref-audio/--ref-video/--mask/--outpaint-position/--reference-audio-identity/--voice-persona) require --video.', {
|
|
5739
|
+
if (!options.video && !options.apiChat && !options.apiWorkflowAction && (options.refAudio || options.refVideo || options.refMask || options.referenceAudioIdentity || options.voicePersonaName || options.videoWorkflow || options.seedanceTaskType || options.wan3SmartDuration || options.wan3ReferenceFileUrl || options.wan3ReferenceLinkUrl || options.wan3Watermark || cliSet.wan3Ratio || options.frames || options.targetResolution || cliSet.outputScale || options.audioStart !== null || options.audioDuration !== null || options.videoStart !== null || options.outpaintPosition || options.outpaintAspectRatio)) {
|
|
5740
|
+
fatalCliError('Video-only options (--workflow/--seedance-task-type/--wan3-ratio/--smart-duration/--reference-file-url/--reference-link-url/--watermark/--frames/--target-resolution/--output-scale/--2k/--ref-audio/--ref-video/--mask/--outpaint-position/--reference-audio-identity/--voice-persona) require --video.', {
|
|
5703
5741
|
code: 'INVALID_ARGUMENT'
|
|
5704
5742
|
});
|
|
5705
5743
|
}
|
|
@@ -5849,6 +5887,15 @@ if (options.video) {
|
|
|
5849
5887
|
details: { targetResolution: options.targetResolution }
|
|
5850
5888
|
});
|
|
5851
5889
|
}
|
|
5890
|
+
// 2K delivery exists only on MiniMax H3 (Comfy worker 1.0.212+); the SDK
|
|
5891
|
+
// rejects it elsewhere, so refuse here with the model named instead.
|
|
5892
|
+
if (cliSet.outputScale && options.outputScale === 2 && !isMiniMaxH3Model(options.model)) {
|
|
5893
|
+
fatalCliError(`--output-scale 2 (--2k) is a MiniMax H3 option; ${options.model} is delivered at its requested size.`, {
|
|
5894
|
+
code: 'INVALID_ARGUMENT',
|
|
5895
|
+
details: { flag: '--output-scale', model: options.model },
|
|
5896
|
+
hint: 'Use a MiniMax H3 model (for example -m minimax-h3-fasth3-turbo --2k), or drop --2k.'
|
|
5897
|
+
});
|
|
5898
|
+
}
|
|
5852
5899
|
const seedanceWorkflows = isSeedance25Video
|
|
5853
5900
|
? ['t2v', 'ia2v', 'a2v', 'v2v']
|
|
5854
5901
|
: ['t2v', 'ia2v', 'v2v'];
|
|
@@ -11794,7 +11841,8 @@ function buildVideoEstimateParams({ tokenType, steps }) {
|
|
|
11794
11841
|
tokenType,
|
|
11795
11842
|
...(Number.isFinite(steps) && steps > 0 ? { steps } : {}),
|
|
11796
11843
|
...(options.frames ? { frames: options.frames } : { duration: options.duration }),
|
|
11797
|
-
...(referenceImageCount !== undefined ? { referenceImageCount } : {})
|
|
11844
|
+
...(referenceImageCount !== undefined ? { referenceImageCount } : {}),
|
|
11845
|
+
...(options.outputScale === 2 && isMiniMaxH3Model(options.model) ? { outputScale: 2 } : {})
|
|
11798
11846
|
};
|
|
11799
11847
|
|
|
11800
11848
|
if ((isSeedanceVideo || isWan3Video) && options.refVideo) {
|
|
@@ -12665,6 +12713,7 @@ async function main() {
|
|
|
12665
12713
|
steps,
|
|
12666
12714
|
tokenType: options.tokenType || 'spark',
|
|
12667
12715
|
count: options.count,
|
|
12716
|
+
...(options.outputScale === 2 ? { outputScale: 2 } : {}),
|
|
12668
12717
|
estimate
|
|
12669
12718
|
}));
|
|
12670
12719
|
} else {
|
|
@@ -13295,6 +13344,18 @@ async function main() {
|
|
|
13295
13344
|
if (options.apiGenerateAudio !== null && (isMiniMaxH3Model(options.model) || isWan3Video)) {
|
|
13296
13345
|
projectConfig.generateAudio = options.apiGenerateAudio;
|
|
13297
13346
|
}
|
|
13347
|
+
if (options.outputScale === 2 && isMiniMaxH3Model(options.model)) {
|
|
13348
|
+
// 2K delivery: same canvas, frames and audio; the worker enlarges the
|
|
13349
|
+
// finished render 2x. Sent only when asked, so plain requests are unchanged.
|
|
13350
|
+
projectConfig.outputScale = 2;
|
|
13351
|
+
if (!options.quiet) {
|
|
13352
|
+
console.error(
|
|
13353
|
+
`MiniMax H3 2K output: delivered at ${projectConfig.width * 2}x${projectConfig.height * 2} ` +
|
|
13354
|
+
`(twice the requested ${projectConfig.width}x${projectConfig.height} canvas), same length and audio; ` +
|
|
13355
|
+
'adds 10 Spark per second at 544/768p-class sizes (6 at 480p).'
|
|
13356
|
+
);
|
|
13357
|
+
}
|
|
13358
|
+
}
|
|
13298
13359
|
if (Number.isFinite(steps) && !isHappyHorseVideo && !isMiniMaxH3Model(options.model) && !isWan3Video) {
|
|
13299
13360
|
// HappyHorse routes through the vendor-job path and ignores `steps`,
|
|
13300
13361
|
// mirroring Seedance (whose model defaults already omit them). H3 has
|
|
@@ -13788,6 +13849,7 @@ async function main() {
|
|
|
13788
13849
|
renderInfo.duration = options.frames ? options.frames / options.fps : options.duration;
|
|
13789
13850
|
if (options.frames) renderInfo.frames = options.frames;
|
|
13790
13851
|
if (options.targetResolution) renderInfo.targetResolution = options.targetResolution;
|
|
13852
|
+
if (options.outputScale === 2) renderInfo.outputScale = 2;
|
|
13791
13853
|
if (options.autoResizeVideoAssets !== null) {
|
|
13792
13854
|
renderInfo.autoResizeVideoAssets = options.autoResizeVideoAssets;
|
|
13793
13855
|
}
|
|
@@ -13883,6 +13945,7 @@ async function main() {
|
|
|
13883
13945
|
else if (options.duration) projectConfig2.duration = options.duration;
|
|
13884
13946
|
if (Number.isFinite(steps2)) projectConfig2.steps = steps2;
|
|
13885
13947
|
if (guidance2 !== null && guidance2 !== undefined) projectConfig2.guidance = guidance2;
|
|
13948
|
+
if (options.outputScale === 2 && isMiniMaxH3Model(options.model)) projectConfig2.outputScale = 2;
|
|
13886
13949
|
|
|
13887
13950
|
// Create a new client for second clip to avoid event conflicts
|
|
13888
13951
|
const creds = loadCredentials();
|
|
@@ -14026,6 +14089,7 @@ async function main() {
|
|
|
14026
14089
|
output.duration = options.frames ? options.frames / options.fps : options.duration;
|
|
14027
14090
|
if (options.frames) output.frames = options.frames;
|
|
14028
14091
|
if (options.targetResolution) output.targetResolution = options.targetResolution;
|
|
14092
|
+
if (options.outputScale === 2) output.outputScale = 2;
|
|
14029
14093
|
output.strictSize = options.strictSize || false;
|
|
14030
14094
|
if (options.autoResizeVideoAssets !== null) {
|
|
14031
14095
|
output.autoResizeVideoAssets = options.autoResizeVideoAssets;
|
|
@@ -14097,6 +14161,7 @@ async function main() {
|
|
|
14097
14161
|
} catch (error) {
|
|
14098
14162
|
// A FlashVSR refusal can also arrive as a project event after submission.
|
|
14099
14163
|
if (options.upscaleVideo) annotateVideoUpscaleError(error);
|
|
14164
|
+
if (options.video && options.outputScale === 2) annotateMiniMaxH3OutputScaleError(error);
|
|
14100
14165
|
// Token auto-fallback: if using auto mode and got insufficient balance, retry with the other token
|
|
14101
14166
|
const isBalanceError = isStructuredInsufficientBalanceError(error);
|
|
14102
14167
|
if (_allowAutoTokenFallback && isBalanceError && options.tokenType === 'spark') {
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.47.0';
|