Chillin Render API는 아래와 같은 JSON 구조를 정의하여 렌더링할 비디오 콘텐츠와 매개변수를 지정할 수 있게 해줍니다.
Render API 크레딧을 받으려면 [email protected]으로 연락하세요.
대시보드에 가서 Render API 키를 생성하세요.
API 키와 함께 Render API 엔드포인트에 POST 요청을 보내세요:
1curl -X POST https://render-api.chillin.online/render/v1 \
2-H "Accept: application/json" \
3-H "Content-Type: application/json" \
4-H "Authorization: Bearer YOUR_API_KEY" \
5-d @project.json
1{
2 "compositeWidth": 1920,
3 "compositeHeight": 1080,
4 "fps": 30,
5 "projectData": {
6 "type": "",
7 "width": 1920,
8 "height": 1080,
9 "fill": "#000000",
10 "view": [
11 {
12 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0",
13 "type": "Image",
14 "start": 0,
15 "duration": 5,
16 "trackIndex": 0,
17 "x": -570.0335392757963,
18 "y": -170.90659033307685,
19 "blendMode": "normal",
20 "anchorX": 1302,
21 "anchorY": 2312,
22 "rotation": 0,
23 "scaleX": 0.23356401384083045,
24 "scaleY": 0.23356401384083045,
25 "alpha": 1,
26 "skewX": 0,
27 "skewY": 0,
28 "keyframes": [],
29 "externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg",
30 "ext": "jpeg"
31 }
32 ],
33 "audio": [],
34 "effect": [],
35 "transition": [],
36 "version": 0,
37 "duration": 5
38 }
39};
40
모든 JSON 객체는 비디오의 조합 너비, 조합 높이 및 해상도를 지정하는 비디오 프로젝트 객체를 포함합니다.
프로젝트 객체는 비디오 렌더링을 위한 기본 매개변수인 너비, 높이, 길이, 배경 색상 등을 포함합니다.
프로젝트에는 하나 이상의 요소도 포함되며, 각 요소는 비디오, 이미지, 텍스트, 도형, 오디오 또는 효과와 같은 비디오 구성 요소를 나타냅니다.
각 요소는 위치, 크기, 색상, 내용 등과 같은 구성 요소에 대한 특정 매개변수를 포함합니다.
1{
2 "compositeWidth": 1920,
3 "compositeHeight": 1080,
4 "fps": 30,
5 "projectData": {
6 "type": "",
7 "width": 1920,
8 "height": 1080,
9 "fill": "#000000",
10 "view": [
11 {
12 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0",
13 "type": "Image",
14 "start": 0,
15 "duration": 5,
16 "trackIndex": 0,
17 "x": -570.0335392757963,
18 "y": -170.90659033307685,
19 "blendMode": "normal",
20 "anchorX": 1302,
21 "anchorY": 2312,
22 "rotation": 0,
23 "scaleX": 0.23356401384083045,
24 "scaleY": 0.23356401384083045,
25 "alpha": 1,
26 "skewX": 0,
27 "skewY": 0,
28 "keyframes": [],
29 "externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg",
30 "ext": "jpeg"
31 }
32 ],
33 "audio": [],
34 "effect": [],
35 "transition": [],
36 "version": 0,
37 "duration": 5
38 }
39};
40
귀하의 요청 JSON은 이 문서에 정의된 JSON 스키마를 엄격하게 준수해야 합니다. Chillin Video Editor에서 해당 요청 JSON을 테스트하고 생성할 수 있습니다.