@sogni-ai/sogni-creative-agent-skill 3.52.4 → 3.54.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.
@@ -80,6 +80,7 @@ export const TOOLS = [
80
80
  'MiniMax H3 FastH3 audio-to-video (model minimax-h3-fasth3-ia2v-turbo with ref + ref_audio, ' +
81
81
  'minimax-h3-fasth3-flfa2v-turbo with ref + ref_end + ref_audio, minimax-h3-fasth3-a2v-turbo with ref_audio only) ' +
82
82
  'drives the clip with the uploaded audio and keeps it as the soundtrack; no LoRAs. ' +
83
+ 'MiniMax H3 i2v, first/last-frame, FastH3 audio-to-video and r2v also take keyframes: extra images pinned at chosen times inside the clip. ' +
83
84
  'ref_audio = soundtrack/lip-sync audio, ref_video = motion reference. ' +
84
85
  'Rendering takes minutes; prefer output_path (absolute .mp4). ' + CHAT_ATTACHMENT_NOTE,
85
86
  inputSchema: {
@@ -97,6 +98,25 @@ export const TOOLS = [
97
98
  reference_images: { type: 'array', items: { type: 'string' }, description: 'Loose image reference paths/URLs (-c); repeatable for MiniMax H3 r2v' },
98
99
  reference_audios: { type: 'array', items: { type: 'string' }, description: 'Additional reference audio paths/URLs; MiniMax H3 r2v supports up to 3 total' },
99
100
  reference_videos: { type: 'array', items: { type: 'string' }, description: 'Additional reference video paths/URLs; MiniMax H3 r2v supports up to 3 total' },
101
+ keyframes: {
102
+ type: 'array',
103
+ maxItems: 8,
104
+ description:
105
+ 'MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame (ref/ref_end). ' +
106
+ 'Each item is {image, at_seconds}: image is an absolute path or URL; at_seconds is when the video should land on that image. ' +
107
+ 'Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. ' +
108
+ 'Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. ' +
109
+ 'Two keyframes are included in the price; each additional keyframe adds a little.',
110
+ items: {
111
+ type: 'object',
112
+ properties: {
113
+ image: str('Absolute path or URL of the keyframe image'),
114
+ at_seconds: num('When the video lands on this image, in seconds from the start'),
115
+ },
116
+ required: ['image', 'at_seconds'],
117
+ additionalProperties: false,
118
+ },
119
+ },
100
120
  generate_audio: { type: 'boolean', description: 'For MiniMax H3, keep generated audio (true) or strip it from the returned video (false)' },
101
121
  persona: str('Saved persona name (reference frame)'),
102
122
  target_resolution: num('Short-side target in px, preserves aspect'),
@@ -118,6 +138,14 @@ export const TOOLS = [
118
138
  push(args, '--ref-video', input.ref_video);
119
139
  for (const refVideo of input.reference_videos ?? []) push(args, '--ref-video', refVideo);
120
140
  for (const refImage of input.reference_images ?? []) push(args, '-c', refImage);
141
+ for (const keyframe of input.keyframes ?? []) {
142
+ const image = keyframe?.image;
143
+ const atSeconds = keyframe?.at_seconds;
144
+ if (typeof image !== 'string' || !image || typeof atSeconds !== 'number' || !Number.isFinite(atSeconds)) {
145
+ throw new Error('keyframes items need image (a path or URL) and at_seconds (a number of seconds).');
146
+ }
147
+ args.push('--keyframe', `${image}@${atSeconds}`);
148
+ }
121
149
  if (input.generate_audio === true) args.push('--generate-audio');
122
150
  if (input.generate_audio === false) args.push('--no-generate-audio');
123
151
  push(args, '--persona', input.persona);
@@ -2814,10 +2814,11 @@ const PROMPT_CONTRACTS = [
2814
2814
  },
2815
2815
  {
2816
2816
  "contractId": "animate_photo_v1",
2817
- "version": "1.2.0",
2817
+ "version": "1.3.0",
2818
2818
  "toolName": "animate_photo",
2819
- "baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes — describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words ÷ 3 + beat count ≤ clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\n— there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments — do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total → 4 segments × 15s, NOT 6×10s or 12×5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES — use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT — one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING — when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required — pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field — if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips — call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns — that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first — the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.",
2819
+ "baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes — describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words ÷ 3 + beat count ≤ clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\n— there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments — do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total → 4 segments × 15s, NOT 6×10s or 12×5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES — use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT — one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING — when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required — pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field — if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips — call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns — that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first — the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn animate_photo keyframes work with every MiniMax H3 image-to-video and first-and-last-frame selector,\nwith any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. They are the\nH3 way to make one continuous clip pass through several images. Without an explicit MiniMax H3 request,\na multi-image sequence keeps the adjacent-clip chain described above.",
2820
2820
  "parameterDocs": {
2821
+ "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On animate_photo every MiniMax H3 image-to-video and first-and-last-frame selector takes keyframes, with any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. When one continuous H3 clip should pass through extra images, pass them here on that single call instead of chaining sourceImageIndices clips.",
2821
2822
  "sourceImageIndices": "Batch source image indices. Read startIndex from prior generate_image/edit_image result. Negative = uploaded images (-1 = first upload). May be paired with frameRole=\"end\" only for explicit last/end-frame-only fan-out.",
2822
2823
  "prompts": "Per-clip prompt array. Length MUST equal sourceImageIndices.length when both are set.",
2823
2824
  "duration": "Per-clip duration in seconds. Target 15s when dialogue is involved and total length is given without per-clip spec.",
@@ -2838,10 +2839,11 @@ const PROMPT_CONTRACTS = [
2838
2839
  },
2839
2840
  {
2840
2841
  "contractId": "generate_video_v1",
2841
- "version": "1.4.0",
2842
+ "version": "1.5.0",
2842
2843
  "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\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook → world → disruption → escalation → reveal → title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements — describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words ÷ 3 + beats ≤ duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.",
2844
+ "baseDescription": "generate_video produces text-to-video clips and multimodal reference videos.\nUse for text-only video generation with no source image input. For Seedance and Wan 3, also\nuse this tool when uploaded/generated images, videos, or audio are loose references. Use\nanimate_photo when a source image must become the first frame of an LTX/WAN animation.\n\nWAN 3: Use videoModel=\"wan3.0-video\" for explicit Wan 3 requests. The same canonical model\nsupports text, up to 10 reference images, 5 reference videos, and 5 reference audios. Refer\nto loose assets in English prompts as Image 1, Video 1, and Audio 1, numbered independently\nby type. Do not bracket or @-prefix these identifiers. Wan 3 renders 2-30 seconds at fixed\n30 fps, offers 480P/720P/1080P and 16:9/4:3/1:1/3:4/9:16, and can toggle native audio.\n\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook → world → disruption → escalation → reveal → title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements — describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words ÷ 3 + beats ≤ duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn 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, never count as <Picture N>\nin the reference map, and R2V still needs its own image or video reference.",
2844
2845
  "parameterDocs": {
2846
+ "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On generate_video only the MiniMax H3 reference-to-video selectors (minimax-h3-r2v and its turbo, balanced and two-stage forms) take keyframes; text-to-video never does, and reference-to-video has no first or last frame to pin. Keyframes are not references: they do not go in referenceImageIndices, are never counted as <Picture N>, and R2V still needs its own image or video reference.",
2845
2847
  "prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
2846
2848
  "duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
2847
2849
  }
@@ -2942,10 +2944,11 @@ const PROMPT_CONTRACTS = [
2942
2944
  },
2943
2945
  {
2944
2946
  "contractId": "sound_to_video_v1",
2945
- "version": "1.1.0",
2947
+ "version": "1.2.0",
2946
2948
  "toolName": "sound_to_video",
2947
- "baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video — it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music → sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 — never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.",
2949
+ "baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video — it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music → sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 — never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn sound_to_video every MiniMax H3 audio selector takes keyframes: the audio drives the performance and\nthe keyframes pin how it looks at their times. imageIndex follows endImageIndex (-1 = first upload), not\nthe 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the audio\nselectors render the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every\nkeyframe must fall inside that clip.",
2948
2950
  "parameterDocs": {
2951
+ "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On sound_to_video every MiniMax H3 audio selector takes keyframes (image + audio, first and last frame + audio, and audio only, each one- and two-stage). imageIndex follows endImageIndex here too (-1 = first upload), not the 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the clip is then the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every keyframe must fall inside that. Without duration the host sizes the clip itself (to the audio from audioStart, or a 5.17 s default) and refuses keyframes that fall outside it.",
2949
2952
  "audioSource": "Uploaded audio file or reference to a prior generate_music result. Auto-detected when omitted after generate_music.",
2950
2953
  "endImageIndex": "Last frame for the MiniMax H3 FastH3 first/last frame + audio selectors only, indexed like animate_photo (-1 first upload, -2 second upload, non-negative generated results)."
2951
2954
  }
package/llm.txt CHANGED
@@ -10,7 +10,9 @@ model-selection questions. Seedance 2.5 supports 1080p with
10
10
  and optional last-frame images. Other recent additions include FastH3
11
11
  Two-Stage delivered 720p/1080p/2K, FastH3 audio-to-video from an uploaded track
12
12
  (`-m minimax-h3-fasth3-ia2v-turbo --ref first.png --ref-audio track.m4a`, or
13
- `-flfa2v-turbo` / `-a2v-turbo`), GPT Image 2.5 Sunburst/Flare, SAM 3 object
13
+ `-flfa2v-turbo` / `-a2v-turbo`), MiniMax H3 keyframes that pin extra images at
14
+ chosen times (repeatable `--keyframe image.png@3.5`, up to 8, on H3 i2v/flf2v,
15
+ Sound to Video, and Ref2VA), GPT Image 2.5 Sunburst/Flare, SAM 3 object
14
16
  masks, and promptless FlashVSR video upscaling to 1080p/1440p.
15
17
  Direct CLI: Pixal3D uses `--image-to-3d original.png -o object.glb` (add
16
18
  `--left-view`, `--back-view`, `--right-view` for multi-view); BiRefNet
@@ -143,7 +145,7 @@ retrying.
143
145
  repeatable `--model-tag <tag>` filters such as `spicy` or `uncensored`, plus
144
146
  `--json`. Availability comes from `sogni-client` and tags from the official
145
147
  Sogni catalog; `--list-api-models` lists language models instead.
146
- - Media references from `-c`, `--ref`, `--ref-end`, `--ref-audio`,
148
+ - Media references from `-c`, `--ref`, `--ref-end`, `--keyframe`, `--ref-audio`,
147
149
  `--reference-audio-identity`, `--ref-video`, and `--mask` are uploaded and forwarded as
148
150
  `media_references`; API chat also attaches image refs as vision inputs.
149
151
  Workflow JSON can bind refs with `sourceStepId: "$input_media"`.
@@ -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.52.4",
5
+ "version": "3.54.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.52.4",
3
+ "version": "3.54.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",
@@ -100,13 +100,13 @@
100
100
  "media-utilities.mjs"
101
101
  ],
102
102
  "dependencies": {
103
- "@sogni-ai/sogni-intelligence-client": "4.4.0",
103
+ "@sogni-ai/sogni-intelligence-client": "4.6.0",
104
104
  "execa": "^10.0.1",
105
105
  "json5": "^2.2.3",
106
106
  "sharp": "0.35.4"
107
107
  },
108
108
  "overrides": {
109
- "@sogni-ai/sogni-client": "5.56.0"
109
+ "@sogni-ai/sogni-client": "5.58.0"
110
110
  },
111
111
  "openclaw": {
112
112
  "extensions": [
@@ -72,6 +72,9 @@ ordered-field prompt; select the Two-Stage model for higher delivered sizes.
72
72
  To drive H3 with the user's own voice or song, use FastH3 audio-to-video:
73
73
  `-m minimax-h3-fasth3-ia2v-turbo --ref first.png --ref-audio track.m4a`
74
74
  (`-flfa2v-turbo` adds `--ref-end`, `-a2v-turbo` takes the audio alone).
75
+ To make one H3 clip pass through extra images at chosen times, add repeatable
76
+ `--keyframe image.png@3.5` (up to 8) to an H3 i2v/flf2v, Sound to Video, or
77
+ Ref2VA command, and describe each keyframe in the prompt at its time.
75
78
 
76
79
  Pixal3D: `--image-to-3d original.png --mesh-faces 30000 -o object.glb`; add
77
80
  `--left-view`, `--back-view` and/or `--right-view` for multi-view (named by the
@@ -207,6 +207,11 @@ submit inline `input.steps`; `--workflow-input <json|@path>` supplies the
207
207
  `dark-beast-krea2-identity-edit` for `edit_image`, and a `minimax-h3-*`
208
208
  `videoModel` for `generate_video` / `animate_photo`. Published ids and ranges
209
209
  come from `GET /v1/loras/comfy?modelId=<canonical-model-id>`.
210
+ - MiniMax H3 keyframes in a step: add `keyframes: [{ "imageIndex": -2,
211
+ "atSeconds": 3.5 }]` to an `animate_photo`, `sound_to_video`, or Ref2VA
212
+ `generate_video` step's `arguments`, with the images attached through
213
+ `-c/--context` (negative indices count image uploads, -1 first). See
214
+ [MiniMax H3 keyframes in hosted tools](#minimax-h3-keyframes-in-hosted-tools).
210
215
  - `--api-workflow storyboard-video` generates a storyline, creates one GPT
211
216
  Image 2 storyboard sheet, then feeds that artifact into Seedance as the
212
217
  video reference. `-Q fast|hq|pro` maps to GPT Image 2 low|medium|high
@@ -235,8 +240,11 @@ sogni-agent --api-workflow --workflow-input @workflow.json \
235
240
  ## Media references in hosted modes
236
241
 
237
242
  Hosted API requests forward media references from `-c`, `--ref`, `--ref-end`,
238
- `--ref-audio`, `--reference-audio-identity`, and `--ref-video` as
239
- `media_references` metadata. `--ref-audio` and `--ref-video` are repeatable in
243
+ `--keyframe`, `--ref-audio`, `--reference-audio-identity`, and `--ref-video` as
244
+ `media_references` metadata. Image references keep that order, so negative
245
+ image indices count `-c` images first, then `--ref`, `--ref-end`, and the
246
+ `--keyframe` images in time order (see
247
+ [MiniMax H3 keyframes in hosted tools](#minimax-h3-keyframes-in-hosted-tools)). `--ref-audio` and `--ref-video` are repeatable in
240
248
  api-chat / durable-chat mode — each entry uploads independently and is exposed
241
249
  to the hosted LLM as `@Audio1` / `@Audio2` / `@Video1` etc. API chat also
242
250
  attaches image refs as vision inputs. Local file references are uploaded to
@@ -337,3 +345,46 @@ Submit these media tools as durable workflow steps (`toolName` and `arguments`)
337
345
  Negative indices address uploads (-1 first); non-negative indices address generated results. 3D views are from the subject's perspective: left means the subject's own left side faces camera (subject faces screen-left), right means screen-right. Supply original images of the same subject at consistent height and framing; any subset of the three orbit views enables multi-view reconstruction. Keep the GLB in the model artifact lane, never feed it into an image tool.
338
346
 
339
347
  For two-stage Turbo H3, use explicit `minimax-h3-fasth3-*-turbo-2stage` selectors on the relevant video tool with `targetResolution`. For 1080p or 2K reference-to-video, use `minimax-h3-r2v-2stage` (Standard) or `minimax-h3-r2v-balanced-2stage` (Balanced) on `generate_video` with the same references as `minimax-h3-r2v` and `targetResolution` naming the delivered size. Audio-guided IA2V/FLFA2V/A2V selectors belong on `sound_to_video` and require the uploaded audio plus their named endpoint images. They preserve the supplied audio and reject LoRAs. Other H3 modes discover personal LoRAs through the [authenticated catalog](personal-loras.md).
348
+
349
+ ## MiniMax H3 keyframes in hosted tools
350
+
351
+ `animate_photo`, `sound_to_video`, and `generate_video` take an optional
352
+ `keyframes` argument that pins up to 8 images at exact moments inside one MiniMax
353
+ H3 clip. Its schema description, identical on all three tools:
354
+
355
+ > 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.
356
+
357
+ | Tool | `videoModel` selectors that take `keyframes` |
358
+ | --- | --- |
359
+ | `animate_photo` | Every MiniMax H3 image-to-video and first/last-frame selector, with any `frameRole` |
360
+ | `sound_to_video` | Every MiniMax H3 audio selector (image + audio, first and last frame + audio, audio only; one- and two-stage) |
361
+ | `generate_video` | Only the Reference to Video selectors (`minimax-h3-r2v*`); never text-to-video |
362
+
363
+ - `imageIndex` follows `endImageIndex` on every tool: -1 is the first image
364
+ upload, -2 the second, and 0 and up are generated results. On
365
+ `sound_to_video` this differs from the 0-based upload numbering of
366
+ `sourceImageIndex`.
367
+ - Each `atSeconds` lands on frame `round(atSeconds × 24)`, strictly inside the
368
+ job's real frame count (a Sound to Video clip without `duration` runs for the
369
+ audio window). Every other model, a time outside the clip, two keyframes on one
370
+ frame, or more than 8 is refused with a `PARAMETER_INVALID` error that says
371
+ what to change; nothing is clamped or dropped. Set `duration` so every keyframe
372
+ falls inside the clip.
373
+ - Keyframes add to the first and last frame and are never `<Picture N>`
374
+ references; on `generate_video` they do not go in `referenceImageIndices`.
375
+ - Price: two keyframes are included; each additional keyframe adds 0.75 s of
376
+ output time on FastH3 (0.3 s on other tiers) at the job's rate.
377
+ - Error 4100 means no online worker serving that model can pin keyframes right
378
+ now. It is a temporary availability refusal: retry shortly, or render without
379
+ keyframes.
380
+
381
+ From the CLI, `--keyframe <image>@<seconds>` in `--api-chat` / `--durable-chat`
382
+ uploads each image as an image media reference after `--ref` / `--ref-end` and
383
+ tells the hosted agent the exact argument to use, for example
384
+ `keyframes: [{"imageIndex": -2, "atSeconds": 3.5}]` after one `--ref`. In an
385
+ `--api-workflow --workflow-input` plan, put `keyframes` in the step's
386
+ `arguments` and attach the images with `-c/--context` (`--api-workflow`
387
+ refuses `--keyframe`). See [models.md § MiniMax H3 keyframes](models.md#minimax-h3-keyframes)
388
+ for supported models and prices, and
389
+ [video-prompting.md § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
390
+ for how to describe keyframes in the prompt.
@@ -0,0 +1,79 @@
1
+ # Long jobs, queued work, and results after a session
2
+
3
+ Sogni projects run on the network, not in the CLI process. A project keeps
4
+ going when the CLI stops waiting, when its connection drops, and when no agent
5
+ is connected at all. These commands follow a project by id instead of holding a
6
+ connection open for its whole life.
7
+
8
+ ## Commands
9
+
10
+ ```bash
11
+ # Submit and return at once; prints the project id and the follow-up commands.
12
+ sogni-agent --video -m minimax-h3-ref2va-fp8_r2v --workflow r2v -c face.png --detach --json "A slow dolly toward the subject"
13
+
14
+ # State, and while queued, why it is waiting.
15
+ sogni-agent --status <projectId> --json
16
+
17
+ # Finished media (-o saves it; several renders get -2, -3 suffixes like a normal run).
18
+ sogni-agent --result <projectId> -o clip.mp4 --json
19
+
20
+ # This account's completed projects, newest first (default 24 h, max 168).
21
+ sogni-agent --recent --json
22
+ sogni-agent --recent 6 --json
23
+ ```
24
+
25
+ `--detach` refuses flows that submit a second project after the first finishes
26
+ (`--looping`, `--multi-angle`, source reels, hosted workflows and `--api-chat`).
27
+
28
+ ## Start of a session
29
+
30
+ Run `sogni-agent --recent --json` and offer the user any results they have not
31
+ seen. The socket holds a project that finished while its client was
32
+ disconnected for one hour only; `--recent` and `--result` read the durable
33
+ account history (7 days), so nothing that finished while the agent was away is
34
+ lost.
35
+
36
+ ## Why a project is waiting
37
+
38
+ `--status` (and the progress log of a waiting run) reports the server's reason:
39
+
40
+ - **Plan limit**: "you've reached your Unlimited plan limit for simultaneous
41
+ MiniMax H3 videos". The account is already running as many of these as its
42
+ plan allows: the Unlimited plan runs one standard MiniMax H3 video at a time
43
+ and Unlimited Pro two, while H3 Balanced and Turbo get more. It starts by
44
+ itself when one of the account's own jobs finishes. This is not a shortage of
45
+ workers; submitting more only lengthens the line. Tell the user plainly, and
46
+ mention Unlimited Pro only when they ask how to run more at once.
47
+ - **Confirming payment**: brief; it clears on its own.
48
+ - **Waiting for an available worker**: the network has no free worker that can
49
+ run it yet.
50
+
51
+ Never resubmit or cancel a queued project to "retry" it. That loses its place
52
+ and, for a plan-limited queue, changes nothing.
53
+
54
+ ## Batches
55
+
56
+ Several standard MiniMax H3 videos submitted together on Unlimited run one after
57
+ another: the last waits for every render ahead of it. Before submitting a batch,
58
+ say so and estimate the wait as one render's time multiplied by the number of
59
+ renders ahead of it, not a single-job estimate. Before each video submission the
60
+ CLI notes how many of the account's other video projects are already queued or
61
+ rendering (from other runs, apps or devices).
62
+
63
+ ## Timeouts
64
+
65
+ `-t` is how long a run waits, counted from submission (uploads excluded). Time
66
+ the account's own plan limit holds a project is not counted, because that wait
67
+ ends on its own. When `-t` runs out the project is **not** cancelled: the run
68
+ exits with `errorCode: "PROJECT_TIMEOUT_STILL_RUNNING"`, and
69
+ `details.resultCommands` holds the `sogni-agent --result <id>` commands that
70
+ fetch it later (`details.waitingReason` says why it was still waiting).
71
+ `--cancel-on-timeout` restores the old behavior of cancelling on timeout.
72
+
73
+ Hosts that cap a single tool call (often around 10 minutes) cannot wait out a
74
+ long video in one call. Submit it with `--detach`, check back with `--status`,
75
+ and collect it with `--result <id> -o <file>` in later calls, instead of
76
+ raising `-t`.
77
+
78
+ `--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
79
+ later; an older installation says so and asks for a skill update.
@@ -956,6 +956,51 @@ sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo-2stage --target-resolutio
956
956
  For audio used as a loose reference rather than the soundtrack (a voice or
957
957
  rhythm the prompt assigns a job to), use H3 r2v instead.
958
958
 
959
+ ### MiniMax H3 keyframes
960
+
961
+ Repeatable `--keyframe <image>@<seconds>` (a local path or URL, then the time the
962
+ video lands on it) pins up to **8** extra stills at exact moments inside an H3
963
+ clip, in addition to `--ref` / `--ref-end`.
964
+
965
+ | Selectors | Keyframes |
966
+ |-----------|-----------|
967
+ | `minimax-h3-i2v`, `minimax-h3-flf2v`, and their `-balanced`, `-turbo`, `-fasth3-…-turbo`, and FastH3 Two-Stage forms (including generic selectors that resolve to them) | Yes, between the first and last frame |
968
+ | `minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`, `-a2v-turbo`, and their `-2stage` forms | Yes; the uploaded audio still drives the clip |
969
+ | `minimax-h3-r2v`, `-r2v-balanced`, `-r2v-turbo`, `-r2v-2stage`, `-r2v-balanced-2stage` | Yes; keyframes travel in their own upload slots and are not references |
970
+ | Text-to-video (`minimax-h3-t2v`, or any generic selector with no frame, audio, or reference) | No; the CLI refuses the flag |
971
+
972
+ - **Times:** each keyframe lands on frame `round(seconds × 24)`, which must be
973
+ strictly inside the snapped clip (0.1–7.9 s on an 8 s, 192-frame clip) and
974
+ different from every other keyframe's frame. Anything else, or more than 8
975
+ keyframes, is refused with the range to use; nothing is clamped or dropped.
976
+ - **Framing:** each still is centre-cropped onto the clip's canvas exactly like
977
+ the last frame (at twice the canvas on Two-Stage models). Use stills with the
978
+ clip's aspect ratio.
979
+ - **Price:** two keyframes are included. Each additional keyframe adds output
980
+ time at the job's rate: 0.75 s on FastH3 (including Two-Stage and Sound to
981
+ Video) and 0.3 s on the other tiers. An 8 s FastH3 clip costs 32 Spark with up
982
+ to two keyframes and 50 Spark with eight. `--estimate-video-cost` and the
983
+ balance check include the keyframe count.
984
+ - **Availability:** if no online worker serving the model can pin keyframes
985
+ yet, the network refuses the job with error 4100. The CLI reports it as a
986
+ retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
987
+ keyframes.
988
+ - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
989
+ one shows at its time, and cut to a new shot at a keyframe that changes the
990
+ camera angle, place, or light. Read
991
+ [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
992
+ before writing the prompt.
993
+ - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
994
+ (Ref2VA only) take the same pins as `keyframes: [{ imageIndex, atSeconds }]`;
995
+ see [`hosted-api.md`](hosted-api.md#minimax-h3-keyframes-in-hosted-tools).
996
+
997
+ ```bash
998
+ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png --keyframe turn.png@3.5 --keyframe wave.png@6 --duration 8 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
999
+ sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo --ref portrait.png --ref-audio song.mp3 --keyframe chorus.png@7.5 --duration 12 -o ./music-video.mp4 "<I2V preamble plus three-field H3 prompt>"
1000
+ sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --keyframe rooftop.png@5 --duration 8 -o ./ref.mp4 "<six-field Ref2VA prompt>"
1001
+ sogni-agent --json --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --keyframe turn.png@3 --keyframe wave.png@6 --duration 8 --estimate-video-cost "<prompt>"
1002
+ ```
1003
+
959
1004
  ### MiniMax H3 prompting
960
1005
 
961
1006
  Standard, Balanced, and Turbo T2V, I2V, and FLF2V use MiniMax's exact three-field rewrite
@@ -1014,7 +1059,10 @@ Sogni Socket before the job is priced):
1014
1059
  At least one image or video is required; audio alone is invalid. For a prompt-only render use
1015
1060
  `minimax-h3-t2v`; for a locked opening frame use `minimax-h3-i2v`; to
1016
1061
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1017
- at all, so an end-frame parameter is rejected rather than ignored.
1062
+ at all, so an end-frame parameter is rejected rather than ignored. It can still
1063
+ pin stills strictly inside the clip with `--keyframe`; keyframes are not
1064
+ references, take no `<Picture N>` label, and use no reference slot (see
1065
+ [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1018
1066
 
1019
1067
  Ref2VA uses exactly six fields in this order:
1020
1068
 
@@ -1190,7 +1238,7 @@ model recommendations.
1190
1238
 
1191
1239
  ## Video sizing & aspect ratios
1192
1240
 
1193
- - **WAN 2.2 models** use dimensions divisible by 16, min 480 px, max 1536 px.
1241
+ - **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
1194
1242
  - **Wan 3** uses fixed 30 fps, fixed or smart 2–30 s output, and 480P/720P/1080P buckets with `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, and `9:16`; see [Alibaba Wan 3](#alibaba-wan-3).
1195
1243
  - **Wan 3.0 Enhanced** uses fixed 30 fps, fixed or smart 2–30 s output, 480P/720P/1080P buckets, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`; see [Wan 3.0 Enhanced](#wan-30-enhanced).
1196
1244
  - **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
@@ -184,6 +184,12 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
184
184
  fields rather than requesting different audio. `--audio-start` picks the
185
185
  window; its length is the clip length. No LoRAs; see
186
186
  [models.md § FastH3 audio-to-video](./models.md#fasth3-audio-to-video).
187
+ - **Intermediate keyframes pin extra images at chosen times.** Repeatable
188
+ `--keyframe <image>@<seconds>` (up to 8) works on the image-to-video,
189
+ first/last-frame, Sound to Video, and Ref2VA selectors, in addition to
190
+ `--ref` / `--ref-end`. H3 never sees a keyframe in the prompt, so the prompt
191
+ must describe each one at its time; see
192
+ [Intermediate keyframes](#intermediate-keyframes) below.
187
193
  - **Sogni's H3 tiers render the 768p-class open-weights release.** Only FastH3
188
194
  Two-Stage delivers 1080p or 2K (Sogni's own latent enlargement); do not claim
189
195
  either for any other H3 selector. MiniMax's hosted 2K stage is not part of
@@ -535,7 +541,9 @@ video) is required. A reference video can be the only visual input; audio alone
535
541
  is invalid. r2v
536
542
  has no frame anchors at all—for
537
543
  a locked opening frame use `minimax-h3-i2v`, and for a first-to-last-frame
538
- transition use `minimax-h3-flf2v`.
544
+ transition use `minimax-h3-flf2v`. Ref2VA can still pin stills strictly inside
545
+ the clip with `--keyframe`; those are not references and take no label (see
546
+ [Intermediate keyframes](#intermediate-keyframes)).
539
547
 
540
548
  Ref2VA does not use the three-field Standard contract. Write exactly these six
541
549
  fields, in this order:
@@ -649,6 +657,73 @@ music can cite `<Audio N>` without an invented speaker ID. Put copied ambience
649
657
  and effects in `overall_soundscape`, audience-only score in
650
658
  `non_diegetic_music`, and use both fields when the source contains both.
651
659
 
660
+ ### Intermediate keyframes
661
+
662
+ `--keyframe <image>@<seconds>` pins a still image (local path or URL) at an
663
+ exact moment inside an H3 clip, in addition to the first and last frame. Repeat
664
+ it for up to 8 keyframes. It works on every image-to-video and first/last-frame
665
+ selector (Standard, Balanced, Turbo, FastH3, and FastH3 Two-Stage), on the FastH3
666
+ Sound to Video selectors (`minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`,
667
+ `-a2v-turbo`, and their `-2stage` forms), and on every Ref2VA selector.
668
+ Text-to-video cannot pin keyframes.
669
+
670
+ - **Timing.** A keyframe lands on frame `round(seconds × 24)`, which must fall
671
+ strictly inside the snapped clip: from 0.1 s to one frame before the last
672
+ (0.1–7.9 s on an 8 s, 192-frame clip). The first and last frames belong to
673
+ `--ref` and `--ref-end`, never to a keyframe, and two keyframes cannot share a
674
+ frame. The CLI refuses anything else and names the range to use; it never
675
+ moves or drops a keyframe.
676
+ - **H3 never sees the keyframe images in the prompt.** They are not
677
+ `<Picture N>` or `<Subject N>` references: never label one, never put one in
678
+ the alignment line or in Ref2VA's `subject_definitions` and
679
+ `retention_analysis`, and never write the words keyframe, still, or pinned
680
+ in the prompt. H3 knows what a keyframe shows only from your words, so describe
681
+ each one at its time.
682
+ - **Compare each keyframe with the anchor before it** (the first frame or the
683
+ previous keyframe):
684
+ - **Same camera angle, place, and light; only the subjects moved.** Stay in the
685
+ same shot and bring the action to the pose, position, facing, expression,
686
+ and props the keyframe shows, ordered with words (`as she reaches the rail`),
687
+ never with a clock time. A tighter framing from the same angle can arrive as
688
+ a push-in.
689
+ - **New camera angle, place, or light.** Start a new shot exactly at its time,
690
+ `[Shot N] At MM:SS.mmm, the camera cuts to …`, and open that shot with the
691
+ keyframe's composition: shot size, camera angle, where each subject stands
692
+ and faces, the setting, and the light. An action in progress carries across
693
+ the cut. These cuts apply even when the request prefers one continuous shot,
694
+ and the alignment line's final `Shot N` counts them. If the last frame is
695
+ framed or lit differently from the last keyframe, the final shot cuts to it.
696
+ - **Never put two differently framed or lit anchors in one shot.** They
697
+ cross-fade into each other, and a shot described differently from its keyframe
698
+ can flash the keyframe for a single frame.
699
+ - **The cut clock** is the keyframe's frame ÷ 24, rounded down to the
700
+ millisecond: `@3.5` is frame 84, `00:03.500`; `@2.3` is frame 55, `00:02.291`.
701
+ The CLI prints each one before rendering (`Keyframe at 00:03.500 (frame 84)`).
702
+ - **Sound to Video:** the uploaded audio still drives the performance; keyframes
703
+ pin how the clip looks at their times.
704
+ - **Framing and price.** Each keyframe is centre-cropped onto the clip's canvas
705
+ like the last frame, so use stills with the clip's aspect ratio. Two keyframes
706
+ are included in the price; each additional keyframe adds a little output time
707
+ (see [models.md § MiniMax H3 keyframes](./models.md#minimax-h3-keyframes)).
708
+
709
+ Worked example — the courier leaves the alley (first frame), is inside a
710
+ stairwell at 4 s (a new place, so a cut), and reaches the top of the stairs
711
+ (last frame, same stairwell and light, so no second cut):
712
+
713
+ ```bash
714
+ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./alley.png --ref-end ./stair-top.png --keyframe ./stairwell.png@4 --duration 8 -w 1344 -h 768 -o ./courier.mp4 "<prompt below>"
715
+ ```
716
+
717
+ ```text
718
+ How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 8.00-second mark of the target video.
719
+
720
+ integrated_multimodal_description: [Shot 1] Live-action, cinematic. In the position and framing established by Picture 1, a bike courier in a yellow rain jacket wheels her bike down a narrow wet alley toward a steel side door while rain drips from the fire escape above. She leans the bike against the brick, hauls the door open, and steps through as the static wide shot holds on the alley. [Shot 2] At 00:04.000, the camera cuts to a low-angle shot inside a bare concrete stairwell lit by a caged orange bulb, the courier on the bottom step with her helmet in one hand, facing up the stairs. She climbs two steps at a time, one hand sliding along the painted rail, and settles into the pose, spacing, and composition established by Picture 2 at the end of the shot.
721
+
722
+ overall_soundscape: Rain patters on metal in the alley, the steel door clangs shut behind her, and her footsteps echo up the stairwell.
723
+
724
+ non_diegetic_music: N/A
725
+ ```
726
+
652
727
  ### Agent-ready H3 command shapes
653
728
 
654
729
  ```bash
@@ -677,6 +752,9 @@ sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --durati
677
752
  sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
678
753
  sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo --ref ./first.png --ref-audio ./voice.m4a --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt with the uploaded words in <d> tags>"
679
754
 
755
+ # Intermediate keyframes: repeat --keyframe <image>@<seconds> (up to 8) on i2v, flf2v, Sound to Video, or Ref2VA
756
+ sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --keyframe ./turn.png@3.5 --keyframe ./wave.png@6 --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt that reaches each keyframe at its time>"
757
+
680
758
  # Reference-to-video (reference order defines the prompt ordinals)
681
759
  sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<six-field Ref2VA prompt>"
682
760
  sogni-agent -q --video -m minimax-h3-r2v-balanced --ref ./identity.png -c ./wardrobe.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<six-field Ref2VA prompt>"
@@ -21,6 +21,7 @@ const referenceFiles = [
21
21
  'image-prompting.md',
22
22
  'interactive-worlds.md',
23
23
  'krea2-loras.md',
24
+ 'long-jobs-and-queues.md',
24
25
  'loop-maker.md',
25
26
  'models.md',
26
27
  'object-selection.md',