Skip to main content
Version: 1.4.x

Template-based Export

Template-based Export utlilizes preseted project informations(i.e tamplates) and modifying only some parts of it (scripts, images, etc.) to synthesize new video.


1. API endpoint

https://app.deepbrain.io/api/odin/v3/editor/project/${key}

2. Request parameter

keydesctyperequireddefault
updatesContent to change in the existing template.Jsontrue-
updates.backgroundAudioProject Background Audio information.Jsonfalse-
updates.valueChanges by clip in the project.Array(json)true-
updates.value[].sceneIdxThe index of the scene to be changedInttrue-
updates.value[].typeType of clip to changeString enum
(aiModel, shape, image, textImage, videoImage, audio, background)
true-
updates.value[].valuesContent to change.Jsontrue-
webhookUrlUrl address where the synthesis result should be sent.Stringfalse-

3. Response parameters

keydesctype
projectIdProject Id - Fetching the Chroma-key video data that has been exported.String

4. Sample Request

curl https://app.deepbrain.io/api/odin/v3/editor/project/${project key}  \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"updates": [
{
"sceneIdx": 0,
"type": "aiModel",
"values": {
"script": "changed script"
}
},
{
"sceneIdx": 1,
"type": "textImage",
"values": {
"text": "change text",
"fontSize": 100
}
}
],
"webhookUrl": ${webhook_delivery_address}
}'