Skip to main content

Overview

The AI GIF Generator API creates animated GIFs from a text prompt. Use it to add GIF generation to an application or automated media workflow. The endpoint accepts style.prompt and an output_format of gif, mp4, or webm. To animate an existing image, use the Image-to-Video API guide. The GIF endpoint does not accept an image input or a custom duration.

Looking for the no-code GIF generator?

Create a GIF in your browser without writing code.

How It Works

  1. Write a prompt - Describe the subject, action, and visual style in style.prompt
  2. Choose the file format - Set output_format to gif, mp4, or webm
  3. Create the job - Submit the request and wait for completion
  4. Download the output - Save the completed animation from the returned download URL

Use Cases

  • Social media content - Create eye-catching animated posts
  • Reactions and memes - Generate custom reaction GIFs
  • Marketing materials - Animated graphics for campaigns
  • Website elements - Dynamic visual content
  • Messaging - Custom animated stickers and GIFs

Code Examples

Generate a GIF from text

Pricing

Try this in our Google Colab Cookbook: Run this API with sample code. Just add your API key.

API Reference

AI GIF Generator API Reference

View full API specification

Animation

Create video animations with advanced effects

AI Meme Generator

Generate memes with text and templates