Burn Asset
curl --request POST \
--url https://api.example.com/api/v1/v1/assets/{public_id}/burn \
--header 'Content-Type: application/json' \
--data '
{
"subtitle_asset_id": "<string>",
"codec": "<string>",
"crf": 25,
"preset": "<string>",
"max_height": 2192,
"fps": 120,
"target_size_mb": 1,
"target_max_mb": 1,
"audio_kbps": 528,
"image_watermarks": [
{}
]
}
'import requests
url = "https://api.example.com/api/v1/v1/assets/{public_id}/burn"
payload = {
"subtitle_asset_id": "<string>",
"codec": "<string>",
"crf": 25,
"preset": "<string>",
"max_height": 2192,
"fps": 120,
"target_size_mb": 1,
"target_max_mb": 1,
"audio_kbps": 528,
"image_watermarks": [{}]
}
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({
subtitle_asset_id: '<string>',
codec: '<string>',
crf: 25,
preset: '<string>',
max_height: 2192,
fps: 120,
target_size_mb: 1,
target_max_mb: 1,
audio_kbps: 528,
image_watermarks: [{}]
})
};
fetch('https://api.example.com/api/v1/v1/assets/{public_id}/burn', 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/api/v1/v1/assets/{public_id}/burn",
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([
'subtitle_asset_id' => '<string>',
'codec' => '<string>',
'crf' => 25,
'preset' => '<string>',
'max_height' => 2192,
'fps' => 120,
'target_size_mb' => 1,
'target_max_mb' => 1,
'audio_kbps' => 528,
'image_watermarks' => [
[
]
]
]),
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.example.com/api/v1/v1/assets/{public_id}/burn"
payload := strings.NewReader("{\n \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\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.example.com/api/v1/v1/assets/{public_id}/burn")
.header("Content-Type", "application/json")
.body("{\n \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/v1/assets/{public_id}/burn")
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 \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}public-api
Burn Asset
Burn a subtitle asset into a video (jobs:create) — 202 → burn job. H.265/HEVC
output is gated on pro_codecs; free-plan tenants get the forced server watermark.
POST
/
api
/
v1
/
v1
/
assets
/
{public_id}
/
burn
Burn Asset
curl --request POST \
--url https://api.example.com/api/v1/v1/assets/{public_id}/burn \
--header 'Content-Type: application/json' \
--data '
{
"subtitle_asset_id": "<string>",
"codec": "<string>",
"crf": 25,
"preset": "<string>",
"max_height": 2192,
"fps": 120,
"target_size_mb": 1,
"target_max_mb": 1,
"audio_kbps": 528,
"image_watermarks": [
{}
]
}
'import requests
url = "https://api.example.com/api/v1/v1/assets/{public_id}/burn"
payload = {
"subtitle_asset_id": "<string>",
"codec": "<string>",
"crf": 25,
"preset": "<string>",
"max_height": 2192,
"fps": 120,
"target_size_mb": 1,
"target_max_mb": 1,
"audio_kbps": 528,
"image_watermarks": [{}]
}
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({
subtitle_asset_id: '<string>',
codec: '<string>',
crf: 25,
preset: '<string>',
max_height: 2192,
fps: 120,
target_size_mb: 1,
target_max_mb: 1,
audio_kbps: 528,
image_watermarks: [{}]
})
};
fetch('https://api.example.com/api/v1/v1/assets/{public_id}/burn', 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/api/v1/v1/assets/{public_id}/burn",
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([
'subtitle_asset_id' => '<string>',
'codec' => '<string>',
'crf' => 25,
'preset' => '<string>',
'max_height' => 2192,
'fps' => 120,
'target_size_mb' => 1,
'target_max_mb' => 1,
'audio_kbps' => 528,
'image_watermarks' => [
[
]
]
]),
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.example.com/api/v1/v1/assets/{public_id}/burn"
payload := strings.NewReader("{\n \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\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.example.com/api/v1/v1/assets/{public_id}/burn")
.header("Content-Type", "application/json")
.body("{\n \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/v1/assets/{public_id}/burn")
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 \"subtitle_asset_id\": \"<string>\",\n \"codec\": \"<string>\",\n \"crf\": 25,\n \"preset\": \"<string>\",\n \"max_height\": 2192,\n \"fps\": 120,\n \"target_size_mb\": 1,\n \"target_max_mb\": 1,\n \"audio_kbps\": 528,\n \"image_watermarks\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Path Parameters
Body
application/json
Required range:
0 <= x <= 51Required range:
64 <= x <= 4320Required range:
0 < x <= 240Required range:
x > 0Required range:
x > 0Required range:
32 <= x <= 1024Response
Successful Response
The response is of type Response Burn Asset Api V1 V1 Assets Public Id Burn Post · object.
⌘I