@sogni-ai/sogni-creative-agent-skill 3.62.0 → 3.63.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.
Files changed (30) hide show
  1. package/.agents/skills/sogni-creative-agent-skill/SKILL.md +16 -11
  2. package/.agents/skills/sogni-creative-agent-skill/references/image-prompting.md +44 -5
  3. package/.agents/skills/sogni-creative-agent-skill/references/loop-maker.md +2 -2
  4. package/.agents/skills/sogni-creative-agent-skill/references/models.md +44 -24
  5. package/.agents/skills/sogni-creative-agent-skill/references/private-mature-video.md +21 -16
  6. package/.agents/skills/sogni-creative-agent-skill/references/video-editing.md +1 -2
  7. package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +804 -64
  8. package/.claude-plugin/plugin.json +1 -1
  9. package/.codex-plugin/plugin.json +1 -1
  10. package/CHANGELOG.md +16 -0
  11. package/README.md +27 -16
  12. package/SKILL.md +22 -19
  13. package/desktop-extension/manifest.json +1 -1
  14. package/desktop-extension/server/index.mjs +2 -1
  15. package/desktop-extension/server/tools.mjs +49 -5
  16. package/generated/creative-agent-runtime.mjs +9 -9
  17. package/llm.txt +7 -0
  18. package/openclaw.plugin.json +1 -1
  19. package/package.json +7 -5
  20. package/plugin-skills/sogni-creative-agent/SKILL.md +16 -10
  21. package/references/image-prompting.md +44 -5
  22. package/references/loop-maker.md +2 -2
  23. package/references/models.md +44 -24
  24. package/references/private-mature-video.md +21 -16
  25. package/references/video-editing.md +1 -2
  26. package/references/video-prompting.md +804 -64
  27. package/skill-package.json +2 -2
  28. package/skills/image_generation.md +1 -1
  29. package/sogni-agent.mjs +330 -9
  30. package/version.mjs +1 -1
@@ -2813,9 +2813,9 @@ const PROMPT_CONTRACTS = [
2813
2813
  },
2814
2814
  {
2815
2815
  "contractId": "animate_photo_v1",
2816
- "version": "1.3.0",
2816
+ "version": "1.3.1",
2817
2817
  "toolName": "animate_photo",
2818
- "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.",
2818
+ "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: Mark every spoken line with its speaker and a verb of speech, or a\nspeaker tag outside the quotes, e.g. CHARACTER: \"We made it.\" Put text that must appear on\nscreen in double quotes after \"reads\", e.g. a sign that reads \"OPEN 24H\", so the model can\ntell it from speech. Include logos and readable text whenever the user asks for them.\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\nfixed the duration and their own words do not fit, keep every word: tell the user the line\nneeds about N seconds and offer to lengthen the clip or split it. Shorten only lines you wrote.\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,\nraise the per-clip duration or split it across segments, keeping the user's words verbatim\n(shorten only lines you wrote) — do NOT submit and hope it works. Spoken words inside double\nquotes 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 shorten\nonly lines you wrote. A user's own line keeps its words: raise the duration (up to 20s) or\ntell the user it needs about N seconds. Use 5s clips only for single short motion beats or one\nvery 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, such as a locked/static camera, a set pace, the same wardrobe, or 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, 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.\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.",
2819
2819
  "parameterDocs": {
2820
2820
  "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.",
2821
2821
  "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.",
@@ -2838,12 +2838,12 @@ const PROMPT_CONTRACTS = [
2838
2838
  },
2839
2839
  {
2840
2840
  "contractId": "generate_video_v1",
2841
- "version": "1.6.1",
2841
+ "version": "1.6.2",
2842
2842
  "toolName": "generate_video",
2843
- "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\nMY PERSONAS: When the user means themselves or names a saved Persona and wants it on MiniMax H3\nreference-to-video, Seedance or Wan 3, call resolve_personas, then pass the resolved persona\nreference images straight in as referenceImageIndices (the negative indices resolve_personas\nreports), with no edit_image step. Every clip carries its own references. Bind each persona to\nits images in the prompt with the model's tokens: @Image1 on Seedance, <Picture 1> on MiniMax H3,\nImage 1 on Wan 3. On LTX, a persona video animates an edit_image still with animate_photo.\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\nPrefer Balanced R2V (minimax-h3-r2v-balanced) for MiniMax reference-to-video. For two-stage, 1080p or 2K output, prefer minimax-h3-r2v-balanced-2stage. Use Standard, LightX2V Turbo, or FastH3 Omni R2V only when explicitly requested.\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 the Balanced one for 1080p, 1440p or 2K\nMiniMax H3 reference-to-video output, and the Standard one only when Standard is explicitly requested;\nkeep the one-stage R2V selectors for 768p.\nFastH3 Reference is the FastH3 tier's reference-to-video: \"minimax-h3-fasth3-r2v-turbo\" takes the same\nreferences, prompt contract, durations, catalog LoRAs and Personal LoRAs as \"minimax-h3-r2v\", and its\ntwo-stage form\n\"minimax-h3-fasth3-r2v-turbo-2stage\" reads targetResolution the same way as the other two-stage selectors.\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.",
2843
+ "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\nMY PERSONAS: When the user means themselves or names a saved Persona and wants it on MiniMax H3\nreference-to-video, Seedance or Wan 3, call resolve_personas, then pass the resolved persona\nreference images straight in as referenceImageIndices (the negative indices resolve_personas\nreports), with no edit_image step. Every clip carries its own references. Bind each persona to\nits images in the prompt with the model's tokens: @Image1 on Seedance, <Picture 1> on MiniMax H3,\nImage 1 on Wan 3. On LTX, a persona video animates an edit_image still with animate_photo.\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 with a strong first 1-2s, visible escalation, and payoff; use 9:16 only when the\nuser names a vertical platform or ratio. Commercials should show audience desire/problem,\ntransformation, and proof/benefit. Trailers should follow hook → world → disruption →\nescalation → reveal. Add a CTA, brand beat, or title card only when the user asked for one or\nthe brief names a product or brand to sell.\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: Mark every spoken line with its speaker and a verb of speech. Put text\nthat must appear on screen in double quotes after \"reads\", e.g. a sign that reads \"OPEN 24H\".\nInclude logos and readable text whenever the user asks for them.\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\nPrefer Balanced R2V (minimax-h3-r2v-balanced) for MiniMax reference-to-video. For two-stage, 1080p or 2K output, prefer minimax-h3-r2v-balanced-2stage. Use Standard, LightX2V Turbo, or FastH3 Omni R2V only when explicitly requested.\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 the Balanced one for 1080p, 1440p or 2K\nMiniMax H3 reference-to-video output, and the Standard one only when Standard is explicitly requested;\nkeep the one-stage R2V selectors for 768p.\nFastH3 Reference is the FastH3 tier's reference-to-video: \"minimax-h3-fasth3-r2v-turbo\" takes the same\nreferences, prompt contract, durations, catalog LoRAs and Personal LoRAs as \"minimax-h3-r2v\", and its\ntwo-stage form\n\"minimax-h3-fasth3-r2v-turbo-2stage\" reads targetResolution the same way as the other two-stage selectors.\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.",
2844
2844
  "parameterDocs": {
2845
2845
  "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.",
2846
- "prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
2846
+ "prompt": "Video prompt. Quote spoken lines with their speaker; quote on-screen text after \"reads\".",
2847
2847
  "duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
2848
2848
  }
2849
2849
  },
@@ -2860,9 +2860,9 @@ const PROMPT_CONTRACTS = [
2860
2860
  },
2861
2861
  {
2862
2862
  "contractId": "generate_image_v1",
2863
- "version": "1.1.0",
2863
+ "version": "1.1.1",
2864
2864
  "toolName": "generate_image",
2865
- "baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor MOSS-Image or MOSS-Image SFT, choose model=\"moss-image\" for text-to-image generation.\nFor MOSS 8-step or DMD, choose model=\"moss-image-8step\" with 8 steps and guidance 1.\nBoth MOSS presets are uncensored and support compatible Personal LoRAs.\nMOSS-Image SFT does not accept uploaded image references or perform instruction editing. If they ask\nfor FLUX 3 or FLUX 3 Image Klein, choose model=\"flux-3-klein\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nIMAGE PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1 and distinct content is requested, use\nDynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nbatch counts or the words \"versions\"/\"variations\" into scene content. Preserve authored\nsubject counts and requested visible words verbatim. The prompt describes one output image;\ntyped count and grouping arguments determine batching, not words inside the prompt.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups. Treat every batch-wide requirement\nquantified as \"each\", \"every\", or \"all\" as a hard per-option invariant: repeat it inside\nEVERY option, including identity/pose continuity, clothing/style, the concrete setting, and\nliteral visible names, labels, captions, flags, logos, or symbols. A shared prefix or another\noption is never a substitute for a complete standalone option.\nEach option must name its actual styling, setting, accessories, and requested literal text or\nsymbol. Never emit meta-placeholders such as \"variant-specific background\", \"requested\nsymbol\", \"humorous alternate name\", or \"bake the name and symbol into the image\".\nWhen one option remakes/preserves an original and the others are themed variants, make the\noriginal option equally concrete: specify the original clothing and setting plus every\nrequested label, flag, logo, symbol, or prop; do not write only \"the original\".\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, PG-13/non-explicit, and avoid minor-coded styling or school-coded\nsettings while still optimizing visual magnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Default to model=\"gpt-image-2.5-sunburst\" and preserve another\nexplicit GPT Image model named by the user. Use numberOfVariations=1 and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
2865
+ "baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor MOSS-Image or MOSS-Image SFT, choose model=\"moss-image\" for text-to-image generation.\nFor MOSS 8-step or DMD, choose model=\"moss-image-8step\" with 8 steps and guidance 1.\nBoth MOSS presets are uncensored and support compatible Personal LoRAs.\nMOSS-Image SFT does not accept uploaded image references or perform instruction editing. If they ask\nfor FLUX 3 or FLUX 3 Image Klein, choose model=\"flux-3-klein\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nIMAGE PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1 and distinct content is requested, use\nDynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nbatch counts or the words \"versions\"/\"variations\" into scene content. Preserve authored\nsubject counts and requested visible words verbatim. The prompt describes one output image;\ntyped count and grouping arguments determine batching, not words inside the prompt.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups. Treat every batch-wide requirement\nquantified as \"each\", \"every\", or \"all\" as a hard per-option invariant: repeat it inside\nEVERY option, including identity/pose continuity, clothing/style, the concrete setting, and\nliteral visible names, labels, captions, flags, logos, or symbols. A shared prefix or another\noption is never a substitute for a complete standalone option.\nEach option must name its actual styling, setting, accessories, and requested literal text or\nsymbol. Never emit meta-placeholders such as \"variant-specific background\", \"requested\nsymbol\", \"humorous alternate name\", or \"bake the name and symbol into the image\".\nWhen one option remakes/preserves an original and the others are themed variants, make the\noriginal option equally concrete: specify the original clothing and setting plus every\nrequested label, flag, logo, symbol, or prop; do not write only \"the original\".\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, avoid minor-coded styling or school-coded settings, and keep it\nPG-13/non-explicit unless a CONTENT POLICY section in the system prompt states that Unrestricted\nmode is active; then follow that section instead of the PG-13 limit. Still optimize visual\nmagnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Default to model=\"gpt-image-2.5-sunburst\" and preserve another\nexplicit GPT Image model named by the user. Use numberOfVariations=1 and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
2866
2866
  "parameterDocs": {
2867
2867
  "prompt": "Text description of one output image. Put the subject first. Preserve authored subject counts and requested visible words. Use Dynamic Prompt syntax for requested distinct content; a fully specified or consistent scene may use a plain prompt.",
2868
2868
  "numberOfVariations": "Number of output images. Typed count and grouping arguments determine batching. Use Dynamic Prompt {|} syntax for requested distinct content; a fully specified or consistent scene may use a plain prompt. Preserve requested visible count or version words in the prompt.",
@@ -3105,9 +3105,9 @@ const PROMPT_CONTRACTS = [
3105
3105
  },
3106
3106
  {
3107
3107
  "contractId": "finalize_response_v1",
3108
- "version": "1.1.0",
3108
+ "version": "1.1.1",
3109
3109
  "toolName": "finalize_response",
3110
- "baseDescription": "finalize_response marks the turn complete and stops the tool loop. Use after the requested\nworkflow succeeds, partially succeeds, fails with a surfaced error, or needs no tool action.\n\nWhen the user asked for a script, storyboard, ad concept, trailer, creator video, meme/parody,\nor music prompt and no media tool is required, deliver the final creative in a clean Markdown\ncontract: title, concept/objective, audience if relevant, timed beats or script, audio/text\nnotes, generation prompt(s), CTA, and brief assumptions. For revisions, apply the feedback\ndirectly while preserving approved elements and rejected constraints.\n\nDo not call any other tool after finalize_response. Keep the summary short and grounded in\nactual tool results; do not claim exact metadata that no tool returned.\nFor no-action/text-only answers, such as product, feature, model, pricing, or capability\nquestions, the summary is the final answer the user sees. Provide the substantive answer\nthere; never leave it empty and never use a placeholder like \"Done.\"",
3110
+ "baseDescription": "finalize_response marks the turn complete and stops the tool loop. Use after the requested\nworkflow succeeds, partially succeeds, fails with a surfaced error, or needs no tool action.\n\nWhen the user asked for a script, storyboard, ad concept, trailer, creator video, meme/parody,\nor music prompt and no media tool is required, deliver the final creative in a clean Markdown\ncontract: title, concept/objective, audience if relevant, timed beats or script, audio/text\nnotes, generation prompt(s), a CTA only when the user asked for one or the brief sells\nsomething, and brief assumptions. For revisions, apply the feedback\ndirectly while preserving approved elements and rejected constraints.\n\nDo not call any other tool after finalize_response. Keep the summary short and grounded in\nactual tool results; do not claim exact metadata that no tool returned.\nFor no-action/text-only answers, such as product, feature, model, pricing, or capability\nquestions, the summary is the final answer the user sees. Provide the substantive answer\nthere; never leave it empty and never use a placeholder like \"Done.\"",
3111
3111
  "parameterDocs": {
3112
3112
  "summary": "User-visible closeout. For no-action/text-only answers, include the complete substantive answer here. For media workflows, mention produced media or the concrete blocker; avoid duplicating prior tool output.",
3113
3113
  "outcome": "success, partial, asked_user, failed, or no_action based on the actual turn outcome."
package/llm.txt CHANGED
@@ -25,6 +25,13 @@ Music uses `--music`, MiniMax Music 3 by default (`-m turbo` for ACE-Step); Qwen
25
25
  `--speech-mode voice|clone|design`. Read the model reference for required inputs,
26
26
  allowed controls, and hosted alternatives.
27
27
 
28
+ Prompts: direct CLI mode runs no model-aware prompt shaper (Wan 3 aside), so
29
+ before writing a prompt run `sogni-agent prompt-guide <model> --mode <mode>`
30
+ (free and offline: the rules Sogni's own prompt writer uses for that model and
31
+ mode) and read the chosen model's section of `references/video-prompting.md`
32
+ (LTX, MiniMax H3, Seedance, WAN 2.2, Wan 3, HappyHorse) or
33
+ `references/image-prompting.md`.
34
+
28
35
  MOSS-Image SFT uses `-m moss_image_sft_int8_convrot`: 50 steps, guidance 3,
29
36
  Euler / sgm_uniform. It generates from text, tags or experimental JSON layouts
30
37
  and accepts no reference images. Read `references/image-prompting.md` for layouts.
@@ -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.62.0",
5
+ "version": "3.63.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.62.0",
3
+ "version": "3.63.0",
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",
@@ -21,7 +21,9 @@
21
21
  "check:creative-agent-source": "node scripts/check-creative-agent-source.mjs",
22
22
  "check:creative-agent-source:strict": "node scripts/check-creative-agent-source.mjs --strict-network",
23
23
  "check:creative-agent-runtime": "node scripts/check-creative-agent-runtime.mjs",
24
- "test": "npm run check:creative-agent-runtime && node --test test/*.test.mjs",
24
+ "sync:prompt-guides": "node scripts/sync-prompt-guides.mjs && npm run sync:hermes-skill",
25
+ "check:prompt-guides": "node scripts/check-prompt-guides.mjs",
26
+ "test": "npm run check:creative-agent-runtime && npm run check:prompt-guides && node --test test/*.test.mjs",
25
27
  "test:integration": "npm run check:creative-agent-runtime && SOGNI_INTEGRATION=1 node --test test/*.integration.mjs",
26
28
  "test:all": "npm run test && npm run test:integration",
27
29
  "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",
@@ -29,7 +31,7 @@
29
31
  "build:mcpb": "node scripts/build-mcpb.mjs",
30
32
  "publish:clawhub": "node scripts/publish-clawhub.mjs",
31
33
  "check:clawhub": "node scripts/publish-clawhub.mjs --check",
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",
34
+ "prepack": "npm run check:version-sync && npm run check:creative-agent-source:strict && SOGNI_REQUIRE_RUNTIME_SYNC=1 npm run check:creative-agent-runtime && npm run check:prompt-guides",
33
35
  "version": "npm run sync:version",
34
36
  "prepare": "husky",
35
37
  "release": "semantic-release"
@@ -102,13 +104,13 @@
102
104
  "media-utilities.mjs"
103
105
  ],
104
106
  "dependencies": {
105
- "@sogni-ai/sogni-intelligence-client": "4.22.9",
107
+ "@sogni-ai/sogni-intelligence-client": "4.23.0",
106
108
  "execa": "^10.0.1",
107
109
  "json5": "^2.2.3",
108
110
  "sharp": "0.35.5"
109
111
  },
110
112
  "overrides": {
111
- "@sogni-ai/sogni-client": "5.73.0",
113
+ "@sogni-ai/sogni-client": "5.74.0",
112
114
  "undici@7": "7.30.1"
113
115
  },
114
116
  "openclaw": {
@@ -43,16 +43,16 @@ For MiniMax reference-to-video, default to **Balanced R2V** (`minimax-h3-r2v-bal
43
43
  - Image: `sogni-agent "a cat on the moon, cinematic"`
44
44
  - Image edit: `sogni-agent -c <path> "make it night, add fireflies"`
45
45
  - Object mask: `sogni-agent --segment <path> --segment-point 0.5,0.5 -o mask.png` (SAM 3; see `../../references/object-selection.md`)
46
- - Video (image-to-video): `sogni-agent --video --ref <path> "gentle camera pan"` (defaults to `wan_v2.2-14b-fp8_i2v_lightx2v`)
47
- - Animate two images (first frame → last frame): `sogni-agent --video --ref <first> --ref-end <last> "smooth morph into the final frame"` (defaults to `ltx25-22b-int8_i2v_distilled` and the standard FLF template; no transition LoRA is attached)
48
- - Seedance 2.5 at 1080p: `sogni-agent --video -m seedance2-5 --target-resolution 1080 --duration 8 -o ./seedance-1080p.mp4 "A quiet bookshop, slow camera push-in, soft room ambience"` (4–30s; 480p/720p/1080p, native audio; optional `--output-format mov` and `--return-last-frame`)
46
+ - Video (image-to-video): `sogni-agent --video --ref <path> "the cyclist stands on the pedals and sprints out of frame as the camera whip-pans to follow"` (defaults to `wan_v2.2-14b-fp8_i2v_lightx2v`)
47
+ - Animate two images (first frame → last frame): `sogni-agent --video --ref <first> --ref-end <last> "A wide shot opens on the dim hallway of the first frame as the camera pushes through the doorway, the overhead lights flickering on one by one across the polished floor, and arrives on the bright room of the final frame while footsteps echo and a switch clicks."` (defaults to `ltx25-22b-int8_i2v_distilled` and the standard FLF template; no transition LoRA is attached)
48
+ - Seedance 2.5 at 1080p: `sogni-agent --video -m seedance2-5 -c ./courier.png --target-resolution 1080 --duration 8 -o ./seedance-1080p.mp4 "A low tracking shot follows a courier sprinting through a rain-soaked night market, stall awnings and paper lanterns whipping past the lens. Use @Image1 for the courier's face and yellow jacket. 0-3s: she vaults the turnstile at the market gate and lands mid-stride, rain spraying off her shoulders as two stall keepers jerk back. 3-6s: she skids around a fruit stall on the wet tiles, one hand slapping the counter to swing her through the turn, and a flock of pigeons bursts up from the crates she clips. 6-8s: she bursts out into the open street, chest heaving, the neon signs behind her smearing into streaks of color as the camera holds level with her. Rain hiss, slapping footsteps, beating wings, a vendor shouting in the distance. Her yellow jacket and face stay the same in every frame."` (4–30s; 480p/720p/1080p, native audio; optional `--output-format mov` and `--return-last-frame`)
49
49
  - Upscale a finished video: `sogni-agent --upscale-video ./clip.mp4 --upscale-resolution 1080 -o ./clip-1080p.mp4` (promptless FlashVSR; also supports 1440p)
50
- - MiniMax H3 reference-to-video: `sogni-agent --video -m minimax-h3-fasth3-r2v-turbo --ref <identity> -c <wardrobe> --ref-video <motion> --ref-audio <voice> "<Picture 1> controls identity; <Picture 2> controls wardrobe; <Video 1> controls motion; <Audio 1> controls voice."`
51
- - Alibaba Wan 3 unified video: `sogni-agent --video -m wan3 --target-resolution 1080 --duration 8 "a presenter says 'Welcome' in a detailed studio"`
50
+ - MiniMax H3 reference-to-video: `sogni-agent --video -m minimax-h3-fasth3-r2v-turbo --ref <identity> -c <wardrobe> --ref-video <motion> --ref-audio <voice> "<six-field Ref2VA prompt>"`
51
+ - Alibaba Wan 3 unified video: `sogni-agent --video -m wan3 --target-resolution 1080 --duration 8 'a presenter says "Welcome" in a detailed studio'`
52
52
  - Seedream 5.0 Pro Uncensored image or edit, only when asked: `sogni-agent -m seedream-5-0-pro-uncensored -c <path> "the person in Image 1 on a rooftop at dusk"` (1-10 references, default 1536x1536; shares the Seedance 2.5 Uncensored agreement)
53
- - Seedance 2.5 Uncensored, only when asked: `sogni-agent --video -m seedance2-5-uncensored --target-resolution 1080 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.5; on error 4103 show the returned `consentUrl` and `consentInstructions`, use the same account as the agent/API key, and return to retry after manual acceptance)
54
- - Seedance 2.0 Mini Uncensored, only when asked: `sogni-agent --video -m seedance2-mini-uncensored --target-resolution 720 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.0 Mini; shares the agreement; on error 4103 show `consentUrl` and `consentInstructions`, including the account and return guidance; never accept or retry for the user)
55
- - 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"`
53
+ - Seedance 2.5 Uncensored, only when asked: `sogni-agent --video -m seedance2-5-uncensored --target-resolution 1080 --duration 8 "A low camera circles two dancers spinning through a packed neon club, the crowd and strobe lights streaking past the lens. 0-3s: they lock hands and whip into a tight turn, her sequined dress and his loose shirt flaring out as the dancers around them throw their arms up. 3-6s: the taller dancer dips her partner low to the floor while the camera swings around them, magenta and blue light washing across their faces and sweat glinting on their shoulders. 6-8s: they snap upright together on the bass drop, chests heaving and grinning, as the crowd surges in behind them. Pounding bass, the crowd cheering, heels striking the floor. Both dancers keep the same faces, outfits and hair from the first frame to the last."` (same limits as Seedance 2.5; on error 4103 show the returned `consentUrl` and `consentInstructions`, use the same account as the agent/API key, and return to retry after manual acceptance)
54
+ - Seedance 2.0 Mini Uncensored, only when asked: `sogni-agent --video -m seedance2-mini-uncensored --target-resolution 720 --duration 8 "A slow dolly glides down a rain-soaked neon street at night at chest height, the wet asphalt mirroring pink and blue signs. 0-3s: a lone cyclist in a yellow raincoat rolls through the frame from left to right, tires hissing through a wide puddle and scattering the reflections. 3-6s: steam curls up from a street grate as a shop shutter on the right rattles down to the pavement. 6-8s: the dolly comes to rest on a glowing noodle-bar window where a cook tosses noodles in a smoking wok. Steady rain patter on awnings, distant traffic, the shutter's metal clatter. The street stays empty apart from the cyclist and the cook."` (same limits as Seedance 2.0 Mini; shares the agreement; on error 4103 show `consentUrl` and `consentInstructions`, including the account and return guidance; never accept or retry for the user)
55
+ - 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'`
56
56
  - One-click image-folder loop: `/sogni-creative-agent:loop-maker ./images`
57
57
  - One-click image-folder loop in Codex: `$sogni-creative-agent:loop-maker ./images`
58
58
  - Music (MiniMax Music 3 by default): `sogni-agent --music --duration 30 "ambient drone, 60 BPM, D minor"`
@@ -101,8 +101,14 @@ For capability questions and model selection, read `../../references/models.md`.
101
101
  It covers Seedance 2.5 1080p (including edit/extend), FastH3 Two-Stage delivered
102
102
  720p/1080p/2K, GPT Image 2.5 Sunburst/Flare edits and masks, and current video
103
103
  and image upscale limits. Honor an explicitly selected model and resolution.
104
- For FastH3, read `../../references/video-prompting.md` before writing its
105
- ordered-field prompt; select the Two-Stage model for higher delivered sizes.
104
+ Before writing any image or video prompt, run
105
+ `sogni-agent prompt-guide <model> --mode <mode>` for the model and mode you
106
+ chose: it prints the rules Sogni's own prompt writer uses, free and offline.
107
+ Then read that model's section of `../../references/video-prompting.md` (LTX,
108
+ MiniMax H3 including FastH3, Seedance, WAN 2.2, Wan 3, HappyHorse) or
109
+ `../../references/image-prompting.md`. Direct mode runs no model-aware prompt
110
+ shaper (Wan 3 aside), so the model reads your words. For FastH3, select
111
+ the Two-Stage model for higher delivered sizes.
106
112
  To drive H3 with the user's own voice or song, use FastH3 audio-to-video:
107
113
  `-m minimax-h3-fasth3-ia2v-turbo --ref first.png --ref-audio track.m4a`
108
114
  (`-flfa2v-turbo` adds `--ref-end`, `-a2v-turbo` takes the audio alone).
@@ -1,10 +1,18 @@
1
1
  # Image Prompt Authoring Guide
2
2
 
3
- Use this guide only when the creator asks for prompt text as the deliverable. A
4
- prompt-only request does not authorize a render. Require both the exact target
5
- model/version and the operation (`generate` or `edit`). If either is missing,
6
- ask for it. If the exact pair is not registered, report that limitation; never
7
- substitute another destination model's prompt contract.
3
+ Read this before writing any image prompt, whether you render it or return it
4
+ as text, and run `sogni-agent prompt-guide <model> --mode <generate|edit>` for
5
+ the model you chose (free and offline): the families below do not share one
6
+ prompt shape. Direct CLI mode
7
+ runs no model-aware prompt shaper and has no negative-prompt input, so when you
8
+ render, the positive prompt you write is all the model reads; state exclusions
9
+ positively in it.
10
+
11
+ When the creator asks for prompt text as the deliverable, a prompt-only request
12
+ does not authorize a render. Require both the exact target model/version and
13
+ the operation (`generate` or `edit`). If either is missing, ask for it. If the
14
+ exact pair is not registered, report that limitation;
15
+ never substitute another destination model's prompt contract.
8
16
 
9
17
  ## Output contracts by family
10
18
 
@@ -33,6 +41,37 @@ negative_prompt: <model-native exclusions and relevant failure modes>
33
41
  Prompt-only families return the directly runnable prompt with no label,
34
42
  Markdown fence, preamble, explanation, or render offer.
35
43
 
44
+ <!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
45
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
46
+
47
+ ## Per-model rules from Sogni's image prompt writer
48
+
49
+ Before writing an image prompt, print the rules Sogni's own image prompt writer uses for that model and operation (free and offline). They hold the per-family detail behind the table above. An edit-only or generation-only selector has only that operation; pass the `-m` value you will render with.
50
+
51
+ | Family | Operation | Guide | Command |
52
+ | --- | --- | --- | --- |
53
+ | `chroma` | generate | Chroma text-to-image | `sogni-agent prompt-guide chroma1-hd --mode generate` |
54
+ | `flux1-schnell` | generate | FLUX.1 Schnell text-to-image | `sogni-agent prompt-guide flux1-schnell --mode generate` |
55
+ | `sdxl` | generate | Stable Diffusion XL text-to-image | `sogni-agent prompt-guide sdxl --mode generate` |
56
+ | `sd15` | generate | Stable Diffusion 1.5 text-to-image | `sogni-agent prompt-guide sd15 --mode generate` |
57
+ | `pony` | generate | Pony Diffusion XL text-to-image | `sogni-agent prompt-guide pony --mode generate` |
58
+ | `fast` | generate | Fast distilled Stable Diffusion text-to-image | `sogni-agent prompt-guide sdxl-turbo --mode generate` |
59
+ | `sd3` | generate | Stable Diffusion 3 text-to-image | `sogni-agent prompt-guide sd3 --mode generate` |
60
+ | `krea2` | generate | Krea 2 text-to-image | `sogni-agent prompt-guide krea-2 --mode generate` |
61
+ | `krea2` | edit | Krea 2 Identity Edit image editing | `sogni-agent prompt-guide krea2-identity-edit --mode edit` |
62
+ | `moss-image` | generate | MOSS-Image text-to-image | `sogni-agent prompt-guide moss-image --mode generate` |
63
+ | `flux3-klein` | generate | FLUX 3 Image Klein text-to-image | `sogni-agent prompt-guide flux-3-klein --mode generate` |
64
+ | `flux3-klein` | edit | FLUX 3 Image Klein image editing | `sogni-agent prompt-guide flux-3-klein --mode edit` |
65
+ | `qwen` | generate | Qwen Image 2512 text-to-image | `sogni-agent prompt-guide qwen-image-2512 --mode generate` |
66
+ | `qwen` | edit | Qwen Image Edit 2511 image editing | `sogni-agent prompt-guide qwen --mode edit` |
67
+ | `z-image` | generate | Z-Image text-to-image | `sogni-agent prompt-guide z-image --mode generate` |
68
+ | `gpt-image` | generate | GPT Image 2 text-to-image | `sogni-agent prompt-guide gpt-image-2 --mode generate` |
69
+ | `gpt-image` | edit | GPT Image 2 image editing | `sogni-agent prompt-guide gpt-image-2 --mode edit` |
70
+ | `seedream` | generate | Seedream 5.0 Pro Uncensored text-to-image | `sogni-agent prompt-guide seedream-5-pro-uncensored --mode generate` |
71
+ | `seedream` | edit | Seedream 5.0 Pro Uncensored image editing | `sogni-agent prompt-guide seedream-5-pro-uncensored --mode edit` |
72
+
73
+ <!-- END GENERATED PROMPT GUIDE: image-models -->
74
+
36
75
  ## Selector and operation discipline
37
76
 
38
77
  - MOSS-Image SFT uses hosted selector `moss-image` and direct CLI model ID
@@ -8,7 +8,7 @@ Use this workflow for one-command requests to turn a folder of still images into
8
8
  - Support `.jpg`, `.jpeg`, `.png`, and `.webp` source images.
9
9
  - Keep one strongest representative of each visual concept.
10
10
  - Use the strongest retained image as the opener unless the user names another, then rotate the ordered list without otherwise reordering it.
11
- - Render one 3-second clip per image pair: about 2 seconds of restrained motion followed by a smooth transition into the next supplied image.
11
+ - Render one 3-second clip per image pair: about 2 seconds of restrained motion followed by a smooth transition into the next supplied image, unless the user asks for a different energy (a hype reel, for instance), which then sets the motion and transition pace.
12
12
  - Close the loop with the last retained image to the opener.
13
13
  - Use `ltx25-22b-int8_i2v_distilled`, `--token-type auto`, and the exact original files as both `--ref` and `--ref-end` for every pair.
14
14
  - Pin both endpoint strengths to `1` and disable SDK asset auto-resizing after choosing a valid LTX canvas.
@@ -68,7 +68,7 @@ Do not render standalone image-animation clips, extra bridge clips, or multi-ang
68
68
  For each pair, write one LTX-safe paragraph of 4-8 present-tense sentences:
69
69
 
70
70
  1. Establish the supplied starting image and its concrete visual identity.
71
- 2. Describe restrained, believable motion for roughly the first two seconds.
71
+ 2. Describe restrained, believable motion for roughly the first two seconds, or motion at the energy the user asked for.
72
72
  3. Connect shared lighting, color, texture, shapes, atmosphere, or camera movement into the supplied target image.
73
73
  4. State that the shot settles exactly into the supplied final image with stable identity, wardrobe, style, and composition.
74
74
 
@@ -681,7 +681,8 @@ itself (see [HappyHorse 1.1 models](#happyhorse-11-models)).
681
681
  | `ltx23-a2v` | `ltx23-22b-fp8_a2v_distilled` |
682
682
  | `ltx23-v2v` | `ltx23-22b-fp8_v2v_distilled` |
683
683
  | `ltx23-eros`, `10eros` | `ltx23-22b-10eros-v1.4-fp8mixed_i2v` |
684
- | `wan22`, `wan22-t2v` | `wan_v2.2-14b-fp8_t2v_lightx2v` |
684
+ | `wan22-t2v` | `wan_v2.2-14b-fp8_t2v_lightx2v` |
685
+ | `wan22` | LTX-2.5 (`ltx25-22b-int8_<workflow>_distilled`) for t2v, i2v, v2v, a2v and ia2v runs; `wan_v2.2-14b-fp8_s2v_lightx2v` and the Animate models for s2v and animate workflows |
685
686
  | `wan22-i2v` | `wan_v2.2-14b-fp8_i2v_lightx2v` |
686
687
  | `wan22-s2v` | `wan_v2.2-14b-fp8_s2v_lightx2v` |
687
688
  | `wan22-animate-move` | `wan_v2.2-14b-fp8_animate-move_lightx2v` |
@@ -738,7 +739,8 @@ no negative prompt and no ControlNet.
738
739
  `seedance-reference-limits` catalog.
739
740
  - **Prompting**: the same `@Image1` / `@Video1` / `@Audio1` loose-reference
740
741
  grammar and the same mutually exclusive dedicated-frame vs loose-reference
741
- modes as Seedance 2.0.
742
+ modes as Seedance 2.0. Write the prompt per
743
+ [video-prompting.md § Seedance Prompting](./video-prompting.md#seedance-prompting).
742
744
  - **Task contract**: Seedance 2.5 first/last-frame, edit, and extend requests
743
745
  use adaptive output ratio. The CLI sends typed task metadata so
744
746
  `seedance2-5-v2v` defaults to edit; pass `--seedance-task-type extend` for
@@ -750,6 +752,18 @@ no negative prompt and no ControlNet.
750
752
  fail asynchronously after inferring the task.
751
753
  - **Audio-only reference**: unlike 2.0, Seedance 2.5 accepts standalone audio as
752
754
  its only loose reference.
755
+ - **Draft mode** (Seedance 2.5 and 2.5 Uncensored): iterate at 480p, then render
756
+ the take you keep at 1080p. `--seedance-draft` renders a 480p draft at the
757
+ 480p price; any normal Seedance 2.5 input works, and the size must be 480p
758
+ (the CLI picks it when you give none). An ordinary 480p render cannot be
759
+ finalized later. Only a job submitted as a draft can. `--seedance-finalize
760
+ <job-id>`, with the same `-m`, renders that draft at 1080p in its ratio, with
761
+ its prompt, media, length, seed and audio setting, so it takes none of them.
762
+ `--json` reports the draft's `jobId` and `seedanceDraftExpiresAt`: finalize
763
+ before then (about three hours, own account only). Each finalize is billed
764
+ again at 1080p for the draft's length, at the video-input rate when the draft
765
+ had a video input. Judge the draft before finalizing: the final is the same
766
+ video, not a new take.
753
767
 
754
768
  The bundled CLI and pinned SDKs recognize `seedance-2-5` and transport typed
755
769
  tasks; see `package.json` for the current dependency versions. The direct CLI
@@ -772,16 +786,19 @@ Learned on Sogni's own productions (Sogni Meme World, 2026-10 and 2026-11). They
772
786
  prompt ("he walks behind her from screen right to screen left").
773
787
  - **Loose-reference mode tends to open on @Image1.** A place still in that slot
774
788
  brings its composition back as the opening shot. For a new composition, make
775
- an opening still and use frame mode (`--ref`).
789
+ an opening still and use frame mode (`--ref`); when people or props must also
790
+ persist through the shot, attach that still first in reference mode with the
791
+ job "the opening shot reference" instead.
776
792
  - **Size people from references explicitly.** A second take with the same
777
793
  people refs drew them as giant cut-outs. "Small in the frame, full figures,
778
794
  ordinary proportions, as far away as in @Image1" fixed it.
779
795
  - **Never name what must not appear.** There is no negative prompt, and naming
780
796
  the thing brings it in: "glasses he isn't wearing" put glasses on him.
781
797
  Describe only what is there.
782
- - **Spell spoken words the way they sound.** "Rickrolled" came out as
783
- "Rick-wrapped"; writing "Rick-rolled" fixed it. Run speech-to-text over every
784
- take with dialogue.
798
+ - **Spell names and coined words the way they sound.** The line keeps the
799
+ user's words; only the spelling of a word the model would say wrong changes:
800
+ "Rickrolled" came out as "Rick-wrapped", and writing "Rick-rolled" fixed it.
801
+ Run speech-to-text over every take with dialogue.
785
802
  - **One local `--ref-audio` per run.** Further audio references must be HTTPS
786
803
  URLs, so put the local file first.
787
804
  - **Keyframes go through reference mode.** To pin where a move or a
@@ -818,8 +835,8 @@ Learned on Sogni's own productions (Sogni Meme World, 2026-10 and 2026-11). They
818
835
  stills around it, needs alignment (one affine transform), colour matching
819
836
  and retiming outside this CLI.
820
837
  - On a near-static source, Seedance may cut to a close-up of what you changed.
821
- Say "the camera never moves, zooms or cuts", and edit static clips on their
822
- own.
838
+ Say "the camera holds @Video1's exact framing for the whole clip, one
839
+ continuous shot", and edit static clips on their own.
823
840
  - Edit is good at changing what a screen or a sign shows across a moving shot.
824
841
  It beats tracking a mask and compositing, because tracked mattes jitter. It
825
842
  is poor at small selective prop fixes: asked to remove one of three
@@ -929,15 +946,18 @@ image; r2v accepts up to nine reference images.
929
946
 
930
947
  ### HappyHorse 1.1 prompting tips
931
948
 
932
- HappyHorse rewards short, concrete scene direction — roughly 15–30 words for a
933
- simple shot. One subject, one action, one setting, and one strong visual or
934
- camera cue is the sweet spot; over-long prompts reduce face and hand fidelity, so
935
- simplify before adding detail.
949
+ HappyHorse rewards concrete scene direction: one subject, one main action
950
+ thread, one setting, and one strong visual or camera cue. Sogni's own prompt
951
+ writer gives a single-beat shot about 80–160 words
952
+ ([video-prompting.md § HappyHorse 1.1 Prompting](./video-prompting.md#happyhorse-11-prompting),
953
+ or `sogni-agent prompt-guide happyhorse-1.1 --mode <t2v|i2v|r2v>`). Spend them on
954
+ what is seen and heard, not filler: fal's guide finds that piled-up detail lowers
955
+ face and hand fidelity.
936
956
 
937
957
  **What to include:**
938
958
 
939
959
  - **Observable visual detail**: "overcast daylight", "wet asphalt", "warm amber
940
- backlight", "shallow depth of field" — not evaluative filler like "cinematic",
960
+ backlight", "long window shadows" — not evaluative filler like "cinematic",
941
961
  "beautiful", "stunning", "epic", or "masterpiece".
942
962
  - **One cinematography idea**: put the camera move last and be specific — "slow
943
963
  dolly-in", "lateral orbit with parallax", "locked-off wide". Prefer one exact
@@ -945,9 +965,9 @@ simplify before adding detail.
945
965
  - **Plain prose only**: no tag lists, JSON, or weighting syntax; HappyHorse
946
966
  ignores negative prompts.
947
967
 
948
- **Multi-beat clips:** use a timecoded shot list rather than "first X then Y" —
949
- for example: *"Shot 1 (wide establishing, 0–2 s): …; Shot 2 (mid tracking,
950
- 2–5 s): …"*
968
+ **Multi-beat clips:** use time-coded beats rather than "first X then Y", for
969
+ example: *"0-2s: a wide establishing shot of …, 2-5s: cut to a medium tracking
970
+ shot of …"*, and cut only when the request asks for cuts, a montage, or separate shots.
951
971
 
952
972
  **By mode:**
953
973
 
@@ -973,11 +993,10 @@ IDs. It renders 2–30 second clips at fixed 30 fps with native audio (enabled b
973
993
  default, disable with `--no-generate-audio`) at 480P, 720P, or 1080P.
974
994
  Supported ratios are `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, and `9:16`.
975
995
  Use `--smart-duration` for provider-selected timing or `--duration 2..30` for
976
- an exact request. `--no-expand-prompt` bypasses local prompt guardrails and
977
- sends literal wording; hosted agent paths run Sogni's exact-model shaper. The
978
- configured Alibaba Model Studio WAN3 endpoint accepts no provider-side
979
- `prompt_extend` behavior is coordinated with Sogni's own model-specific shaping
980
- so a prompt is not rewritten twice.
996
+ an exact request. By default Sogni's AI Screenwriter rewrites the prompt on the
997
+ server and submits it with Alibaba's own `prompt_extend` off, so a prompt is
998
+ never rewritten twice. `--no-expand-prompt` sends your wording literally and
999
+ also skips the CLI's local prompt guardrails.
981
1000
 
982
1001
  - **Frame mode:** `--ref` is the first frame; optional `--ref-end` is the last
983
1002
  frame. A last frame requires a first frame.
@@ -1017,7 +1036,8 @@ so a prompt is not rewritten twice.
1017
1036
  Prompt in plain natural language. Name references exactly as `Image 1`,
1018
1037
  `Video 1`, and `Audio 1` in per-modality submission order. For dialogue, quote
1019
1038
  the words and identify the speaker; keep the visual action and camera direction
1020
- observable and concise.
1039
+ observable and concise. The full rules are in
1040
+ [video-prompting.md § Wan 3 Prompting](./video-prompting.md#wan-3-prompting).
1021
1041
 
1022
1042
  ## Wan 3.0 Enhanced
1023
1043
 
@@ -1159,8 +1179,8 @@ video-conditioned R2V requires a worker above 40 GB.
1159
1179
  Ref2VA Turbo uses the exact upstream Euler/simple recipe and accepts only
1160
1180
  `--sampler euler`. The checkpoint is CFG-distilled with
1161
1181
  guidance locked at 1, so there is no negative branch and a `negativePrompt`
1162
- parameter is ignored wherever it is accepted. Put negative direction in the
1163
- prompt text instead.
1182
+ parameter is ignored wherever it is accepted. Put exclusions in the prompt
1183
+ text as positive facts ("the hall is empty").
1164
1184
  - **Balanced and Turbo use the same prompt contract as Standard H3.** Balanced
1165
1185
  is fixed at 8 steps with Euler/simple; Turbo is fixed at 4 steps with the
1166
1186
  `simple` scheduler; only Turbo's sampler has the three