Skip to main content
Orux AIOruxAI
Developer docsAPI reference

Kling / Video

kling-4.0

Create videos from text, keyframes or reference images.

POSThttps://orux.top/api/v1/tasks

Authorization

Pass your Orux API key in the request header. Keep keys on your server.

  • Authorization: Bearer YOUR_API_KEY
  • Content-Type: application/json

Request body

model: kling-4.0. Place model parameters inside input.

Examples use configured defaults. Replace placeholders in angle brackets with actual values.

Parameters

Fields accepted in the request body for this model.

prompttext
Required
Length: 1 – 8000
first_frame_urlimage URL
Optional

Mention uploaded frames as @first_frame and @last_frame in the prompt.

last_frame_urlimage URL
Optional

Mention uploaded frames as @first_frame and @last_frame in the prompt.

resolutionenum
Required
Values: 720p / 1080pDefault: 720p
durationinteger
Required

Choose an exact output duration. Automatic duration and video references are not available yet.

Range: 3 – 30 secondsDefault: 5
aspect_ratioenum
Required
Values: auto / 16:9 / 9:16 / 1:1 / 21:9Default: 16:9
Advanced
keyframe_urlsimage URL[]
Optional
Count: ≤ 8
image_urlsimage URL[]
Optional

Use reference images or keyframes, not both in one generation.

Count: ≤ 10
elementsobject
Optional

Up to 7 named subjects, each with 2–4 images. Use @name in your prompt. Video subjects are not available yet.

voicesobject
Optional

Up to 3 voices; names must be unique across subjects and voices.

Response examples

Illustrative response structures. Actual content depends on the request.

Retrieve the result

Save task_id and poll the task endpoint. An accepted task has not yet finished generating.

Open playground