Create Product Ad Video
Videos
Product Ads
Create product advertisement videos with AI avatars and scrolling website capture
POST
Create Product Ad Video
Try it out! Use the API playground on the right to test the Product Ads endpoint directly.
Overview
Product Ads combine AI avatars with automatic website scrolling to create engaging product advertisement videos. The avatar presents your product while the website scrolls in the background, showcasing your product page. This format is ideal for:- Product launches and demos
- E-commerce advertising
- SaaS product showcases
- Website feature highlights
- Landing page promotions
Product Ads automatically capture your website and create a scrolling video that syncs with the avatar’s narration. The website appears behind the avatar after a customizable intro duration.
Endpoint
Required Fields
The script for the avatar to speak (1-10,000 characters). Write naturally as if presenting your product.
Product Ad specific settings
Avatar ID from
/v1/avatar/list. Choose an avatar that matches your brand and target audience.Voice ID from
/v1/voice/list. The voice used for the avatar’s speech.Optional Fields
Video name (max 100 characters). If not provided, a name will be auto-generated.
Lipsync quality model for avatar synchronization:
base: Standard lipsync quality (faster, lower cost)pro: Enhanced lipsync quality (slower, higher quality)
Caption settings for the video
Video aspect ratio:
ratio_9_16: Vertical (TikTok, Reels, Shorts) - Recommendedratio_16_9: Horizontal (YouTube)ratio_1_1: Square (Instagram)
Language code for the video (2 characters). Example:
en, esEnable automatic sticker generation for the video. Adds engaging visual elements automatically.
Voice audio settings
HTTPS URL to receive completion notification (max 500 characters). Highly recommended for production use.
Custom metadata object (max 5KB). Store any additional data you need to associate with this video.
Request Examples
Basic Product Ad
Product Ad with Custom Settings
Response
Webhook Notification
When your video is ready, we’ll POST to your webhook URL:Webhook Payload
Your webhook endpoint must return a
200 status code. We’ll retry up to 3 times if the request fails.Scroll Modes
Available scroll modes for website behavior:| Mode | Description | Use Case |
|---|---|---|
restart | Scroll down, jump to top when reaching bottom | Product listings, feature pages |
loop | Ping-pong scroll (down then up, then down…) | Landing pages, hero sections |
once | Scroll down only, stay at bottom | Long-form content, testimonials |
fixed | No scroll, just capture initial view | Static pages, splash screens |
Lipsync Models
| Model | Quality | Speed | Cost | Best For |
|---|---|---|---|---|
base | Standard | Faster | Lower | Quick content, social media |
pro | Enhanced | Slower | Higher | Professional ads, brand content |
Caption Presets
Available caption presets for thecaption.preset field:
| Preset | Description |
|---|---|
default | Default caption style with bold text and shadow effects |
beast | Bold uppercase style with Komika font |
umi | Yellow glowing text style |
tiktok | Viral & trendy style, perfect for social media |
wrap1 | Wrapped style with red background highlight |
wrap2 | Wrapped style with blue background highlight (uppercase) |
ariel | Bold uppercase style with purple highlight |
hooked | Brand style with purple background |
classic | Clean, simple captions with black background |
active | Green background with bold text |
bubble | White background bubble style |
glass | Glassmorphic transparency effect |
comic | Comic Sans font with colorful style |
glow | Pink and orange glow effects |
pastel | Soft pastel pink background |
neon | Green neon glow effect |
retroTV | Retro TV style with cyan glow |
red | Red glow effect with white text |
marker | Yellow marker/highlighter style |
modern | Contemporary white background style |
blue | Blue background style |
vivid | Vibrant pink background with uppercase text |
Best Practices
Choose the Right Avatar
Select an avatar that matches your brand personality and target audience demographics.
Optimize Website URL
Use a clean, focused landing page that highlights your product’s key features.
Set Intro Duration
Use 2-5 seconds for the avatar intro to grab attention before showing the website.
Select Scroll Mode
Use
restart for product listings, loop for hero sections, once for long content.Use Pro Lipsync
Choose
pro lipsync model for professional ads and brand content.Add Background Music
Enhance engagement with subtle background music that complements the narration.
Website URL Guidelines
Best Practices
- Use HTTPS URLs only
- Ensure the website loads quickly
- Use mobile-responsive pages
- Avoid pages with heavy animations or popups
- Test the URL in an incognito browser window
Recommended Page Types
- Product landing pages
- Feature highlight pages
- Pricing pages
- Homepage hero sections
- Demo pages
Error Handling
| Error | Description | Solution |
|---|---|---|
script: Script is required | Missing or empty script | Add the script field with your narration |
script: Script cannot exceed 10000 characters | Script too long | Shorten your script to under 10,000 characters |
productAdSettings.websiteUrl: Website URL is required | Missing website URL | Add the websiteUrl field in productAdSettings |
productAdSettings.websiteUrl: Invalid website URL | Invalid URL format | Ensure URL starts with https:// and is valid |
avatarId: Avatar "xxx" not found | Invalid avatar ID | Use a valid avatar ID from /v1/avatar/list |
voiceId: Voice "xxx" not found | Invalid voice ID | Use a valid voice ID from /v1/voice/list |
productAdSettings.avatarIntroSeconds: Number must be between 1 and 30 | Invalid intro duration | Use a value between 1 and 30 seconds in productAdSettings.avatarIntroSeconds |
Not enough credits | Insufficient credits | Top up your account credits |
Next Steps
List Avatars
Browse available avatars for your product ad
List Voices
Find the perfect voice for your avatar
List Music
Add background music to your ads
Webhooks Guide
Learn how to handle webhook notifications
Authorizations
Body
application/json
The script for the avatar to speak (1-10,000 characters)
Required string length:
1 - 10000Product Ad specific settings
Avatar ID from /v1/avatar/list
Required string length:
1 - 30Voice ID from /v1/voice/list
Required string length:
1 - 30Video name (max 100 characters)
Maximum string length:
100Lipsync quality model for avatar synchronization
Available options:
base, pro Enable automatic sticker generation for the video
Voice audio settings
Video aspect ratio
Available options:
ratio_9_16, ratio_16_9, ratio_1_1 Language code (2 characters)
Required string length:
2HTTPS URL to receive completion notification
Maximum string length:
500Custom metadata object (max 5KB)