Skip to main content
POST
/
api
/
v3
/
kwaivgi
/
kling-v2.1-i2v-pro
kling-v2.1-i2v-pro (image to video)
curl --request POST \
  --url https://api.example.com/api/v3/kwaivgi/kling-v2.1-i2v-pro
Kling’s GPTProto format for the image to video API.
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
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
promptstring✅ YesThe 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 faceThe positive prompt for the generation.
negative_promptstring❌ No-The negative prompt for the generation.
imagestring✅ Yeshttps://oss.heyoos.com/ai-draw/user/-ead3cec3-de6b-4ed5-b38c-4d8707731686.pngFirst 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.
durationinteger❌ No5The duration of the generated media in seconds. 5, 10. default 5
guidance_scalenumber❌ No0.5The guidance scale to use for the generation. 0.00 ~ 1.00