AI Image & Video Generation
Endpoints for Kling v2.1 Master (Text‑to‑Video), Pro and Standard (Image‑to‑Video). Uses async callbacks + polling fallback.
/api/v1/kling/generate/
Request body varies by model:
curl -X POST https://ulazai.com/api/v1/kling/generate/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{
"model": "kling/v2-1-master-text-to-video",
"prompt": "Handheld dolly-in across a neon market at night...",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "blur, distort",
"cfg_scale": 0.5
}'
/api/v1/kling/status/<generation_id>/
curl https://ulazai.com/api/v1/kling/status/UUID/ \
-b 'sessionid=YOUR_SESSION'
/api/v1/kling/enhance/
curl -X POST https://ulazai.com/api/v1/kling/enhance/ \
-H 'Content-Type: application/json' \
-b 'sessionid=YOUR_SESSION' \
-d '{"prompt":"Market at night, neon reflections, handheld motion"}'
Notes: