Create Video Via API

Build automated image and video editing workflows and applications with Shotstack.

GET STARTED FOR FREE Example

The internet's most advanced image and video editing API

Shotstack is the most user friendly, powerful and reliable infrastructure solution to programmatically create video.

GET STARTED FOR FREE

The only thing you need is some JSON

{
"timeline": {
"soundtrack": {
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb4sgv-09kv-d808-1t8z-2s5uk70lgpli/source.mp3",
"effect": "fadeInFadeOut"
},
"fonts": [
{
"src": "https://templates.shotstack.io/basic/asset/font/raleway-regular.ttf"
},
{
"src": "https://templates.shotstack.io/basic/asset/font/raleway-bold.ttf"
}
],
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "html",
"html": "<p data-html-type=\"text\">Wild tiger numbers 40% higher than thought, says conservation group</p>",
"css": "p { color: #ffffff; font-size: 60px; font-family: Montserrat ExtraBold; text-align: left; }",
"width": 457,
"height": 680
},
"fit": "none",
"scale": 1,
"offset": {
"x": -0.264,
"y": 0.009
},
"position": "center",
"transition": {
"in": "wipeRight",
"out": "wipeLeft"
},
"start": 1,
"length": 5
},
{
"asset": {
"type": "html",
"html": "<p data-html-type=\"text\">Improved monitoring has shown nearly 6,000 tigers, says the International Union for Conservation of Nature, with the population ‘stable or increasing</p>",
"css": "p { color: #ffffff; font-size: 55px; font-family: Montserrat ExtraBold; text-align: left; }",
"width": 539,
"height": 759
},
"fit": "none",
"scale": 1,
"offset": {
"x": -0.226,
"y": -0.006
},
"position": "center",
"transition": {
"in": "wipeRight",
"out": "wipeLeft"
},
"start": 7,
"length": 5
},
{
"asset": {
"type": "html",
"html": "<p data-html-type=\"text\">There are thought to be between 3,726 and 5,578 wild tigers – 40% more than at the last assessment in 2015.</p>",
"css": "p { color: #ffffff; font-size: 55px; font-family: Montserrat ExtraBold; text-align: center; }",
"width": 1024,
"height": 395
},
"fit": "none",
"scale": 1,
"offset": {
"x": -0.006,
"y": -0.357
},
"position": "center",
"transition": {
"in": "wipeRight",
"out": "wipeLeft"
},
"start": 13,
"length": 5
}
]
},
{
"clips": [
{
"asset": {
"type": "image",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb4sry-0vvq-pb3j-droa-3yuxf90cmlve/source.jpg"
},
"transition": {
"in": "fade",
"out": "fade"
},
"offset": {
"x": 0.077,
"y": 0.006
},
"position": "center",
"fit": "crop",
"scale": 1,
"start": 0,
"filter": "darken",
"opacity": 1,
"effect": "zoomInSlow",
"length": 6
},
{
"asset": {
"type": "image",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb4sri-2ex2-vd1m-jt70-2p6asr0085pv/source.jpg"
},
"transition": {
"in": "fadeSlow",
"out": "fadeSlow"
},
"offset": {
"x": 0.212,
"y": 0.001
},
"position": "center",
"filter": "darken",
"opacity": 1,
"effect": "zoomInSlow",
"fit": "crop",
"scale": 1,
"start": 6,
"length": 6.5
},
{
"asset": {
"type": "image",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb4slz-3u7b-8x0e-vt0z-0fli8x0u7ddw/source.jpg"
},
"transition": {
"in": "fadeSlow",
"out": "fadeSlow"
},
"offset": {
"x": 0.233,
"y": -0.001
},
"position": "center",
"filter": "darken",
"opacity": 1,
"effect": "zoomInSlow",
"start": 12.5,
"length": 6.5
}
]
}
]
},
"output": {
"format": "mp4",
"size": {
"width": 1080,
"height": 1080
}
}
}

Tutorials & Resources

Learn how to programmatically create video via API

Demo's & Code Examples

Programmatically Create video by using demo code

Trim Video
Trim Video

Upload a video and trim the start and end to create a shortened clip using the Shotstack video editing API

Go to demo

Pexels Video Maker
Pexels Video Maker

Search the Pexels stock footage video library and the Shotstack API will automatically compile an edit with music and a title

Go to demo

Compress Video
Compress Video

Video file compressor reduces the file size of a video by reducing it's resolution, frames-per-second (fps) and compression settings

Go to demo