A TypeScript SDK for integrating with the Klingai API.
npm install @microfox/kling-aiA TypeScript SDK for integrating with the Klingai API.
``bash`
npm install @microfox/kling-ai
To use this package, you need to set the following environment variables:
- KLINGAI_ACCESS_KEY: Your Klingai access key for API authentication. Obtain it from the Klingai platform. (Required)KLINGAI_SECRET_KEY`: Your Klingai secret key for generating JWT tokens. Obtain it from the Klingai platform. (Required)
-
For detailed documentation on the constructor and all available functions, please refer to the following files:
- createKlingaiSDK (Constructor): Initializes the client.
- imageGeneration
- imageToVideo
- lipSync
- listImageGenerationTasks
- listImageToVideoTasks
- listLipSyncTasks
- listMultiImageToVideoTasks
- listTextToVideoTasks
- listVideoEffectsTasks
- listVideoExtendTasks
- listVirtualTryOnTasks
- multiImageToVideo
- queryImageGenerationTask
- queryImageToVideoTask
- queryLipSyncTask
- queryMultiImageToVideoTask
- queryTextToVideoTask
- queryVideoEffectsTask
- queryVideoExtendTask
- queryVirtualTryOnTask
- textToVideo
- videoEffects
- videoExtend
- virtualTryOn