Skip to main content
Version: Latest

Template-based export


1. API endpoint

https://aistudios.com/api/odin/editor/project/${key}

2. Request parameter

keydesctyperequireddefault
updatesContent to change in the existing template.Array(json)true-
updates[].sceneIdxThe index of the scene to be changedInttrue-
updates[].propertyType of clip to change (AIModel or clips)String enum(AIModel, clips)true-
updates[].valuesContent to changeJsontrue-

3. Response parameters

keydesctype
successProgress on Request SuccessBoolean
cube_usedNumber of Cubes usedInt
keyProject IDString

4. Sample Request

curl https://aistudios.com/api/odin/editor/project/${project key}  \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"updates": [
{
"sceneIdx": 0,
"property": "AIModel",
"values": {
"script": "changed script"
}
},
{
"sceneIdx": 0,
"property": "clips",
"clipType": "image",
"clipIdx": 0,
"values": {
"locationX": 0,
"locationY": 0
}
}
]
}'