Skip to main content
Version: Latest

Docs to Video

To upload a document file and export a video, you must proceed to the following steps.


1. Uploading Files and Verifying URIs

Upload the file that will be used to create the video in the document.

1-1. Api endpoint

https://app.aistudios.com/api/odin/v3/automation/docs-to-video/upload-files

1-2. Request Parameters

KeyDescriptionTypeRequiredDefault
filesOne or more files to uploadFile (Binary)true-

1-3. Response Parameters

KeyDescriptionType
uploadResultsList of uploaded file detailsArray
uploadResults[].uriUnique identifier of the uploaded fileString
uploadResults[].fileNameSource File NameString

1-4. Sample request:

import axios from "axios";
import FormData from "form-data";
import fs from "fs";

const formData = new FormData();
formData.append("files", fs.createReadStream("sampleFile1.pptx"));
formData.append("files", fs.createReadStream("sampleFile2.pdf"));

axios.post("https://app.aistudios.com/api/odin/v3/automation/docs-to-video/upload-files", formData, {
headers: {
"Authorization": `${API_KEY}`,
...formData.getHeaders(),
},
})
.then((res) => console.log(res.data))
.catch((error) => console.error(error));


2. Request to create a video

Please request including the URI information from the file upload.

2-1. Api endpoint

POST https://app.aistudios.com/api/odin/v3/automation/docs-to-video

2-2. Request Parameters

keydesctyperequireddefault
filesFile upload Information received from APIArraytrue-
files[].uriUnique identifier of the uploaded fileStringtrue-
files[].fileNameSource File NameStringtrue-
optionsConfiguration for video generationJsonfalse{}
options.goalPurpose of video generation'business', 'education'false'business'
options.durationVideo Time'auto', '30', '60', '90', '120'false'auto'
options.speedVideo playback speed relative to original speed'auto', Numberfalse-
options.languageThe language used in the video.
The language code follows the ISO 639-1 standard.
'auto', Stringfalse-
options.mediaImage information used to create video (valid only for options.filebackground=false)'auto', 'search', 'free', 'generative'false-
options.styleStyle information (valid only for options.media='generative')'auto', 'photo', 'illustration', 'vector', '3d'false-
options.fileBackgroundWhether to use the file you provided in the background of the videoBooleanfalsetrue
options.orientationScreen orientation of the created video'web', 'mobile'false'web'
options.modelID of the AI model to use for video generation

2-3. Response Parameters

keydesctype
projectIdID of the video project createdString

2-4. Sample request:

import axios from "axios";
const token = ${API KEY};

axios.post('https://app.aistudios.com/api/odin/v3/automation/docs-to-video',
{
"files":[
{
"uri": "39b247fd3a70d86b7849808fc1587c27.pptx",
"fileName": "sampleFile.pptx"
}
],
"options": {
"goal": 'business'
"fileBackground": true
}
},
{
headers: {
'Authorization': ${token},
'Content-Type': 'application/json'
}
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})


3. Check progression conditions

Review the current progress of project creation.

3-1. Api endpoint

GET https://app.aistudios.com/api/odin/v3/automation/progress?projectId=${projectId}

3-2. Response Parameters

KeyDescriptionType
stateCurrent state of the automation processString
progressVideo Generation Completion RateNumber

3-3. Sample request

import axios from "axios";

const projectId = "your_project_id";
const token = "your_api_key";

axios.get(`https://app.aistudios.com/api/odin/v3/automation/progress/${projectId}`, {}, {
headers: {
"Authorization": token,
"Content-Type": "application/json"
}
})
.then((res) => {
console.log(res.data)
})
.catch((error) => {
console.error(error)
});


4. Export

Use Project Export to Project a video of a created project.