curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo3_1_fast",
"prompt": "A cat playing piano in a jazz bar, cinematic",
"duration": 6,
"quality": "1080p",
"ratio": "16:9",
"generate_audio": true
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "veo3_1_fast",
"prompt": "A cat playing piano in a jazz bar, cinematic",
"duration": 6,
"quality": "1080p",
"ratio": "16:9",
"generate_audio": True
}
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: 'veo3_1_fast',
prompt: 'A cat playing piano in a jazz bar, cinematic',
duration: 6,
quality: '1080p',
ratio: '16:9',
generate_audio: true
})
};
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' => 'veo3_1_fast',
'prompt' => 'A cat playing piano in a jazz bar, cinematic',
'duration' => 6,
'quality' => '1080p',
'ratio' => '16:9',
'generate_audio' => true
]),
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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5"
}
}Veo 3.1 Lite
Veo 3.1 Lite
Most affordable Veo 3.1 tier, built for high-volume generation. Generates from a text prompt, a single image, or first / last frames.
For reference-image driven generation use
veo-3-1-lite-refs. 4K output is not available on the Lite tier.
Pricing
Billed per second of output. Resolution changes the rate; 720p and 1080p are the same price.
| Resolution | Tokens / s | USD / s |
|---|---|---|
| 720p / 1080p | 4.03 | $0.0806 |
1 token = $0.02.
Example: an 8s clip at 720p / 1080p costs 32.24 tokens.
Duration
4, 6 or 8 seconds. Billing is per second, so a shorter clip costs proportionally less.
curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo3_1_fast",
"prompt": "A cat playing piano in a jazz bar, cinematic",
"duration": 6,
"quality": "1080p",
"ratio": "16:9",
"generate_audio": true
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "veo3_1_fast",
"prompt": "A cat playing piano in a jazz bar, cinematic",
"duration": 6,
"quality": "1080p",
"ratio": "16:9",
"generate_audio": True
}
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: 'veo3_1_fast',
prompt: 'A cat playing piano in a jazz bar, cinematic',
duration: 6,
quality: '1080p',
ratio: '16:9',
generate_audio: true
})
};
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' => 'veo3_1_fast',
'prompt' => 'A cat playing piano in a jazz bar, cinematic',
'duration' => 6,
'quality' => '1080p',
'ratio' => '16:9',
'generate_audio' => true
]),
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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\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\": \"veo3_1_fast\",\n \"prompt\": \"A cat playing piano in a jazz bar, cinematic\",\n \"duration\": 6,\n \"quality\": \"1080p\",\n \"ratio\": \"16:9\",\n \"generate_audio\": true\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5"
}
}Headers
Body
Model name. Must be veo3_1_fast.
veo-3-1-lite Text prompt describing the video. Max 2000 tokens. Translated to English automatically.
Optional. With only image_url the video unfolds from that image; add image_end_url to generate a transition between the two frames.
Optional. Last-frame image URL. Requires image_url — last-frame-only is not supported.
Clip length in seconds. Billing is per video, so 4s and 8s cost the same — 8 gives the most content for the price.
4, 6, 8 Output resolution. Changes the price — see the pricing table above.
720p, 1080p Output aspect ratio. auto lets the model pick from the input image, or from the prompt for text-to-video. ⚠️ Fixed at 16:9 when ref_imgs is used. aspect_ratio is accepted as a compatible alias.
16:9, 9:16, Auto 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"
