
Kling API provides developer access to the state of the art video generation capability from the Kling model! And we are currently looking to add Kling API as part of our generative AI API offering! If you'd like to be notified when the feature goes online, please sign up for our waitlist here!
- Video Generation Based on Input Image
- Stunning Camera Views
- Video Extension Function
- Extended Video Length Generation
- Real-World Physics Simulation
- HTTPS POST/GET API Calls
- Vivid Storytelling Capabilities
- Aspect Ratio Control
To get started, go to our [Workspace](https://app.piapi.ai/) and sign up if you haven't. Once you do, you can use the API KEY obtained to make calls to the API directly!
- You wouldn't need to buy your Kling account!
- You don't have to manage / operate the Kling Accounts either
- Users would have access to all the supported features
- Using this service option enable rapid prototyping!
When you choose our Host-Your-Account service, you will be expected to buy/operate/manage your own pool of Kling account(s). You can will then be required to subscribe to PiAPI's API seat(s), and connect your Kling account(s) to the seat(s). Then by calling our API, we will route the submitted tasks to the accounts for processing and return back the results upon their completion!
- Dedicated accounts means lower wait time
- Able to scale by increasing the number of account-seat combinations
- Cost effective Service Option for developers with varying amount of tasks loads
Please refer to our pricing page for more information.
Create a video generation
curl --location 'https://api.piapi.ai/kling/videogen' \
--header 'X-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"input":
{
"prompt":"a child running freely in the park",
}
}'
Response
{
"code": 200,
"data": {
"task_id": "record_this_taskID"
},
"message": "success"
}
Fetching for the video generated
curl --location 'https://api.piapi.ai/kling/fetch' \
--header 'X-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"task_id": "insert_recorded_taskID_here"
}'
Response - Check out our documentation for more information!