Skip to main content
POST
/
kling
/
v1
/
videos
/
image2video
Image to Video
curl --request POST \
  --url https://gptproto.com/kling/v1/videos/image2video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "image": "<string>",
  "image_tail": "<string>",
  "aspect_ratio": "<string>",
  "mode": "<string>",
  "duration": "<string>"
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

This endpoint provides image to video functionality.

Authentication

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

Request Body

prompt
string
required
Prompt parameter
negative_prompt
string
Negative Prompt parameter
image
string
Image parameter
image_tail
string
Image Tail parameter
aspect_ratio
string
Aspect Ratio parameter
mode
string
Mode parameter
duration
string
Duration parameter

Request Example

curl -X POST "https://gptproto.com/kling/v1/videos/image2video" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "flow",
  "negative_prompt": "",
  "image": "https://img.jpg",
  "image_tail": "",
  "aspect_ratio": "1:1",
  "mode": "std",
  "duration": "5"
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}