@hedra/sdk 4.0.0 → 5.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.d.ts +22 -0
- package/dist/cjs/api/resources/billing/client/Client.js +78 -2
- package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.js +3 -0
- package/dist/cjs/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +121 -72
- package/dist/cjs/api/resources/jobs/client/Client.js +320 -167
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.ts +17 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.ts +18 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLtx23.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.ts +2 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodySeedance20.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo31.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -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.d.ts +23 -0
- package/dist/cjs/api/resources/models/client/Client.js +85 -6
- package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.ts +17 -0
- package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.js +3 -0
- package/dist/cjs/api/resources/models/client/requests/index.d.ts +1 -0
- 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/InputElevenlabsMusic.d.ts +13 -0
- package/dist/cjs/api/types/InputElevenlabsMusic.js +3 -0
- 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/InputGeminiOmniFlash.d.ts +2 -2
- 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/InputGptImage2.d.ts +3 -3
- package/dist/cjs/api/types/InputGptImage2.js +1 -1
- package/dist/cjs/api/types/InputGrokImagine.d.ts +32 -3
- package/dist/cjs/api/types/InputGrokImagine.js +22 -1
- package/dist/cjs/api/types/InputGrokImagine20.d.ts +52 -0
- package/dist/cjs/api/types/InputGrokImagine20.js +34 -0
- package/dist/cjs/api/types/InputGrokImagine20ImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGrokImagine20ImagesItem.js +3 -0
- package/dist/cjs/api/types/InputGrokVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorse.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatar.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHidreamO1Image.d.ts +3 -3
- package/dist/cjs/api/types/InputHidreamO1Image.js +1 -1
- package/dist/cjs/api/types/InputIdeogramV4.d.ts +3 -3
- package/dist/cjs/api/types/InputIdeogramV4.js +1 -1
- package/dist/cjs/api/types/InputKling16.d.ts +1 -1
- package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21Master.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25Turbo.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControl.d.ts +2 -2
- 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 +1 -1
- package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingAiAvatarV2.js +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1.d.ts +2 -2
- 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 +5 -5
- package/dist/cjs/api/types/InputKlingO3.js +1 -1
- package/dist/cjs/api/types/InputKlingO3Edit.d.ts +1 -1
- 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 +1 -1
- 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 +5 -5
- package/dist/cjs/api/types/InputKlingV3.js +1 -1
- package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +2 -2
- 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 +5 -5
- package/dist/cjs/api/types/InputLtx23.js +1 -1
- 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 +2 -2
- package/dist/cjs/api/types/InputLumaRay32.js +2 -2
- package/dist/cjs/api/types/InputMaiImage25.d.ts +3 -3
- package/dist/cjs/api/types/InputMaiImage25.js +1 -1
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -2
- package/dist/cjs/api/types/InputMinimaxH3.js +1 -0
- 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 +5 -5
- package/dist/cjs/api/types/InputMinimaxHailuo02.js +1 -1
- 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 +4 -4
- package/dist/cjs/api/types/InputMinimaxHailuo23.js +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBanana.d.ts +2 -2
- package/dist/cjs/api/types/InputNanoBanana.js +1 -1
- package/dist/cjs/api/types/InputNanoBanana2.d.ts +20 -2
- package/dist/cjs/api/types/InputNanoBanana2.js +12 -1
- package/dist/cjs/api/types/InputNanoBananaPro.d.ts +5 -2
- package/dist/cjs/api/types/InputNanoBananaPro.js +2 -1
- package/dist/cjs/api/types/InputOmnihuman15.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputQwenImage2.d.ts +3 -3
- package/dist/cjs/api/types/InputQwenImage2.js +1 -1
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -2
- package/dist/cjs/api/types/InputSeedance15Pro.js +1 -0
- 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 +6 -5
- package/dist/cjs/api/types/InputSeedance20.js +2 -1
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +3 -2
- package/dist/cjs/api/types/InputSeedance20Mini.js +1 -0
- 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 +2 -2
- 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/InputSeedream50Lite.d.ts +8 -0
- package/dist/cjs/api/types/InputSeedream50Lite.js +5 -0
- package/dist/cjs/api/types/InputSeedream50Pro.d.ts +8 -0
- package/dist/cjs/api/types/InputSeedream50Pro.js +5 -0
- package/dist/cjs/api/types/InputSora2Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10StartImage.d.ts +1 -1
- 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 +4 -4
- package/dist/cjs/api/types/InputVeo3.js +1 -1
- package/dist/cjs/api/types/InputVeo31.d.ts +6 -6
- package/dist/cjs/api/types/InputVeo31.js +1 -1
- 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 +5 -5
- package/dist/cjs/api/types/InputViduQ3.js +1 -1
- package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27.d.ts +2 -2
- 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/InputWan30.d.ts +5 -5
- package/dist/cjs/api/types/InputWan30.js +1 -1
- package/dist/cjs/api/types/InputWan30EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan30StartImage.d.ts +1 -1
- package/dist/cjs/api/types/TransactionListResponse.d.ts +7 -0
- package/dist/cjs/api/types/TransactionListResponse.js +3 -0
- package/dist/cjs/api/types/TransactionRecord.d.ts +15 -0
- package/dist/cjs/api/types/TransactionRecord.js +3 -0
- package/dist/cjs/api/types/VoiceGender.d.ts +12 -0
- package/dist/cjs/api/types/VoiceGender.js +15 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -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.d.mts +22 -0
- package/dist/esm/api/resources/billing/client/Client.mjs +78 -2
- package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.d.mts +10 -0
- package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/billing/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +121 -72
- package/dist/esm/api/resources/jobs/client/Client.mjs +320 -167
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.mts +17 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.mts +18 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLtx23.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.mts +2 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodySeedance20.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo31.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -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.d.mts +23 -0
- package/dist/esm/api/resources/models/client/Client.mjs +85 -6
- package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.mts +17 -0
- package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.mjs +2 -0
- package/dist/esm/api/resources/models/client/requests/index.d.mts +1 -0
- 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/InputElevenlabsMusic.d.mts +13 -0
- package/dist/esm/api/types/InputElevenlabsMusic.mjs +2 -0
- 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/InputGeminiOmniFlash.d.mts +2 -2
- 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/InputGptImage2.d.mts +3 -3
- package/dist/esm/api/types/InputGptImage2.mjs +1 -1
- package/dist/esm/api/types/InputGrokImagine.d.mts +32 -3
- package/dist/esm/api/types/InputGrokImagine.mjs +22 -1
- package/dist/esm/api/types/InputGrokImagine20.d.mts +52 -0
- package/dist/esm/api/types/InputGrokImagine20.mjs +31 -0
- package/dist/esm/api/types/InputGrokImagine20ImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputGrokImagine20ImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputGrokVideo.d.mts +1 -1
- package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorse.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatar.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHidreamO1Image.d.mts +3 -3
- package/dist/esm/api/types/InputHidreamO1Image.mjs +1 -1
- package/dist/esm/api/types/InputIdeogramV4.d.mts +3 -3
- package/dist/esm/api/types/InputIdeogramV4.mjs +1 -1
- package/dist/esm/api/types/InputKling16.d.mts +1 -1
- package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling21Master.d.mts +1 -1
- package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling25Turbo.d.mts +1 -1
- package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControl.d.mts +2 -2
- 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 +1 -1
- package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +4 -4
- package/dist/esm/api/types/InputKlingAiAvatarV2.mjs +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1.d.mts +2 -2
- 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 +5 -5
- package/dist/esm/api/types/InputKlingO3.mjs +1 -1
- package/dist/esm/api/types/InputKlingO3Edit.d.mts +1 -1
- 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 +1 -1
- 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 +5 -5
- package/dist/esm/api/types/InputKlingV3.mjs +1 -1
- package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +2 -2
- 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 +5 -5
- package/dist/esm/api/types/InputLtx23.mjs +1 -1
- 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 +2 -2
- package/dist/esm/api/types/InputLumaRay32.mjs +2 -2
- package/dist/esm/api/types/InputMaiImage25.d.mts +3 -3
- package/dist/esm/api/types/InputMaiImage25.mjs +1 -1
- package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -2
- package/dist/esm/api/types/InputMinimaxH3.mjs +1 -0
- 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 +5 -5
- package/dist/esm/api/types/InputMinimaxHailuo02.mjs +1 -1
- 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 +4 -4
- package/dist/esm/api/types/InputMinimaxHailuo23.mjs +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBanana.d.mts +2 -2
- package/dist/esm/api/types/InputNanoBanana.mjs +1 -1
- package/dist/esm/api/types/InputNanoBanana2.d.mts +20 -2
- package/dist/esm/api/types/InputNanoBanana2.mjs +12 -1
- package/dist/esm/api/types/InputNanoBananaPro.d.mts +5 -2
- package/dist/esm/api/types/InputNanoBananaPro.mjs +2 -1
- package/dist/esm/api/types/InputOmnihuman15.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputQwenImage2.d.mts +3 -3
- package/dist/esm/api/types/InputQwenImage2.mjs +1 -1
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -2
- package/dist/esm/api/types/InputSeedance15Pro.mjs +1 -0
- 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 +6 -5
- package/dist/esm/api/types/InputSeedance20.mjs +2 -1
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +3 -2
- package/dist/esm/api/types/InputSeedance20Mini.mjs +1 -0
- 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 +2 -2
- 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/InputSeedream50Lite.d.mts +8 -0
- package/dist/esm/api/types/InputSeedream50Lite.mjs +5 -0
- package/dist/esm/api/types/InputSeedream50Pro.d.mts +8 -0
- package/dist/esm/api/types/InputSeedream50Pro.mjs +5 -0
- package/dist/esm/api/types/InputSora2Pro.d.mts +1 -1
- package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10StartImage.d.mts +1 -1
- 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 +4 -4
- package/dist/esm/api/types/InputVeo3.mjs +1 -1
- package/dist/esm/api/types/InputVeo31.d.mts +6 -6
- package/dist/esm/api/types/InputVeo31.mjs +1 -1
- 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 +5 -5
- package/dist/esm/api/types/InputViduQ3.mjs +1 -1
- package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27.d.mts +2 -2
- 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/InputWan30.d.mts +5 -5
- package/dist/esm/api/types/InputWan30.mjs +1 -1
- package/dist/esm/api/types/InputWan30EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan30StartImage.d.mts +1 -1
- package/dist/esm/api/types/TransactionListResponse.d.mts +7 -0
- package/dist/esm/api/types/TransactionListResponse.mjs +2 -0
- package/dist/esm/api/types/TransactionRecord.d.mts +15 -0
- package/dist/esm/api/types/TransactionRecord.mjs +2 -0
- package/dist/esm/api/types/VoiceGender.d.mts +12 -0
- package/dist/esm/api/types/VoiceGender.mjs +12 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +341 -72
|
@@ -120,7 +120,7 @@ class WebhooksClient {
|
|
|
120
120
|
__getPublicKey(requestOptions) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
123
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
123
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
125
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/public-key"),
|
|
126
126
|
method: "GET",
|
|
@@ -180,7 +180,7 @@ class WebhooksClient {
|
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
181
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
182
182
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
183
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
183
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
186
186
|
method: "GET",
|
|
@@ -245,7 +245,7 @@ class WebhooksClient {
|
|
|
245
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
246
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
247
247
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
248
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
248
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
249
249
|
const _response = yield core.fetcher({
|
|
250
250
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
251
251
|
method: "PUT",
|
|
@@ -310,7 +310,7 @@ class WebhooksClient {
|
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
312
312
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
313
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
313
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
314
314
|
const _response = yield core.fetcher({
|
|
315
315
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
316
316
|
method: "DELETE",
|
|
@@ -372,7 +372,7 @@ class WebhooksClient {
|
|
|
372
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
373
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
374
374
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
375
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
375
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
376
376
|
const _response = yield core.fetcher({
|
|
377
377
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default/test"),
|
|
378
378
|
method: "POST",
|
|
@@ -438,7 +438,7 @@ class WebhooksClient {
|
|
|
438
438
|
cursor,
|
|
439
439
|
};
|
|
440
440
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
441
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
441
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
442
442
|
const _response = yield core.fetcher({
|
|
443
443
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/deliveries"),
|
|
444
444
|
method: "GET",
|
|
@@ -534,7 +534,7 @@ class WebhooksClient {
|
|
|
534
534
|
return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
|
|
535
535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
536
536
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
537
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
537
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
538
538
|
const _response = yield core.fetcher({
|
|
539
539
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `webhooks/deliveries/${core.url.encodePathParam(job_id)}/redeliver`),
|
|
540
540
|
method: "POST",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific inputs for `elevenlabs-music`.
|
|
3
|
+
*/
|
|
4
|
+
export interface InputElevenlabsMusic {
|
|
5
|
+
/** Generation prompt. */
|
|
6
|
+
prompt: string;
|
|
7
|
+
/** Length of the generated track, in milliseconds. Billed as whole seconds, rounded up. From 3000 to 600000. */
|
|
8
|
+
duration_ms: number;
|
|
9
|
+
/** Words for the track to sing. Sent to the provider inside the prompt, which reads lyrics from the prompt text and places them across the requested length. Cannot be combined with `force_instrumental`. At most 10000 characters. */
|
|
10
|
+
lyrics?: string | undefined;
|
|
11
|
+
/** Compose without vocals. */
|
|
12
|
+
force_instrumental?: boolean | undefined;
|
|
13
|
+
}
|
|
@@ -20,9 +20,9 @@ export interface InputFlux3 {
|
|
|
20
20
|
duration_ms: number;
|
|
21
21
|
/** Whether to generate native audio for the video. */
|
|
22
22
|
generate_audio?: boolean | undefined;
|
|
23
|
-
/** Start frame
|
|
23
|
+
/** Start frame. At most 10.4 MB. */
|
|
24
24
|
start_image?: Hedra.InputFlux3StartImage | undefined;
|
|
25
|
-
/** End frame
|
|
25
|
+
/** End frame. At most 10.4 MB. */
|
|
26
26
|
end_image?: Hedra.InputFlux3EndImage | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace InputFlux3 {
|
|
@@ -13,9 +13,9 @@ export interface InputGeminiOmniFlash {
|
|
|
13
13
|
resolution?: InputGeminiOmniFlash.Resolution | undefined;
|
|
14
14
|
/** Duration in ms. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame
|
|
16
|
+
/** Start frame. At most 10.4 MB. */
|
|
17
17
|
start_image?: Hedra.InputGeminiOmniFlashStartImage | undefined;
|
|
18
|
-
/** Source video
|
|
18
|
+
/** Source video. From 1s to 10s and at most 524.2 MB. */
|
|
19
19
|
source_video?: Hedra.InputGeminiOmniFlashSourceVideo | undefined;
|
|
20
20
|
/** Reference images. 1 to 10 images, each at most 10.4 MB. */
|
|
21
21
|
images?: Hedra.InputGeminiOmniFlashImagesItem[] | undefined;
|
|
@@ -21,8 +21,8 @@ export interface InputGptImage2 {
|
|
|
21
21
|
images?: Hedra.InputGptImage2ImagesItem[] | undefined;
|
|
22
22
|
/** Output image format. */
|
|
23
23
|
output_format?: InputGptImage2.OutputFormat | undefined;
|
|
24
|
-
/** Quality level to generate at. */
|
|
25
|
-
quality
|
|
24
|
+
/** Quality level to generate at. `low` — the quickest and cheapest pass, for drafts, thumbnails, and rapid exploration. `medium` — balanced cost and fidelity, for everyday work and iterative refinement. `high` — the most rendering effort, for final deliverables and text-heavy designs. */
|
|
25
|
+
quality?: InputGptImage2.Quality | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputGptImage2 {
|
|
28
28
|
/** Output aspect ratio. */
|
|
@@ -48,7 +48,7 @@ export declare namespace InputGptImage2 {
|
|
|
48
48
|
readonly Webp: "webp";
|
|
49
49
|
};
|
|
50
50
|
type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
51
|
-
/** Quality level to generate at. */
|
|
51
|
+
/** Quality level to generate at. `low` — the quickest and cheapest pass, for drafts, thumbnails, and rapid exploration. `medium` — balanced cost and fidelity, for everyday work and iterative refinement. `high` — the most rendering effort, for final deliverables and text-heavy designs. */
|
|
52
52
|
const Quality: {
|
|
53
53
|
readonly Low: "low";
|
|
54
54
|
readonly Medium: "medium";
|
|
@@ -24,7 +24,7 @@ var InputGptImage2;
|
|
|
24
24
|
Png: "png",
|
|
25
25
|
Webp: "webp",
|
|
26
26
|
};
|
|
27
|
-
/** Quality level to generate at. */
|
|
27
|
+
/** Quality level to generate at. `low` — the quickest and cheapest pass, for drafts, thumbnails, and rapid exploration. `medium` — balanced cost and fidelity, for everyday work and iterative refinement. `high` — the most rendering effort, for final deliverables and text-heavy designs. */
|
|
28
28
|
InputGptImage2.Quality = {
|
|
29
29
|
Low: "low",
|
|
30
30
|
Medium: "medium",
|
|
@@ -3,8 +3,10 @@ import type * as Hedra from "../index.js";
|
|
|
3
3
|
* Model-specific inputs for `grok-imagine`.
|
|
4
4
|
*
|
|
5
5
|
* Accepted field combinations (one per input mode):
|
|
6
|
-
* (1) requires: images, prompt; must omit: aspect_ratio
|
|
7
|
-
* (2) requires: aspect_ratio, prompt;
|
|
6
|
+
* (1) requires: images, prompt; must omit: aspect_ratio, resolution; accepts quality: standard
|
|
7
|
+
* (2) requires: aspect_ratio, images, prompt, resolution; accepts quality: quality
|
|
8
|
+
* (3) requires: aspect_ratio, prompt, resolution; must omit: images; accepts aspect_ratio: 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 | 3:4 | 9:16 | 9:19.5 | 9:20 | 1:2; quality: quality
|
|
9
|
+
* (4) requires: aspect_ratio, prompt; must omit: images, resolution; accepts aspect_ratio: 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 | 3:4 | 9:16 | 9:19.5 | 9:20 | 1:2; quality: standard
|
|
8
10
|
*/
|
|
9
11
|
export interface InputGrokImagine {
|
|
10
12
|
/** Generation prompt. At most 8000 characters. */
|
|
@@ -19,6 +21,10 @@ export interface InputGrokImagine {
|
|
|
19
21
|
output_format?: InputGrokImagine.OutputFormat | undefined;
|
|
20
22
|
/** Output aspect ratio. */
|
|
21
23
|
aspect_ratio?: InputGrokImagine.AspectRatio | undefined;
|
|
24
|
+
/** Output resolution. */
|
|
25
|
+
resolution?: InputGrokImagine.Resolution | undefined;
|
|
26
|
+
/** Quality level to generate at. `standard` — the base tier, at a flat rate whatever the output size. `quality` — xAI's higher-fidelity tier, and the only one offering 2k. */
|
|
27
|
+
quality?: InputGrokImagine.Quality | undefined;
|
|
22
28
|
}
|
|
23
29
|
export declare namespace InputGrokImagine {
|
|
24
30
|
/** Output image format. */
|
|
@@ -30,9 +36,32 @@ export declare namespace InputGrokImagine {
|
|
|
30
36
|
type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
31
37
|
/** Output aspect ratio. */
|
|
32
38
|
const AspectRatio: {
|
|
39
|
+
readonly Auto: "auto";
|
|
40
|
+
readonly Two1: "2:1";
|
|
41
|
+
readonly Twenty9: "20:9";
|
|
42
|
+
readonly Nineteen59: "19.5:9";
|
|
33
43
|
readonly Sixteen9: "16:9";
|
|
34
|
-
readonly
|
|
44
|
+
readonly Four3: "4:3";
|
|
45
|
+
readonly Three2: "3:2";
|
|
35
46
|
readonly One1: "1:1";
|
|
47
|
+
readonly Two3: "2:3";
|
|
48
|
+
readonly Three4: "3:4";
|
|
49
|
+
readonly Nine16: "9:16";
|
|
50
|
+
readonly Nine195: "9:19.5";
|
|
51
|
+
readonly Nine20: "9:20";
|
|
52
|
+
readonly One2: "1:2";
|
|
36
53
|
};
|
|
37
54
|
type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
|
|
55
|
+
/** Output resolution. */
|
|
56
|
+
const Resolution: {
|
|
57
|
+
readonly OneK: "1k";
|
|
58
|
+
readonly TwoK: "2k";
|
|
59
|
+
};
|
|
60
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
61
|
+
/** Quality level to generate at. `standard` — the base tier, at a flat rate whatever the output size. `quality` — xAI's higher-fidelity tier, and the only one offering 2k. */
|
|
62
|
+
const Quality: {
|
|
63
|
+
readonly Standard: "standard";
|
|
64
|
+
readonly Quality: "quality";
|
|
65
|
+
};
|
|
66
|
+
type Quality = (typeof Quality)[keyof typeof Quality];
|
|
38
67
|
}
|
|
@@ -12,8 +12,29 @@ var InputGrokImagine;
|
|
|
12
12
|
};
|
|
13
13
|
/** Output aspect ratio. */
|
|
14
14
|
InputGrokImagine.AspectRatio = {
|
|
15
|
+
Auto: "auto",
|
|
16
|
+
Two1: "2:1",
|
|
17
|
+
Twenty9: "20:9",
|
|
18
|
+
Nineteen59: "19.5:9",
|
|
15
19
|
Sixteen9: "16:9",
|
|
16
|
-
|
|
20
|
+
Four3: "4:3",
|
|
21
|
+
Three2: "3:2",
|
|
17
22
|
One1: "1:1",
|
|
23
|
+
Two3: "2:3",
|
|
24
|
+
Three4: "3:4",
|
|
25
|
+
Nine16: "9:16",
|
|
26
|
+
Nine195: "9:19.5",
|
|
27
|
+
Nine20: "9:20",
|
|
28
|
+
One2: "1:2",
|
|
29
|
+
};
|
|
30
|
+
/** Output resolution. */
|
|
31
|
+
InputGrokImagine.Resolution = {
|
|
32
|
+
OneK: "1k",
|
|
33
|
+
TwoK: "2k",
|
|
34
|
+
};
|
|
35
|
+
/** Quality level to generate at. `standard` — the base tier, at a flat rate whatever the output size. `quality` — xAI's higher-fidelity tier, and the only one offering 2k. */
|
|
36
|
+
InputGrokImagine.Quality = {
|
|
37
|
+
Standard: "standard",
|
|
38
|
+
Quality: "quality",
|
|
18
39
|
};
|
|
19
40
|
})(InputGrokImagine || (exports.InputGrokImagine = InputGrokImagine = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `grok-imagine-20`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputGrokImagine20 {
|
|
6
|
+
/** Generation prompt. At most 8000 characters. */
|
|
7
|
+
prompt: string;
|
|
8
|
+
/** Number of outputs generated per job. Only 1 is supported. */
|
|
9
|
+
num_outputs?: number | undefined;
|
|
10
|
+
/** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
|
|
11
|
+
enhance_prompt?: boolean | undefined;
|
|
12
|
+
/** Images to edit or blend; omit to render from the prompt alone. 1 to 3 images, each at most 30 MB. */
|
|
13
|
+
images?: Hedra.InputGrokImagine20ImagesItem[] | undefined;
|
|
14
|
+
/** Output aspect ratio. */
|
|
15
|
+
aspect_ratio: InputGrokImagine20.AspectRatio;
|
|
16
|
+
/** Output resolution. */
|
|
17
|
+
resolution: InputGrokImagine20.Resolution;
|
|
18
|
+
/** Output image format. */
|
|
19
|
+
output_format?: InputGrokImagine20.OutputFormat | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace InputGrokImagine20 {
|
|
22
|
+
/** Output aspect ratio. */
|
|
23
|
+
const AspectRatio: {
|
|
24
|
+
readonly Two1: "2:1";
|
|
25
|
+
readonly Twenty9: "20:9";
|
|
26
|
+
readonly Nineteen59: "19.5:9";
|
|
27
|
+
readonly Sixteen9: "16:9";
|
|
28
|
+
readonly Four3: "4:3";
|
|
29
|
+
readonly Three2: "3:2";
|
|
30
|
+
readonly One1: "1:1";
|
|
31
|
+
readonly Two3: "2:3";
|
|
32
|
+
readonly Three4: "3:4";
|
|
33
|
+
readonly Nine16: "9:16";
|
|
34
|
+
readonly Nine195: "9:19.5";
|
|
35
|
+
readonly Nine20: "9:20";
|
|
36
|
+
readonly One2: "1:2";
|
|
37
|
+
};
|
|
38
|
+
type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
|
|
39
|
+
/** Output resolution. */
|
|
40
|
+
const Resolution: {
|
|
41
|
+
readonly OneK: "1k";
|
|
42
|
+
readonly TwoK: "2k";
|
|
43
|
+
};
|
|
44
|
+
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
45
|
+
/** Output image format. */
|
|
46
|
+
const OutputFormat: {
|
|
47
|
+
readonly Jpeg: "jpeg";
|
|
48
|
+
readonly Png: "png";
|
|
49
|
+
readonly Webp: "webp";
|
|
50
|
+
};
|
|
51
|
+
type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
52
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InputGrokImagine20 = void 0;
|
|
5
|
+
var InputGrokImagine20;
|
|
6
|
+
(function (InputGrokImagine20) {
|
|
7
|
+
/** Output aspect ratio. */
|
|
8
|
+
InputGrokImagine20.AspectRatio = {
|
|
9
|
+
Two1: "2:1",
|
|
10
|
+
Twenty9: "20:9",
|
|
11
|
+
Nineteen59: "19.5:9",
|
|
12
|
+
Sixteen9: "16:9",
|
|
13
|
+
Four3: "4:3",
|
|
14
|
+
Three2: "3:2",
|
|
15
|
+
One1: "1:1",
|
|
16
|
+
Two3: "2:3",
|
|
17
|
+
Three4: "3:4",
|
|
18
|
+
Nine16: "9:16",
|
|
19
|
+
Nine195: "9:19.5",
|
|
20
|
+
Nine20: "9:20",
|
|
21
|
+
One2: "1:2",
|
|
22
|
+
};
|
|
23
|
+
/** Output resolution. */
|
|
24
|
+
InputGrokImagine20.Resolution = {
|
|
25
|
+
OneK: "1k",
|
|
26
|
+
TwoK: "2k",
|
|
27
|
+
};
|
|
28
|
+
/** Output image format. */
|
|
29
|
+
InputGrokImagine20.OutputFormat = {
|
|
30
|
+
Jpeg: "jpeg",
|
|
31
|
+
Png: "png",
|
|
32
|
+
Webp: "webp",
|
|
33
|
+
};
|
|
34
|
+
})(InputGrokImagine20 || (exports.InputGrokImagine20 = InputGrokImagine20 = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
export type InputGrokImagine20ImagesItem =
|
|
3
|
+
/**
|
|
4
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
5
|
+
Hedra.InputGrokImagine20ImagesItem.Url
|
|
6
|
+
/**
|
|
7
|
+
* An existing asset you own, referenced by its id. */
|
|
8
|
+
| Hedra.InputGrokImagine20ImagesItem.Asset;
|
|
9
|
+
export declare namespace InputGrokImagine20ImagesItem {
|
|
10
|
+
interface Url {
|
|
11
|
+
source: "url";
|
|
12
|
+
/** A URL returned by POST /v3/files. */
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
interface Asset {
|
|
16
|
+
source: "asset";
|
|
17
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
18
|
+
asset_id: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -17,7 +17,7 @@ export interface InputGrokVideo {
|
|
|
17
17
|
resolution: InputGrokVideo.Resolution;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame
|
|
20
|
+
/** Start frame. At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputGrokVideoStartImage | undefined;
|
|
22
22
|
}
|
|
23
23
|
export declare namespace InputGrokVideo {
|
|
@@ -17,7 +17,7 @@ export interface InputHappyHorse {
|
|
|
17
17
|
resolution: InputHappyHorse.Resolution;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame
|
|
20
|
+
/** Start frame. At least 300px on each side and at most 10 MB. */
|
|
21
21
|
start_image?: Hedra.InputHappyHorseStartImage | undefined;
|
|
22
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;
|
|
@@ -13,7 +13,7 @@ export interface InputHedraAvatar {
|
|
|
13
13
|
resolution: InputHedraAvatar.Resolution;
|
|
14
14
|
/** Duration in ms. At most 600000. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame
|
|
16
|
+
/** Start frame. At most 10.4 MB. */
|
|
17
17
|
start_image: Hedra.InputHedraAvatarStartImage;
|
|
18
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;
|
|
@@ -13,7 +13,7 @@ export interface InputHedraCharacter3 {
|
|
|
13
13
|
resolution: InputHedraCharacter3.Resolution;
|
|
14
14
|
/** Duration in ms. At most 600000. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame
|
|
16
|
+
/** Start frame. At most 10.4 MB. */
|
|
17
17
|
start_image: Hedra.InputHedraCharacter3StartImage;
|
|
18
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;
|
|
@@ -27,8 +27,8 @@ export interface InputHidreamO1Image {
|
|
|
27
27
|
num_inference_steps?: number | undefined;
|
|
28
28
|
/** Output resolution. */
|
|
29
29
|
resolution?: InputHidreamO1Image.Resolution | undefined;
|
|
30
|
-
/** Quality level to generate at. */
|
|
31
|
-
quality
|
|
30
|
+
/** Quality level to generate at. `standard` — the full model, at 50 denoising steps. `dev` — HiDream's distilled checkpoint, at 28 denoising steps instead of 50 — quicker and cheaper for the same prompt. */
|
|
31
|
+
quality?: InputHidreamO1Image.Quality | undefined;
|
|
32
32
|
}
|
|
33
33
|
export declare namespace InputHidreamO1Image {
|
|
34
34
|
/** Output aspect ratio. */
|
|
@@ -54,7 +54,7 @@ export declare namespace InputHidreamO1Image {
|
|
|
54
54
|
readonly OneThousandEightyP: "1080p";
|
|
55
55
|
};
|
|
56
56
|
type Resolution = (typeof Resolution)[keyof typeof Resolution];
|
|
57
|
-
/** Quality level to generate at. */
|
|
57
|
+
/** Quality level to generate at. `standard` — the full model, at 50 denoising steps. `dev` — HiDream's distilled checkpoint, at 28 denoising steps instead of 50 — quicker and cheaper for the same prompt. */
|
|
58
58
|
const Quality: {
|
|
59
59
|
readonly Standard: "standard";
|
|
60
60
|
readonly Dev: "dev";
|
|
@@ -24,7 +24,7 @@ var InputHidreamO1Image;
|
|
|
24
24
|
SevenHundredTwentyP: "720p",
|
|
25
25
|
OneThousandEightyP: "1080p",
|
|
26
26
|
};
|
|
27
|
-
/** Quality level to generate at. */
|
|
27
|
+
/** Quality level to generate at. `standard` — the full model, at 50 denoising steps. `dev` — HiDream's distilled checkpoint, at 28 denoising steps instead of 50 — quicker and cheaper for the same prompt. */
|
|
28
28
|
InputHidreamO1Image.Quality = {
|
|
29
29
|
Standard: "standard",
|
|
30
30
|
Dev: "dev",
|
|
@@ -16,8 +16,8 @@ export interface InputIdeogramV4 {
|
|
|
16
16
|
output_format?: InputIdeogramV4.OutputFormat | undefined;
|
|
17
17
|
/** Seed for reproducible output; omit for a random seed. */
|
|
18
18
|
seed?: number | undefined;
|
|
19
|
-
/** Quality level to generate at. */
|
|
20
|
-
quality
|
|
19
|
+
/** Quality level to generate at. `turbo` — the least rendering effort, for quick exploration. `balanced` — middle rendering effort, the everyday choice. `quality` — the most rendering effort, for poster-ready text and layout. */
|
|
20
|
+
quality?: InputIdeogramV4.Quality | undefined;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace InputIdeogramV4 {
|
|
23
23
|
/** Output aspect ratio. */
|
|
@@ -42,7 +42,7 @@ export declare namespace InputIdeogramV4 {
|
|
|
42
42
|
readonly Png: "png";
|
|
43
43
|
};
|
|
44
44
|
type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
45
|
-
/** Quality level to generate at. */
|
|
45
|
+
/** Quality level to generate at. `turbo` — the least rendering effort, for quick exploration. `balanced` — middle rendering effort, the everyday choice. `quality` — the most rendering effort, for poster-ready text and layout. */
|
|
46
46
|
const Quality: {
|
|
47
47
|
readonly Turbo: "turbo";
|
|
48
48
|
readonly Balanced: "balanced";
|
|
@@ -23,7 +23,7 @@ var InputIdeogramV4;
|
|
|
23
23
|
Jpeg: "jpeg",
|
|
24
24
|
Png: "png",
|
|
25
25
|
};
|
|
26
|
-
/** Quality level to generate at. */
|
|
26
|
+
/** Quality level to generate at. `turbo` — the least rendering effort, for quick exploration. `balanced` — middle rendering effort, the everyday choice. `quality` — the most rendering effort, for poster-ready text and layout. */
|
|
27
27
|
InputIdeogramV4.Quality = {
|
|
28
28
|
Turbo: "turbo",
|
|
29
29
|
Balanced: "balanced",
|
|
@@ -17,7 +17,7 @@ export interface InputKling16 {
|
|
|
17
17
|
resolution?: InputKling16.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms?: number | undefined;
|
|
20
|
-
/** Start frame
|
|
20
|
+
/** Start frame. At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling16StartImage | undefined;
|
|
22
22
|
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export interface InputKling21Master {
|
|
|
17
17
|
resolution?: InputKling21Master.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame
|
|
20
|
+
/** Start frame. At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling21MasterStartImage | undefined;
|
|
22
22
|
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export interface InputKling25Turbo {
|
|
|
17
17
|
resolution?: InputKling25Turbo.Resolution | undefined;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame
|
|
20
|
+
/** Start frame. At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputKling25TurboStartImage | undefined;
|
|
22
22
|
/** What to avoid in the generated video. At most 2500 characters. */
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
@@ -9,9 +9,9 @@ export interface InputKling26MotionControl {
|
|
|
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
|
|
12
|
+
/** Start frame. At most 10.4 MB. */
|
|
13
13
|
start_image: Hedra.InputKling26MotionControlStartImage;
|
|
14
|
-
/** Source video
|
|
14
|
+
/** Source 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;
|
|
@@ -19,7 +19,7 @@ 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
|
|
22
|
+
/** Start frame. At most 10.4 MB. */
|
|
23
23
|
start_image?: Hedra.InputKling26ProStartImage | undefined;
|
|
24
24
|
/** What to avoid in the generated video. At most 2500 characters. */
|
|
25
25
|
negative_prompt?: string | undefined;
|