Skip to content

Kling API provides developer access to the state of the art video generation capability from the Kling model

License

Notifications You must be signed in to change notification settings

PiAPI-1/KlingAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

KlingAPI

screenshot of a video generated by Kling API

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!

Features

  1. Video Generation Based on Input Image
  2. Stunning Camera Views
  3. Video Extension Function
  4. Extended Video Length Generation
  5. Real-World Physics Simulation
  6. HTTPS POST/GET API Calls
  7. Vivid Storytelling Capabilities
  8. Aspect Ratio Control

Usage Options

Pay-as-you-go Option

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!

Host-your-account Option

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

Pricing

Please refer to our pricing page for more information.

Usage Steps

Pay-as-you-go Option


Sample API Calls (using cURL)


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!


About

Kling API provides developer access to the state of the art video generation capability from the Kling model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published