Prop | Type | Required | Example | Value Range | Description |
---|---|---|---|---|---|
type | string | false | video | video | animation | The type of the project (e.g., "video" or "animation"). |
width | number | true | 1920 | 720 - 3840 | The width of the project canvas. Used as the base resolution for scaling. |
height | number | true | 1080 | 720 - 3840 | The height of the project canvas. Used as the base resolution for scaling. |
fill | string | true | #000000 | - | The background color of the project canvas, in hex format. |
duration | number | true | 10 | > 0 | The total duration of the project, in seconds. |
view | array | true | - | - | An array of elements representing the visual content in the project. |
audio | array | false | - | - | An array of audio tracks used in the project. |
effect | array | false | - | - | An array of visual effects applied to the canvas. |
transition | array | false | - | - | An array of transitions applied between different views. |
Note: The
view
array must contain at least one element.
1{
2 "type": "",
3 "width": 1920,
4 "height": 1080,
5 "fill": "#000000",
6 "view": [
7 {
8 "id": "8ecf7475-2c6c-47f9-827b-a09c7913f4c0",
9 "type": "Image",
10 "start": 0,
11 "duration": 5,
12 "trackIndex": 0,
13 "x": -570.0335392757963,
14 "y": -170.90659033307685,
15 "blendMode": "normal",
16 "anchorX": 1302,
17 "anchorY": 2312,
18 "rotation": 0,
19 "scaleX": 0.23356401384083045,
20 "scaleY": 0.23356401384083045,
21 "alpha": 1,
22 "skewX": 0,
23 "skewY": 0,
24 "keyframes": [],
25 "externalUrl": "https://images.pexels.com/photos/30465303/pexels-photo-30465303.jpeg",
26 "ext": "jpeg"
27 }
28 ],
29 "audio": [],
30 "effect": [],
31 "transition": [],
32 "version": 0,
33 "duration": 5
34 }
35