The internet's most advanced image and video editing API

Shotstack is the most user friendly, powerful and reliable infrastructure solution to automatically generate social media images.

{
    "timeline": {
        "fonts": [
            {
                "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/Arimo.ttf"
            }
        ],
        "background": "#1DA1F2",
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "html",
                            "html": "<p>Someone's Name<p/>",
                            "css": "p { font-family: 'Arimo'; color: #000000; font-size: 38px; text-align: left; font-weight: bold}",
                            "width": 500
                        },
                        "start": 0,
                        "length": 5,
                        "offset": {
                            "x": 0.1,
                            "y": 0.22
                        }
                    },
                    {
                        "asset": {
                            "type": "html",
                            "html": "<p>@handle<p/>",
                            "css": "p { font-family: 'Arimo'; color: #7F7F7F; font-size: 38px; text-align: left; }",
                            "width": 500
                        },
                        "start": 0,
                        "length": 5,
                        "offset": {
                            "x": 0.1,
                            "y": 0.17
                        }
                    },
                    {
                        "asset": {
                            "type": "html",
                            "html": "<p>Lorum ipsum dolor sit amet, consectetur, adipiscing elit. Donec cursus consequat libero, in cursus lorem pretium quis.<p/>",
                            "css": "p { font-family: 'Arimo'; color: #000000; font-size: 56px; text-align: left; }",
                            "width": 675,
                            "height": 350
                        },
                        "start": 0,
                        "length": 5,
                        "offset": {
                            "x": 0,
                            "y": -0.1
                        }
                    },
                    {
                        "asset": {
                            "type": "image",
                            "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/templates/tweet/photo.png"
                        },
                        "start": 0,
                        "length": 5,
                        "fit": "none",
                        "scale": 0.5,
                        "offset": {
                            "x": -0.25,
                            "y": 0.2
                        }
                    }
                ]
            },
            {
                "clips": [
                    {
                        "asset": {
                            "type": "html",
                            "html": "<div></div>",
                            "width": 800,
                            "height": 700,
                            "background": "#FFFFFF"
                        },
                        "start": 0,
                        "length": 5
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "png",
        "size": {
            "width": 1000,
            "height": 1000
        }
    }
}
Generated output example

Tutorials & Resources

Learn how to automatically generate social media images via API

Demo's & Code Examples

Automatically generate social media images 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

Christmas Personalised Video
Christmas Personalised Video

Create a personalised video with a Christmas message using the Shotstack API. Merge text and video from a form to generate a video

Go to demo

Watermark Video
Watermark Video

Add a watermark to a video using the Shotstack API. This free demo lets you upload a video and add a watermark

Go to demo