Prerequisites
Before you begin, make sure you have the following installed:- Python 3.10+ —
python3 --version - ffmpeg —
ffmpeg -version(used for video assembly) - pip —
pip --version
Create your .env file
Copy the example file and add your API key:Then open If you don’t have an ElevenLabs API key yet, set
.env and set your key:.env
GEMINI_API_KEY is the only required variable to get started. ElevenLabs keys and other overrides are optional — see Configuration for the full list.ALLOW_SILENT_VOICEOVER=1 in your .env to skip voiceover generation:.env
Make your first API call
Call Expected response:The
/api/identify-product with a brand name and viewer profile. Gemini returns the best-matching specific product SKU for that viewer.product_name field contains the specific retail SKU that Gemini selected based on the viewer profile. Use this value in subsequent calls to /api/analyze-video and /api/generate-ad-video.The exact product returned will vary — Gemini reasons about the viewer data and picks the most relevant SKU at the time of the call.
Next steps
Configuration
Set up ElevenLabs voiceover, tune model selection, and adjust video processing defaults
API reference
Full endpoint documentation with request and response schemas