Skip to main content

Overview

Animation transforms static images into dynamic animated videos with smooth motion and camera effects. The API creates engaging stop-motion style animations, adding movement, depth, and visual effects. You can optionally provide an image as a starting point and add audio for synchronized effects.

How It Works

  1. Provide a prompt - Describe the animation you want to create
  2. Optionally add an image - Use a starting image for the animation
  3. Optionally add audio - Include audio for synchronized effects
  4. API generates the animation - AI creates smooth animated video
  5. Download the result - Retrieve your animation video

Use Cases

  • Music videos - Create visually engaging content for songs
  • Social media content - Eye-catching animated posts and stories
  • B-roll footage - Generate supplementary video content
  • Creative projects - Artistic animations and motion graphics
  • Animated avatars - Moving profile pictures and characters

Best Practices

Using Source Images

When providing a starting image:
  • Match the style - The prompt should complement your image
  • High quality - Better images produce better animations
  • Clear subjects - Well-defined subjects animate more smoothly

Audio Synchronization

When adding audio:
  • Match the mood - Audio should complement the visual style
  • Set end_seconds to control output duration and provide audio long enough for that clip.
  • See the input file guide for supported audio formats.

Code Examples

Basic Animation from Prompt

Animation from Image

Animation with Audio

Pricing

Animation estimates credits from both fps and end_seconds. Increasing either increases the number of frames to render. Read credits_charged from the completed job for the final total.

Resolution Limits

width and height are required and must each be at least 64 pixels. Maximum dimensions depend on your subscription and the tool limits. See Resolution Limits.
Try this in our Google Colab Cookbook: Run this API with sample code. Just add your API key.

API Reference

Animation API Reference

View full API specification

Image to Video

Convert static images to dynamic videos

Text to Video

Generate videos from text descriptions