Generate high-quality AI videos using the Kling O1 model with support for video and optional image inputs.
Pricing
For current pricing, see the Pricing page.
Request
curl --location 'https://api.unifically.com/kling-o1/generate' \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR_API_KEY' \
--data '{
"prompt": "Replace humans with dogs on image",
"aspect_ratio": "1:1",
"duration": 10,
"image_urls": [
"https://iili.io/fxeHKVR.md.png"
],
"video_url": "https://files.storagecdn.online/video/example.mp4"
}'
Parameters
Required Parameters
Text description of the video to generate
Aspect ratio of the generated videoOptions: 1:1, 9:16, 16:9
Video duration in secondsOptions: 3, 4, 5, 6, 7, 8, 9, 10
URL of the input video for video generation
Optional Parameters
Array of image URLs to use as input (optional)Maximum: 4 imagesDefault: []
URL to receive webhook notification on completion
Validation Rules
- Aspect Ratio: Must be one of
1:1, 9:16, or 16:9
- Duration: Must be between
3 and 10 seconds (inclusive)
- Image URLs: Maximum of 4 images allowed
- Video URL: Required and must be a valid URL
Response
{
"code": 200,
"data": {
"status": "processing",
"task_id": "dd55ae25-adff-47a0-9194-6a37845b58e4"
}
}
Response Fields
HTTP status code (200 for success)
Response dataUnique identifier for this generation task
Task status (e.g., “processing”)
Error Response
{
"code": 400,
"data": {
"message": "Error description",
"code": "ERROR_CODE"
}
}