Caption Endpoint | Automatically add (translated) captions to your videos

Simply add captions to your video using an API with the caption endpoint. Take a look at the video below for a demo!

Signup for an API key.

*** Update ***

Automatically caption and translate your videos using AI or an SRT file.

  1. Removed all duration limitations on AI speech recognition
  2. Added a queue so you now get given an id which you can poll using GET https://labs.shotstack.io/caption/{id}
  3. Added a translate function. Now you can translate any video into a language of your choosing. Just add "translateTo": "nl" to the body.
  4. Added a new style black.

Demo

Old demo

Endpoint configuration

You can use this endpoint in two way:

  1. Use an SRT file to add captions
  2. Use AI to transcribe video and add captions

Call this endpoint by sending a POST request to:

https://labs.shotstack.io/caption

with the following body:

{
    "url": "https://shotstack-assets.s3.amazonaws.com/footage/scott-ko.mp4",
    "srtUrl": "https://raw.githubusercontent.com/shotstack/php-demos/main/examples/assets/transcript.srt",
    "style": "simple"
}

The srtUrl property is optional, and if omitted it automatically uses AI mode.

Make sure to add your Shotstack API production key to it. It won’t work with your staging key.

Limitations

Styling

You can only created two very simple caption styles. But could add more styles quite easily.

Use black and simple style now available. Use property "style": "black"}

Original video

Video with SRT captions

Video with AI captions (Azure)

Translations

Dutch

French

Just noticed the Loom doesn’t play the video audio :grimacing:

Check out the videos below the demo for examples.

How would you go about doing this with your Zapier app?