Skip to main content
Version: Latest

Scripts to Video

Describe the process of creating video content based on a given sentence.


1. Make a request

Please request project creation by delivering sentences and options.

1. API endpoint

https://app.aistudios.com/api/odin/v3/automation/scripts_to_video

1-2. Request parameter

keydesctyperequireddefault
scriptsSentence for creating a videoStringtrue-
optionsConfiguration for video generationJsonfalse{}
options.goalPurpose of video generation'auto', 'business', 'youtube', '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', 'business', 'youtube', 'education'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

1-3. Response Parameters

keydesctype
projectIdID of the video project createdString
automationJobIdJob ID requested to create a videoString

1-4. Sample Request

curl https://app.aistudios.com/api/odin/v3/automation/scripts_to_video  \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"scripts" : "Lorem Ipsum is simply dummy text of the printing and typesetting industry.\nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"options" : {
"goal" : "youtube",
"duration" : 30,
}
}'


2. Check the progress of project creation

Create a video after request Check your current progress.

2-1. Api endpoint

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

2-2. Response Parameters

KeyDescriptionType
stateCurrent state of the automation processString
progressVideo Generation Completion RateNumber

2-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)
});


3. Export

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