Get Generation
curl --request GET \
--url https://veogen.studio/api/v1/generations/{id}import requests
url = "https://veogen.studio/api/v1/generations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://veogen.studio/api/v1/generations/{id}', 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://veogen.studio/api/v1/generations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://veogen.studio/api/v1/generations/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://veogen.studio/api/v1/generations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://veogen.studio/api/v1/generations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"type": "<string>",
"prompt": "<string>",
"parameters": {},
"output": {},
"error": {},
"created_at": "<string>",
"completed_at": {}
}
}Generations
Get Generation
Retrieve the current status and output of a generation.
GET
/
api
/
v1
/
generations
/
{id}
Get Generation
curl --request GET \
--url https://veogen.studio/api/v1/generations/{id}import requests
url = "https://veogen.studio/api/v1/generations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://veogen.studio/api/v1/generations/{id}', 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://veogen.studio/api/v1/generations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://veogen.studio/api/v1/generations/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://veogen.studio/api/v1/generations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://veogen.studio/api/v1/generations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"status": "<string>",
"model": "<string>",
"type": "<string>",
"prompt": "<string>",
"parameters": {},
"output": {},
"error": {},
"created_at": "<string>",
"completed_at": {}
}
}Path Parameters
The UUID of the generation, returned when you created it.
Response 200 OK
Hide Generation object
Hide Generation object
Generation UUID.
pending — queued and waiting to startprocessing — actively running on the modelcompleted — finished, output is populatedfailed — did not complete, error explains why. You were not charged.The model slug used.
video | imageThe original prompt.
Resolved parameters used for generation (aspect_ratio, duration, resolution, mode).
null while pending or processing.Video:{
"url": "https://veogen.studio/storage/videos/uuid.mp4",
"download_url": "https://veogen.studio/storage/videos/uuid.mp4?download=1",
"content_type": "video/mp4"
}
{
"url": "https://veogen.studio/storage/images/uuid.png",
"content_type": "image/png"
}
Human-readable error message. Only present when
status is failed.ISO 8601 creation timestamp.
ISO 8601 completion timestamp.
Polling Recommendations
- Image generations typically complete in 5–15 seconds. Poll every 3 seconds.
- Video generations typically take 30–120 seconds. Poll every 5–10 seconds.
- Stop polling once
statusiscompletedorfailed.
Example
curl https://veogen.studio/api/v1/generations/01928abc-def0-7123-b456-789012345678 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json"
{
"data": {
"id": "01928abc-def0-7123-b456-789012345678",
"status": "completed",
"model": "veo-3.1-fast",
"type": "video",
"prompt": "Ocean waves crashing on a rocky shore, dramatic storm clouds",
"parameters": {
"aspect_ratio": "16:9",
"resolution": "1080p"
},
"output": {
"url": "https://veogen.studio/storage/videos/01928abc.mp4",
"download_url": "https://veogen.studio/storage/videos/01928abc.mp4?download=1",
"content_type": "video/mp4"
},
"error": null,
"created_at": "2025-01-15T10:30:00+00:00",
"completed_at": "2025-01-15T10:31:15+00:00"
}
}
{
"data": {
"id": "01928abc-def0-7123-b456-789012345679",
"status": "failed",
"model": "veo-3.1-fast",
"type": "video",
"prompt": "...",
"parameters": {},
"output": null,
"error": "The model rejected the prompt due to content policy.",
"created_at": "2025-01-15T10:30:00+00:00",
"completed_at": "2025-01-15T10:30:05+00:00"
}
}
If the generation failed on our infrastructure (not due to your content), you are automatically refunded the full
price_usd.⌘I