Kling image-to-video.
Generate video from an image using the Kling model. The `image` parameter accepts an image URL or Base64-encoded image data.
Authorization
bearerAuth Authenticate using an Authorization Bearer API Key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Video generation request
Response Body
application/json
application/json
curl -X POST "https://example.com/kling/v1/videos/image2video" \ -H "Content-Type: application/json" \ -d '{ "model": "kling-v1", "prompt": "The character turns and walks away", "image": "https://modelsok.com/image.jpg", "duration": 5, "width": 1280, "height": 720 }'{
"task_id": "abcd1234efgh",
"status": "queued"
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}Jimeng video generation.
Video generation endpoint in the official Jimeng API format. Use the `Action` parameter to specify the operation type: - `CVSync2AsyncSubmitTask`: Submit a video generation task - `CVSync2AsyncGetResult`: Retrieve task results `Action` and `Version` must be specified in the query parameters.
Kling text-to-video.
Generate video from a text description using the Kling model. Supported models: kling-v1, kling-v1-5, etc.