curl --request GET \
--url https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.trugen.ai/v1/script-to-video/genStatus/{generation_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://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"actual_time": 0,
"avatar_id": "c5b563de",
"callback_url": "https://your-app.com/webhook/video-status",
"created_at": "2026-04-20T15:50:48.501917Z",
"estimated_time": 2.09,
"generation_id": "529fb61c-da5d-4b2d-9d49-b612deede60f",
"model_name": "eleven_turbo_v2_5",
"modified_at": "2026-04-20T15:51:47.429158Z",
"provider_name": "elevenlabs",
"script": "Hello, This is team trugen",
"status": "failed",
"video_name": "",
"video_url": "",
"voice_id": "FGY2WhTYpPnrIDTdsKH5"
}{
"error": "Unauthorized: not a valid authorization api key"
}{
"error": "Generation not found"
}{
"error": "Failed to retrieve generation status"
}Get Generation Status
Retrieve the current status and details of a video generation job using its generation_id.
curl --request GET \
--url https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.trugen.ai/v1/script-to-video/genStatus/{generation_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://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trugen.ai/v1/script-to-video/genStatus/{generation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"actual_time": 0,
"avatar_id": "c5b563de",
"callback_url": "https://your-app.com/webhook/video-status",
"created_at": "2026-04-20T15:50:48.501917Z",
"estimated_time": 2.09,
"generation_id": "529fb61c-da5d-4b2d-9d49-b612deede60f",
"model_name": "eleven_turbo_v2_5",
"modified_at": "2026-04-20T15:51:47.429158Z",
"provider_name": "elevenlabs",
"script": "Hello, This is team trugen",
"status": "failed",
"video_name": "",
"video_url": "",
"voice_id": "FGY2WhTYpPnrIDTdsKH5"
}{
"error": "Unauthorized: not a valid authorization api key"
}{
"error": "Generation not found"
}{
"error": "Failed to retrieve generation status"
}Authorizations
Path Parameters
The unique identifier of the video generation job.
"529fb61c-da5d-4b2d-9d49-b612deede60f"
Response
Generation job details retrieved successfully.
The actual time taken to generate the video in seconds.
0
The ID of the avatar used for video generation.
"c5b563de"
The callback URL provided when the generation was initiated.
"https://your-app.com/webhook/video-status"
Timestamp when the generation job was created.
"2026-04-20T15:50:48.501917Z"
Estimated duration of the video in seconds.
2.09
The unique identifier of this generation job.
"529fb61c-da5d-4b2d-9d49-b612deede60f"
The TTS model used for audio synthesis.
"eleven_turbo_v2_5"
Timestamp when the generation job was last updated.
"2026-04-20T15:51:47.429158Z"
The TTS provider used for audio synthesis.
"elevenlabs"
The text script used to generate the video.
"Hello, This is team trugen"
Current status of the generation job. Possible values: processing, completed, failed.
"failed"
The name of the generated video file. Empty if not yet completed.
""
The URL of the generated video. Empty if not yet completed.
""
The voice ID used for audio narration.
"FGY2WhTYpPnrIDTdsKH5"
Was this page helpful?