Create a Video Short
Learn how to generate AI-powered video shorts with talking avatars from text content, perfect for social media and educational content.
Step 1: Get Available Avatars
First, see what avatars are available for your video by calling /video/GetAvatars:
curl -X GET "https://api.autocontentapi.com/video/GetAvatars" \
-H "Authorization: Bearer YOUR_API_TOKEN"Example Response
[
{
"id": "1",
"name": "Professional Woman",
"gender": "F"
},
{
"id": "2",
"name": "Business Man",
"gender": "M"
},
{
"id": "3",
"name": "Casual Speaker",
"gender": "F"
}
]Important: Choose avatar IDs for your video - you'll need at least one!
To change an avatar's narration voice, pass a numeric voiceId from /content/GetVoices:
Step 2: Create Video Short from Text
Use /video/CreateShortsFromContent to generate a video short from text content:
Request Parameters
text
Content for the video
Yes
Any text content
avatar1
Primary avatar ID
Yes
Avatar ID from /video/GetAvatars
avatar2
Secondary avatar ID
No
Avatar ID for dialogue format
subtitles
Include subtitles
No
true/false (default: true)
prompt
Instructions for video creation
No
Any guidance text
callbackData
Optional callback data
No
Any string
scheduledOn
Schedule for later
No
ISO datetime
Use Track Requests & Status Codes for the shared polling flow, request ID patterns, and callbackData guidance.
Example Response
Step 3: Poll Video Status
Check the video generation progress using /content/Status/{id}:
While Processing
Status Codes:
0= Pending (queued for processing)5= Processing (video generation in progress)100= Completed (video ready!)
Step 4: Get Your Video Short
When status reaches 100, your video is ready:
🎉 Success! Your video short is ready at the video_url!
Alternative Methods
Method 2: Create from Audio Content
If you already have audio content, use /video/CreateShorts:
Method 3: Create from Custom Script
For precise control, use /video/CreateShortsFromScript with dialogue format:
Each script line is assigned to the avatarId on that line. If an avatar has lip sync disabled, the renderer still keeps speaker-specific avatar segments and subtitles aligned to the script instead of collapsing the dialogue into a single avatar track.
Method 4: Create from Deep Research
Convert research findings into video content using /video/CreateShortsFromDeepResearch:
View Your Video Shorts
Get all your created video shorts:
Response
Avatar Selection Tips
Single Avatar (Presentation Style)
Use only
avatar1for lecture/presentation formatGreat for educational content, tutorials, announcements
More focused, single-speaker delivery
Dual Avatar (Conversation Style)
Use both
avatar1andavatar2for dialogue formatPerfect for interviews, debates, Q&A sessions
Creates more engaging, conversational content
Gender Considerations
Mix genders (
"M"and"F") for diverse representationConsider your target audience preferences
Professional vs. casual avatar styles
Content Types That Work Well
Educational Content
Product Announcements
Tutorial Content
Marketing Content
Best Practices
Content Length
Optimal: 30-90 seconds for social media
Maximum: 3-5 minutes for detailed explanations
Minimum: 15 seconds for quick announcements
Text Guidelines
Clear Structure: Use bullet points or numbered steps
Conversational Tone: Write as you would speak
Call to Action: End with clear next steps
Keyword Rich: Include relevant terms for SEO
Visual Considerations
Subtitles: Always enable (default
true) for accessibilityAvatar Choice: Match avatar style to content tone
Prompt Instructions: Guide the delivery style and energy
Error Handling
Invalid Avatar ID
Text Too Long
Processing Failed
Use Cases
Social Media Marketing: Create engaging shorts for Instagram, TikTok, YouTube Shorts
Employee Training: Generate training videos for onboarding and skill development
Product Demos: Show features and benefits with professional avatars
Educational Content: Create course materials and explainer videos
Customer Support: Build FAQ videos with common questions and answers
Internal Communications: Company updates and announcements
What's Next?
🎧 Learn about Creating Podcast Episodes for audio content
🐦 Explore Creating Content from X Feeds
🔬 Try Deep Research Podcasts for comprehensive content
📖 Check out more Code Samples in different languages
🗣️ Discover Custom Voices for audio content
❓ Have questions? Visit our FAQ
Last updated