@microfox/kling-ai
v1.2.0
Published
A TypeScript SDK for integrating with the Klingai API.
Readme
Klingai SDK
A TypeScript SDK for integrating with the Klingai API.
Installation
npm install @microfox/kling-aiEnvironment Variables
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)**
API Reference
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
