Get stills of the cut
Stills of the timeline at the times you give, drawn by the renderer itself, so they show exactly what a render shows: every layer, its place and shape, fades and glides, and black in gaps. Each still is the output frame (30 fps) whose span holds the time, so t - 1/30 and t are the frames either side of a cut at t. Answers 202 with a job; when it succeeds, output.frames has one still per time. Billed by the box time it uses, at $0.03 per vCPU-minute by the second, with no fee per frame. See Look at and check a cut.
curl --request POST \
--url https://api.vidjutsu.ai/projects/{project}/frames \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"times": [
"<unknown>"
],
"branch": "main",
"height": 720,
"revision": null
}
'import requests
url = "https://api.vidjutsu.ai/projects/{project}/frames"
payload = {
"times": ["<unknown>"],
"branch": "main",
"height": 720,
"revision": 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({times: ['<unknown>'], branch: 'main', height: 720, revision: null})
};
fetch('https://api.vidjutsu.ai/projects/{project}/frames', 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/projects/{project}/frames",
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([
'times' => [
'<unknown>'
],
'branch' => 'main',
'height' => 720,
'revision' => 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/projects/{project}/frames"
payload := strings.NewReader("{\n \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": 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/projects/{project}/frames")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/projects/{project}/frames")
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 \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": 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
Stills of the branch head (or a pinned revision) at timeline times, made as a job.
Response
The job
curl --request POST \
--url https://api.vidjutsu.ai/projects/{project}/frames \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"times": [
"<unknown>"
],
"branch": "main",
"height": 720,
"revision": null
}
'import requests
url = "https://api.vidjutsu.ai/projects/{project}/frames"
payload = {
"times": ["<unknown>"],
"branch": "main",
"height": 720,
"revision": 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({times: ['<unknown>'], branch: 'main', height: 720, revision: null})
};
fetch('https://api.vidjutsu.ai/projects/{project}/frames', 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/projects/{project}/frames",
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([
'times' => [
'<unknown>'
],
'branch' => 'main',
'height' => 720,
'revision' => 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/projects/{project}/frames"
payload := strings.NewReader("{\n \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": 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/projects/{project}/frames")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidjutsu.ai/projects/{project}/frames")
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 \"times\": [\n \"<unknown>\"\n ],\n \"branch\": \"main\",\n \"height\": 720,\n \"revision\": 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>"
}