동영상 생성
주제를 입력하면 해당 주제에 대한 동영상을 생성합니다.
1. API endpoint
POST https://app.aistudios.com/api/odin/v3/tools/video-generator
2. Request parameter
key | desc | type | required | default |
---|---|---|---|---|
topic | 생성할 동영상 주제 | String | true | - |
3. Response parameters
key | desc | type |
---|---|---|
downloadUrl | 생성된 동영상 데이터의 URL | String |
정보
생성된 동영상 데이터는 언제든지 삭제될 수 있으므로 생성된 URL을 직접 사용하지 않고 다운로드 받아 사용해야 합니다.
4. Sample Request
- cURL
- Node.js
- Python
curl https://app.aistudios.com/api/odin/v3/tools/video-generator \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"topic": "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."
}'
import axios from "axios";
axios.post("https://app.aistudios.com/api/odin/v3/tools/video-generator",
{
"topic": "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."
},
{
headers: {
"Authorization": ${API KEY},
"Content-Type": "application/json",
}
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})
import requests
import json
url = "https://app.aistudios.com/api/odin/v3/tools/video-generator"
body = {
"topic": "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."
}
headers = {
"Content-Type": "application/json",
"Authorization": ${API KEY}
}
r = requests.post(url, data=json.dumps(body), headers=headers)