v1.6-standard/image-to-video
Model Overview
An advanced AI video generation model developed by Kuaishou Technology, designed to create high-quality videos from text prompts and images. This version introduces significant improvements in prompt adherence, visual quality, and dynamic action rendering, enabling users to generate more consistent and visually appealing results compared to its predecessor, Kling 1.5.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
How to Make a Call
API Schemas
Create a video generation task and send it to the server
The ratio
and aspect_ratio
parameters are now deprecated.
The aspect ratio of the generated video is solely determined by the aspect ratio of the input reference image.
A direct link to an online image or a Base64-encoded local image that will serve as the visual base or the first frame for the video.
The text description of the scene, subject, or action to generate in the video.
The length of the output video in seconds.
The description of elements to avoid in the generated video.
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt.
POST /v2/generate/video/kling/generation HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"model": "kling-video/v1.6/standard/image-to-video",
"image_url": "https://example.com",
"prompt": "text",
"duration": 5,
"negative_prompt": "text",
"cfg_scale": 1
}
No content
Retrieve the generated video from the server
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
GET /v2/generate/video/kling/generation HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
Accept: */*
No content
Last updated
Was this helpful?