Kling 2.6
Kling 2.6 text-to-video and image-to-video, with optional native audio and designated voices.
Pricing — per second of generated video, in tokens (USD at $0.02/token). Same as the official rate:
| configuration | 720p | 1080p |
|---|---|---|
| No native audio | 2.1 tokens/s ($0.042) | 3.5 tokens/s ($0.07) |
| Native audio | not available | 7 tokens/s ($0.14) |
| Native audio + voice | not available | 8.4 tokens/s ($0.168) |
⚠️ A designated voice is a separate price tier, not a free extra — it is 20% above plain native audio.
⚠️ Three upstream constraints interact, and this endpoint rejects impossible combinations up front (before any tokens are deducted):
voice_idsrequiresgenerate_audio: true— a designated voice cannot be silent.generate_audio: truerequiresresolution: 1080p— Kling publishes no 720p audio tier.- A first and last frame requires
resolution: 720p.
Rules 2 and 3 are mutually exclusive: on Kling 2.6 you cannot combine a first+last frame pair with native audio or voices. Drop image_end_url, or drop generate_audio.
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.
Headers
Body
Model name. Must be kling-2-6.
kling-2-6 Text prompt. Max 2500 characters. Use @1 / @2 to make a designated voice speak.
2500Optional. First-frame image URL. Omit for text-to-video.
Optional. Last-frame image URL. Requires image_url, and forces resolution: 720p.
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.
2Video duration in seconds. Only 5 or 10.
5, 10 Output resolution. No 4K tier. quality is accepted as a compatible alias.
720p, 1080p Output aspect ratio. Text-to-video only — with a first frame the image decides. aspect_ratio is accepted as a compatible alias.
16:9, 9:16, 1:1 Generate a native audio track matching the visuals. Requires resolution: 1080p, and costs more per second.
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.
"https://your-server.com/goenhance/callback"
