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!

Step 2: Create Video Short from Text

Use /video/CreateShortsFromContent to generate a video short from text content:

Request Parameters

Parameter
Description
Required
Options

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

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:

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 avatar1 for lecture/presentation format

  • Great for educational content, tutorials, announcements

  • More focused, single-speaker delivery

Dual Avatar (Conversation Style)

  • Use both avatar1 and avatar2 for dialogue format

  • Perfect for interviews, debates, Q&A sessions

  • Creates more engaging, conversational content

Gender Considerations

  • Mix genders ("M" and "F") for diverse representation

  • Consider 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 accessibility

  • Avatar 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