Generate video with kwaivgi/kling-v2.1-i2v-pro
Generates a video using the kwaivgi/kling-v2.1-i2v-pro model.
AuthorizationBearer <token>
API key is required to authorize requests. Obtain a key from your Atlas Cloud dashboard.
In: header
modelstring
model name
duration?integer
The duration of the generated media in seconds.
Default
5Value in
5 | 10guidance_scale?number
The guidance scale to use for the generation.
Default
0.5Range
0 <= value <= 1imagestring
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.
negative_prompt?string
The negative prompt for the generation.
promptstring
The positive prompt for the generation. max length 2500
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" \ -H "Content-Type: application/json" \ -d '{ "model": "kwaivgi/kling-v2.1-i2v-pro", "image": "string", "prompt": "string" }'{
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
],
"id": "string",
"model": "string",
"outputs": [
"string"
],
"status": "string",
"urls": {}
}