Convert Media 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 convert media.

GET STARTED FOR FREE

The only thing you need is some JSON

{
"timeline": {
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/0lquwzley0/zzyb5hue-3asj-yc0b-jzsy-1imdlv1j4cyv/source.mp4",
"trim": 2
},
"offset": {
"x": 0,
"y": 0
},
"position": "center",
"start": 0,
"length": 4
}
]
}
]
},
"output": {
"size": {
"width": 276,
"height": 276
},
"format": "gif",
"repeat": true,
"quality": "low",
"fps": 12
}
}
Convert media using the Shotstack Media Convert API

Tutorials & Resources

Learn how to programmatically convert media via API

Programmatically view video, image and audio metadata
Programmatically view video, image and audio metadata

How to use the Shotstack Media Inspector to view metadata from video, image and audio files.

Read more

Convert MP4 video to MP3 audio using Python
Convert MP4 video to MP3 audio using Python

How to convert MP4 videos to MP3 audio files using Python and the Shotstack video editing API.

Read more

Convert MP4 video to GIF using Python
Convert MP4 video to GIF using Python

Convert MP4 videos to GIF using Python, Shotstack Python SDK, and the Shotstack video editing API.

Read more

Demo's & Code Examples

Programmatically Convert media by using demo code

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

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