Skip to main content
POST
/
api
/
v3
/
kwaivgi
/
kling-v2.1-i2v-standard
kling-v2.1-i2v-standard (image to video)
curl --request POST \
  --url https://api.example.com/api/v3/kwaivgi/kling-v2.1-i2v-standard
Kling’s GPTProto format for the image to video API.
curl -X POST "https://gptproto.com/api/v3/kwaivgi/kling-v2.1-i2v-standard" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
    "prompt": "The astronaut stood up and walked away",
    "negative_prompt": "",
    "guidance_scale": 0.5,
    "duration": "5"
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
promptstring✅ Yes-The positive prompt for the generation.
negative_promptstring❌ No-The negative prompt for the generation.
imagestring✅ Yes-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.
guidance_scalenumber❌ No0.50.00 ~ 1.00 . The guidance scale to use for the generation.
durationinteger❌ No55, 10. default 5 . The duration of the generated media in seconds.