How do I create an animated gif via API?

Creating the GIF

You can create animated gifs by sending a POST request to /animated_gifs with a template uid (unique ID) and a list of template modifications you want to apply.

Retrieving the GIF

You can poll the GET request to the /animated_gifs/:uid endpoint for status updates and to retrieve the animated gif object referenced by it's uid. Animated gifs are usually rendered within a few seconds. When rendering is finished, the status changes to completed and returns the finished Gif under image_url.

Using a Webhook

By using a webhook, you can be notified when the animated gif is rendered. Use the webhook_url parameter to tell Bannerbear where to POST the full Animated gif object, once the rendering is completed. The animated gif object will be posted to your webhook as JSON.

Check the API Reference ↗ page for more information on this.

Have a question?

Contact our customer support team anytime via chat or email