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

Overview

Kling v2.1 is an AI video generation model developed by ​**KlingAI (Kuaishou)**​. It is purpose-built for creators, artists, and production teams seeking fast, realistic video generation from image and text prompts. Ideal for rapid prototyping, rough drafts, and creative iteration, it balances performance with affordability—while maintaining high-quality motion dynamics and visual coherence.

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
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.
guidance_scale
number
default:"0.5"
0.00 ~ 1.00 . The guidance scale to use for the generation.
duration
integer
default:"5"
5, 10. default 5 . The duration of the generated media in seconds.

Request Example

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"
}'

Response

data.id
string
Unique identifier for the prediction, Task Id
data.status
string
Status of the task: created, processing, completed, or failed
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}