Script to Video
Create videos from scripts with AI-generated or custom media
Overview
Script to Video transforms your written scripts into engaging videos with voice narration and auto-generated or custom media. This format is ideal for:- Educational content and tutorials
- Social media content creation
- Marketing videos
- Storytelling and narrative content
- News-style videos
Endpoint
Required Fields
/v1/voice/list. The voice used for narrating the script.ai-images: AI-generated images based on scriptai-videos: AI-generated video clipsmedia: Use stock media (requiresmediaarray)gameplay: Use gameplay footage (requiresgameplaySettings)
Optional Fields
mediaType is ai-images or ai-videos)mediaType is media. If not provided, media will be auto-generated based on mediaType.mediaType is gameplay)/v1/music/list for background music.ratio_9_16: Vertical (TikTok, Reels, Shorts)ratio_16_9: Horizontal (YouTube)ratio_1_1: Square (Instagram)
Request Examples
With AI-Generated Images
With AI-Generated Videos
With Custom Media
With Gameplay
Response
Webhook Notification
When your video is ready, we’ll POST to your webhook URL:200 status code. We’ll retry up to 3 times if the request fails.Visual Style Presets
Available visual style presets for thepresetSettings.preset field:
Media Types
Available media types formediaType:
Caption Presets
Available caption presets for thecaption.preset field:
Best Practices
Write Clear Scripts
Choose the Right Media Type
Match Voice to Content
Use Webhooks
Error Handling
Next Steps
List Voices
List Music
List Videos
Webhooks Guide
Authorizations
Body
The script for the video narration (1-10,000 characters)
1 - 10000Voice ID from /v1/voice/list
30Type of media to generate
ai-images, ai-videos, media, gameplay Video name (max 100 characters)
100Music ID from /v1/music/list for background music
30Array of media IDs (max 50). The media must already be uploaded to your account. Required when mediaType is 'media'. If not provided, media will be auto-generated.
50Media ID
Settings for auto-generated media (used when mediaType is 'ai-images' or 'ai-videos')
Settings for gameplay footage (used when mediaType is 'gameplay')
Voice audio settings
Enable automatic sticker generation for the video
Video aspect ratio
ratio_9_16, ratio_16_9, ratio_1_1 HTTPS URL to receive completion notification
500Custom metadata object (max 5KB)