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 Fast Reference
Veo 3.1 Fast Reference
Veo 3.1 Fast driven by 1-3 reference images. Text-only and first / last frame generation are not supported on this endpoint.
Duration is fixed at 8 seconds on this endpoint — the upstream model does not accept any other value.
Pricing
Billed per second of output. Resolution changes the rate; 720p and 1080p are the same price.
| Resolution | Tokens / s | USD / s |
|---|---|---|
| 720p / 1080p | 8.06 | $0.1612 |
| 4k | 24.18 | $0.4836 |
1 token = $0.02.
Example: a clip costs 64.48 tokens at 720p / 1080p.
Duration
Fixed at 8 seconds — the upstream model does not accept any other value on this endpoint.
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-fast-refs Text prompt describing the video. Max 2000 tokens. Translated to English automatically.
1-3 reference images that drive the generation. Required on this endpoint. First / last frame inputs are not accepted here.
3Fixed at 8 seconds on this endpoint; any other value is rejected.
8 Output resolution. Changes the price — see the pricing table above.
720p, 1080p, 4k 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"
