URL to Video
주어진 URL을 분석하여 동영상 콘텐츠를 생성하는 과정을 설명합니다.
1. 프로젝트생성 요청
URL과 옵션을 전달하여 프로젝트생성 요청하세요.
1-1. API endpoint
https://app.aistudios.com/api/odin/v3/automation/url_to_video
1-2. Request parameter
key | desc | type | required | default |
---|---|---|---|---|
url | 동영상 생성을 위한 참조 URL | String | true | - |
options | 비디오 생성에 사용할 구성 | Json | false | |
options.language | 비디오에 사용된 언어 언어 코드는 ISO 639-1 표준을 따릅니다. | String | false | - |
options.duration | 비디오 시간 ( 30 | 60 | 90 | 120 | 150 | 180 ) | Number | false | - |
options.objective | 비디오 영상의 목표 (예. 홍보, 교육, 설명) | String | false | - |
options.audience | 비디오 영상의 대상 청중(예. 마케터, 학생) | String | false | - |
options.tone | 비디오 영상의 어조(예. 명확하게, 격식있게) | String | false | - |
options.speed | 원래 속도와 비교한 비디오 재생 속도 ( 0.5 ~ 1.5 ) | Number | false | 1 |
options.media | 비디오 생성에 사용된 이미지 정보 ( search | free | premium | generative ) | String | false | - |
options.useGenerativeHighQuality | 고화질 AI 미디어 활성화 (options.media='generative' 경우에만 유효) ( true | false ) | Boolean | false | false |
options.style | 스타일 정보 (options.media='generative' 경우에만 유효) ( realistic | digitalPainting | sketch | oilPainting | pixelArt | watercolor | lowPoly | cyberpunk | fantasy | anime ) | String | false | realistic |
options.templateId | 비디오 생성에 사용할 템플릿ID | String | false | - |
options.model | 비디오 생성에 사용할 모델ID | String | false | - |
options.voiceOnly | 비디 오 생성에 사용된 모델의 목소리만 ( true | false ) | Boolean | false | false |
1-3. Response parameters
key | desc | type |
---|---|---|
projectId | 동영상 생성 요청한 프로젝트 ID | String |
automationJobId | 동영상 생성 요청한 작업 ID | String |
1-4. Sample Request
- cURL
- Node.js
- Python
curl https://app.aistudios.com/api/odin/v3/automation/url_to_video \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"url" : "https://www.futurelearn.com/info/courses/the-rise-of-k-culture-discover-the-korean-wave-hallyu/0/steps/369144",
"options" : {
"language": "en",
"speed": 1,
"templateId": "## template id ##",
"model": "## model id ##",
"voiceOnly": false
}
}'
import axios from "axios";
const token = ${API KEY};
const customWebhookUrl = ${webhook_delivery_address};
axios.post('https://app.aistudios.com/api/odin/v3/automation/url_to_video',
{
"url" : "https://www.futurelearn.com/info/courses/the-rise-of-k-culture-discover-the-korean-wave-hallyu/0/steps/369144",
"options" : {
"language": "en",
"speed": 1,
"templateId": "## template id ##",
"model": "## model id ##",
"voiceOnly": false
}
},
{
headers: {
'Authorization': ${token},
'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/automation/url_to_video"
body = {
"url" : "https://www.futurelearn.com/info/courses/the-rise-of-k-culture-discover-the-korean-wave-hallyu/0/steps/369144",
"options" : {
"language": "en",
"speed": 1,
"templateId": "## template id ##",
"model": "## model id ##",
"voiceOnly": false
}
}
headers = {
"Content-Type": "application/json",
"Authorization": ${API TOKEN}
}
r = requests.post(url, data=json.dumps(body), headers=headers)
2. 프로젝트생성 진행상황 확인
요청후 동영상 생성 현재 진행 상황을 확인합니다.
2-1. Api endpoint
GET https://app.aistudios.com/api/odin/v3/automation/progress?projectId=${projectId}
2-2. Response Parameters
Key | Description | Type |
---|---|---|
state | 자동화 프로세스의 현재 상태 | String |
progress | 비디오 생성 완료 비율 | Number |