Overview
This endpoint provides image to video functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
Request Body
prompt
string
default:"flow"
required
Prompt parameter
Negative Prompt parameter
image
string
default:"https://img.jpg"
Image parameter
Request Example
curl -X POST "https://gptproto.com/kling/v1/videos/image2video" \
-H "Authorization: Bearer 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
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}