Render motion graphics
Draw your HTML scenes into a video, frame by frame, on locked-down cloud machines. Send film (size, frame rate, effects and scenes) with bundle (from POST /graphics/files) or workspace. Each scene’s page defines window.render(t), which must draw time t the same way every time, with no network. Answers 202 with a job; poll GET /graphics/{job_id}. On success output.media is a media id: place it on a timeline with add_media and insert_clip. Scenes that didn’t change since an earlier job are reused. Billed by box time at $0.03 per vCPU-minute, by the second. Send idempotency_key so a retry returns the same job. See Motion graphics.
curl --request POST \
--url https://api.vidjutsu.ai/graphics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"film": {
"height": 1,
"scenes": [
{
"seconds": 123,
"dir": "",
"entry": "index.html",
"extract": [],
"render": "render",
"start": 0
}
],
"width": 1,
"effects": [],
"fps": 30,
"quality": 93,
"subframes": 1
},
"bundle": null,
"idempotency_key": null,
"name": null,
"workspace": null
}
'import requests
url = "https://api.vidjutsu.ai/graphics"
payload = {
"film": {
"height": 1,
"scenes": [
{
"seconds": 123,
"dir": "",
"entry": "index.html",
"extract": [],
"render": "render",
"start": 0
}
],
"width": 1,
"effects": [],
"fps": 30,
"quality": 93,
"subframes": 1
},
"bundle": None,
"idempotency_key": None,
"name": None,
"workspace": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
film: {
height: 1,
scenes: [
{
seconds: 123,
dir: '',
entry: 'index.html',
extract: [],
render: 'render',
start: 0
}
],
width: 1,
effects: [],
fps: 30,
quality: 93,
subframes: 1
},
bundle: null,
idempotency_key: null,
name: null,
workspace: null
})
};
fetch('https://api.vidjutsu.ai/graphics', 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/graphics",
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([
'film' => [
'height' => 1,
'scenes' => [
[
'seconds' => 123,
'dir' => '',
'entry' => 'index.html',
'extract' => [
],
'render' => 'render',
'start' => 0
]
],
'width' => 1,
'effects' => [
],
'fps' => 30,
'quality' => 93,
'subframes' => 1
],
'bundle' => null,
'idempotency_key' => null,
'name' => null,
'workspace' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.vidjutsu.ai/graphics"
payload := strings.NewReader("{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.vidjutsu.ai/graphics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/graphics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}"
response = http.request(request)
puts response.read_body{
"cancel_requested": true,
"created_at": 123,
"error": "<string>",
"finished_at": 123,
"job_id": "<string>",
"kind": "render",
"output": {
"bytes": 123,
"expires_at": 123,
"hash": "<string>",
"url": "<string>",
"download_url": "<string>",
"media": {
"asset_hash": "<string>",
"duration": {
"rate": 123,
"ticks": 123
},
"id": "<string>",
"kind": "video",
"lineage": [
"<string>"
]
},
"source": "<unknown>",
"watch_url": "<string>"
},
"progress": {
"done": 123,
"total": 123
},
"project": "<string>",
"report": "<unknown>",
"revision": "<string>",
"started_at": 123,
"state": "queued",
"usage": {
"box_seconds": 123,
"boxes": 123,
"final": true,
"memory_gb_seconds": 123,
"vcpu_seconds": 123,
"frames": 123,
"height": 123,
"output_seconds": 123,
"source_seconds": 123
},
"media": "<string>",
"started": 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>"
}{
"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>"
}{
"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>"
}{
"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>"
}{
"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.
^\d{4}-\d{2}-\d{2}$"2026-11-03"
Body
The film to draw and where its files are: a bundle or a workspace.
Response
The job
curl --request POST \
--url https://api.vidjutsu.ai/graphics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"film": {
"height": 1,
"scenes": [
{
"seconds": 123,
"dir": "",
"entry": "index.html",
"extract": [],
"render": "render",
"start": 0
}
],
"width": 1,
"effects": [],
"fps": 30,
"quality": 93,
"subframes": 1
},
"bundle": null,
"idempotency_key": null,
"name": null,
"workspace": null
}
'import requests
url = "https://api.vidjutsu.ai/graphics"
payload = {
"film": {
"height": 1,
"scenes": [
{
"seconds": 123,
"dir": "",
"entry": "index.html",
"extract": [],
"render": "render",
"start": 0
}
],
"width": 1,
"effects": [],
"fps": 30,
"quality": 93,
"subframes": 1
},
"bundle": None,
"idempotency_key": None,
"name": None,
"workspace": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
film: {
height: 1,
scenes: [
{
seconds: 123,
dir: '',
entry: 'index.html',
extract: [],
render: 'render',
start: 0
}
],
width: 1,
effects: [],
fps: 30,
quality: 93,
subframes: 1
},
bundle: null,
idempotency_key: null,
name: null,
workspace: null
})
};
fetch('https://api.vidjutsu.ai/graphics', 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/graphics",
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([
'film' => [
'height' => 1,
'scenes' => [
[
'seconds' => 123,
'dir' => '',
'entry' => 'index.html',
'extract' => [
],
'render' => 'render',
'start' => 0
]
],
'width' => 1,
'effects' => [
],
'fps' => 30,
'quality' => 93,
'subframes' => 1
],
'bundle' => null,
'idempotency_key' => null,
'name' => null,
'workspace' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.vidjutsu.ai/graphics"
payload := strings.NewReader("{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.vidjutsu.ai/graphics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/graphics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"film\": {\n \"height\": 1,\n \"scenes\": [\n {\n \"seconds\": 123,\n \"dir\": \"\",\n \"entry\": \"index.html\",\n \"extract\": [],\n \"render\": \"render\",\n \"start\": 0\n }\n ],\n \"width\": 1,\n \"effects\": [],\n \"fps\": 30,\n \"quality\": 93,\n \"subframes\": 1\n },\n \"bundle\": null,\n \"idempotency_key\": null,\n \"name\": null,\n \"workspace\": null\n}"
response = http.request(request)
puts response.read_body{
"cancel_requested": true,
"created_at": 123,
"error": "<string>",
"finished_at": 123,
"job_id": "<string>",
"kind": "render",
"output": {
"bytes": 123,
"expires_at": 123,
"hash": "<string>",
"url": "<string>",
"download_url": "<string>",
"media": {
"asset_hash": "<string>",
"duration": {
"rate": 123,
"ticks": 123
},
"id": "<string>",
"kind": "video",
"lineage": [
"<string>"
]
},
"source": "<unknown>",
"watch_url": "<string>"
},
"progress": {
"done": 123,
"total": 123
},
"project": "<string>",
"report": "<unknown>",
"revision": "<string>",
"started_at": 123,
"state": "queued",
"usage": {
"box_seconds": 123,
"boxes": 123,
"final": true,
"memory_gb_seconds": 123,
"vcpu_seconds": 123,
"frames": 123,
"height": 123,
"output_seconds": 123,
"source_seconds": 123
},
"media": "<string>",
"started": 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>"
}{
"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>"
}{
"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>"
}{
"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>"
}{
"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>"
}