Get render
curl --request GET \
--url https://api.example.com/v1/workflows/{id}/renders/{job_id}import requests
url = "https://api.example.com/v1/workflows/{id}/renders/{job_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/workflows/{id}/renders/{job_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.example.com/v1/workflows/{id}/renders/{job_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://api.example.com/v1/workflows/{id}/renders/{job_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://api.example.com/v1/workflows/{id}/renders/{job_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/workflows/{id}/renders/{job_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{
"id": "job_lq3z9m_8fa1c0",
"status": "done",
"progress": 1,
"progress_message": "Done",
"result": {
"video_url": "https://cdn.lavendly.ai/videos/abc.mp4",
"duration": 5,
"quality_check": { "ok": true, "rubric": { "overall": 0.86 } }
},
"started_at": 1734001234567,
"ended_at": 1734001260123
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "running",
"progress": 0.6,
"progress_message": "Mixing audio"
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "failed",
"error": "Upstream timed out after 120s"
}
Renders
Get render
Poll a render job. Returns status + progress + result.
GET
/
v1
/
workflows
/
{id}
/
renders
/
{job_id}
Get render
curl --request GET \
--url https://api.example.com/v1/workflows/{id}/renders/{job_id}import requests
url = "https://api.example.com/v1/workflows/{id}/renders/{job_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/workflows/{id}/renders/{job_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.example.com/v1/workflows/{id}/renders/{job_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://api.example.com/v1/workflows/{id}/renders/{job_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://api.example.com/v1/workflows/{id}/renders/{job_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/workflows/{id}/renders/{job_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{
"id": "job_lq3z9m_8fa1c0",
"status": "done",
"progress": 1,
"progress_message": "Done",
"result": {
"video_url": "https://cdn.lavendly.ai/videos/abc.mp4",
"duration": 5,
"quality_check": { "ok": true, "rubric": { "overall": 0.86 } }
},
"started_at": 1734001234567,
"ended_at": 1734001260123
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "running",
"progress": 0.6,
"progress_message": "Mixing audio"
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "failed",
"error": "Upstream timed out after 120s"
}
string
required
Workflow id.
string
required
Render job id.
{
"id": "job_lq3z9m_8fa1c0",
"status": "done",
"progress": 1,
"progress_message": "Done",
"result": {
"video_url": "https://cdn.lavendly.ai/videos/abc.mp4",
"duration": 5,
"quality_check": { "ok": true, "rubric": { "overall": 0.86 } }
},
"started_at": 1734001234567,
"ended_at": 1734001260123
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "running",
"progress": 0.6,
"progress_message": "Mixing audio"
}
{
"id": "job_lq3z9m_8fa1c0",
"status": "failed",
"error": "Upstream timed out after 120s"
}
Polling cadence
Render jobs typically take 30-120 seconds. Poll every 3-5 seconds, the server is fine, but you’ll burn quota faster than necessary at 1 Hz.Was this page helpful?
⌘I