curl --request POST \
--url https://api.lumisreach.com/api/v1/videos/{id}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scenes": [
{
"id": "<string>",
"remove": true,
"regenerate": true,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>",
"visual": "<string>",
"transition": "<string>"
}
],
"script": "<string>",
"sections": [
"<string>"
],
"on_screen_caption": "<string>",
"voice_id": "<string>",
"voice_model": "<string>",
"subtitle_emojis": true,
"subtitle_highlight_color": "<string>",
"max_price_cents": 4503599627370495
}
'import requests
url = "https://api.lumisreach.com/api/v1/videos/{id}/edit"
payload = {
"scenes": [
{
"id": "<string>",
"remove": True,
"regenerate": True,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>",
"visual": "<string>",
"transition": "<string>"
}
],
"script": "<string>",
"sections": ["<string>"],
"on_screen_caption": "<string>",
"voice_id": "<string>",
"voice_model": "<string>",
"subtitle_emojis": True,
"subtitle_highlight_color": "<string>",
"max_price_cents": 4503599627370495
}
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({
scenes: [
{
id: '<string>',
remove: true,
regenerate: true,
voiceover: '<string>',
caption: '<string>',
prompt: '<string>',
visual: '<string>',
transition: '<string>'
}
],
script: '<string>',
sections: ['<string>'],
on_screen_caption: '<string>',
voice_id: '<string>',
voice_model: '<string>',
subtitle_emojis: true,
subtitle_highlight_color: '<string>',
max_price_cents: 4503599627370495
})
};
fetch('https://api.lumisreach.com/api/v1/videos/{id}/edit', 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.lumisreach.com/api/v1/videos/{id}/edit",
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([
'scenes' => [
[
'id' => '<string>',
'remove' => true,
'regenerate' => true,
'voiceover' => '<string>',
'caption' => '<string>',
'prompt' => '<string>',
'visual' => '<string>',
'transition' => '<string>'
]
],
'script' => '<string>',
'sections' => [
'<string>'
],
'on_screen_caption' => '<string>',
'voice_id' => '<string>',
'voice_model' => '<string>',
'subtitle_emojis' => true,
'subtitle_highlight_color' => '<string>',
'max_price_cents' => 4503599627370495
]),
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.lumisreach.com/api/v1/videos/{id}/edit"
payload := strings.NewReader("{\n \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\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.lumisreach.com/api/v1/videos/{id}/edit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/videos/{id}/edit")
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 \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\n}"
response = http.request(request)
puts response.read_body{
"data": {
"changed": true,
"price_cents": 0,
"video": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "unsubmitted",
"template": "ai_videographer",
"preset": "<string>",
"format": "vertical",
"duration_seconds": 123,
"video_url": "<string>",
"thumbnail_url": "<string>",
"billed_cents": 0,
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"posts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "tiktok",
"status": "scheduled",
"media_type": "video",
"permalink": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"price_cents": 0,
"price_estimated": true,
"script_approved": true,
"user_script": true,
"script": "<string>",
"script_sections": [
{
"label": "<string>",
"text": "<string>"
}
],
"scenes": [
{
"id": "<string>",
"label": "<string>",
"duration_seconds": 123,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>"
}
],
"slides": [
{
"id": "<string>",
"role": "<string>",
"headline": "<string>",
"body": "<string>",
"position": "<string>",
"prompt": "<string>",
"image_url": "<string>"
}
],
"interview": {
"speakers": [
{
"id": "<string>",
"role": "<string>",
"face_name": "<string>"
}
],
"turns": [
{
"id": "<string>",
"speaker_id": "<string>",
"text": "<string>"
}
]
},
"caption": "<string>",
"hashtags": [
"<string>"
],
"post_caption": "<string>",
"music": {
"library": "lumisreach",
"track_id": "<string>",
"title": "<string>",
"status": "pending"
},
"brief": "<string>",
"language": "<string>",
"source_url": "<string>",
"target_duration_seconds": 0,
"avatar_provider": "heygen",
"avatar_layout": "center",
"background_mode": "static",
"subtitle_style": "none",
"subtitle_emojis": true,
"video_model": "<string>",
"videographer": {
"sources": [
"any"
],
"model": "<string>",
"actions": 0,
"presenter_narrates": true
},
"narration": 0,
"post_format": "text",
"post_orientation": "square",
"dashboard_url": "<string>"
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Edit a finished video
Change a ready (or failed) video and make it again, the way the dashboard’s Generate step does with “Apply changes”: change, remove or regenerate scenes by id (from GET /v1/videos/{id}), replace the whole script, change the narrator, or restyle the burned-in captions. Only what the edit makes stale is made again (a scene’s shot, its narration, the render) and only that is charged; everything else is kept. A captions-only edit is redrawn in seconds and is free. What a template can change: scene templates (ai_videographer, remotion, freeform_ai) their scenes, narrator and captions; site_demo its scenes’ narration, narrator and captions; talking_avatar its script and captions; phone_mockup its script, narrator and captions; real_footage its on-screen caption (and, narrated, its script and narrator). Posts, imported videos and interviews cannot be edited here: change a post’s text with PATCH /v1/videos/{id}. Set max_price_cents to refuse, with 400, an edit that would cost more. The video goes back to rendering; poll GET /v1/videos/{id} until it is ready again. On the API & MCP plan and the Growth Marketing Manager hire the edit is charged at cost plus 20%; on Revenue Engine and Custom it is free; other plans get 403 plan_not_included.
curl --request POST \
--url https://api.lumisreach.com/api/v1/videos/{id}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scenes": [
{
"id": "<string>",
"remove": true,
"regenerate": true,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>",
"visual": "<string>",
"transition": "<string>"
}
],
"script": "<string>",
"sections": [
"<string>"
],
"on_screen_caption": "<string>",
"voice_id": "<string>",
"voice_model": "<string>",
"subtitle_emojis": true,
"subtitle_highlight_color": "<string>",
"max_price_cents": 4503599627370495
}
'import requests
url = "https://api.lumisreach.com/api/v1/videos/{id}/edit"
payload = {
"scenes": [
{
"id": "<string>",
"remove": True,
"regenerate": True,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>",
"visual": "<string>",
"transition": "<string>"
}
],
"script": "<string>",
"sections": ["<string>"],
"on_screen_caption": "<string>",
"voice_id": "<string>",
"voice_model": "<string>",
"subtitle_emojis": True,
"subtitle_highlight_color": "<string>",
"max_price_cents": 4503599627370495
}
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({
scenes: [
{
id: '<string>',
remove: true,
regenerate: true,
voiceover: '<string>',
caption: '<string>',
prompt: '<string>',
visual: '<string>',
transition: '<string>'
}
],
script: '<string>',
sections: ['<string>'],
on_screen_caption: '<string>',
voice_id: '<string>',
voice_model: '<string>',
subtitle_emojis: true,
subtitle_highlight_color: '<string>',
max_price_cents: 4503599627370495
})
};
fetch('https://api.lumisreach.com/api/v1/videos/{id}/edit', 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.lumisreach.com/api/v1/videos/{id}/edit",
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([
'scenes' => [
[
'id' => '<string>',
'remove' => true,
'regenerate' => true,
'voiceover' => '<string>',
'caption' => '<string>',
'prompt' => '<string>',
'visual' => '<string>',
'transition' => '<string>'
]
],
'script' => '<string>',
'sections' => [
'<string>'
],
'on_screen_caption' => '<string>',
'voice_id' => '<string>',
'voice_model' => '<string>',
'subtitle_emojis' => true,
'subtitle_highlight_color' => '<string>',
'max_price_cents' => 4503599627370495
]),
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.lumisreach.com/api/v1/videos/{id}/edit"
payload := strings.NewReader("{\n \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\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.lumisreach.com/api/v1/videos/{id}/edit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/videos/{id}/edit")
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 \"scenes\": [\n {\n \"id\": \"<string>\",\n \"remove\": true,\n \"regenerate\": true,\n \"voiceover\": \"<string>\",\n \"caption\": \"<string>\",\n \"prompt\": \"<string>\",\n \"visual\": \"<string>\",\n \"transition\": \"<string>\"\n }\n ],\n \"script\": \"<string>\",\n \"sections\": [\n \"<string>\"\n ],\n \"on_screen_caption\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_model\": \"<string>\",\n \"subtitle_emojis\": true,\n \"subtitle_highlight_color\": \"<string>\",\n \"max_price_cents\": 4503599627370495\n}"
response = http.request(request)
puts response.read_body{
"data": {
"changed": true,
"price_cents": 0,
"video": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "unsubmitted",
"template": "ai_videographer",
"preset": "<string>",
"format": "vertical",
"duration_seconds": 123,
"video_url": "<string>",
"thumbnail_url": "<string>",
"billed_cents": 0,
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"posts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "tiktok",
"status": "scheduled",
"media_type": "video",
"permalink": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"price_cents": 0,
"price_estimated": true,
"script_approved": true,
"user_script": true,
"script": "<string>",
"script_sections": [
{
"label": "<string>",
"text": "<string>"
}
],
"scenes": [
{
"id": "<string>",
"label": "<string>",
"duration_seconds": 123,
"voiceover": "<string>",
"caption": "<string>",
"prompt": "<string>"
}
],
"slides": [
{
"id": "<string>",
"role": "<string>",
"headline": "<string>",
"body": "<string>",
"position": "<string>",
"prompt": "<string>",
"image_url": "<string>"
}
],
"interview": {
"speakers": [
{
"id": "<string>",
"role": "<string>",
"face_name": "<string>"
}
],
"turns": [
{
"id": "<string>",
"speaker_id": "<string>",
"text": "<string>"
}
]
},
"caption": "<string>",
"hashtags": [
"<string>"
],
"post_caption": "<string>",
"music": {
"library": "lumisreach",
"track_id": "<string>",
"title": "<string>",
"status": "pending"
},
"brief": "<string>",
"language": "<string>",
"source_url": "<string>",
"target_duration_seconds": 0,
"avatar_provider": "heygen",
"avatar_layout": "center",
"background_mode": "static",
"subtitle_style": "none",
"subtitle_emojis": true,
"video_model": "<string>",
"videographer": {
"sources": [
"any"
],
"model": "<string>",
"actions": 0,
"presenter_narrates": true
},
"narration": 0,
"post_format": "text",
"post_orientation": "square",
"dashboard_url": "<string>"
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}