@sogni-ai/sogni-intelligence-client 4.22.10 → 4.23.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 (74) hide show
  1. package/README.md +1 -0
  2. package/dist/contracts/imagePrompt.d.ts +1 -0
  3. package/dist/contracts/imagePrompt.d.ts.map +1 -1
  4. package/dist/contracts/imagePrompt.js +4 -4
  5. package/dist/contracts/imagePrompt.js.map +1 -1
  6. package/dist/prompt-guides/happyhorse.d.ts +8 -0
  7. package/dist/prompt-guides/happyhorse.d.ts.map +1 -0
  8. package/dist/prompt-guides/happyhorse.js +55 -0
  9. package/dist/prompt-guides/happyhorse.js.map +1 -0
  10. package/dist/prompt-guides/image.d.ts +5 -0
  11. package/dist/prompt-guides/image.d.ts.map +1 -0
  12. package/dist/prompt-guides/image.js +80 -0
  13. package/dist/prompt-guides/image.js.map +1 -0
  14. package/dist/prompt-guides/index.d.ts +9 -0
  15. package/dist/prompt-guides/index.d.ts.map +1 -0
  16. package/dist/prompt-guides/index.js +70 -0
  17. package/dist/prompt-guides/index.js.map +1 -0
  18. package/dist/prompt-guides/ltx.d.ts +8 -0
  19. package/dist/prompt-guides/ltx.d.ts.map +1 -0
  20. package/dist/prompt-guides/ltx.js +135 -0
  21. package/dist/prompt-guides/ltx.js.map +1 -0
  22. package/dist/prompt-guides/minimax.d.ts +31 -0
  23. package/dist/prompt-guides/minimax.d.ts.map +1 -0
  24. package/dist/prompt-guides/minimax.js +172 -0
  25. package/dist/prompt-guides/minimax.js.map +1 -0
  26. package/dist/prompt-guides/registry.d.ts +7 -0
  27. package/dist/prompt-guides/registry.d.ts.map +1 -0
  28. package/dist/prompt-guides/registry.js +100 -0
  29. package/dist/prompt-guides/registry.js.map +1 -0
  30. package/dist/prompt-guides/seedance.d.ts +10 -0
  31. package/dist/prompt-guides/seedance.d.ts.map +1 -0
  32. package/dist/prompt-guides/seedance.js +155 -0
  33. package/dist/prompt-guides/seedance.js.map +1 -0
  34. package/dist/prompt-guides/shared.d.ts +3 -0
  35. package/dist/prompt-guides/shared.d.ts.map +1 -0
  36. package/dist/prompt-guides/shared.js +6 -0
  37. package/dist/prompt-guides/shared.js.map +1 -0
  38. package/dist/prompt-guides/types.d.ts +19 -0
  39. package/dist/prompt-guides/types.d.ts.map +1 -0
  40. package/dist/prompt-guides/types.js +15 -0
  41. package/dist/prompt-guides/types.js.map +1 -0
  42. package/dist/prompt-guides/wan.d.ts +3 -0
  43. package/dist/prompt-guides/wan.d.ts.map +1 -0
  44. package/dist/prompt-guides/wan.js +78 -0
  45. package/dist/prompt-guides/wan.js.map +1 -0
  46. package/dist/prompt-guides/wan3.d.ts +12 -0
  47. package/dist/prompt-guides/wan3.d.ts.map +1 -0
  48. package/dist/prompt-guides/wan3.js +51 -0
  49. package/dist/prompt-guides/wan3.js.map +1 -0
  50. package/dist-esm/contracts/imagePrompt.js +1 -1
  51. package/dist-esm/contracts/imagePrompt.js.map +1 -1
  52. package/dist-esm/prompt-guides/happyhorse.js +52 -0
  53. package/dist-esm/prompt-guides/happyhorse.js.map +1 -0
  54. package/dist-esm/prompt-guides/image.js +77 -0
  55. package/dist-esm/prompt-guides/image.js.map +1 -0
  56. package/dist-esm/prompt-guides/index.js +8 -0
  57. package/dist-esm/prompt-guides/index.js.map +1 -0
  58. package/dist-esm/prompt-guides/ltx.js +132 -0
  59. package/dist-esm/prompt-guides/ltx.js.map +1 -0
  60. package/dist-esm/prompt-guides/minimax.js +169 -0
  61. package/dist-esm/prompt-guides/minimax.js.map +1 -0
  62. package/dist-esm/prompt-guides/registry.js +95 -0
  63. package/dist-esm/prompt-guides/registry.js.map +1 -0
  64. package/dist-esm/prompt-guides/seedance.js +152 -0
  65. package/dist-esm/prompt-guides/seedance.js.map +1 -0
  66. package/dist-esm/prompt-guides/shared.js +3 -0
  67. package/dist-esm/prompt-guides/shared.js.map +1 -0
  68. package/dist-esm/prompt-guides/types.js +12 -0
  69. package/dist-esm/prompt-guides/types.js.map +1 -0
  70. package/dist-esm/prompt-guides/wan.js +75 -0
  71. package/dist-esm/prompt-guides/wan.js.map +1 -0
  72. package/dist-esm/prompt-guides/wan3.js +48 -0
  73. package/dist-esm/prompt-guides/wan3.js.map +1 -0
  74. package/package.json +11 -2
@@ -0,0 +1,52 @@
1
+ import { DYNAMIC_PROMPT_BRANCH_GUIDANCE } from './shared.js';
2
+ import { modelPromptGuide, } from './types.js';
3
+ export const HAPPYHORSE_REFERENCE_GRAMMAR_GUIDANCE = `REFERENCE GRAMMAR: HappyHorse reference images are labeled with square-bracket ordinal tags written exactly as [Image 1], [Image 2], … up to [Image 9] — one space after "Image", 1-indexed, in attachment order. If the base request uses aliases such as Image 1, @Image1, picture 2, or "the second photo", rewrite them as [Image 1], [Image 2]. Never use Seedance-style @-tags, never mention reference URLs or asset IDs.`;
4
+ export const HAPPYHORSE_REFERENCE_ROLE_GUIDANCE = `REFERENCE ROLE DISCIPLINE: Give every reference image a clear creative role tied to its [Image N] tag — character identity, wardrobe, setting, prop, or style — and keep that subject consistent across the shot. Use role language such as "keep the character's face, hair, and outfit consistent with [Image 1]" or "match the room and lighting from [Image 2]". Do not write vague phrases like "use the attached images", and do not re-describe in full what a reference already shows.`;
5
+ export const HAPPYHORSE_AUDIO_GUIDANCE = `AUDIO: HappyHorse renders a native synchronized audio track — always on, with multilingual lip-sync. Weave foley and ambient sound into plain sentences (footsteps, fabric, wind, water, room tone, environmental ambience). When the scene involves speech or the user supplies dialogue, keep the spoken lines in double quotes and state that the subject speaks on camera with mouth movements matched to the words. Do not invent songs or a musical score unless the user asks for them.`;
6
+ export const HAPPYHORSE_NEGATIVE_TRANSLATION_GUIDANCE = `NEGATIVE CONSTRAINT TRANSLATION: HappyHorse has no negative-prompt input and receives only this positive prompt. Translate user avoid/no/don't constraints into affirmative production constraints instead of copying negative phrasing. The output prompt must not use words such as "no", "not", "without", "avoid", or "never" except inside exact quoted user-requested text. Examples: "no people in background" becomes single subject focus with an empty background; "no text" becomes clean blank surfaces; "don't make it blurry" becomes crisp sharp focus; "no music" becomes only natural ambient sound and foley. If the user asks for exact quoted visible text, preserve that quoted text exactly.`;
7
+ export const HAPPYHORSE_DYNAMIC_BRANCH_GUIDANCE = DYNAMIC_PROMPT_BRANCH_GUIDANCE;
8
+ const HAPPYHORSE_CINEMATOGRAPHY_GUIDANCE = `CINEMATOGRAPHY: Write like a concise director's shot brief. Use one continuous shot unless the request asks for cuts, a montage or separate shots; then open each shot with its own time-coded beat that names the cut. Weave together the subjects with rich physical detail, the environment and the light sources the scene implies, and one primary thread of physically filmable motion using temporal connectors ("as", "then", "while"). Add a lens, color grade or film-stock note only when the request names a look or style. Express emotion through visible behavior — posture, gesture, breathing — never emotional labels. Match the pace to the action: calm words for calm moments, and for fast action show the speed through what rushes past the camera and the ground covered within a beat, because the word "fast" alone renders slower than intended.`;
9
+ const HAPPYHORSE_CAMERA_GUIDANCE = `CAMERA: One primary camera move per shot — dolly in, slow pan, tracking shot, orbital arc, crane up, push-in, or pull-back. Stacking multiple moves causes jitter. Keep the camera move in its own clause, separate from subject motion.`;
10
+ const HAPPYHORSE_FORMAT_GUIDANCE = `FORMAT: A single present-tense paragraph of flowing, visually specific prose. No bullets, headers, markdown, preamble, or labels. Avoid vague words ("beautiful", "nice"); avoid semicolons, em dashes, and parentheticals.`;
11
+ const HAPPYHORSE_TIME_CODED_BEATS_GUIDANCE = `TIME-CODED BEATS: For clips longer than 5 seconds, segment the action with compact time-coded beats such as "0-3s: …, 3-6s: …, 6-10s: …" so the motion reads in order.`;
12
+ const HAPPYHORSE_PROPER_NOUN_GUIDANCE = `PROPER NOUNS: Preserve exact spelling and punctuation of brand or product names from the base request, including dotted names such as Sogni.ai.`;
13
+ const HAPPYHORSE_LENGTH_GUIDANCE = `LENGTH: About 80–160 words for a single-beat shot, plus about 30 words for each further time-coded beat. Never drop a requested detail to fit. Output ONLY the rewritten prompt — no explanations, no labels.`;
14
+ const HAPPYHORSE_I2V_ANCHOR_GUIDANCE = `ANCHOR DISCIPLINE: The first frame already defines the subject, wardrobe, setting, and composition — do NOT re-describe or restyle it, and do NOT add any [Image N] tag. Describe only the motion, action, performance, and camera that flow forward from the first frame, plus how the scene evolves over the clip.`;
15
+ const HAPPYHORSE_NOTES = [
16
+ 'Use one flowing, present-tense director brief: one continuous shot with one primary camera move, or time-coded shots when the request asks for cuts or a montage.',
17
+ 'For I2V, treat the single image as the locked first frame and describe only the motion that follows; do not add a reference tag.',
18
+ 'For R2V, label image references exactly [Image 1] through [Image 9] and assign each image a concrete identity, wardrobe, setting, prop, or style role.',
19
+ 'Describe synchronized dialogue, ambience, and foley in the prompt because native audio is always enabled.',
20
+ 'Translate exclusions into affirmative visual constraints because HappyHorse does not accept a separate negative prompt.',
21
+ 'Keep clips within the validated 3-15 second, 720p/1080p operating range.',
22
+ ];
23
+ const HAPPYHORSE_SHARED_RULES = [
24
+ HAPPYHORSE_CINEMATOGRAPHY_GUIDANCE,
25
+ HAPPYHORSE_CAMERA_GUIDANCE,
26
+ HAPPYHORSE_AUDIO_GUIDANCE,
27
+ HAPPYHORSE_NEGATIVE_TRANSLATION_GUIDANCE,
28
+ HAPPYHORSE_DYNAMIC_BRANCH_GUIDANCE,
29
+ HAPPYHORSE_FORMAT_GUIDANCE,
30
+ HAPPYHORSE_TIME_CODED_BEATS_GUIDANCE,
31
+ HAPPYHORSE_PROPER_NOUN_GUIDANCE,
32
+ HAPPYHORSE_LENGTH_GUIDANCE,
33
+ ];
34
+ function happyhorseGuide(mode, title, models, openingRules, referenceGrammar) {
35
+ return modelPromptGuide({
36
+ family: 'happyhorse-1.1',
37
+ mode,
38
+ title: `HappyHorse 1.1 ${title}`,
39
+ models,
40
+ referenceGrammar,
41
+ rules: [...openingRules, ...HAPPYHORSE_SHARED_RULES],
42
+ notes: HAPPYHORSE_NOTES,
43
+ });
44
+ }
45
+ export const HAPPYHORSE_PROMPT_GUIDES = {
46
+ 'happyhorse-1.1': {
47
+ t2v: happyhorseGuide('t2v', 'text-to-video', ['happyhorse-1.1', 'happyhorse-1.1-t2v'], [], null),
48
+ i2v: happyhorseGuide('i2v', 'first-frame image-to-video', ['happyhorse-1.1-i2v'], [HAPPYHORSE_I2V_ANCHOR_GUIDANCE], null),
49
+ r2v: happyhorseGuide('r2v', 'reference-to-video', ['happyhorse-1.1-r2v'], [HAPPYHORSE_REFERENCE_GRAMMAR_GUIDANCE, HAPPYHORSE_REFERENCE_ROLE_GUIDANCE], HAPPYHORSE_REFERENCE_GRAMMAR_GUIDANCE),
50
+ },
51
+ };
52
+ //# sourceMappingURL=happyhorse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"happyhorse.js","sourceRoot":"","sources":["../../src/prompt-guides/happyhorse.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,gBAAgB,GAIjB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,qCAAqC,GAAG,kaAAka,CAAC;AAExd,MAAM,CAAC,MAAM,kCAAkC,GAAG,geAAge,CAAC;AAEnhB,MAAM,CAAC,MAAM,yBAAyB,GAAG,geAAge,CAAC;AAE1gB,MAAM,CAAC,MAAM,wCAAwC,GAAG,orBAAorB,CAAC;AAE7uB,MAAM,CAAC,MAAM,kCAAkC,GAAG,8BAA8B,CAAC;AAEjF,MAAM,kCAAkC,GAAG,80BAA80B,CAAC;AAC13B,MAAM,0BAA0B,GAAG,0OAA0O,CAAC;AAC9Q,MAAM,0BAA0B,GAAG,6NAA6N,CAAC;AACjQ,MAAM,oCAAoC,GAAG,wKAAwK,CAAC;AACtN,MAAM,+BAA+B,GAAG,iJAAiJ,CAAC;AAC1L,MAAM,0BAA0B,GAAG,+MAA+M,CAAC;AACnP,MAAM,8BAA8B,GAAG,sTAAsT,CAAC;AAG9V,MAAM,gBAAgB,GAAsB;IAC1C,mKAAmK;IACnK,kIAAkI;IAClI,wJAAwJ;IACxJ,2GAA2G;IAC3G,yHAAyH;IACzH,0EAA0E;CAC3E,CAAC;AAGF,MAAM,uBAAuB,GAAG;IAC9B,kCAAkC;IAClC,0BAA0B;IAC1B,yBAAyB;IACzB,wCAAwC;IACxC,kCAAkC;IAClC,0BAA0B;IAC1B,oCAAoC;IACpC,+BAA+B;IAC/B,0BAA0B;CAC3B,CAAC;AAEF,SAAS,eAAe,CACtB,IAA0B,EAC1B,KAAa,EACb,MAAyB,EACzB,YAA+B,EAC/B,gBAA+B;IAE/B,OAAO,gBAAgB,CAAC;QACtB,MAAM,EAAE,gBAAgB;QACxB,IAAI;QACJ,KAAK,EAAE,kBAAkB,KAAK,EAAE;QAChC,MAAM;QACN,gBAAgB;QAChB,KAAK,EAAE,CAAC,GAAG,YAAY,EAAE,GAAG,uBAAuB,CAAC;QACpD,KAAK,EAAE,gBAAgB;KACxB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAqD;IACxF,gBAAgB,EAAE;QAChB,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,eAAe,EAAE,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;QAChG,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,4BAA4B,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,8BAA8B,CAAC,EAAE,IAAI,CAAC;QACzH,GAAG,EAAE,eAAe,CAClB,KAAK,EACL,oBAAoB,EACpB,CAAC,oBAAoB,CAAC,EACtB,CAAC,qCAAqC,EAAE,kCAAkC,CAAC,EAC3E,qCAAqC,CACtC;KACF;CACF,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { PROMPTING_GUIDES } from '../contracts/imagePrompt.js';
2
+ import { modelPromptGuide, } from './types.js';
3
+ const QWEN_IMAGE_EDIT_NOTES = [
4
+ 'Describe the intended edit directly and preserve unmentioned composition, identity, lighting, and scene details.',
5
+ 'When multiple reference images are supplied, identify their roles in order and state which traits should transfer from each one.',
6
+ ];
7
+ const SDXL_NOTES = [
8
+ 'Keep positive and negative prompt concepts separated.',
9
+ 'Use concrete visual descriptors instead of long prose when targeting classic diffusion models.',
10
+ ];
11
+ function imageGuide(family, operation, modelTitle, promptingType, models, notes = []) {
12
+ return modelPromptGuide({
13
+ family,
14
+ mode: operation,
15
+ title: `${modelTitle} ${operation === 'edit' ? 'image editing' : 'text-to-image'}`,
16
+ models,
17
+ referenceGrammar: null,
18
+ rules: [PROMPTING_GUIDES[promptingType]],
19
+ notes,
20
+ });
21
+ }
22
+ export const IMAGE_PROMPT_GUIDES = {
23
+ chroma: { generate: imageGuide('chroma', 'generate', 'Chroma', 'chroma', ['chroma1-hd', 'chroma-v46-flash']) },
24
+ 'flux1-schnell': { generate: imageGuide('flux1-schnell', 'generate', 'FLUX.1 Schnell', 'flux1-schnell', ['flux1-schnell']) },
25
+ sdxl: { generate: imageGuide('sdxl', 'generate', 'Stable Diffusion XL', 'sdxl', ['sdxl', 'dreamshaper-xl'], SDXL_NOTES) },
26
+ sd15: { generate: imageGuide('sd15', 'generate', 'Stable Diffusion 1.5', 'sd15', ['sd15']) },
27
+ pony: { generate: imageGuide('pony', 'generate', 'Pony Diffusion XL', 'pony', ['pony', 'pony-v7']) },
28
+ fast: { generate: imageGuide('fast', 'generate', 'Fast distilled Stable Diffusion', 'fast', ['sdxl-turbo', 'sdxl-lightning', 'lcm']) },
29
+ sd3: { generate: imageGuide('sd3', 'generate', 'Stable Diffusion 3', 'sd3', ['sd3']) },
30
+ krea2: {
31
+ generate: imageGuide('krea2', 'generate', 'Krea 2', 'krea2', ['krea-2', 'krea2-turbo', 'dark-beast-krea2']),
32
+ edit: imageGuide('krea2', 'edit', 'Krea 2 Identity Edit', 'krea2-edit', ['krea2-identity-edit', 'dark-beast-krea2-identity-edit']),
33
+ },
34
+ 'moss-image': { generate: imageGuide('moss-image', 'generate', 'MOSS-Image', 'moss-image', ['moss-image', 'moss-image-8step']) },
35
+ 'flux3-klein': {
36
+ generate: imageGuide('flux3-klein', 'generate', 'FLUX 3 Image Klein', 'flux3-klein', ['flux-3-klein']),
37
+ edit: imageGuide('flux3-klein', 'edit', 'FLUX 3 Image Klein', 'flux3-klein-edit', ['flux-3-klein']),
38
+ },
39
+ qwen: {
40
+ generate: imageGuide('qwen', 'generate', 'Qwen Image 2512', 'qwen', ['qwen-image-2512', 'qwen-image-2512-lightning']),
41
+ edit: imageGuide('qwen', 'edit', 'Qwen Image Edit 2511', 'qwen-edit', ['qwen', 'qwen-image-edit-2511'], QWEN_IMAGE_EDIT_NOTES),
42
+ },
43
+ 'z-image': { generate: imageGuide('z-image', 'generate', 'Z-Image', 'z-image', ['z-image', 'z-image-turbo', 'dark-beast-z-image-turbo']) },
44
+ 'gpt-image': {
45
+ generate: imageGuide('gpt-image', 'generate', 'GPT Image 2', 'gpt-image', ['gpt-image-2', 'gpt-image-2.5-sunburst', 'gpt-image-2.5-flare']),
46
+ edit: imageGuide('gpt-image', 'edit', 'GPT Image 2', 'gpt-image-edit', ['gpt-image-2', 'gpt-image-2.5-sunburst', 'gpt-image-2.5-flare']),
47
+ },
48
+ seedream: {
49
+ generate: imageGuide('seedream', 'generate', 'Seedream 5.0 Pro Uncensored', 'seedream', ['seedream-5-pro-uncensored']),
50
+ edit: imageGuide('seedream', 'edit', 'Seedream 5.0 Pro Uncensored', 'seedream-edit', ['seedream-5-pro-uncensored']),
51
+ },
52
+ };
53
+ export const IMAGE_PROMPT_GUIDE_KEYS = {
54
+ flux: ['chroma', 'generate'],
55
+ 'flux1-schnell': ['flux1-schnell', 'generate'],
56
+ chroma: ['chroma', 'generate'],
57
+ sdxl: ['sdxl', 'generate'],
58
+ sd15: ['sd15', 'generate'],
59
+ pony: ['pony', 'generate'],
60
+ fast: ['fast', 'generate'],
61
+ sd3: ['sd3', 'generate'],
62
+ editing: null,
63
+ krea2: ['krea2', 'generate'],
64
+ 'moss-image': ['moss-image', 'generate'],
65
+ 'flux3-klein': ['flux3-klein', 'generate'],
66
+ qwen: ['qwen', 'generate'],
67
+ 'z-image': ['z-image', 'generate'],
68
+ 'gpt-image': ['gpt-image', 'generate'],
69
+ 'qwen-edit': ['qwen', 'edit'],
70
+ 'krea2-edit': ['krea2', 'edit'],
71
+ 'flux3-klein-edit': ['flux3-klein', 'edit'],
72
+ 'gpt-image-edit': ['gpt-image', 'edit'],
73
+ seedream: ['seedream', 'generate'],
74
+ 'seedream-edit': ['seedream', 'edit'],
75
+ video: null,
76
+ };
77
+ //# sourceMappingURL=image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/prompt-guides/image.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAA2B,MAAM,6BAA6B,CAAC;AACxF,OAAO,EACL,gBAAgB,GAIjB,MAAM,YAAY,CAAC;AAGpB,MAAM,qBAAqB,GAAsB;IAC/C,kHAAkH;IAClH,kIAAkI;CACnI,CAAC;AAGF,MAAM,UAAU,GAAsB;IACpC,uDAAuD;IACvD,gGAAgG;CACjG,CAAC;AAEF,SAAS,UAAU,CACjB,MAA8B,EAC9B,SAA8B,EAC9B,UAAkB,EAClB,aAAiC,EACjC,MAAyB,EACzB,QAA2B,EAAE;IAE7B,OAAO,gBAAgB,CAAC;QACtB,MAAM;QACN,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,GAAG,UAAU,IAAI,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,EAAE;QAClF,MAAM;QACN,gBAAgB,EAAE,IAAI;QACtB,KAAK,EAAE,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QACxC,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAA2D;IACzF,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,EAAE;IAC9G,eAAe,EA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_25_CAPABILITY_GUIDANCE, SEEDANCE_REFERENCE_GRAMMAR_GUIDANCE, SEEDANCE_REFERENCE_ROLE_GUIDANCE, SEEDANCE_DIRECTORIAL_GUIDANCE, SEEDANCE_CAMERA_PHYSICS_GUIDANCE, SEEDANCE_POSITIVE_CONSTRAINT_GUIDANCE, SEEDANCE_LIMITATION_GUIDANCE, } from './seedance.js';
4
+ export { LTX25_LAST_FRAME_OVERRIDE_GUIDANCE, LTX25_FIRST_LAST_FRAME_OVERRIDE_GUIDANCE, LTX_AUDIO_REFERENCE_GUIDANCE, LTX_VIDEO_REFERENCE_GUIDANCE, LTX_IMAGE_REFERENCE_GUIDANCE, } from './ltx.js';
5
+ export { WAN3_REFERENCE_GRAMMAR_GUIDANCE, WAN3_OUTPUT_CONTRACT_GUIDANCE, WAN3_T2V_GUIDANCE, WAN3_I2V_GUIDANCE, WAN3_FLF2V_GUIDANCE, WAN3_R2V_GUIDANCE, WAN3_A2V_GUIDANCE, WAN3_STEP_TIMING_GUIDANCE, WAN3_SHOT_PLAN_GUIDANCE, } from './wan3.js';
6
+ export { HAPPYHORSE_REFERENCE_GRAMMAR_GUIDANCE, HAPPYHORSE_REFERENCE_ROLE_GUIDANCE, HAPPYHORSE_AUDIO_GUIDANCE, HAPPYHORSE_NEGATIVE_TRANSLATION_GUIDANCE, HAPPYHORSE_DYNAMIC_BRANCH_GUIDANCE, } from './happyhorse.js';
7
+ export { MINIMAX_H3_MAX_PROMPT_CHARACTERS, MINIMAX_H3_REF2VA_TASK_TYPES, MINIMAX_H3_I2V_ALIGNMENT_LINE, MINIMAX_H3_OUTPUT_CONTRACT_GUIDANCE, MINIMAX_H3_REF2VA_SUMMARY_SYNTAX_GUIDANCE, MINIMAX_H3_REF2VA_OUTPUT_CONTRACT_GUIDANCE, MINIMAX_H3_CONTEXT_PLANNING_GUIDANCE, MINIMAX_H3_FINAL_ASSESSMENT_GUIDANCE, MINIMAX_H3_TIMED_SHOT_LIST_GUIDANCE, MINIMAX_H3_SCENE_GUIDANCE, MINIMAX_H3_PHYSICAL_PRECISION_GUIDANCE, MINIMAX_H3_PACING_GUIDANCE, MINIMAX_H3_DEPICTION_GUIDANCE, MINIMAX_H3_KEYFRAME_PATH_GUIDANCE, MINIMAX_H3_AUDIO_GUIDANCE, MINIMAX_H3_SOURCE_AUDIO_GUIDANCE, MINIMAX_H3_DIALOGUE_GUIDANCE, MINIMAX_H3_DESIRED_ABSENCE_GUIDANCE, MINIMAX_H3_IDENTITY_GUIDANCE, MINIMAX_H3_REFERENCE_GRAMMAR_GUIDANCE, MINIMAX_H3_REFERENCE_JOB_GUIDANCE, MINIMAX_H3_SOURCE_EDIT_GUIDANCE, MINIMAX_H3_CAMERA_GUIDANCE, MINIMAX_H3_ONSCREEN_TEXT_GUIDANCE, MINIMAX_H3_TIMEBASE_GUIDANCE, MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE, MINIMAX_H3_AUDIO_GUIDE_KEYFRAME_GUIDANCE, MINIMAX_H3_LENGTH_GUIDANCE, } from './minimax.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompt-guides/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAQjG,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EACL,+BAA+B,EAC/B,mCAAmC,EACnC,gCAAgC,EAChC,6BAA6B,EAC7B,gCAAgC,EAChC,qCAAqC,EACrC,4BAA4B,GAC7B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kCAAkC,EAClC,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,qCAAqC,EACrC,kCAAkC,EAClC,yBAAyB,EACzB,wCAAwC,EACxC,kCAAkC,GACnC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,6BAA6B,EAC7B,mCAAmC,EACnC,yCAAyC,EACzC,0CAA0C,EAC1C,oCAAoC,EACpC,oCAAoC,EACpC,mCAAmC,EACnC,yBAAyB,EACzB,sCAAsC,EACtC,0BAA0B,EAC1B,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,gCAAgC,EAChC,4BAA4B,EAC5B,mCAAmC,EACnC,4BAA4B,EAC5B,qCAAqC,EACrC,iCAAiC,EACjC,+BAA+B,EAC/B,0BAA0B,EAC1B,iCAAiC,EACjC,4BAA4B,EAC5B,oCAAoC,EACpC,wCAAwC,EACxC,0BAA0B,GAC3B,MAAM,cAAc,CAAC"}
@@ -0,0 +1,132 @@
1
+ import { DYNAMIC_PROMPT_BRANCH_GUIDANCE } from './shared.js';
2
+ import { modelPromptGuide, } from './types.js';
3
+ const LTX25_OBJECTIVE_OPENING_GUIDANCE = `Begin immediately with action or visual detail. Never begin with "The scene opens", "We see", or "There is". Describe only objective, visible, and audible facts; express emotion through observable face, posture, gesture, performance, and voice rather than inferred intent.`;
4
+ const LTX25_T2V_DETAIL_GUIDANCE = `Include the visual details needed to identify the subject, setting, action, continuity, and requested style. Prefer concrete nouns and motion verbs. Faithfully enrich an underspecified request with observable motion, weather or environmental interaction, key material cues, and visible identity anchors, but never replace or bury a requested beat. When a human appears, preserve their distinguishing visible features consistently. Never infer ethnicity, nationality, religion, or culture.`;
5
+ const LTX25_T2V_SHOT_GUIDANCE = `Give every requested shot one sentence and exactly one clear shot type (extreme wide shot, wide shot, medium shot, medium close-up, close-up, or extreme close-up). Add at most one camera motion or subject-relative viewpoint when it materially clarifies that shot. Read the request in whatever language and wording it uses. If it specifies multiple shots, scenes, or cuts, preserve all of them in order and begin every sentence after the first with an explicit transition such as "At exactly 2.5 seconds, a hard cut switches to..." Preserve requested transition types and copy every requested timestamp verbatim in numeric notation; never spell a numeric timestamp out as words. When no cut time was supplied but clip duration is known, place simple numeric cut times that divide the requested shots evenly enough for every shot to be seen. When the user does not explicitly request multiple shots, scenes, or cuts, or asks for one continuous take in any wording, write one continuous shot and do not invent a cut.`;
6
+ const LTX25_SOUND_GUIDANCE = `Keep sound concise: preserve exact quoted dialogue in its original language plus the one or two most important environmental, foley, or requested music cues. If the request asks, in any language or wording, for silence, a muted clip, or no sound, describe that silence and add no sound; otherwise include the sounds the scene makes. Never invent dialogue when the request does not imply speech, talking, singing, or conversation. Preserve exact quoted dialogue, visible text, proper nouns, and product or brand spelling.`;
7
+ const LTX25_T2V_LENGTH_GUIDANCE = `Describe strict chronological, real-time flow and keep every requested action in motion. Use detailed but bounded prose with one sentence per shot; a single newline between shot sentences is allowed. Do not use bullets, headings, labels, JSON, preamble, or Markdown. Target 35-65 words per shot, usually 60-100 words for a single-shot request, and stay under 70 words per shot (under 140 words for one or two shots) so every cut still reads. When the request itself is longer than that, keep all of it: never drop, merge, or shorten a requested detail to meet a length target, and trim only your own additions. If the user wrote in another language, write the visual prompt in English while retaining exact dialogue and visible text in the requested language.`;
8
+ const LTX25_T2V_STYLE_GUIDANCE = `Preserve requested visual style and production value without adding new objects, people, actions, dialogue, shots, or story events. When the user did not specify a rendering style, describe the look the request implies (for example phone footage, home video, documentary, animation, or film) in concrete terms, and do not add generic quality words.`;
9
+ const LTX25_I2V_OPENING_FRAME_GUIDANCE = `The opening must match the reference image exactly: the same subjects, identity, appearance, clothing, setting, lighting, spatial composition, camera framing, and viewpoint. Describe that grounded opening faithfully, then narrate only consistent changes as the requested action unfolds. Never invent anything inconsistent with the image. Use one continuous take with no hard cuts.`;
10
+ const LTX25_I2V_DETAIL_GUIDANCE = `Mention only image-grounded details needed to preserve subject identity, setting, action, continuity, and requested style. Prefer concrete motion over static description. Never infer ethnicity, nationality, religion, or culture.`;
11
+ const LTX25_I2V_SHOT_GUIDANCE = `Use exactly one shot type (extreme wide shot, wide shot, medium shot, medium close-up, close-up, or extreme close-up) matching the opening image. Add at most one camera motion or viewpoint when useful. Keep the shot continuous.`;
12
+ const LTX25_I2V_LENGTH_GUIDANCE = `Describe strict chronological, real-time flow and keep the requested motion central. Use one or two short sentences with no bullets, headings, labels, JSON, preamble, or Markdown. Target 40-100 words and stay under 120 words. When the request itself is longer than that, keep all of it: never drop, merge, or shorten a requested detail to meet a length target, and trim only your own additions. If the user wrote in another language, write the visual prompt in English while retaining exact dialogue and visible text in the requested language.`;
13
+ const LTX25_I2V_STYLE_GUIDANCE = `Preserve requested visual style and production value without adding new objects, people, actions, dialogue, shots, or story events.`;
14
+ export const LTX25_LAST_FRAME_OVERRIDE_GUIDANCE = `LAST-FRAME OVERRIDE: One reference image is attached as the exact ending frame. Describe a single continuous action that resolves naturally into that locked image. The conclusion must match its subjects, identity, appearance, clothing, setting, lighting, spatial composition, camera framing, and viewpoint exactly. Do not describe the image as the opening frame, and do not introduce a cut, replacement shot, or discontinuous jump to reach it.`;
15
+ export const LTX25_FIRST_LAST_FRAME_OVERRIDE_GUIDANCE = `FIRST/LAST-FRAME OVERRIDE: Two reference images are attached. The first is the exact opening frame and the second is the exact ending frame. Ground the opening in the first image and the conclusion in the second image, preserving identity, appearance, setting, lighting, composition, and viewpoint wherever each endpoint establishes them. Describe a physically coherent continuous transition between both locked endpoints. Do not introduce a cut, replacement shot, or discontinuous jump to reach the ending frame.`;
16
+ export const LTX_AUDIO_REFERENCE_GUIDANCE = `AUDIO-REFERENCE OPERATION: A separate reference soundtrack will drive the final video's timing. Treat that audio as timing truth. Preserve any audio content, dialogue, lyrics, rhythm, or sync points the user explicitly described, but never invent or claim to hear content that was not supplied to this text-authoring call. Describe visible action and camera timing that can synchronize to the reference audio.`;
17
+ export const LTX_VIDEO_REFERENCE_GUIDANCE = `VIDEO-REFERENCE OPERATION: A source video will be attached to the final generation. Treat its subjects, motion timing, camera path, framing, lighting, occlusion, and audio continuity as source truth unless the user explicitly changes one. Write the requested transformation as a concrete visual delta on top of that source; do not replace it with a fresh unrelated scene description.`;
18
+ export const LTX_IMAGE_REFERENCE_GUIDANCE = `IMAGE-REFERENCE OPERATION: The reference image is the exact opening visual anchor. Preserve its identity, composition, setting, and lighting; describe motion, performance, camera, and sound that flow forward from it.`;
19
+ const LTX_FRAME_FORMAT_GUIDANCE = `FORMAT: Write a single paragraph in present tense, made of short sentences. Do NOT use bullets, numbered lists, headers, labels, markdown, or segmented formatting.`;
20
+ const LTX_TRANSITION_I2V_RULES_GUIDANCE = `I2V RULES: The video model receives both frames. Do NOT spend the prompt re-describing static image contents. Focus on what changes: subject motion, object transformations, foreground occlusion and reveal, lighting shifts, perspective changes, and the continuous camera movement that carries the starting view into the ending view.`;
21
+ const LTX_TRANSITION_PRESERVE_INTENT_GUIDANCE = `PRESERVE INTENT: Keep the user's base request, creative style, constraints, requested objects, character actions, and exact quoted dialogue. If the base request gives no action, choose the most natural way to get from the starting view to the ending view, at a pace that fits what the frames show: for example a match cut, foreground elements passing close to the lens, parallax, a physical reveal, or a camera move.`;
22
+ const LTX_PROPER_NOUN_GUIDANCE = `PROPER NOUNS: Preserve exact spelling and punctuation of brand/product names and proper nouns from the base request, especially dotted names such as Sogni.ai.`;
23
+ const LTX_TRANSITION_NEGATIVE_CONSTRAINT_GUIDANCE = `NEGATIVE CONSTRAINT TRANSLATION: LTX receives only this positive prompt. Translate user avoid/no/don't constraints into affirmative production constraints instead of copying negative phrasing. For translated constraints, the output prompt must not use words such as "no", "not", "without", "avoid", or "never" except inside exact quoted user-requested text. Examples: "no people in background" becomes single subject focus with an empty background; "no text" becomes clean blank surfaces; "don't make it blurry" becomes crisp sharp focus; "no weird hands" becomes natural anatomically consistent hands; "no mouth movement, no talking, no lip syncing" becomes silent expression-only physical performance with facial motion independent of speech timing; "don't change the room" becomes the same room and layout remain consistent. If the user asks for exact quoted visible text, preserve that quoted text exactly and keep any other legible text in the frames unchanged.`;
24
+ const LTX_TRANSITION_CAMERA_GUIDANCE = `CAMERA: Use explicit camera language at the pace the request implies, such as dolly in, tracking shot, whip pan, crash zoom, pull back, orbit, handheld follow, tilt upward, or a static frame. Describe how the subject and environment appear as that movement resolves.`;
25
+ const LTX_TRANSITION_BLOCKING_GUIDANCE = `BLOCKING: Treat layout as direction. Explicitly state important left/right placement, foreground/background relationships, facing direction, occlusion/reveal, and relative distance when those details affect the transition.`;
26
+ const LTX_MOTION_VERBS_GUIDANCE = `MOTION VERBS: Specify who moves, what moves, how it moves, and what the camera does. Prefer clear sequential verbs over abstract phrases like "comes alive." Each action sentence should target one character, object, or camera move. Split simultaneous changes into separate consecutive sentences.`;
27
+ const LTX_PERFORMANCE_GUIDANCE = `PERFORMANCE: Use physical action cues, not abstract emotions. For dialogue, keep spoken lines in double quotes and place short acting beats between lines.`;
28
+ const LTX_AUDIO_REQUIRED_GUIDANCE = `AUDIO IS REQUIRED: LTX generates synchronized audio. Add foley and ambient sound in simple sentences. Use environmental ambience, movement sounds, fabric rustle, footsteps, object sounds, room tone, wind, water, traffic, reverb, or muffled distance. Add music or soundtrack only when the user explicitly requests it. If the request asks, in any language or wording, for silence, a muted clip, or no sound, describe that silence instead of adding sound.`;
29
+ const LTX_TRANSITION_OUTPUT_CONSTRAINTS_GUIDANCE = `OUTPUT CONSTRAINTS: Use simple sentence structure and physically coherent action at the pace the request implies, and keep legible text from the frames unchanged.`;
30
+ const LTX_TRANSITION_LENGTH_GUIDANCE = `Your prompt MUST be 80-160 words, maintain identity and visual consistency, and not reference "first image" or "second image."`;
31
+ const LTX_I2V_FORWARD_RULES_GUIDANCE = `I2V RULES: The video model receives the anchor frame. Do NOT spend the prompt re-describing static image contents. Focus on what HAPPENS NEXT: subject motion, action, environmental change, lighting evolution, and the continuous camera move that carries the scene forward from the anchor.`;
32
+ const LTX_I2V_FORWARD_PRESERVE_INTENT_GUIDANCE = `PRESERVE INTENT: Keep the user's base request, creative style, constraints, requested objects, character actions, and exact quoted dialogue. If the base request gives no action, choose the most natural next action for what the frame shows, at a pace that fits it.`;
33
+ const LTX_I2V_FORWARD_NEGATIVE_CONSTRAINT_GUIDANCE = `NEGATIVE CONSTRAINT TRANSLATION: LTX receives only this positive prompt. Translate user avoid/no/don't constraints into affirmative production constraints instead of copying negative phrasing. For translated constraints, the output prompt must not use words such as "no", "not", "without", "avoid", or "never" except inside exact quoted user-requested text. Examples: "no people in background" becomes single subject focus with an empty background; "no text" becomes clean blank surfaces; "don't make it blurry" becomes crisp sharp focus; "no weird hands" becomes natural anatomically consistent hands; "no mouth movement, no talking, no lip syncing" becomes silent expression-only physical performance with facial motion independent of speech timing; "don't change the room" becomes the same room and layout remain consistent. If the user asks for exact quoted visible text, preserve that quoted text exactly and keep any other legible text in the frame unchanged.`;
34
+ const LTX_I2V_FORWARD_CAMERA_GUIDANCE = `CAMERA: Use explicit camera language at the pace the request implies, such as dolly in, tracking shot, whip pan, crash zoom, pull back, orbit, handheld follow, tilt upward, or a static frame. Describe how the subject and environment appear as that movement resolves forward from the anchor frame.`;
35
+ const LTX_I2V_FORWARD_BLOCKING_GUIDANCE = `BLOCKING: Treat layout as direction. Explicitly state important left/right placement, foreground/background relationships, facing direction, occlusion/reveal, and relative distance when those details affect the motion.`;
36
+ const LTX_I2V_FORWARD_OUTPUT_CONSTRAINTS_GUIDANCE = `OUTPUT CONSTRAINTS: Use simple sentence structure, physically coherent action at the pace the request implies, and a forward-only single-frame animation, and keep legible text from the frame unchanged.`;
37
+ const LTX_I2V_FORWARD_LENGTH_GUIDANCE = `LENGTH: 80-160 words. Maintain identity and visual consistency. Do not refer to the input by ordinal position.`;
38
+ const LTX_TRANSITION_PRESERVE_GUIDANCE = `${LTX_TRANSITION_PRESERVE_INTENT_GUIDANCE}\n${LTX_PROPER_NOUN_GUIDANCE}`;
39
+ const LTX_I2V_FORWARD_PRESERVE_GUIDANCE = `${LTX_I2V_FORWARD_PRESERVE_INTENT_GUIDANCE}\n${LTX_PROPER_NOUN_GUIDANCE}`;
40
+ const LTX25_NOTES = [
41
+ 'Keep LTX 2.5 prompts detailed but bounded: preserve production-ready input, faithfully enrich observable identity, motion, and environment, describe the look the request implies rather than adding generic quality words, target 35-65 words per shot, and stay under 70 words per shot (under 140 words for one or two shots) without dropping any requested detail.',
42
+ 'Give every requested shot one sentence and one clear shot type; preserve every requested transition and copy exact cut times in numeric notation, and do not invent cuts when the request asks, in any language or wording, for one continuous take.',
43
+ 'Preserve exact quoted dialogue and visible text, retain only the most important synchronized ambience and foley, describe silence when the request asks for silence or no sound, and never invent dialogue unless speech, talking, singing, or conversation is requested.',
44
+ 'For I2V, match the attached first frame exactly and use one continuous take. For FLF, ground both endpoint images and describe a physically coherent continuous transition between them.',
45
+ 'Use the standard T2V, I2V/FLF, A2V, or IA2V workflow that matches the supplied assets.',
46
+ 'FLF uses the I2V public model ID with a separate first/last-frame template.',
47
+ 'Fast, HQ, and Pro currently use the release-validated official Distilled/Turbo workflow. Dev checkpoints are withheld from public routing until upstream publishes and Sogni validates an official ComfyUI Dev recipe.',
48
+ 'V2V supports canny, depth, pose, detailer, inpaint, and outpaint through the validated Distilled path. LTX 2.5 pose requires both a source video and a still reference image for the subject appearance.',
49
+ 'The pinned official control templates supply their compatible Union Control or In/Outpainting IC-LoRA internally.',
50
+ 'Do not attach LTX 2.3-only voice ID-LoRA, community transition LoRA, or 10Eros assets.',
51
+ ];
52
+ const LTX23_NOTES = [
53
+ 'For first/last-frame generation, focus on what changes instead of redescribing static frame contents.',
54
+ 'Use short present-tense sentences with concrete camera, action, lighting, and audio cues.',
55
+ 'Keep quoted dialogue within the clip duration budget.',
56
+ ];
57
+ const LTX25_T2V_RULES = [
58
+ LTX25_OBJECTIVE_OPENING_GUIDANCE,
59
+ LTX25_T2V_DETAIL_GUIDANCE,
60
+ LTX25_T2V_SHOT_GUIDANCE,
61
+ LTX25_SOUND_GUIDANCE,
62
+ LTX25_T2V_LENGTH_GUIDANCE,
63
+ LTX25_T2V_STYLE_GUIDANCE,
64
+ ];
65
+ const LTX25_I2V_RULES = [
66
+ LTX25_I2V_OPENING_FRAME_GUIDANCE,
67
+ LTX25_OBJECTIVE_OPENING_GUIDANCE,
68
+ LTX25_I2V_DETAIL_GUIDANCE,
69
+ LTX25_I2V_SHOT_GUIDANCE,
70
+ LTX25_SOUND_GUIDANCE,
71
+ LTX25_I2V_LENGTH_GUIDANCE,
72
+ LTX25_I2V_STYLE_GUIDANCE,
73
+ ];
74
+ const LTX_TRANSITION_RULES = [
75
+ LTX_FRAME_FORMAT_GUIDANCE,
76
+ LTX_TRANSITION_I2V_RULES_GUIDANCE,
77
+ LTX_TRANSITION_PRESERVE_GUIDANCE,
78
+ LTX_TRANSITION_NEGATIVE_CONSTRAINT_GUIDANCE,
79
+ DYNAMIC_PROMPT_BRANCH_GUIDANCE,
80
+ LTX_TRANSITION_CAMERA_GUIDANCE,
81
+ LTX_TRANSITION_BLOCKING_GUIDANCE,
82
+ LTX_MOTION_VERBS_GUIDANCE,
83
+ LTX_PERFORMANCE_GUIDANCE,
84
+ LTX_AUDIO_REQUIRED_GUIDANCE,
85
+ LTX_TRANSITION_OUTPUT_CONSTRAINTS_GUIDANCE,
86
+ LTX_TRANSITION_LENGTH_GUIDANCE,
87
+ ];
88
+ const LTX_I2V_FORWARD_RULES = [
89
+ LTX_FRAME_FORMAT_GUIDANCE,
90
+ LTX_I2V_FORWARD_RULES_GUIDANCE,
91
+ LTX_I2V_FORWARD_PRESERVE_GUIDANCE,
92
+ LTX_I2V_FORWARD_NEGATIVE_CONSTRAINT_GUIDANCE,
93
+ DYNAMIC_PROMPT_BRANCH_GUIDANCE,
94
+ LTX_I2V_FORWARD_CAMERA_GUIDANCE,
95
+ LTX_I2V_FORWARD_BLOCKING_GUIDANCE,
96
+ LTX_MOTION_VERBS_GUIDANCE,
97
+ LTX_PERFORMANCE_GUIDANCE,
98
+ LTX_AUDIO_REQUIRED_GUIDANCE,
99
+ LTX_I2V_FORWARD_OUTPUT_CONSTRAINTS_GUIDANCE,
100
+ LTX_I2V_FORWARD_LENGTH_GUIDANCE,
101
+ ];
102
+ function ltxGuide(family, mode, title, rules) {
103
+ return modelPromptGuide({
104
+ family,
105
+ mode,
106
+ title: `${family === 'ltx-2.5' ? 'LTX 2.5' : 'LTX 2.3'} ${title}`,
107
+ models: family === 'ltx-2.5' ? ['ltx25'] : ['ltx23'],
108
+ referenceGrammar: null,
109
+ rules,
110
+ notes: family === 'ltx-2.5' ? LTX25_NOTES : LTX23_NOTES,
111
+ });
112
+ }
113
+ export const LTX_PROMPT_GUIDES = {
114
+ 'ltx-2.5': {
115
+ t2v: ltxGuide('ltx-2.5', 't2v', 'text-to-video', LTX25_T2V_RULES),
116
+ i2v: ltxGuide('ltx-2.5', 'i2v', 'first-frame image-to-video', LTX25_I2V_RULES),
117
+ l2v: ltxGuide('ltx-2.5', 'l2v', 'last-frame image-to-video', [...LTX25_T2V_RULES, LTX25_LAST_FRAME_OVERRIDE_GUIDANCE]),
118
+ flf: ltxGuide('ltx-2.5', 'flf', 'first-and-last-frame video', [...LTX25_I2V_RULES, LTX25_FIRST_LAST_FRAME_OVERRIDE_GUIDANCE]),
119
+ a2v: ltxGuide('ltx-2.5', 'a2v', 'audio-to-video', [...LTX25_T2V_RULES, LTX_AUDIO_REFERENCE_GUIDANCE]),
120
+ ia2v: ltxGuide('ltx-2.5', 'ia2v', 'image-and-audio-to-video', [...LTX25_I2V_RULES, LTX_AUDIO_REFERENCE_GUIDANCE, LTX_IMAGE_REFERENCE_GUIDANCE]),
121
+ v2v: ltxGuide('ltx-2.5', 'v2v', 'video-to-video', [...LTX25_T2V_RULES, LTX_VIDEO_REFERENCE_GUIDANCE]),
122
+ },
123
+ 'ltx-2.3': {
124
+ t2v: ltxGuide('ltx-2.3', 't2v', 'text-to-video', LTX25_T2V_RULES),
125
+ i2v: ltxGuide('ltx-2.3', 'i2v', 'first-frame image-to-video', LTX_I2V_FORWARD_RULES),
126
+ flf: ltxGuide('ltx-2.3', 'flf', 'first-and-last-frame video', LTX_TRANSITION_RULES),
127
+ a2v: ltxGuide('ltx-2.3', 'a2v', 'audio-to-video', [...LTX25_T2V_RULES, LTX_AUDIO_REFERENCE_GUIDANCE]),
128
+ ia2v: ltxGuide('ltx-2.3', 'ia2v', 'image-and-audio-to-video', [...LTX_I2V_FORWARD_RULES, LTX_AUDIO_REFERENCE_GUIDANCE, LTX_IMAGE_REFERENCE_GUIDANCE]),
129
+ v2v: ltxGuide('ltx-2.3', 'v2v', 'video-to-video', [...LTX25_T2V_RULES, LTX_VIDEO_REFERENCE_GUIDANCE]),
130
+ },
131
+ };
132
+ //# sourceMappingURL=ltx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltx.js","sourceRoot":"","sources":["../../src/prompt-guides/ltx.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,gBAAgB,GAIjB,MAAM,YAAY,CAAC;AAIpB,MAAM,gCAAgC,GAAG,kRAAkR,CAAC;AAC5T,MAAM,yBAAyB,GAAG,0eAA0e,CAAC;AAC7gB,MAAM,uBAAuB,GAAG,u/BAAu/B,CAAC;AACxhC,MAAM,oBAAoB,GAAG,0gBAA0gB,CAAC;AACxiB,MAAM,yBAAyB,GAAG,yvBAAyvB,CAAC;AAC5xB,MAAM,wBAAwB,GAAG,8VAA8V,CAAC;AAChY,MAAM,gCAAgC,GAAG,8XAA8X,CAAC;AACxa,MAAM,yBAAyB,GAAG,sOAAsO,CAAC;AACzQ,MAAM,uBAAuB,GAAG,qOAAqO,CAAC;AACtQ,MAAM,yBAAyB,GAAG,iiBAAiiB,CAAC;AACpkB,MAAM,wBAAwB,GAAG,qIAAqI,CAAC;AAEvK,MAAM,CAAC,MAAM,kCAAkC,GAAG,6bAA6b,CAAC;AAChf,MAAM,CAAC,MA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,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,GAAG,eAAe,EAAE,4BAA4B,CAAC,CAAC;QACrG,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,0BAA0B,EAAE,CAAC,GAAG,qBAAqB,EAAE,4BAA4B,EAAE,4BAA4B,CAAC,CAAC;QACrJ,GAAG,EAAE,QAAQ,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,GAAG,eAAe,EAAE,4BAA4B,CAAC,CAAC;KACtG;CACF,CAAC"}
@@ -0,0 +1,169 @@
1
+ import { CREATIVE_INTENT_FIDELITY_GUIDANCE } from './shared.js';
2
+ import { modelPromptGuide, } from './types.js';
3
+ export const MINIMAX_H3_MAX_PROMPT_CHARACTERS = 7000;
4
+ export const MINIMAX_H3_REF2VA_TASK_TYPES = [
5
+ 'keyframe completion',
6
+ 'reference generation',
7
+ 'video editing',
8
+ 'video continuation',
9
+ 'audio reuse',
10
+ 'audio reference',
11
+ ];
12
+ export const MINIMAX_H3_I2V_ALIGNMENT_LINE = 'For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.';
13
+ export const MINIMAX_H3_OUTPUT_CONTRACT_GUIDANCE = `BASE OUTPUT CONTRACT: output exactly three lowercase field headings, once each, in this order:
14
+ integrated_multimodal_description: [Shot 1] ...
15
+ overall_soundscape: ...
16
+ non_diegetic_music: ...
17
+ Do not output JSON, YAML, markdown, bullets, code fences, a preamble, or commentary. Do not add any other field. Structural prose is English; preserve dialogue, lyrics, and visible text in their original language.`;
18
+ export const MINIMAX_H3_REF2VA_SUMMARY_SYNTAX_GUIDANCE = `REF2VA SUMMARY SYNTAX: the summary value starts with one bracket pair containing exact lowercase task names, followed by a space and a nonempty description. Allowed names: ${MINIMAX_H3_REF2VA_TASK_TYPES.join(', ')}. Join multiple names inside that same pair with exactly " + ". For example, identity/style references use "summary: [reference generation] ..."; assigned keyframes use "summary: [keyframe completion] ..."; identity references plus immutable source audio use "summary: [reference generation + audio reuse] ...". These are syntax examples, not task assignments: choose only the actual reference jobs and write the full description instead of the ellipsis. Keep the brackets in the output; do not replace the prefix with prose, a task label, separate bracket pairs, or an empty bracket.`;
19
+ export const MINIMAX_H3_REF2VA_OUTPUT_CONTRACT_GUIDANCE = `REF2VA OUTPUT CONTRACT: output exactly six lowercase field headings, once each, in this order:
20
+ subject_definitions:
21
+ summary:
22
+ retention_analysis:
23
+ detailed_description:
24
+ overall_soundscape:
25
+ non_diegetic_music:
26
+ Do not output JSON, YAML, markdown, bullets, code fences, a preamble, or commentary. Do not add any other field. Keep the same <Subject N>, <Picture N>, <Video N>, and <Audio N> meaning in all six sections. In retention_analysis, put each binding on its own line using exactly "<Label N>: relationship - explanation"; do not substitute "is" for the colon. For video editing, the summary description opens with the complete sentence "The target video is an edited version of <Video 1>." Keep that period before describing the changes.
27
+ ${MINIMAX_H3_REF2VA_SUMMARY_SYNTAX_GUIDANCE}`;
28
+ export const MINIMAX_H3_CONTEXT_PLANNING_GUIDANCE = `${CREATIVE_INTENT_FIDELITY_GUIDANCE}\n\nCONTEXT PLANNING: before drafting, account for every subject, visible reference, audio reference, user constraint, exact quoted string, shot, sound cue, and music instruction. Resolve conflicts in favor of explicit user wording and state the winning source when attached references conflict. Do not invent brands, references, absences, or story facts. Preserve supplied dialogue character-for-character. If the user explicitly requests speaking, dialogue, lyrics, or a vocal performance but supplies no words, author one concise line that realizes that request. Otherwise do not invent speech.`;
29
+ export const MINIMAX_H3_FINAL_ASSESSMENT_GUIDANCE = `FINAL ASSESSMENT: silently verify the exact field order, required alignment line, reference-label consistency, shot syntax, speaker IDs, dialogue markup, visible-text spelling, duration, source-audio policy, sound ownership, and character limit. Output only the typed prompt after every check passes.`;
30
+ export const MINIMAX_H3_TIMED_SHOT_LIST_GUIDANCE = `SHOT GRAMMAR: [Shot 1] has no timestamp. Every later cut starts exactly "[Shot N] At MM:SS.mmm, ..." using contiguous chronological times within the effective duration. Clock times exist only on cut markers: inside a shot, order events with words (early in the shot, as the doors part, toward the end) and never write "From 00:02.000 to 00:04.000" ranges or per-event clock times. Cut only when the cut adds new subject, space, viewpoint, or time information; otherwise carry the change with camera motion. Put a visual-style preface before [Shot 1] only in Ref2VA detailed_description. For each shot describe subject, action, setting, lighting, composition, and camera movement in filmable prose; add amplitude and speed when they are meaningful.`;
31
+ export const MINIMAX_H3_SCENE_GUIDANCE = `SCENE: describe only visible or audible facts. [Shot 1] opens with the medium and look as concrete facts (Live-action; 2D-animated; 3D CG; claymation; watercolor; vintage film) and the initial composition; in frame-anchored modes derive that look from the supplied picture. Genre, mood, audience, and intent labels (horror, eerie, romantic, adult, tense, jump scare) are not visible, so never write them: write the light, surfaces, distances, movements, and sounds that produce them. Establish subject appearance and position, environment, props, action, light, weather, and continuity. Keep identity, wardrobe, colors, objects, and spatial relationships stable unless the request changes them.`;
32
+ export const MINIMAX_H3_PHYSICAL_PRECISION_GUIDANCE = `PHYSICAL PRECISION: the video model reads words literally and may never have seen the action, so describe anatomy, contact, and physical interactions in plain, concrete, almost scientific terms. Say which body part moves, where it starts and ends, how fast and how far it travels, and what touches what. Say how materials look (color, opacity, texture, amount, consistency) and how they behave (flow, drip, stretch, bounce); honey poured from a jar, for example, is a slow, glossy amber ribbon that folds onto itself where it lands. Replace euphemisms, slang, idioms, and genre stock phrases with the literal visible event they stand for, in as much detail as the action needs. Prefer precise everyday words over clinical jargon the model may not know. Keep every specific the user asked for.`;
33
+ export const MINIMAX_H3_PACING_GUIDANCE = `PACING: in most cases one continuous shot is preferred, and the shot count stays as low as the content allows. When the user leaves pacing open, prefer a purposeful development every 1.5 to 2.5 seconds: an action, a reaction, a reveal, a line. Preserve requested walking, waiting, stillness, pauses, and sustained actions for their requested duration; do not invent a new event or dialogue just to meet a pacing target. Beats and multi-shot sequences are available when the context calls for them (a chase, a reveal that needs a new viewpoint, an exchange of lines, a jump in space or time): then cut with "[Shot N] At MM:SS.mmm, the camera cuts to ..." and keep continuous motion inside each shot; never cut a simple movement into pieces. Write physical acts as acts, never as suggestions: a fall is the rail giving, the wall streaking upward, the ground rushing in; a bite is the jaws snapping shut; a shove is two palms filling the frame. Place dialogue after the action that motivates it.`;
34
+ export const MINIMAX_H3_DEPICTION_GUIDANCE = `DEPICTION ONLY: the prompt is a depiction, not a note to the model. Never write production instructions or meta-commentary (preserve believable anatomy, keep the foley prominent, hard cut with no morph or dissolve, this shot is excluded from the presentation, hold six frames only) and never use capital letters for emphasis. Say what is seen and heard at each moment instead.`;
35
+ export const MINIMAX_H3_KEYFRAME_PATH_GUIDANCE = `KEYFRAME PATHS: the model sees every supplied picture, so never describe a picture back at length and never invent objects, text, fluids, or figures that are not in it. I2VA: first-frame anchor, then action onset, continuous development, and a result or reaction. FL2VA: prefer one continuous shot; write the first-frame state, the observable intermediate changes, the progressively narrowing differences, and the last-frame state; begin "in the position and framing established by Picture 1", carry the identity anchors that must stay fixed into the motion sentences, and reach "the composition established by Picture 2" inside the final shot named by the alignment line. When the context calls for beats (see PACING), cut, and let the final shot cut to the Picture 2 composition and hold with a live action, which lands cleanly where a long interpolation would crossfade. If both pictures share one camera position, the camera does not move at all. L2VA: a plausible preceding state, an explicit action and transition path, gradual convergence in the final shot, and the last-frame landing on <Picture 1>. Apply exact composition matching only at a picture's assigned timestamp.`;
36
+ export const MINIMAX_H3_AUDIO_GUIDANCE = `AUDIO SECTIONS: overall_soundscape is one to four sentences covering diegetic ambience, effects, and spatial continuity; do not repeat dialogue or music there. Use overall_soundscape: N/A only when the requested video is totally silent. non_diegetic_music is one to three sentences describing audience-only score through instrumentation, tempo, rhythm, timing, and dynamic development rather than abstract mood labels; use non_diegetic_music: N/A when there is no score.`;
37
+ export const MINIMAX_H3_SOURCE_AUDIO_GUIDANCE = `SOURCE-LOCKED AUDIO: decide semantically whether supplied audio is immutable before drafting. When the user asks for the same, exact, original, specific, or trending song/soundtrack, or asks to recreate choreography tied to that audio, the source signal and its timeline are immutable. Never invent a replacement track, request a loose imitation, or add a copyright-avoidance melody/lyric substitution unless the user explicitly asks for different music. In Ref2VA use the official audio reuse task, assign every immutable <Audio N> fully_copy, name it directly in the relevant audio section, and preserve its original timing. Ref2VA reference videos must themselves be exactly 24fps; normalize other rates without changing duration or audio timing before submission. Audio reference means a new signal is generated and is valid only when the user explicitly wants loose style/timbre/rhythm guidance. A generative prompt cannot guarantee waveform identity: an exact-song deliverable must stream-copy/remux the original audio after rendering. Choreography lock is separate from soundtrack lock; use explicit action times from the source, and never represent loose Ref2VA conditioning as guaranteed edit-level beat synchronization. If exact choreography timing is mandatory and the chosen workflow cannot guarantee it, stop before paid generation or use a pose/edit-controlled workflow.`;
38
+ export const MINIMAX_H3_DIALOGUE_GUIDANCE = `DIALOGUE: give every vocal source a stable identifier such as (S1), assigned in order of first vocal event and reused across shots. Put the speaker's identity, ID, action, and delivery outside <d>; put only the language tag and spoken words inside <d>[Language] ...</d>. Preserve user-supplied words, language, and punctuation character-for-character, and speak each supplied line exactly as often as the request does, never again to fill a later shot. If the user explicitly requests speech, dialogue, lyrics, or a vocal performance without supplying words, author one concise line that serves that intent; without vocal intent, do not invent speech. Put combined speakers outside the tag as (S1,S2). Bind every line to its speaker in the same sentence, as in: The young woman with a quiet, breathy voice (S1) says: <d>[English] I get off at the next station.</d> and: The two children (S1,S2) shout together, <d>[English] Wait for us!</d> When a speaker first vocalizes, describe the voice itself with its accent, pitch, timbre, and speaking rate (for example "speaking in a plain American accent with a light, mid-pitched voice at a quick, breathless pace"); an unstated accent lets the model pick one, and a voice described only by mood drifts between takes. For voiceover, use the exact phrase "says in an off-screen voiceover" and state immediately after the </d> tag that the on-screen character's lips remain closed. When one line of dialogue or lyrics crosses a cut, place <scenetrans> at the connecting point in both parts (the end of the first <d> block and the start of the next) and explicitly state that the audio continues across the cut; <scenetrans> never appears unpaired. Use <cutoff> when the video ending truncates speech. These are the author-facing spellings from MiniMax's prompt guide; do not emit tokenizer-internal <|...|> markers. Never fix an internal marker by merely deleting its pipe characters: caption markers become exact visible text in double quotes, lyrics markers become an ordinary <d>[Language] ...</d> singing block with the singer and delivery outside it, and <|cutoff|> becomes plain <cutoff>. Visible text is not dialogue: keep it in exact double quotes inside the visual description.`;
39
+ export const MINIMAX_H3_DESIRED_ABSENCE_GUIDANCE = `ABSENCES: H3 has no negative-prompt input, and its contract describes only what is visible or audible, so a negation names the very thing it tries to remove. State every exclusion as a positive fact: "the hall is empty and still" instead of "no people", "the walls are bare" instead of "no text or signs", "the air is clear and sharply lit" instead of "no haze", and "non_diegetic_music: N/A" instead of "no music". Never add exclusions the user did not supply and never add a negative_prompt field. Keep a user-supplied exclusion only when it cannot be stated positively, phrased once as a plain statement.`;
40
+ export const MINIMAX_H3_IDENTITY_GUIDANCE = `IDENTITY: use concrete visible identity anchors and keep them stable across shots. For frame-anchored modes, preserve the supplied frame's identity, wardrobe, setting, lighting direction, and composition without redundantly cataloguing every pixel.`;
41
+ export const MINIMAX_H3_REFERENCE_GRAMMAR_GUIDANCE = `REF2VA REFERENCE GRAMMAR: <Subject N> is reusable visible content abstracted from source assets. An image used only for identity or style belongs inside a Subject definition; do not also create a standalone Picture entry for it. Use <Picture N> only as a concrete keyframe, composition, or shot-planning anchor; <Video N> for a whole-video editing, continuation, motion, or temporal-structure relationship; and <Audio N> for a copied or referenced audio signal. Labels are 1-based per type and must remain semantically identical in every section. Give every attached reference one explicit job and use its correctly typed label. When sources conflict, state which source wins for the conflicting attribute.`;
42
+ export const MINIMAX_H3_REFERENCE_JOB_GUIDANCE = `REF2VA SUMMARY AND RETENTION: summary begins with one square-bracketed task prefix chosen from ${MINIMAX_H3_REF2VA_TASK_TYPES.join(', ')}. Join multiple task types with exactly " + ", without duplicates, and choose them from the actual assigned jobs rather than file presence. For direct video editing, begin the body exactly "The target video is an edited version of <Video 1>." Choose video editing when the user asks to transform the supplied source shot. Ref2VA carries that source through its ordinary video reference input; no separate SDK edit flag is required. Choose reference generation when the clip only supplies inspiration or motion for a new shot. Neither task label guarantees pixel-exact preservation or exact choreography. Keep video continuation conditional on an actual continuation workflow. retention_analysis states where every reusable subject or reference applies and uses only the official relationships. Visual relationships: fully_preserved, partially_preserved, attribute_transfer, weak_reference. Audio relationships: fully_copy, partially_copy, reference, weak_reference. State exactly which identity, style, composition, motion, temporal structure, signal, voice character, or other attribute is retained; never leave a reference's job ambiguous. Bind a reference voice to its target subject by reusing that subject's (Sx) in subject_definitions, not in retention_analysis. When audio is only a timbre, rhythm, emotion, or delivery reference, do not import its source words. When words are explicitly reused or reperformed, preserve their wording and language; mark unintelligible spans [unclear] instead of guessing. A verbal cue embedded in copied background music may use <Audio N> without an invented speaker ID. Put copied ambience/effects in overall_soundscape and audience-only score in non_diegetic_music; use both when the source contains both.`;
43
+ export const MINIMAX_H3_SOURCE_EDIT_GUIDANCE = `SOURCE-SHOT EDITS: resolve the requested replacement and retained content before writing. For an appearance replacement, mark the edited <Video N> partially_preserved: explicitly list retained camera, scene, positions, action and timing, then the appearance attributes that change. Never mark the whole source fully_preserved merely because motion or framing is retained. Define the replacement <Subject N> from its assigned image references, keeping separate face and wardrobe pictures assigned to the correct person. A replaced source performer supplies performance, not a second retained visible identity; retain original clothing only when the user requests it. Define untouched performers separately from the replaced performer. If a replacement resembles an existing performer, state the final number of subjects and their distinct positions so the reference does not bind only to the existing match. For motion transfer into a new shot, specify which motion attributes transfer and let the requested reference identity and setting govern the target. Keep all user-requested attributes; do not turn a local replacement into a whole-scene restyle.`;
44
+ export const MINIMAX_H3_CAMERA_GUIDANCE = `CAMERA: state shot size and lens when useful. Write camera movement as natural prose from the official vocabulary (Zoom In/Out, Push In/Pull Out, Pan Left/Right, Truck Left/Right, Tilt Up/Down, Pedestal Up/Down, Arc Shot, Tracking Shot, Static Shot, Shake Slightly/Strongly, POV, Roll Clockwise/Counterclockwise), adding "with small amplitude" / "with large amplitude" and "at slow speed" / "at fast speed" only when they matter. Keep one primary move per shot unless the request clearly requires a compound move. First-person coverage is a POV shot; write "handheld" only when the user wants visible shake, because it reads as Shake Slightly or Shake Strongly.`;
45
+ export const MINIMAX_H3_ONSCREEN_TEXT_GUIDANCE = `VISIBLE TEXT: place every sign, label, title, or other text that must appear on screen in exact double quotes, preserving the user's spelling, capitalization, punctuation, and language.`;
46
+ export const MINIMAX_H3_TIMEBASE_GUIDANCE = `TIMEBASE: H3 renders at a fixed 24 fps, 124 to 362 frames on a 17-frame grid (5.17 to 15.08 seconds). Never write frame counts, frame rates, steps, samplers, or a resolution such as 1080p or 2K in the prompt: delivery size is the caller's setting, not something the prompt can ask for.`;
47
+ export const MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE = 'Uploaded audio guide: the attached audio track drives this video from its first frame and becomes its soundtrack unchanged. Describe what is heard in it as it is: bind any speech it contains to its visible speaker with an (S1) ID and the exact words inside <d>[Language] ...</d> when the request supplies them (otherwise describe the vocal delivery without inventing quoted words), match the visible action and mouth movement to its timing, and make overall_soundscape and non_diegetic_music describe that same audio (non_diegetic_music: N/A when it carries no score). Never add other dialogue, singing, or music.';
48
+ export const MINIMAX_H3_AUDIO_GUIDE_KEYFRAME_GUIDANCE = 'Uploaded audio with keyframes: the uploaded audio plays through the whole clip, so unless the request says the words stop early, its supplied words are heard in time order across the shots: give each shot only the words heard while it is on screen, split a line that runs through a cut at that cut, and let any shot after the last word carry no <d> block. Every supplied word appears exactly once; a line is never repeated to give a later shot something to say.';
49
+ export const MINIMAX_H3_LENGTH_GUIDANCE = `LENGTH: keep every result under ${MINIMAX_H3_MAX_PROMPT_CHARACTERS} characters. For Ref2VA, target 350-500 words in detailed_description; do not pad the other five sections. If compression is needed, preserve required fields, user-authored exact text, reference labels and jobs, retention relationships, and shot timing first; shorten redundant adjectives and audio prose. Never silently truncate.`;
50
+ const MINIMAX_H3_T2V_MODE_GUIDANCE = `This is T2VA: establish the complete video from text with no reference labels or alignment line.`;
51
+ const MINIMAX_H3_T2V_CONTINUATION_MODE_GUIDANCE = `This is T2VA written as a seamless continuation, with no reference labels or alignment line: the render carries straight on from the source video's closing frames, so the people, clothes, place, light and framing already exist. Never invent or change them.`;
52
+ const MINIMAX_H3_FLF2V_MODE_GUIDANCE = `This is FL2VA. Picture 1 is the opening frame and Picture 2 is the closing frame. The first output line must use the exact official "How the reference pictures align with the target video — ..." sentence supplied in the user message, including the actual final Shot N and effective end time. Then emit the three Base fields. The whole job is the path between the two pictures, which the model already sees: prefer one continuous shot, name the observable intermediate states in order, and reach the composition established by Picture 2 inside the final shot. Beats and cuts are available when the context calls for them; then the final shot may cut to the Picture 2 composition and hold with a live action.`;
53
+ const MINIMAX_H3_L2V_MODE_GUIDANCE = `This is L2VA. <Picture 1> is the fully referenced final frame and belongs to the actual final [Shot N], not inherently to Shot 1. The first output line must use the exact official "How the reference pictures align with the target video — ..." sentence supplied in the user message, including the actual final [Shot N] and effective end time. Then emit the three Base fields. Infer a plausible preceding state from the request and final frame, then describe an explicit, physically coherent path (action, object states, camera, light) that gradually converges on <Picture 1> in the final shot.`;
54
+ const MINIMAX_H3_I2V_KEYFRAME_MODE_GUIDANCE = `This is I2VA with intermediate keyframes. <Picture 1> is the fully referenced first frame, and each keyframe is a later <Picture N> that the video is pinned to at its time. The first output line must be the exact official "How the reference pictures align with the target video — ..." sentence supplied in the user message, listing every picture at its mark with the actual Shot N. Then emit the three Base fields. Anchor the first picture's style, subjects, wardrobe, colors, objects, and composition in a few concrete facts, then develop forward through observable action to each keyframe in turn.`;
55
+ const MINIMAX_H3_T2V_KEYFRAME_MODE_GUIDANCE = `This is T2VA with intermediate keyframes: no first or last frame is supplied, and each keyframe is a <Picture N> that the video is pinned to at its time. The first output line must be the exact official "How the reference pictures align with the target video — ..." sentence supplied in the user message, listing every keyframe at its mark with the actual Shot N. Then emit the three Base fields, establishing everything before, between, and after the keyframes from the request.`;
56
+ const MINIMAX_H3_R2V_MODE_GUIDANCE = `This is Ref2VA on the separate reference checkpoint. It requires at least one visual reference: one or more images and/or videos. A video can be the only visual input; audio cannot be the sole input. References are not locked first or last frames.`;
57
+ const MINIMAX_H3_I2V_MODE_GUIDANCE = `This is I2VA. <Picture 1> is the fully referenced first frame. The first output line must be exactly:
58
+ ${MINIMAX_H3_I2V_ALIGNMENT_LINE}
59
+ Then emit the three Base fields. Anchor the picture's style, subjects, wardrobe, colors, objects, and composition in a few concrete facts, then develop forward through observable action: onset, continuous development, result or reaction.`;
60
+ const MINIMAX_H3_NOTES = [
61
+ 'T2V, I2V, FLF2V, and L2V use exactly three ordered fields: integrated_multimodal_description, overall_soundscape, non_diegetic_music.',
62
+ 'I2V, FLF2V, and L2V prepend MiniMax\'s exact mode-specific image-alignment line. L2V uses the existing I2V selector with only a typed last-frame asset; minimax-h3-l2v is not a hosted model selector.',
63
+ 'Use [Shot 1] without a timestamp; every later shot uses [Shot N] At MM:SS.mmm, ... .',
64
+ 'Use stable (S1) speaker IDs and wrap exact spoken words in <d>[Language] ...</d>; keep visible text in exact double quotes.',
65
+ 'overall_soundscape owns diegetic ambience and effects; non_diegetic_music owns audience-only score and is N/A when there is none.',
66
+ 'Standard runs 20 steps with res_multistep/simple. Balanced uses fixed 8-step Euler/simple acceleration: LightX2V for FL2VA and Larry v4 for Ref2VA. FL2VA Turbo runs 4 steps with simple scheduling; er_sde is the default sampler, with euler and sa_solver available as explicit A/B variants. Ref2VA Turbo uses the exact upstream 4-step euler/simple recipe. All run at fixed 24 fps and guidance 1.',
67
+ 'Default MiniMax reference-to-video to Balanced R2V (minimax-h3-r2v-balanced), or minimax-h3-r2v-balanced-2stage for two-stage, 1080p or 2K output. Preserve an explicitly requested Standard, LightX2V Turbo, or FastH3 Omni R2V tier.',
68
+ 'Standard, Balanced, and Turbo Ref2VA use exactly six ordered fields: subject_definitions, summary, retention_analysis, detailed_description, overall_soundscape, non_diegetic_music. The two-stage Ref2VA selectors (minimax-h3-r2v-2stage at 20 steps, minimax-h3-r2v-balanced-2stage at 8 steps) write the same six-field contract with the same references; only the delivered size changes. FastH3 Reference (minimax-h3-fasth3-r2v-turbo and its -2stage form, the FastH3 tier\'s reference-to-video) writes the same six-field contract.',
69
+ 'Ref2VA uses <Subject N> for reusable visible content, <Picture N> only for concrete keyframe/composition anchors, <Video N> for whole-video relationships, and <Audio N> for copied or referenced signals. It requires at least one image or video; audio alone is invalid.',
70
+ 'The FastH3 audio guide on sound_to_video (minimax-h3-fasth3-ia2v-turbo, minimax-h3-fasth3-flfa2v-turbo, minimax-h3-fasth3-a2v-turbo and their -2stage forms) writes the Base contract of its mode: image + audio as I2V, first/last frame + audio as FLF2V, audio only as T2V. The uploaded audio drives the picture from frame 0 and is the soundtrack, so describe what it contains and never add other dialogue or music. Use these selectors only when the user asks for MiniMax H3 or FastH3.',
71
+ ];
72
+ const MINIMAX_H3_BASE_RULES = [
73
+ MINIMAX_H3_CONTEXT_PLANNING_GUIDANCE,
74
+ MINIMAX_H3_OUTPUT_CONTRACT_GUIDANCE,
75
+ MINIMAX_H3_TIMED_SHOT_LIST_GUIDANCE,
76
+ MINIMAX_H3_SCENE_GUIDANCE,
77
+ MINIMAX_H3_PHYSICAL_PRECISION_GUIDANCE,
78
+ MINIMAX_H3_DEPICTION_GUIDANCE,
79
+ MINIMAX_H3_PACING_GUIDANCE,
80
+ MINIMAX_H3_KEYFRAME_PATH_GUIDANCE,
81
+ MINIMAX_H3_AUDIO_GUIDANCE,
82
+ MINIMAX_H3_SOURCE_AUDIO_GUIDANCE,
83
+ MINIMAX_H3_DIALOGUE_GUIDANCE,
84
+ MINIMAX_H3_DESIRED_ABSENCE_GUIDANCE,
85
+ MINIMAX_H3_IDENTITY_GUIDANCE,
86
+ MINIMAX_H3_CAMERA_GUIDANCE,
87
+ MINIMAX_H3_ONSCREEN_TEXT_GUIDANCE,
88
+ MINIMAX_H3_TIMEBASE_GUIDANCE,
89
+ MINIMAX_H3_LENGTH_GUIDANCE,
90
+ MINIMAX_H3_FINAL_ASSESSMENT_GUIDANCE,
91
+ ];
92
+ const MINIMAX_H3_R2V_RULES = [
93
+ MINIMAX_H3_R2V_MODE_GUIDANCE,
94
+ MINIMAX_H3_REF2VA_OUTPUT_CONTRACT_GUIDANCE,
95
+ MINIMAX_H3_REFERENCE_GRAMMAR_GUIDANCE,
96
+ MINIMAX_H3_REFERENCE_JOB_GUIDANCE,
97
+ MINIMAX_H3_SOURCE_EDIT_GUIDANCE,
98
+ MINIMAX_H3_CONTEXT_PLANNING_GUIDANCE,
99
+ MINIMAX_H3_TIMED_SHOT_LIST_GUIDANCE,
100
+ MINIMAX_H3_SCENE_GUIDANCE,
101
+ MINIMAX_H3_PHYSICAL_PRECISION_GUIDANCE,
102
+ MINIMAX_H3_DEPICTION_GUIDANCE,
103
+ MINIMAX_H3_PACING_GUIDANCE,
104
+ MINIMAX_H3_AUDIO_GUIDANCE,
105
+ MINIMAX_H3_SOURCE_AUDIO_GUIDANCE,
106
+ MINIMAX_H3_DIALOGUE_GUIDANCE,
107
+ MINIMAX_H3_DESIRED_ABSENCE_GUIDANCE,
108
+ MINIMAX_H3_CAMERA_GUIDANCE,
109
+ MINIMAX_H3_ONSCREEN_TEXT_GUIDANCE,
110
+ MINIMAX_H3_TIMEBASE_GUIDANCE,
111
+ MINIMAX_H3_LENGTH_GUIDANCE,
112
+ MINIMAX_H3_FINAL_ASSESSMENT_GUIDANCE,
113
+ ];
114
+ function minimaxGuide(mode, title, models, rules) {
115
+ return modelPromptGuide({
116
+ family: 'minimax-h3',
117
+ mode,
118
+ title: `MiniMax H3 ${title}`,
119
+ models,
120
+ referenceGrammar: mode === 'r2v' ? MINIMAX_H3_REFERENCE_GRAMMAR_GUIDANCE : null,
121
+ rules,
122
+ notes: MINIMAX_H3_NOTES,
123
+ });
124
+ }
125
+ const MINIMAX_H3_T2V_MODELS = ['minimax-h3', 'minimax-h3-t2v', 'minimax-h3-t2v-balanced', 'minimax-h3-fasth3-t2v-turbo'];
126
+ const MINIMAX_H3_I2V_MODELS = ['minimax-h3-i2v', 'minimax-h3-i2v-balanced', 'minimax-h3-fasth3-i2v-turbo'];
127
+ const MINIMAX_H3_FLF2V_MODELS = ['minimax-h3-flf2v', 'minimax-h3-flf2v-balanced', 'minimax-h3-fasth3-flf2v-turbo'];
128
+ export const MINIMAX_PROMPT_GUIDES = {
129
+ 'minimax-h3': {
130
+ t2v: minimaxGuide('t2v', 'text-to-video (T2VA)', MINIMAX_H3_T2V_MODELS, [MINIMAX_H3_T2V_MODE_GUIDANCE, ...MINIMAX_H3_BASE_RULES]),
131
+ extend: minimaxGuide('extend', 'video continuation (T2VA)', MINIMAX_H3_T2V_MODELS, [
132
+ MINIMAX_H3_T2V_CONTINUATION_MODE_GUIDANCE,
133
+ ...MINIMAX_H3_BASE_RULES,
134
+ ]),
135
+ i2v: minimaxGuide('i2v', 'first-frame image-to-video (I2VA)', MINIMAX_H3_I2V_MODELS, [MINIMAX_H3_I2V_MODE_GUIDANCE, ...MINIMAX_H3_BASE_RULES]),
136
+ l2v: minimaxGuide('l2v', 'last-frame image-to-video (L2VA)', MINIMAX_H3_I2V_MODELS, [MINIMAX_H3_L2V_MODE_GUIDANCE, ...MINIMAX_H3_BASE_RULES]),
137
+ flf: minimaxGuide('flf', 'first-and-last-frame video (FL2VA)', MINIMAX_H3_FLF2V_MODELS, [
138
+ MINIMAX_H3_FLF2V_MODE_GUIDANCE,
139
+ ...MINIMAX_H3_BASE_RULES,
140
+ ]),
141
+ 'i2v-keyframes': minimaxGuide('i2v-keyframes', 'image-to-video with intermediate keyframes (I2VA)', MINIMAX_H3_I2V_MODELS, [
142
+ MINIMAX_H3_I2V_KEYFRAME_MODE_GUIDANCE,
143
+ ...MINIMAX_H3_BASE_RULES,
144
+ ]),
145
+ r2v: minimaxGuide('r2v', 'reference-to-video (Ref2VA)', ['minimax-h3-r2v', 'minimax-h3-r2v-balanced', 'minimax-h3-r2v-balanced-2stage', 'minimax-h3-fasth3-r2v-turbo'], MINIMAX_H3_R2V_RULES),
146
+ ia2v: minimaxGuide('ia2v', 'FastH3 Sound to Video with a first frame (I2VA)', ['minimax-h3-fasth3-ia2v-turbo'], [
147
+ MINIMAX_H3_I2V_MODE_GUIDANCE,
148
+ ...MINIMAX_H3_BASE_RULES,
149
+ MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE,
150
+ ]),
151
+ flfa2v: minimaxGuide('flfa2v', 'FastH3 Sound to Video with first and last frames (FL2VA)', ['minimax-h3-fasth3-flfa2v-turbo'], [
152
+ MINIMAX_H3_FLF2V_MODE_GUIDANCE,
153
+ ...MINIMAX_H3_BASE_RULES,
154
+ MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE,
155
+ ]),
156
+ a2v: minimaxGuide('a2v', 'FastH3 Sound to Video from audio only (T2VA)', ['minimax-h3-fasth3-a2v-turbo'], [
157
+ MINIMAX_H3_T2V_MODE_GUIDANCE,
158
+ ...MINIMAX_H3_BASE_RULES,
159
+ MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE,
160
+ ]),
161
+ 'a2v-keyframes': minimaxGuide('a2v-keyframes', 'FastH3 Sound to Video from audio with intermediate keyframes (T2VA)', ['minimax-h3-fasth3-a2v-turbo'], [
162
+ MINIMAX_H3_T2V_KEYFRAME_MODE_GUIDANCE,
163
+ ...MINIMAX_H3_BASE_RULES,
164
+ MINIMAX_H3_AUDIO_GUIDE_USER_GUIDANCE,
165
+ MINIMAX_H3_AUDIO_GUIDE_KEYFRAME_GUIDANCE,
166
+ ]),
167
+ },
168
+ };
169
+ //# sourceMappingURL=minimax.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimax.js","sourceRoot":"","sources":["../../src/prompt-guides/minimax.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EACL,gBAAgB,GAIjB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,CAAC;AAErD,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,qBAAqB;IACrB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,iBAAiB;CACT,CA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