@sogni-ai/sogni-intelligence-client 4.16.4 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/data/promptContracts.d.ts.map +1 -1
- package/dist/contracts/data/promptContracts.js +4 -0
- package/dist/contracts/data/promptContracts.js.map +1 -1
- package/dist/contracts/hostedToolValidation.d.ts.map +1 -1
- package/dist/contracts/hostedToolValidation.js +3 -1
- package/dist/contracts/hostedToolValidation.js.map +1 -1
- package/dist/contracts/toolPromptMarkers.d.ts +1 -1
- package/dist/contracts/toolPromptMarkers.d.ts.map +1 -1
- package/dist/contracts/toolPromptMarkers.js +2 -1
- package/dist/contracts/toolPromptMarkers.js.map +1 -1
- package/dist/media/modelConsentRequired.d.ts.map +1 -1
- package/dist/media/modelConsentRequired.js.map +1 -1
- package/dist/media/videoSettings.d.ts +1 -1
- package/dist/media/videoSettings.d.ts.map +1 -1
- package/dist/media/videoSettings.js +42 -0
- package/dist/media/videoSettings.js.map +1 -1
- package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
- package/dist/openai-tools/_manifests.generated.js +4 -2
- package/dist/openai-tools/_manifests.generated.js.map +1 -1
- package/dist/public-skill-runtime/index.d.ts.map +1 -1
- package/dist/public-skill-runtime/index.js +4 -1
- package/dist/public-skill-runtime/index.js.map +1 -1
- package/dist/tools/definitions/animate-photo/definition.js +1 -1
- package/dist/tools/definitions/animate-photo/definition.js.map +1 -1
- package/dist/tools/definitions/generate-video/definition.d.ts.map +1 -1
- package/dist/tools/definitions/generate-video/definition.js +5 -1
- package/dist/tools/definitions/generate-video/definition.js.map +1 -1
- package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
- package/dist/tools/shared/modelRegistry.js +2 -0
- package/dist/tools/shared/modelRegistry.js.map +1 -1
- package/dist/tools/shared/seedancePolicyErrors.d.ts.map +1 -1
- package/dist/tools/shared/seedancePolicyErrors.js.map +1 -1
- package/dist/utils/videoModelIds.d.ts.map +1 -1
- package/dist/utils/videoModelIds.js +6 -0
- package/dist/utils/videoModelIds.js.map +1 -1
- package/dist-esm/contracts/data/promptContracts.js +4 -0
- package/dist-esm/contracts/data/promptContracts.js.map +1 -1
- package/dist-esm/contracts/hostedToolValidation.js +3 -1
- package/dist-esm/contracts/hostedToolValidation.js.map +1 -1
- package/dist-esm/contracts/toolPromptMarkers.js +2 -1
- package/dist-esm/contracts/toolPromptMarkers.js.map +1 -1
- package/dist-esm/media/modelConsentRequired.js.map +1 -1
- package/dist-esm/media/videoSettings.js +42 -0
- package/dist-esm/media/videoSettings.js.map +1 -1
- package/dist-esm/openai-tools/_manifests.generated.js +4 -2
- package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
- package/dist-esm/public-skill-runtime/index.js +4 -1
- package/dist-esm/public-skill-runtime/index.js.map +1 -1
- package/dist-esm/tools/definitions/animate-photo/definition.js +1 -1
- package/dist-esm/tools/definitions/animate-photo/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-video/definition.js +5 -1
- package/dist-esm/tools/definitions/generate-video/definition.js.map +1 -1
- package/dist-esm/tools/shared/modelRegistry.js +2 -0
- package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
- package/dist-esm/tools/shared/seedancePolicyErrors.js.map +1 -1
- package/dist-esm/utils/videoModelIds.js +6 -0
- package/dist-esm/utils/videoModelIds.js.map +1 -1
- package/package.json +2 -2
|
@@ -807,9 +807,10 @@ exports.VIDEO_GENERATION_SKILL = {
|
|
|
807
807
|
constraints: [
|
|
808
808
|
'For My Personas video requests, default to image_editing first to produce a conditioned scene image before animation. Use direct video only when the user explicitly asks to animate an existing persona image/reference or no source image is available for a voice-only request.',
|
|
809
809
|
'Seedance 2.5 Uncensored uses selector seedance2-5-uncensored (Sogni model id seedance-2-5-uncensored): the same modes, 480p/720p/1080p, 4-30 seconds at 24 fps, reference limits, MOV and last-frame options as seedance2-5. Use it only when the user asks for Seedance 2.5 Uncensored, Seedance Uncensored, or Seedance Spicy, and never swap it for seedance2-5. Each account must accept a one-time likeness and consent agreement in the Sogni app first; error 4103 means it has not, so tell the user to accept it there and do not retry.',
|
|
810
|
+
'Every regular Seedance model (seedance2-5, seedance2, seedance2-mini) takes photos and clips of real people once the account has accepted that same one-time likeness agreement, and never requires it otherwise. When one of them refuses an input because it may contain a real person, first offer the agreement (the user accepts it once in the Sogni app at the link the refusal names, e.g. https://app.sogni.ai/account/model-consents/seedance-2-5) and, after the user says they accepted it, retry the same request on the same model at its regular price; then offer the Uncensored model the refusal suggests, then MiniMax H3. When the context says the user has an active Sogni Unlimited plan, offer MiniMax H3 first instead (it is included with Unlimited), then the agreement and the same-model retry, then the Uncensored model.',
|
|
810
811
|
'Seedance 2.0 Mini Uncensored uses selector seedance2-mini-uncensored (Sogni model id seedance-2-0-mini-uncensored): the same modes, 480p/720p, 4-15 seconds at 24 fps and reference limits as seedance2-mini. Use it only when the user asks for Seedance 2.0 Mini Uncensored, Seedance Mini Uncensored, or Seedance Mini Spicy, and never swap it for seedance2-mini or seedance2-5-uncensored. It shares the Seedance 2.5 Uncensored likeness and consent agreement, so error 4103 means the account has not accepted it: tell the user to accept it in the Sogni app and do not retry.',
|
|
811
812
|
'Wan 3.0 Enhanced uses exact Sogni model id wan3.0-spicy-video (MuleRouter provider id w3.0-video): 2-30 seconds at 30 fps, 480p/720p/1080p, native audio, prompt expansion, adaptive/fixed ratios, and up to 10 image/5 video/5 audio references. First/last-frame mode and loose-reference mode are mutually exclusive. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode.',
|
|
812
|
-
'MiniMax H3 two-stage: 1080p and 2K H3 delivery is its own selector, not an option. minimax-h3-fasth3-t2v-turbo-2stage on generate_video (animate_photo carries minimax-h3-fasth3-i2v-turbo-2stage and minimax-h3-fasth3-flf2v-turbo-2stage) renders the FastH3 canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas with the same length and audio. targetResolution names the delivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4 Spark per second. Choose it when the user asks for 1080p, 1440p or 2K H3 output, for two-stage output, or for the sharpest/best H3 quality, and send the same prompt contract, durations and LoRAs as the matching FastH3 selector; keep ordinary 768p FastH3 output on the regular FastH3 selector at targetResolution 768. Reference-to-video has its own two-stage selectors on generate_video: minimax-h3-r2v-2stage (Standard, 20 steps) and minimax-h3-r2v-balanced-2stage (Balanced, 8 steps) take exactly the references, prompt contract, durations and LoRAs of minimax-h3-r2v and minimax-h3-r2v-balanced, deliver twice the canvas, and read targetResolution the same way; each bills its tier\'s rate plus the two-stage surcharge of the delivered class. Keep the one-stage R2V selectors for ordinary 768p output.',
|
|
813
|
+
'MiniMax H3 two-stage: 1080p and 2K H3 delivery is its own selector, not an option. minimax-h3-fasth3-t2v-turbo-2stage on generate_video (animate_photo carries minimax-h3-fasth3-i2v-turbo-2stage and minimax-h3-fasth3-flf2v-turbo-2stage) renders the FastH3 canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas with the same length and audio. targetResolution names the delivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4 Spark per second. Choose it when the user asks for 1080p, 1440p or 2K H3 output, for two-stage output, or for the sharpest/best H3 quality, and send the same prompt contract, durations and LoRAs as the matching FastH3 selector; keep ordinary 768p FastH3 output on the regular FastH3 selector at targetResolution 768. Reference-to-video has its own two-stage selectors on generate_video: minimax-h3-r2v-2stage (Standard, 20 steps) and minimax-h3-r2v-balanced-2stage (Balanced, 8 steps) take exactly the references, prompt contract, durations and LoRAs of minimax-h3-r2v and minimax-h3-r2v-balanced, deliver twice the canvas, and read targetResolution the same way; each bills its tier\'s rate plus the two-stage surcharge of the delivered class. Keep the one-stage R2V selectors for ordinary 768p output. FastH3 Reference is the FastH3 tier\'s reference-to-video: minimax-h3-fasth3-r2v-turbo takes the same references, prompt contract, durations and catalog LoRAs as minimax-h3-r2v (Personal LoRAs are not available on it), and minimax-h3-fasth3-r2v-turbo-2stage is its two-stage form, read the same way.',
|
|
813
814
|
`${toolPromptMarkers_js_1.MINIMAX_H3_KEYFRAMES_GUIDANCE} On generate_video only the MiniMax H3 reference-to-video selectors take keyframes, never text-to-video; the keyframe images are not references and do not go in referenceImageIndices.`,
|
|
814
815
|
],
|
|
815
816
|
};
|
|
@@ -7582,6 +7583,8 @@ function inferDefaultVideoSteps(modelId) {
|
|
|
7582
7583
|
return 8;
|
|
7583
7584
|
if (id.includes('lightx2v'))
|
|
7584
7585
|
return 4;
|
|
7586
|
+
if (/^minimax-h3-fastvideo-omni-int8_r2v_turbo(?:_2stage)?$/.test(id))
|
|
7587
|
+
return 8;
|
|
7585
7588
|
if (id.includes('lightning') || id.includes('turbo') || id.includes('lcm'))
|
|
7586
7589
|
return 4;
|
|
7587
7590
|
if (isLtx2Model(id))
|