Automate your Social Media

Social Media AI Video Maker

This demo creates videos for social media channels using OpenAI with Shotstack.

GET STARTED GitHub GitHub

About the Social Media AI Video Maker

Discover how to create engaging social media videos using AI video generation. This demo integrates OpenAI with Shotstack, enabling you to produce customized videos for your social media channels in seconds. Simply choose the type of content you want, such as a video featuring a scary story. The OpenAI API generates a voiceover script, which is then used to create 6 unique AI-generated image prompts and a headline.

These image prompts are used within AI clips using Shotstack's video editing API features, including effects and transitions. The generated voiceover is added to the video, and the headline becomes the video title. The video is then created through a single API call and displayed within the application. You can also automate the process to publish videos directly to social media or video sharing platforms.

This open-source project offers full transparency, letting you explore how AI video generation works and how to adapt it for your own social media automation or cloud video editing applications.

Get started with Shotstack's video editing API in two steps:

  1. Sign up for free to get your API key.
  2. Send an API request to create your video:
    curl --request POST 'https://api.shotstack.io/v1/render' \
    --header 'x-api-key: YOUR_API_KEY' \
    --data-raw '{
    "timeline": {
    "tracks": [
    {
    "clips": [
    {
    "asset": {
    "type": "video",
    "src": "https://shotstack-assets.s3.amazonaws.com/footage/beach-overhead.mp4"
    },
    "start": 0,
    "length": "auto"
    }
    ]
    }
    ]
    },
    "output": {
    "format": "mp4",
    "size": {
    "width": 1280,
    "height": 720
    }
    }
    }'