curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-omni",
"prompt": "@image_1 turns to face the camera as the rain starts, cinematic",
"image_url": "https://example.com/first-frame.png",
"resolution": "1080p",
"duration": 5
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "kling-v3-omni",
"prompt": "@image_1 turns to face the camera as the rain starts, cinematic",
"image_url": "https://example.com/first-frame.png",
"resolution": "1080p",
"duration": 5
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-v3-omni',
prompt: '@image_1 turns to face the camera as the rain starts, cinematic',
image_url: 'https://example.com/first-frame.png',
resolution: '1080p',
duration: 5
})
};
fetch('https://api.goenhance.ai/api/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-v3-omni',
'prompt' => '@image_1 turns to face the camera as the rain starts, cinematic',
'image_url' => 'https://example.com/first-frame.png',
'resolution' => '1080p',
'duration' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/videos/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}Kling 3.0 Omni
Kling 3.0 Omni video. Drive generation with a prompt plus any combination of a first frame, a first+last frame pair, reference images and one reference video.
Referring to materials in the prompt — every material gets an index you can mention with @: images are numbered @image_1… in the order first frame → last frame → ref_imgs, and the reference video is always @video_1. The array order is the numbering, so reordering ref_imgs changes what your prompt refers to.
Reference video roles (video_type):
feature(default) — the output imitates its motion and style. Upstream forces multi-shot on and audio off for this mode, sogenerate_audiois rejected here.base— the video is edited in place. First / last frames andmulti_shotsare not supported, andgenerate_audiokeeps the base video’s original sound rather than generating a new track.
Material limits — image_url + image_end_url + ref_imgs must not exceed 7 in total, or 4 when ref_videos is used.
Pricing — per second of generated video, in tokens (USD at $0.02/token). Same as the official rate:
| scenario | 720p | 1080p | 4k |
|---|---|---|---|
| No video · no audio | 4.2 ($0.084) | 5.6 ($0.112) | 21 ($0.42) |
| No video · native audio | 5.6 ($0.112) | 7 ($0.14) | 21 ($0.42) |
| With video | 6.3 ($0.126) | 8.4 ($0.168) | 21 ($0.42) |
⚠️ Pricing is three-dimensional — resolution × reference video × native audio. A request with a reference video costs 50% more than a plain one at the same resolution, so do not read this as a two-tier table.
⚠️ At 4K all three scenarios cost the same (21 tokens/s = $0.42). That is the official rate, not a typo here.
⚠️ There is no “with video + native audio” price because the combination does not exist: feature forbids audio, and base’s audio is retained rather than generated — both are billed at the “with video” tier.
Not the same model as kling-o1. O1 shares the upstream path prefix but drops multi-shot, 4K and generated audio, and caps duration at 10s.
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.
Reference materials use the shared naming: ref_imgs and ref_videos, the same as seedance / hailuo / wan’s reference endpoints. ref_videos is an array capped at 1. The older image_urls / video_url spellings still work.
⚠️ Do not confuse image_url (first frame) with ref_imgs (reference images) — they are different inputs and count against the same material budget.
curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-omni",
"prompt": "@image_1 turns to face the camera as the rain starts, cinematic",
"image_url": "https://example.com/first-frame.png",
"resolution": "1080p",
"duration": 5
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "kling-v3-omni",
"prompt": "@image_1 turns to face the camera as the rain starts, cinematic",
"image_url": "https://example.com/first-frame.png",
"resolution": "1080p",
"duration": 5
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-v3-omni',
prompt: '@image_1 turns to face the camera as the rain starts, cinematic',
image_url: 'https://example.com/first-frame.png',
resolution: '1080p',
duration: 5
})
};
fetch('https://api.goenhance.ai/api/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-v3-omni',
'prompt' => '@image_1 turns to face the camera as the rain starts, cinematic',
'image_url' => 'https://example.com/first-frame.png',
'resolution' => '1080p',
'duration' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/videos/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"kling-v3-omni\",\n \"prompt\": \"@image_1 turns to face the camera as the rain starts, cinematic\",\n \"image_url\": \"https://example.com/first-frame.png\",\n \"resolution\": \"1080p\",\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}Headers
Body
Model name. Must be kling-v3-omni.
kling-v3-omni Text prompt. Use @image_1 / @video_1 to refer to specific materials.
Optional. First-frame image URL.
Optional. Last-frame image URL. Requires image_url — last-frame-only is not supported.
Optional reference images. Order is the @image_N numbering. image_urls is accepted as a compatible alias.
7Optional reference video (.mp4 / .mov, 3–15.5s). At most one. Named as an array to match the other reference-driven endpoints (ref_imgs / ref_videos / ref_audios), even though only one is allowed. video_url is accepted as a compatible alias, and a bare string is accepted too.
1Role of video_url. See the description above. Requires ref_videos.
feature, base Video duration in seconds. Any integer from 3 to 15.
3 <= x <= 15Output resolution. quality is accepted as a compatible alias.
720p, 1080p, 4k Output aspect ratio. Only used when there is no first frame and no reference video — otherwise the material decides. aspect_ratio is accepted as a compatible alias.
16:9, 9:16, 1:1 Generate a native audio track. ⚠️ Rejected together with video_type: feature. Costs more per second when there is no reference video.
Generate a multi-shot video. ⚠️ Rejected together with video_type: base. Note the upstream default is true; GoEnhance always sends this explicitly so an omitted value means single-shot.
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"
