Skip to main content
POST
/
api
/
v3
/
kwaivgi
/
kling-v2.1-i2v-pro
Image to Video
curl --request POST \
  --url https://gptproto.com/api/v3/kwaivgi/kling-v2.1-i2v-pro \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "image": "<string>",
  "duration": 123,
  "guidance_scale": 123
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

Kling 2.1 is Kuaishou’s advanced image-to-video generation model released in 2025. Designed for high-fidelity cinematic output, Kling 2.1 transforms reference images — with optional text prompts — into visually rich, lifelike video clips.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: YOUR_API_KEY

Request Body

prompt
string
required
The positive prompt for the generation.
negative_prompt
string
default:""
The negative prompt for the generation.
image
string
required
First frame of the video; Supported image formats include.jpg/.jpeg/.png; The image file size cannot exceed 10MB, and the image resolution should not be less than 300*300px.
duration
integer
default:"5"
The duration of the generated media in seconds. 5, 10. default 5
guidance_scale
number
default:"0.5"
The guidance scale to use for the generation. 0.00 ~ 1.00

Request Example

curl --location 'https://gptproto.com/api/v3/kwaivgi/kling-v2.1-i2v-pro' \
--header 'Content-Type: application/json' \
--header 'Authorization: sk-xxxx' \
--data '{   
    "prompt" : "The character in the picture walks to the anime garden to find a comb placed on the ground, without changing the proportion of the character'\''s face",
    "image": "https://oss.heyoos.com/ai-draw/user/-ead3cec3-de6b-4ed5-b38c-4d8707731686.png", 
    "guidance_scale": 0.5,
    "duration": 5
}'

Response

data.id
string
Unique identifier for the prediction, Task Id
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}