Power your applications with the Kling AI v.1 enterprise-grade API suite
Kling v.1 API offers two powerful video generation models – Pro and Standard – for different creative needs.
The Pro version is a powerhouse, perfect for professionals and developers seeking unmatched performance and versatility in any project — whether it’s intricate storytelling or high-end marketing videos.
The Standard model offers a more accessible yet still impressive experience, providing reliable results without compromising creativity — perfect for crafting quick, engaging content.
The Runway API empowers global leaders in technology to create and deliver millions of high-quality video outputs with unmatched reliability. Kling AI accurately simulates complex movements and lifelike character animations, complete with nuanced facial expressions.
Offering dynamic resolution training, Kling Pro's Text-to-Video model ensures quality across aspect ratios, while advanced features like negative prompting allow precise fine-tuning of results. This model supports videos up to 10 seconds long with sophisticated camera effects, such as tilts and pans, giving your narratives a cinematic edge.
Prompt: "A close up of a woman 27 years old with neatly styled curls pinned back, light makeup. Her expression is intriguing, playfull, flirty. She wears a chic, minimalist black top, and the background features a Parisian garden, with soft-focus trees gradually revealing intricate wrought lush greenery".
Optimized for speed and ease, Kling Standard Text-to-Video generates shorter videos of up to 10 seconds while maintaining consistent quality. Though it lacks the advanced customization options of the Pro version, it supports basic camera movements and delivers quick, professional-looking outputs.
Prompt: "A woman strides forward inside the display case of a high-end handbag store. She’s wearing a black blazer, white silk blouse, dark jeans, and heels, carrying a luxury bag that matches the brand’s signature style. As she reaches the edge of the glass, the camera captures her stopping, smiling confidently, and stepping out of the display into the bustling store".
Create vibrant, high-definition videos at 1080p and 30fps, with durations up to 10 seconds. By integrating cutting-edge 3D spatiotemporal attention, it adds lifelike motion and depth, while custom start and end frames (16:9, 9:16, 1:1) enable seamless animations.
Prompt: "A cyber-enhanced warrior sprinting through a futuristic, neon-lit cityscape as drones fire laser blasts. Explosions spark behind him, reflecting off rain-slicked streets. Holographic billboards crackle as debris flies, with glowing neon hues and reds".
Generate videos from still images, optimized for clips up to 10 seconds. While it lacks advanced transitions and spatiotemporal attention, model is ideal for beginners or anyone looking to quickly produce content for social media or promotional campaigns.
Prompt: "An astronaut in a damaged spacesuit running and flying forward sprinting through the corridors of a space station tearing apart in zero gravity. Fiery explosions erupt behind him, with shards of metal and oxygen tanks flying as alarms blare and emergency lights flash".
Craft videos using text prompts and image inputs with Pro and Standard Kling AI models.
Explore other text-to-video generation models: Luma AI.
import requests
def main():
url = "https://api.aimlapi.com/v2/generate/video/kling/generation"
payload = {
"model": "kling-video/v1/standard/text-to-video",
"prompt": "A DJ on the stand is playing, around a World War II
battlefield, lots of explosions, thousands of dancing soldiers,
between tanks shooting, barbed wire fences, lots of smoke and
fire,black and white old video: hyper realistic, photorealistic,
photography, super detailed, very sharp, on a very white
background",
"ratio": "16:9",
"duration": "5",
}
headers = {"Authorization": "Bearer <YOUR_API_KEY>", "Content-Type":
"application/json"}
response = requests.post(url, json=payload, headers=headers)
print("Generation:", response.json())
if __name__ == "__main__":
main()
import requests
def main():
url = "https://api.aimlapi.com/v2/generate/video/kling/generation"
payload = {
"model": "kling-video/v1/pro/image-to-video",
"prompt": "Mona Lisa puts on glasses with her hands.",
"ratio": "16:9",
"image_url": "https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp
/kling/20240620/1.jpeg",
"duration": "5",
}
headers = {"Authorization": "Bearer <YOUR_API_KEY>", "Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print("Generation:", response.json())
if __name__ == "__main__":
main()