curl --request POST \
--url https://api.trycarhub.com/v1/render/video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form images=@example-file \
--form preset=listing_30s \
--form duration_s=62 \
--form music_track=trk_upbeat_02 \
--form 'captions={
"enabled": false,
"language": "fr-FR",
"lines": [
"<string>"
]
}' \
--form 'branding={
"logo_ref": "upl_7Qm2hV9tXbLd",
"primary_color": "#0B5FFF",
"dealer_name": "<string>"
}'import requests
url = "https://api.trycarhub.com/v1/render/video"
files = { "images": ("example-file", open("example-file", "rb")) }
payload = {
"preset": "listing_30s",
"duration_s": "62",
"music_track": "trk_upbeat_02",
"captions": "{
\"enabled\": false,
\"language\": \"fr-FR\",
\"lines\": [
\"<string>\"
]
}",
"branding": "{
\"logo_ref\": \"upl_7Qm2hV9tXbLd\",
\"primary_color\": \"#0B5FFF\",
\"dealer_name\": \"<string>\"
}"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('images', '<string>');
form.append('preset', 'listing_30s');
form.append('duration_s', '62');
form.append('music_track', 'trk_upbeat_02');
form.append('captions', '{
"enabled": false,
"language": "fr-FR",
"lines": [
"<string>"
]
}');
form.append('branding', '{
"logo_ref": "upl_7Qm2hV9tXbLd",
"primary_color": "#0B5FFF",
"dealer_name": "<string>"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.trycarhub.com/v1/render/video', 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.trycarhub.com/v1/render/video",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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.trycarhub.com/v1/render/video"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.trycarhub.com/v1/render/video")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/render/video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"is_staging": false,
"id": "job_3ZxK9pQr7TnW",
"object": "job",
"endpoint": "vehicle.pose",
"status": "queued",
"livemode": true,
"created": 1755300000,
"started_at": 1755300000,
"completed_at": 1755300000,
"model_version": "plate-reader@2026-08-27",
"credits": {
"reserved": 20,
"charged": 20
},
"result": {
"video": {
"url": "<string>",
"expires_at": 1755300000,
"format": "jpg",
"duration_s": 30,
"width": 2,
"height": 2,
"bytes": 1
},
"thumbnail": {
"url": "<string>",
"expires_at": 1755300000,
"format": "jpg",
"width": 2,
"height": 2,
"bytes": 1
},
"aspect_ratio": "16:9",
"preset": "listing_30s",
"frames_used": 1,
"scenes": [
{
"start_s": 1,
"end_s": 1,
"source_index": 1,
"transition": "cut"
}
],
"captions": {
"enabled": true,
"language": "fr-FR",
"lines": [
"<string>"
]
},
"music": {
"track_id": "trk_upbeat_02",
"title": "Open Road",
"licensed": true
}
},
"error": {
"type": "processing_error",
"code": "model_inference_failed",
"message": "<string>"
},
"test_scenario": "low_confidence"
}Preview — Ad Video Generation
Tool to generate a custom advertising video of a vehicle from photos.
- Allows you to generate a promotional video of a vehicle from a set of photos.
- Proposes multiple formats and durations adapted to listings and social networks.
- Offers the possibility of customizing the music, the captions and the brand elements.
Photos in, finished clip out. Sibling to 360 generation: both synthesise motion from stills, but that one returns a turnable spin and this one returns an edited clip.
Bills per video produced, not per photo submitted. A ten-photo input that yields one
thirty-second clip is one billable unit. wait=true is rejected.
curl --request POST \
--url https://api.trycarhub.com/v1/render/video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form images=@example-file \
--form preset=listing_30s \
--form duration_s=62 \
--form music_track=trk_upbeat_02 \
--form 'captions={
"enabled": false,
"language": "fr-FR",
"lines": [
"<string>"
]
}' \
--form 'branding={
"logo_ref": "upl_7Qm2hV9tXbLd",
"primary_color": "#0B5FFF",
"dealer_name": "<string>"
}'import requests
url = "https://api.trycarhub.com/v1/render/video"
files = { "images": ("example-file", open("example-file", "rb")) }
payload = {
"preset": "listing_30s",
"duration_s": "62",
"music_track": "trk_upbeat_02",
"captions": "{
\"enabled\": false,
\"language\": \"fr-FR\",
\"lines\": [
\"<string>\"
]
}",
"branding": "{
\"logo_ref\": \"upl_7Qm2hV9tXbLd\",
\"primary_color\": \"#0B5FFF\",
\"dealer_name\": \"<string>\"
}"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('images', '<string>');
form.append('preset', 'listing_30s');
form.append('duration_s', '62');
form.append('music_track', 'trk_upbeat_02');
form.append('captions', '{
"enabled": false,
"language": "fr-FR",
"lines": [
"<string>"
]
}');
form.append('branding', '{
"logo_ref": "upl_7Qm2hV9tXbLd",
"primary_color": "#0B5FFF",
"dealer_name": "<string>"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.trycarhub.com/v1/render/video', 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.trycarhub.com/v1/render/video",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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.trycarhub.com/v1/render/video"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.trycarhub.com/v1/render/video")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trycarhub.com/v1/render/video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"preset\"\r\n\r\nlisting_30s\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"duration_s\"\r\n\r\n62\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"music_track\"\r\n\r\ntrk_upbeat_02\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"captions\"\r\n\r\n{\r\n \"enabled\": false,\r\n \"language\": \"fr-FR\",\r\n \"lines\": [\r\n \"<string>\"\r\n ]\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"branding\"\r\n\r\n{\r\n \"logo_ref\": \"upl_7Qm2hV9tXbLd\",\r\n \"primary_color\": \"#0B5FFF\",\r\n \"dealer_name\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"is_staging": false,
"id": "job_3ZxK9pQr7TnW",
"object": "job",
"endpoint": "vehicle.pose",
"status": "queued",
"livemode": true,
"created": 1755300000,
"started_at": 1755300000,
"completed_at": 1755300000,
"model_version": "plate-reader@2026-08-27",
"credits": {
"reserved": 20,
"charged": 20
},
"result": {
"video": {
"url": "<string>",
"expires_at": 1755300000,
"format": "jpg",
"duration_s": 30,
"width": 2,
"height": 2,
"bytes": 1
},
"thumbnail": {
"url": "<string>",
"expires_at": 1755300000,
"format": "jpg",
"width": 2,
"height": 2,
"bytes": 1
},
"aspect_ratio": "16:9",
"preset": "listing_30s",
"frames_used": 1,
"scenes": [
{
"start_s": 1,
"end_s": 1,
"source_index": 1,
"transition": "cut"
}
],
"captions": {
"enabled": true,
"language": "fr-FR",
"lines": [
"<string>"
]
},
"music": {
"track_id": "trk_upbeat_02",
"title": "Open Road",
"licensed": true
}
},
"error": {
"type": "processing_error",
"code": "model_inference_failed",
"message": "<string>"
},
"test_scenario": "low_confidence"
}Authorizations
Organisation API key, sent as Authorization: Bearer chk_live_….
chk_live_…— production inference, live credits,livemode: true,is_staging: false.chk_stg_…— real inference classified as staging, the same live credits,livemode: true,is_staging: true.chk_test_…— identical pipeline against the fixture backend, test credits,livemode: false.
Keys are stored hashed; only the prefix (chk_live_a1b2…) is ever displayed again. A key
may be scoped to a subset of endpoint families — calling outside its scopes is a 403.
Headers
Client-generated key (a UUID is ideal) making this POST safe to retry. The first request
is executed and its response stored for 24 h; any replay with the same key returns that
stored response with Idempotent-Replayed: true and bills nothing. Reusing a key with a
different payload is a 409 idempotency_key_reuse.
8 - 255Steers the fixture backend. Ignored by live keys, 400 test_scenario_not_supported if the
scenario is unknown to the endpoint. Common catalogue:
| Scenario | Effect |
|---|---|
| (absent) | Deterministic success — the endpoint's default fixture. |
empty_result | Success with nothing detected: empty lists, null readings. |
low_confidence | Success with every confidence below 0.5. |
model_error | Job settles failed; the reservation is released. |
slow | Completion after ~30 s — makes wait=true time out. |
insufficient_credits | 402 at admission, no job created. |
Some endpoints add their own scenarios; unsupported common scenarios (for example
empty_result on a generation endpoint) are rejected rather than silently ignored.
"empty_result"
"low_confidence"
"model_error"
"slow"
"insufficient_credits"
Body
Repeat the images field once per file. 10 MB each.
1 - 30 elementslisting_30s, social_15s, story_9x16, showcase_60s Overrides the preset's duration.
5 <= x <= 12016:9, 9:16, 1:1, 4:5 Licensed track identifier. none renders a silent clip.
"trk_upbeat_02"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Job accepted, credits reserved, work queued.
The unit of work of the API. Every inference call creates one, and every result is read
back from one — synchronously through wait=true, or later through GET /v1/jobs/{id}
or a webhook.
result is populated only in succeeded, error only in failed / expired.
Staging classification. Requires live mode and uses the organisation's shared live credits.
Job identifier — job_ followed by a base58 string.
^job_[1-9A-HJ-NP-Za-km-z]{8,32}$"job_3ZxK9pQr7TnW"
"job"Dotted slug of a CarHub endpoint, the identifier used for jobs and usage.
vehicle.pose, vehicle.segment, vehicle.identify, vin.read, driver_license.read, plate.read, document.read, dashboard.read, engine.detect, damage.detect, damage.severity, tire.read, tire.detect, parts.recognize, parts.segment, parts.decompose, pricing.vehicle, pricing.repair, render.background, render.enhance, render.plate, render.360, render.video, render.hotspots Lifecycle of a job. queued → processing → one of succeeded | partial | failed; expired
when it was never picked up in time, canceled when it was cancelled before starting.
Every state after processing is terminal.
queued, processing, succeeded, partial, failed, expired, canceled false when the job was created with a chk_test_ key: fixture result, test credits.
Epoch seconds, UTC.
1755300000
When the job left the queue. Null while queued.
1755300000
When the job settled. Null until then.
1755300000
Exact model build that produced the result, as <model>@<release date>. Null until the job starts. Pin your regression tests to it.
"plate-reader@2026-08-27"
Credit accounting for the job. One thousand credits equal one USD. reserved is held at
admission and charged is the real cost after settlement; unused credits are released.
Show child attributes
Show child attributes
One edited clip built from the submitted stills, plus the cut list that produced it. Bills per video produced, not per photo submitted.
Show child attributes
Show child attributes
Populated when status is failed or expired, null otherwise.
Show child attributes
Show child attributes
The X-Carhub-Test-Scenario that produced this job. Present on test-mode jobs that were steered by one, absent otherwise — a live job never carries it.
"low_confidence"