Prompt to Video
Create videos from prompts with AI-generated scripts and media
Overview
Prompt to Video transforms your text prompts into engaging videos with AI-generated scripts, voice narration and auto-generated or custom media. This format is ideal for:- Quick content creation without writing scripts
- Educational content and tutorials
- Social media content creation
- Marketing videos
- Storytelling and narrative content
Endpoint
Required Fields
/v1/voice/list. The voice used for narrating the generated script.media is not provided)ratio_9_16: Vertical (TikTok, Reels, Shorts) - Recommendedratio_16_9: Horizontal (YouTube)ratio_1_1: Square (Instagram)
en, esOptional Fields
- Minimum: 10 seconds
- Maximum: 120 seconds
- Default: 60 seconds
/v1/music/list for background music.presetSettings.presetSettings.mediaType is gameplay)Request Examples
With AI-Generated Images
With AI-Generated Videos
With Custom Media
With Gameplay
Short Video (30 seconds)
Long Video (120 seconds)
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.Media Types
Available media types forpresetSettings.mediaType:
| Type | Description |
|---|---|
ai-images | AI-generated images based on your generated script content |
ai-videos | AI-generated video clips synchronized with narration |
media | Stock media automatically selected based on script |
gameplay | Gameplay footage from popular games |
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 |
slidevid | 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 |
Target Duration Guide
Choose the right duration for your use case:| Duration | Use Case | Processing Time |
|---|---|---|
| 30s | Quick tips, single facts, viral hooks | 2-4 minutes |
| 45s | Short tutorials, product highlights | 3-5 minutes |
| 60s | Standard explainers, listicles | 4-6 minutes |
| 90s | Comprehensive guides, deep dives | 6-10 minutes |
| 120s | Extended content, detailed tutorials | 8-15 minutes |
Best Practices
Write Clear Prompts
Choose the Right Media Type
Match Voice to Content
Use Webhooks
Prompt Writing Tips
Good Prompts
“Create an engaging video about the top 5 productivity tips for remote workers. Target busy professionals and use a motivational tone.” “Explain how blockchain technology works using simple analogies. Make it beginner-friendly and include real-world examples.” “Share 3 mind-blowing facts about space that most people don’t know. Hook viewers in the first 3 seconds.”Avoid
“Make a video” (too vague) “Video about stuff” (no direction) “Something interesting” (unclear intent)Error Handling
| Error | Description | Solution |
|---|---|---|
prompt: Prompt is required | Missing or empty prompt | Add the prompt field with your description |
prompt: Prompt cannot exceed 4000 characters | Prompt too long | Shorten your prompt to under 4000 characters |
voiceId: Voice not found | Invalid voice ID | Use a valid voice ID from /v1/voice/list |
targetDuration: Target duration must be at least 10 seconds | Duration too short | Use minimum 10 seconds |
targetDuration: Target duration cannot exceed 120 seconds | Duration too long | Use maximum 120 seconds |
presetSettings.preset: Preset is required | Missing preset when using auto-generated media | Add the preset field in presetSettings |
webhook: Must be a valid HTTPS URL | Invalid webhook URL | Ensure webhook URL starts with https:// |
media: Cannot have more than 50 media items | Too many media items | Reduce media array to 50 items or fewer |
Not enough credits | Insufficient credits | Top up your account credits |
Next Steps
List Voices
List Music
List Videos
Webhooks Guide
Authorizations
Body
Describe the video you want to create (1-4000 characters). The AI will generate a professional script from this prompt.
1 - 4000Target duration for the generated video in seconds
10 <= x <= 120Voice ID from /v1/voice/list
30Settings for auto-generated media
Enable automatic sticker generation for the video
Video aspect ratio
ratio_9_16, ratio_16_9, ratio_1_1 Language code (2 characters)
2Video name (max 100 characters)
100Music ID from /v1/music/list for background music
30Custom media items (max 50). If not provided, media will be auto-generated.
50Settings for gameplay footage
Voice audio settings
HTTPS URL to receive completion notification
500Custom metadata object (max 5KB)