cURL
curl --request POST \ --url https://api.unifically.com/kling-v2.1-master/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "start_image_url": "<string>", "end_image_url": "<string>", "duration": 123, "resolution": "<string>", "motion_id": "<string>", "enhance_prompt": true, "seed": 123, "callback_url": "<string>" } '
{ "code": 200, "data": { "status": "processing", "task_id": "dd55ae25-adff-47a0-9194-6a37845b58e4", "error": {} } }
Generate videos with Kling v2.1 Master model - premium quality at 1080p
curl --location 'https://api.unifically.com/kling-v2.1-master/generate' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "cinematic scene", "start_image_url": "https://example.com/start.jpg", "duration": 10, "resolution": "1080p" }'
curl --location 'https://api.unifically.com/kling-v2.1-master/generate' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "A futuristic cityscape at night with neon lights", "start_image_url": "https://example.com/start.jpg", "end_image_url": "https://example.com/end.jpg", "duration": 10, "resolution": "1080p" }'
5
10
1080p
true
pro
{ "code": 400, "error": { "message": "Error description", "code": "ERROR_CODE" } }