Skip to main content

Build your first launch ad

Five minutes. Four API calls. One launch-ready video. We’ll build a 30-second product launch ad for a new pricing tier.
1

Get Your API Key

If you haven’t already, get your API key from the Babou dashboard and set it as an environment variable:
2

Create a Project

Every video starts with a project. Create one with a name and description:
Response:
Save the project.id - you’ll need it for the next steps!
3

Add a Chapter

Videos are organized into chapters. Let’s add one:
Response:
4

Submit a Video Prompt

Now for the magic! Submit a text prompt to create video content:
Response:
The video creation process typically takes 30-90 seconds. The chapter will be updated with the video content automatically.
5

Export Your Video

Once processing is complete, export the final video:
Response:
6

Check Export Status

Poll the export endpoint to check when your video is ready:
Response (when completed):

Complete Example

Here’s a complete script that creates a video from start to finish:

Next Steps

Upload Assets

Learn how to upload and use custom images, videos, and audio

Video Creation Workflow

Deep dive into creating complex multi-chapter videos

API Reference

Explore all available endpoints and options

MCP Server

Integrate with AI agents like Claude