VideosKling format
Kling image-to-video
Generate a video from an image with a Kling model.
The image parameter accepts a URL or Base64-encoded image data.
Request Body
application/json
model?string
Model / style ID
prompt?string
Text prompt
image?string
Image input, as a URL or Base64 string
duration?number
Video duration in seconds
width?integer
Video width
height?integer
Video height
fps?integer
Video frame rate
seed?integer
Random seed
n?integer
Number of videos to generate
response_format?string
Response format
user?string
User identifier
metadata?
Extended parameters such as negative_prompt, style or quality_level
Response Body
application/json
application/json
curl -X POST "https://jiniu.ai/kling/v1/videos/image2video" \ -H "Content-Type: application/json" \ -d '{ "model": "kling-v1", "prompt": "人物转身走开", "image": "https://example.com/image.jpg", "duration": 5, "width": 1280, "height": 720 }'{
"task_id": "abcd1234efgh",
"status": "queued"
}{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}