@hedra/sdk 2.0.0 → 3.0.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/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +31 -2
- package/dist/cjs/api/resources/jobs/client/Client.js +164 -83
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.ts +19 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/keys/client/Client.js +4 -4
- package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
- package/dist/cjs/api/resources/models/client/Client.js +6 -6
- package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
- package/dist/cjs/api/types/InputElevenlabsFlashMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsFlashV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsV3.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Flex.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Klein9B.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Max.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux2Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3.d.ts +2 -2
- package/dist/cjs/api/types/InputFlux3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxDev.d.ts +2 -2
- package/dist/cjs/api/types/InputFluxKontextMax.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxKontextPro.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlash.d.ts +4 -4
- package/dist/cjs/api/types/InputGeminiOmniFlashSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlashStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputGptImage15.d.ts +2 -2
- package/dist/cjs/api/types/InputGptImage2.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokImagine.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideo.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorse.d.ts +4 -4
- package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatar.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHidreamO1Image.d.ts +4 -4
- package/dist/cjs/api/types/InputImagen4.d.ts +1 -1
- package/dist/cjs/api/types/InputKling16.d.ts +4 -4
- package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21Master.d.ts +4 -4
- package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25Turbo.d.ts +4 -4
- package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKling26MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26Pro.d.ts +4 -4
- package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingO1EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3.d.ts +33 -11
- package/dist/cjs/api/types/InputKlingO3.js +5 -0
- package/dist/cjs/api/types/InputKlingO3Edit.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3EditSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3Reference.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3ReferenceSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3.d.ts +34 -12
- package/dist/cjs/api/types/InputKlingV3.js +5 -0
- package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingV3MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23.d.ts +3 -3
- package/dist/cjs/api/types/InputLtx23EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLumaRay32.d.ts +1 -1
- package/dist/cjs/api/types/InputMaiImage25.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +6 -6
- package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxH3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo02.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxHailuo02EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo02StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo23.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxSpeech25HdPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxSpeech25TurboPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputNanoBanana.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBanana2.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBananaPro.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15.d.ts +2 -2
- package/dist/cjs/api/types/InputOmnihuman15Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6.d.ts +3 -3
- package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputQwenImage2.d.ts +4 -4
- package/dist/cjs/api/types/InputRecraftV3.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21Edit.d.ts +2 -2
- package/dist/cjs/api/types/InputReve21Remix.d.ts +2 -2
- package/dist/cjs/api/types/InputSana.d.ts +2 -2
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -3
- package/dist/cjs/api/types/InputSeedance15ProEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance15ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20.d.ts +5 -5
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +5 -5
- package/dist/cjs/api/types/InputSeedance20MiniEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20MiniStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25.d.ts +6 -5
- package/dist/cjs/api/types/InputSeedance25.js +1 -0
- package/dist/cjs/api/types/InputSeedance25EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream40.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream45.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Lite.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputSora2Pro.d.ts +2 -2
- package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10.d.ts +2 -2
- package/dist/cjs/api/types/InputVeedFabric10Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.d.ts +12 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.js +3 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputVeo2.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3.d.ts +2 -2
- package/dist/cjs/api/types/InputVeo31.d.ts +5 -5
- package/dist/cjs/api/types/InputVeo31EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31SourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3.d.ts +3 -3
- package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3Reference.d.ts +2 -2
- package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27.d.ts +6 -6
- package/dist/cjs/api/types/InputWan27EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27StartImage.d.ts +1 -1
- package/dist/cjs/api/types/ModelDetail.d.ts +2 -0
- package/dist/cjs/api/types/ModelSummary.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +31 -2
- package/dist/esm/api/resources/jobs/client/Client.mjs +164 -83
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.d.mts +19 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
- package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
- package/dist/esm/api/resources/models/client/Client.mjs +6 -6
- package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
- package/dist/esm/api/types/InputElevenlabsFlashMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsFlashV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsV3.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Flex.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Klein9B.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Max.d.mts +1 -1
- package/dist/esm/api/types/InputFlux2Pro.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3.d.mts +2 -2
- package/dist/esm/api/types/InputFlux3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputFluxDev.d.mts +2 -2
- package/dist/esm/api/types/InputFluxKontextMax.d.mts +1 -1
- package/dist/esm/api/types/InputFluxKontextPro.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlash.d.mts +4 -4
- package/dist/esm/api/types/InputGeminiOmniFlashSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlashStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputGptImage15.d.mts +2 -2
- package/dist/esm/api/types/InputGptImage2.d.mts +2 -2
- package/dist/esm/api/types/InputGrokImagine.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideo.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorse.d.mts +4 -4
- package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatar.d.mts +4 -4
- package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3.d.mts +4 -4
- package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHidreamO1Image.d.mts +4 -4
- package/dist/esm/api/types/InputImagen4.d.mts +1 -1
- package/dist/esm/api/types/InputKling16.d.mts +4 -4
- package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling21Master.d.mts +4 -4
- package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling25Turbo.d.mts +4 -4
- package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKling26MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26Pro.d.mts +4 -4
- package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +3 -3
- package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1.d.mts +4 -4
- package/dist/esm/api/types/InputKlingO1EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3.d.mts +33 -11
- package/dist/esm/api/types/InputKlingO3.mjs +5 -0
- package/dist/esm/api/types/InputKlingO3Edit.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3EditSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3Reference.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3ReferenceSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3.d.mts +34 -12
- package/dist/esm/api/types/InputKlingV3.mjs +5 -0
- package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKlingV3MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23.d.mts +3 -3
- package/dist/esm/api/types/InputLtx23EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLumaRay32.d.mts +1 -1
- package/dist/esm/api/types/InputMaiImage25.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxH3.d.mts +6 -6
- package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxH3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo02.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxHailuo02EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo02StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo23.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxSpeech25HdPreview.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxSpeech25TurboPreview.d.mts +3 -3
- package/dist/esm/api/types/InputNanoBanana.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBanana2.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBananaPro.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15.d.mts +2 -2
- package/dist/esm/api/types/InputOmnihuman15Audio.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6.d.mts +3 -3
- package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputQwenImage2.d.mts +4 -4
- package/dist/esm/api/types/InputRecraftV3.d.mts +1 -1
- package/dist/esm/api/types/InputReve21.d.mts +1 -1
- package/dist/esm/api/types/InputReve21Edit.d.mts +2 -2
- package/dist/esm/api/types/InputReve21Remix.d.mts +2 -2
- package/dist/esm/api/types/InputSana.d.mts +2 -2
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -3
- package/dist/esm/api/types/InputSeedance15ProEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance15ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20.d.mts +5 -5
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +5 -5
- package/dist/esm/api/types/InputSeedance20MiniEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20MiniStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25.d.mts +6 -5
- package/dist/esm/api/types/InputSeedance25.mjs +1 -0
- package/dist/esm/api/types/InputSeedance25EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream40.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream45.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Lite.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Pro.d.mts +1 -1
- package/dist/esm/api/types/InputSora2Pro.d.mts +2 -2
- package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10.d.mts +2 -2
- package/dist/esm/api/types/InputVeedFabric10Audio.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.d.mts +12 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.mjs +2 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputVeo2.d.mts +1 -1
- package/dist/esm/api/types/InputVeo2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3.d.mts +2 -2
- package/dist/esm/api/types/InputVeo31.d.mts +5 -5
- package/dist/esm/api/types/InputVeo31EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31SourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3.d.mts +3 -3
- package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3Reference.d.mts +2 -2
- package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27.d.mts +6 -6
- package/dist/esm/api/types/InputWan27EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27StartImage.d.mts +1 -1
- package/dist/esm/api/types/ModelDetail.d.mts +2 -0
- package/dist/esm/api/types/ModelSummary.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +72 -2
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputHappyHorse {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputHappyHorse.AspectRatio;
|
|
@@ -17,11 +17,11 @@ export interface InputHappyHorse {
|
|
|
17
17
|
resolution: InputHappyHorse.Resolution;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At least 300px on each side and at most 10 MB. */
|
|
21
21
|
start_image?: Hedra.InputHappyHorseStartImage | undefined;
|
|
22
|
-
/** Reference images. */
|
|
22
|
+
/** Reference images. 1 to 9 images, each at least 400px on each side and at most 10 MB. */
|
|
23
23
|
images?: Hedra.InputHappyHorseImagesItem[] | undefined;
|
|
24
|
-
/** Seed for reproducible output; omit for a random seed. */
|
|
24
|
+
/** Seed for reproducible output; omit for a random seed. From 0 to 2147483647. */
|
|
25
25
|
seed?: number | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputHappyHorse {
|
|
@@ -11,11 +11,11 @@ export interface InputHedraAvatar {
|
|
|
11
11
|
aspect_ratio: InputHedraAvatar.AspectRatio;
|
|
12
12
|
/** Output resolution. */
|
|
13
13
|
resolution: InputHedraAvatar.Resolution;
|
|
14
|
-
/** Duration in ms. */
|
|
14
|
+
/** Duration in ms. At most 600000. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame (image-to-video). */
|
|
16
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
17
17
|
start_image: Hedra.InputHedraAvatarStartImage;
|
|
18
|
-
/** Driving audio: a single reference, or a list of
|
|
18
|
+
/** Driving audio: a single reference, or a list of references for multi-speaker generation — one audio per speaker, played in list order. 1 to 4 audio files, each from 0.5s to 600s and at most 104.8 MB. */
|
|
19
19
|
audio: InputHedraAvatar.Audio;
|
|
20
20
|
/** Speaker position(s) in the start frame, as normalized [x, y] image coordinates (0-1 from the top-left). */
|
|
21
21
|
bounding_box_target?: InputHedraAvatar.BoundingBoxTarget | undefined;
|
|
@@ -40,7 +40,7 @@ export declare namespace InputHedraAvatar {
|
|
|
40
40
|
};
|
|
41
41
|
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
42
42
|
/**
|
|
43
|
-
* Driving audio: a single reference, or a list of
|
|
43
|
+
* Driving audio: a single reference, or a list of references for multi-speaker generation — one audio per speaker, played in list order. 1 to 4 audio files, each from 0.5s to 600s and at most 104.8 MB.
|
|
44
44
|
*/
|
|
45
45
|
type Audio = Hedra.InputHedraAvatarAudioZero | Hedra.InputHedraAvatarAudioOneItem[];
|
|
46
46
|
/**
|
|
@@ -11,11 +11,11 @@ export interface InputHedraCharacter3 {
|
|
|
11
11
|
aspect_ratio: InputHedraCharacter3.AspectRatio;
|
|
12
12
|
/** Output resolution. */
|
|
13
13
|
resolution: InputHedraCharacter3.Resolution;
|
|
14
|
-
/** Duration in ms. */
|
|
14
|
+
/** Duration in ms. At most 600000. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame (image-to-video). */
|
|
16
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
17
17
|
start_image: Hedra.InputHedraCharacter3StartImage;
|
|
18
|
-
/** Driving audio: a single reference, or a list of
|
|
18
|
+
/** Driving audio: a single reference, or a list of references for multi-speaker generation — one audio per speaker, played in list order. 1 to 4 audio files, each from 0.5s to 600s and at most 104.8 MB. */
|
|
19
19
|
audio: InputHedraCharacter3.Audio;
|
|
20
20
|
/** Speaker position(s) in the start frame, as normalized [x, y] image coordinates (0-1 from the top-left). */
|
|
21
21
|
bounding_box_target?: InputHedraCharacter3.BoundingBoxTarget | undefined;
|
|
@@ -40,7 +40,7 @@ export declare namespace InputHedraCharacter3 {
|
|
|
40
40
|
};
|
|
41
41
|
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
42
42
|
/**
|
|
43
|
-
* Driving audio: a single reference, or a list of
|
|
43
|
+
* Driving audio: a single reference, or a list of references for multi-speaker generation — one audio per speaker, played in list order. 1 to 4 audio files, each from 0.5s to 600s and at most 104.8 MB.
|
|
44
44
|
*/
|
|
45
45
|
type Audio = Hedra.InputHedraCharacter3AudioZero | Hedra.InputHedraCharacter3AudioOneItem[];
|
|
46
46
|
/**
|
|
@@ -7,7 +7,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
7
7
|
* (2) requires: aspect_ratio, prompt, resolution; must omit: images
|
|
8
8
|
*/
|
|
9
9
|
export interface InputHidreamO1Image {
|
|
10
|
-
/** Generation prompt. */
|
|
10
|
+
/** Generation prompt. At least 1 character. */
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
@@ -15,15 +15,15 @@ export interface InputHidreamO1Image {
|
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputHidreamO1Image.AspectRatio;
|
|
18
|
-
/** Images to edit or blend. */
|
|
18
|
+
/** Images to edit or blend. 1 to 10 images, each at most 30 MB. */
|
|
19
19
|
images?: Hedra.InputHidreamO1ImageImagesItem[] | undefined;
|
|
20
20
|
/** Output image format. */
|
|
21
21
|
output_format?: InputHidreamO1Image.OutputFormat | undefined;
|
|
22
22
|
/** Seed for reproducible output; omit for a random seed. */
|
|
23
23
|
seed?: number | undefined;
|
|
24
|
-
/** How closely the model follows the prompt. */
|
|
24
|
+
/** How closely the model follows the prompt. From 0 to 20. */
|
|
25
25
|
guidance_scale?: number | undefined;
|
|
26
|
-
/** Denoising steps to run. */
|
|
26
|
+
/** Denoising steps to run. From 1 to 50. */
|
|
27
27
|
num_inference_steps?: number | undefined;
|
|
28
28
|
/** Output resolution. */
|
|
29
29
|
resolution?: InputHidreamO1Image.Resolution | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Model-specific inputs for `imagen4`.
|
|
3
3
|
*/
|
|
4
4
|
export interface InputImagen4 {
|
|
5
|
-
/** Generation prompt. */
|
|
5
|
+
/** Generation prompt. At most 5000 characters. */
|
|
6
6
|
prompt: string;
|
|
7
7
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
8
8
|
num_outputs?: number | undefined;
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputKling16 {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio?: InputKling16.AspectRatio | undefined;
|
|
@@ -17,11 +17,11 @@ export interface InputKling16 {
|
|
|
17
17
|
resolution?: InputKling16.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms?: number | undefined;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling16StartImage | undefined;
|
|
22
|
-
/** What to avoid in the generated video. */
|
|
22
|
+
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
24
|
-
/** How closely the model follows the prompt. */
|
|
24
|
+
/** How closely the model follows the prompt. From 0 to 1. */
|
|
25
25
|
cfg_scale?: number | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputKling16 {
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputKling21Master {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputKling21Master.AspectRatio;
|
|
@@ -17,11 +17,11 @@ export interface InputKling21Master {
|
|
|
17
17
|
resolution?: InputKling21Master.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling21MasterStartImage | undefined;
|
|
22
|
-
/** What to avoid in the generated video. */
|
|
22
|
+
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
24
|
-
/** How closely the model follows the prompt. */
|
|
24
|
+
/** How closely the model follows the prompt. From 0 to 1. */
|
|
25
25
|
cfg_scale?: number | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputKling21Master {
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputKling25Turbo {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputKling25Turbo.AspectRatio;
|
|
@@ -17,11 +17,11 @@ export interface InputKling25Turbo {
|
|
|
17
17
|
resolution?: InputKling25Turbo.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling25TurboStartImage | undefined;
|
|
22
|
-
/** What to avoid in the generated video. */
|
|
22
|
+
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
24
|
-
/** How closely the model follows the prompt. */
|
|
24
|
+
/** How closely the model follows the prompt. From 0 to 1. */
|
|
25
25
|
cfg_scale?: number | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputKling25Turbo {
|
|
@@ -5,13 +5,13 @@ import type * as Hedra from "../index.mjs";
|
|
|
5
5
|
export interface InputKling26MotionControl {
|
|
6
6
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
7
|
num_outputs?: number | undefined;
|
|
8
|
-
/** Generation prompt. */
|
|
8
|
+
/** Generation prompt. At most 2500 characters. */
|
|
9
9
|
prompt?: string | undefined;
|
|
10
10
|
/** Whether the output character's orientation follows the reference video ('video' — better for complex motion) or the character image ('image' — better for camera movement). Also caps the source video: 30s for 'video', 10s for 'image'. */
|
|
11
11
|
character_orientation?: InputKling26MotionControl.CharacterOrientation | undefined;
|
|
12
|
-
/** Start frame (image-to-video). */
|
|
12
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
13
13
|
start_image: Hedra.InputKling26MotionControlStartImage;
|
|
14
|
-
/** Source video (video-to-video). */
|
|
14
|
+
/** Source video (video-to-video). From 3s to 30s and at most 524.2 MB. */
|
|
15
15
|
source_video: Hedra.InputKling26MotionControlSourceVideo;
|
|
16
16
|
/** Output resolution to generate at. */
|
|
17
17
|
resolution: InputKling26MotionControl.Resolution;
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputKling26Pro {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputKling26Pro.AspectRatio;
|
|
@@ -19,11 +19,11 @@ export interface InputKling26Pro {
|
|
|
19
19
|
duration_ms: number;
|
|
20
20
|
/** Whether to generate native audio for the video. */
|
|
21
21
|
generate_audio?: boolean | undefined;
|
|
22
|
-
/** Start frame (image-to-video). */
|
|
22
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
23
23
|
start_image?: Hedra.InputKling26ProStartImage | undefined;
|
|
24
|
-
/** What to avoid in the generated video. */
|
|
24
|
+
/** What to avoid in the generated video. At most 2500 characters. */
|
|
25
25
|
negative_prompt?: string | undefined;
|
|
26
|
-
/** How closely the model follows the prompt. */
|
|
26
|
+
/** How closely the model follows the prompt. From 0 to 1. */
|
|
27
27
|
cfg_scale?: number | undefined;
|
|
28
28
|
}
|
|
29
29
|
export declare namespace InputKling26Pro {
|
|
@@ -5,15 +5,15 @@ import type * as Hedra from "../index.mjs";
|
|
|
5
5
|
export interface InputKlingAiAvatarV2 {
|
|
6
6
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
7
|
num_outputs?: number | undefined;
|
|
8
|
-
/** Generation prompt. */
|
|
8
|
+
/** Generation prompt. At most 2500 characters. */
|
|
9
9
|
prompt?: string | undefined;
|
|
10
10
|
/** Output aspect ratio. */
|
|
11
11
|
aspect_ratio: InputKlingAiAvatarV2.AspectRatio;
|
|
12
12
|
/** Output resolution. */
|
|
13
13
|
resolution?: InputKlingAiAvatarV2.Resolution | undefined;
|
|
14
|
-
/** Start frame (image-to-video). */
|
|
14
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
15
15
|
start_image: Hedra.InputKlingAiAvatarV2StartImage;
|
|
16
|
-
/** Driving audio. */
|
|
16
|
+
/** Driving audio. From 2s to 60s and at most 5 MB. */
|
|
17
17
|
audio: Hedra.InputKlingAiAvatarV2Audio;
|
|
18
18
|
/** Quality level to generate at. */
|
|
19
19
|
quality: InputKlingAiAvatarV2.Quality;
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.mjs";
|
|
|
9
9
|
export interface InputKlingO1 {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputKlingO1.AspectRatio;
|
|
@@ -17,11 +17,11 @@ export interface InputKlingO1 {
|
|
|
17
17
|
resolution?: InputKlingO1.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKlingO1StartImage | undefined;
|
|
22
|
-
/** End frame (first-last-frame-to-video). */
|
|
22
|
+
/** End frame (first-last-frame-to-video). At most 10.4 MB. */
|
|
23
23
|
end_image?: Hedra.InputKlingO1EndImage | undefined;
|
|
24
|
-
/** Reference images. */
|
|
24
|
+
/** Reference images. 1 to 3 images, each at most 10.4 MB. */
|
|
25
25
|
images?: Hedra.InputKlingO1ImagesItem[] | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputKlingO1 {
|
|
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.mjs";
|
|
|
3
3
|
* Model-specific inputs for `kling-o3`.
|
|
4
4
|
*
|
|
5
5
|
* Accepted field combinations (one per input mode):
|
|
6
|
-
* (1) requires: aspect_ratio, duration_ms,
|
|
7
|
-
* (2) requires: aspect_ratio, duration_ms, images,
|
|
8
|
-
* (3) requires: aspect_ratio, duration_ms,
|
|
9
|
-
* (4) requires: aspect_ratio, duration_ms,
|
|
10
|
-
* (5) requires: aspect_ratio, duration_ms, images
|
|
11
|
-
* (6) requires: aspect_ratio, duration_ms
|
|
6
|
+
* (1) requires: aspect_ratio, duration_ms, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
7
|
+
* (2) requires: aspect_ratio, duration_ms, images, resolution; accepts quality: pro; resolution: 1080p | 4K
|
|
8
|
+
* (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, images, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
9
|
+
* (4) requires: aspect_ratio, duration_ms, start_image; accepts quality: standard; resolution: 720p
|
|
10
|
+
* (5) requires: aspect_ratio, duration_ms, images; accepts quality: standard; resolution: 720p
|
|
11
|
+
* (6) requires: aspect_ratio, duration_ms; must omit: end_image, images, start_image; accepts quality: standard; resolution: 720p
|
|
12
12
|
*/
|
|
13
13
|
export interface InputKlingO3 {
|
|
14
14
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
15
15
|
num_outputs?: number | undefined;
|
|
16
|
-
/** Generation prompt. */
|
|
17
|
-
prompt
|
|
16
|
+
/** Generation prompt. At most 2500 characters. */
|
|
17
|
+
prompt?: string | undefined;
|
|
18
|
+
/** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
|
|
19
|
+
multi_prompt?: InputKlingO3.MultiPrompt.Item[] | undefined;
|
|
20
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
21
|
+
shot_type?: InputKlingO3.ShotType | undefined;
|
|
18
22
|
/** Whether to generate native audio for the video. */
|
|
19
23
|
generate_audio?: boolean | undefined;
|
|
20
24
|
/** Output aspect ratio. */
|
|
@@ -23,16 +27,34 @@ export interface InputKlingO3 {
|
|
|
23
27
|
resolution?: InputKlingO3.Resolution | undefined;
|
|
24
28
|
/** Duration in ms. */
|
|
25
29
|
duration_ms: number;
|
|
26
|
-
/** Start frame (image-to-video). */
|
|
30
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
27
31
|
start_image?: Hedra.InputKlingO3StartImage | undefined;
|
|
28
|
-
/** End frame (first-last-frame-to-video). */
|
|
32
|
+
/** End frame (first-last-frame-to-video). At most 10.4 MB. */
|
|
29
33
|
end_image?: Hedra.InputKlingO3EndImage | undefined;
|
|
30
|
-
/** Reference images. */
|
|
34
|
+
/** Reference images. 1 to 3 images, each at most 10.4 MB. */
|
|
31
35
|
images?: Hedra.InputKlingO3ImagesItem[] | undefined;
|
|
32
36
|
/** Quality level to generate at. */
|
|
33
37
|
quality: InputKlingO3.Quality;
|
|
34
38
|
}
|
|
35
39
|
export declare namespace InputKlingO3 {
|
|
40
|
+
type MultiPrompt = MultiPrompt.Item[];
|
|
41
|
+
namespace MultiPrompt {
|
|
42
|
+
/**
|
|
43
|
+
* One shot of a published multi-shot storyboard.
|
|
44
|
+
*/
|
|
45
|
+
interface Item {
|
|
46
|
+
/** The prompt for this shot. */
|
|
47
|
+
prompt: string;
|
|
48
|
+
/** Duration of this shot in milliseconds. */
|
|
49
|
+
duration_ms?: number | undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
53
|
+
const ShotType: {
|
|
54
|
+
readonly Customize: "customize";
|
|
55
|
+
readonly Intelligent: "intelligent";
|
|
56
|
+
};
|
|
57
|
+
type ShotType = (typeof ShotType)[keyof typeof ShotType];
|
|
36
58
|
/** Output aspect ratio. */
|
|
37
59
|
const AspectRatio: {
|
|
38
60
|
readonly Sixteen9: "16:9";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export var InputKlingO3;
|
|
3
3
|
(function (InputKlingO3) {
|
|
4
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
5
|
+
InputKlingO3.ShotType = {
|
|
6
|
+
Customize: "customize",
|
|
7
|
+
Intelligent: "intelligent",
|
|
8
|
+
};
|
|
4
9
|
/** Output aspect ratio. */
|
|
5
10
|
InputKlingO3.AspectRatio = {
|
|
6
11
|
Sixteen9: "16:9",
|
|
@@ -5,11 +5,11 @@ import type * as Hedra from "../index.mjs";
|
|
|
5
5
|
export interface InputKlingO3Edit {
|
|
6
6
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
7
|
num_outputs?: number | undefined;
|
|
8
|
-
/** Generation prompt. */
|
|
8
|
+
/** Generation prompt. At most 2500 characters. */
|
|
9
9
|
prompt: string;
|
|
10
|
-
/** Source video (video-to-video). */
|
|
10
|
+
/** Source video (video-to-video). From 3s to 15s and at most 524.2 MB. */
|
|
11
11
|
source_video: Hedra.InputKlingO3EditSourceVideo;
|
|
12
|
-
/** Reference images. */
|
|
12
|
+
/** Reference images. 1 to 4 images, each at least 300px on each side and at most 10.4 MB. */
|
|
13
13
|
images?: Hedra.InputKlingO3EditImagesItem[] | undefined;
|
|
14
14
|
/** Output resolution to generate at. */
|
|
15
15
|
resolution: InputKlingO3Edit.Resolution;
|
|
@@ -5,11 +5,11 @@ import type * as Hedra from "../index.mjs";
|
|
|
5
5
|
export interface InputKlingO3Reference {
|
|
6
6
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
7
|
num_outputs?: number | undefined;
|
|
8
|
-
/** Generation prompt. */
|
|
8
|
+
/** Generation prompt. At most 2500 characters. */
|
|
9
9
|
prompt: string;
|
|
10
|
-
/** Source video (video-to-video). */
|
|
10
|
+
/** Source video (video-to-video). From 3s to 15s and at most 524.2 MB. */
|
|
11
11
|
source_video: Hedra.InputKlingO3ReferenceSourceVideo;
|
|
12
|
-
/** Reference images. */
|
|
12
|
+
/** Reference images. 1 to 4 images, each at least 300px on each side and at most 10.4 MB. */
|
|
13
13
|
images?: Hedra.InputKlingO3ReferenceImagesItem[] | undefined;
|
|
14
14
|
/** Output resolution to generate at. */
|
|
15
15
|
resolution: InputKlingO3Reference.Resolution;
|
|
@@ -3,21 +3,25 @@ import type * as Hedra from "../index.mjs";
|
|
|
3
3
|
* Model-specific inputs for `kling-v3`.
|
|
4
4
|
*
|
|
5
5
|
* Accepted field combinations (one per input mode):
|
|
6
|
-
* (1) requires: aspect_ratio, duration_ms,
|
|
7
|
-
* (2) requires: aspect_ratio, duration_ms, end_image,
|
|
8
|
-
* (3) requires: aspect_ratio, duration_ms,
|
|
9
|
-
* (4) requires: aspect_ratio, duration_ms,
|
|
10
|
-
* (5) requires: aspect_ratio, duration_ms, end_image,
|
|
11
|
-
* (6) requires: aspect_ratio, duration_ms
|
|
6
|
+
* (1) requires: aspect_ratio, duration_ms, resolution, start_image; must omit: end_image; accepts quality: pro; resolution: 1080p | 4K
|
|
7
|
+
* (2) requires: aspect_ratio, duration_ms, end_image, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
8
|
+
* (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
9
|
+
* (4) requires: aspect_ratio, duration_ms, start_image; must omit: end_image; accepts quality: standard; resolution: 720p
|
|
10
|
+
* (5) requires: aspect_ratio, duration_ms, end_image, start_image; accepts quality: standard; resolution: 720p
|
|
11
|
+
* (6) requires: aspect_ratio, duration_ms; must omit: end_image, start_image; accepts quality: standard; resolution: 720p
|
|
12
12
|
*/
|
|
13
13
|
export interface InputKlingV3 {
|
|
14
14
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
15
15
|
num_outputs?: number | undefined;
|
|
16
|
-
/** Generation prompt. */
|
|
17
|
-
prompt
|
|
16
|
+
/** Generation prompt. At most 2500 characters. */
|
|
17
|
+
prompt?: string | undefined;
|
|
18
|
+
/** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
|
|
19
|
+
multi_prompt?: InputKlingV3.MultiPrompt.Item[] | undefined;
|
|
20
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
21
|
+
shot_type?: InputKlingV3.ShotType | undefined;
|
|
18
22
|
/** Whether to generate native audio for the video. */
|
|
19
23
|
generate_audio?: boolean | undefined;
|
|
20
|
-
/** What to avoid in the generated video. */
|
|
24
|
+
/** What to avoid in the generated video. At most 2500 characters. */
|
|
21
25
|
negative_prompt?: string | undefined;
|
|
22
26
|
/** Output aspect ratio. */
|
|
23
27
|
aspect_ratio: InputKlingV3.AspectRatio;
|
|
@@ -25,16 +29,34 @@ export interface InputKlingV3 {
|
|
|
25
29
|
resolution?: InputKlingV3.Resolution | undefined;
|
|
26
30
|
/** Duration in ms. */
|
|
27
31
|
duration_ms: number;
|
|
28
|
-
/** Start frame (image-to-video). */
|
|
32
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
29
33
|
start_image?: Hedra.InputKlingV3StartImage | undefined;
|
|
30
|
-
/** How closely the model follows the prompt. */
|
|
34
|
+
/** How closely the model follows the prompt. From 0 to 1. */
|
|
31
35
|
cfg_scale?: number | undefined;
|
|
32
|
-
/** End frame (first-last-frame-to-video). */
|
|
36
|
+
/** End frame (first-last-frame-to-video). At most 10.4 MB. */
|
|
33
37
|
end_image?: Hedra.InputKlingV3EndImage | undefined;
|
|
34
38
|
/** Quality level to generate at. */
|
|
35
39
|
quality: InputKlingV3.Quality;
|
|
36
40
|
}
|
|
37
41
|
export declare namespace InputKlingV3 {
|
|
42
|
+
type MultiPrompt = MultiPrompt.Item[];
|
|
43
|
+
namespace MultiPrompt {
|
|
44
|
+
/**
|
|
45
|
+
* One shot of a published multi-shot storyboard.
|
|
46
|
+
*/
|
|
47
|
+
interface Item {
|
|
48
|
+
/** The prompt for this shot. */
|
|
49
|
+
prompt: string;
|
|
50
|
+
/** Duration of this shot in milliseconds. */
|
|
51
|
+
duration_ms?: number | undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
55
|
+
const ShotType: {
|
|
56
|
+
readonly Customize: "customize";
|
|
57
|
+
readonly Intelligent: "intelligent";
|
|
58
|
+
};
|
|
59
|
+
type ShotType = (typeof ShotType)[keyof typeof ShotType];
|
|
38
60
|
/** Output aspect ratio. */
|
|
39
61
|
const AspectRatio: {
|
|
40
62
|
readonly Sixteen9: "16:9";
|