Layouts
List layout presets
Screen and camera layout presets: the six built-ins (circle_corner, square_corner, side_by_side, camera_third, camera_only, screen_only) and the ones saved to your account, the same list the editor shows. See Screen and camera layouts.
GET
/
layouts
List layout presets
curl --request GET \
--url https://api.vidjutsu.ai/layouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vidjutsu.ai/layouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vidjutsu.ai/layouts', 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.vidjutsu.ai/layouts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vidjutsu.ai/layouts"
req, _ := http.NewRequest("GET", url, nil)
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.get("https://api.vidjutsu.ai/layouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/layouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"layouts": [
{
"id": "<string>",
"name": "<string>",
"builtin": true,
"parts": {
"screen": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"shape": "square",
"radius": 123,
"crop": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"fit": "stretch",
"hidden": true,
"cut": true
},
"camera": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"shape": "square",
"radius": 123,
"crop": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"fit": "stretch",
"hidden": true,
"cut": true
}
}
}
]
}{
"code": "unauthenticated",
"message": "<string>",
"request_id": "<string>",
"reason": "<string>",
"checkout_url": "<string>",
"top_up_url": "<string>",
"upgrade_url": "<string>",
"media_deletes_at": "2023-11-07T05:31:56Z",
"contact_url": "<string>",
"retry_after_seconds": 123,
"latest_version": "<string>"
}Authorizations
Headers
The API version you wrote your integration against, a date. Without it you get the latest version. The current version is 2026-11-03. See https://docs.vidjutsu.ai/api-reference/introduction#versioning.
Pattern:
^\d{4}-\d{2}-\d{2}$Example:
"2026-11-03"
List layout presets
curl --request GET \
--url https://api.vidjutsu.ai/layouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vidjutsu.ai/layouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vidjutsu.ai/layouts', 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.vidjutsu.ai/layouts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vidjutsu.ai/layouts"
req, _ := http.NewRequest("GET", url, nil)
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.get("https://api.vidjutsu.ai/layouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/layouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"layouts": [
{
"id": "<string>",
"name": "<string>",
"builtin": true,
"parts": {
"screen": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"shape": "square",
"radius": 123,
"crop": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"fit": "stretch",
"hidden": true,
"cut": true
},
"camera": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"shape": "square",
"radius": 123,
"crop": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"fit": "stretch",
"hidden": true,
"cut": true
}
}
}
]
}{
"code": "unauthenticated",
"message": "<string>",
"request_id": "<string>",
"reason": "<string>",
"checkout_url": "<string>",
"top_up_url": "<string>",
"upgrade_url": "<string>",
"media_deletes_at": "2023-11-07T05:31:56Z",
"contact_url": "<string>",
"retry_after_seconds": 123,
"latest_version": "<string>"
}