Skip to main content
POST
Kling 2.6

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be kling-2-6.

Available options:
kling-2-6
prompt
string
required

Text prompt. Max 2500 characters. Use @1 / @2 to make a designated voice speak.

Maximum string length: 2500
image_url
string<uri>

Optional. First-frame image URL. Omit for text-to-video.

image_end_url
string<uri>

Optional. Last-frame image URL. Requires image_url, and forces resolution: 720p.

voice_ids
string[]

Optional. Up to 2 voice ids from Kling's Voice Management API (or a system preset). Order is the @1 / @2 numbering. Requires image_url (text-to-video has no materials) and generate_audio: true. voice_id is accepted for a single value.

Maximum array length: 2
duration
enum<integer>
default:5

Video duration in seconds. Only 5 or 10.

Available options:
5,
10
resolution
enum<string>
default:720p

Output resolution. No 4K tier. quality is accepted as a compatible alias.

Available options:
720p,
1080p
ratio
enum<string>
default:16:9

Output aspect ratio. Text-to-video only — with a first frame the image decides. aspect_ratio is accepted as a compatible alias.

Available options:
16:9,
9:16,
1:1
generate_audio
boolean
default:false

Generate a native audio track matching the visuals. Requires resolution: 1080p, and costs more per second.

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required