Skip to content

AI Shorts

Fresh

Purpose

Generate viral short-form videos optimized for TikTok, Instagram Reels, and YouTube Shorts from a text prompt using the Creatify AI Shorts API.

Prerequisites

  • Authenticated API access (Authentication SOP)
  • A text prompt or topic for the short-form video
  • Sufficient credits (5 per 30s of video)

Procedure

Step 1: Create an AI Shorts Task

bash
curl --request POST \
  --url https://api.creatify.ai/api/ai_shorts/ \
  --header "Content-Type: application/json" \
  --header "X-API-ID: $CREATIFY_API_ID" \
  --header "X-API-KEY: $CREATIFY_API_KEY" \
  --data '{
    "text": "5 reasons why AI video generation is the future of marketing",
    "aspect_ratio": "9:16",
    "duration": 30
  }'

Key parameters:

ParameterTypeRequiredDescription
textstringYesThe topic/script for the short
aspect_ratiostringNo9:16 (default for shorts)
durationintegerNoTarget duration in seconds

Response:

json
{
  "id": "shorts-task-uuid",
  "status": "pending"
}

Step 2: Poll for Completion

bash
curl --request GET \
  --url https://api.creatify.ai/api/ai_shorts/shorts-task-uuid/ \
  --header "X-API-ID: $CREATIFY_API_ID" \
  --header "X-API-KEY: $CREATIFY_API_KEY"

Completed response:

json
{
  "id": "shorts-task-uuid",
  "status": "done",
  "output": "https://cdn.creatify.ai/videos/shorts-output.mp4",
  "duration": 30
}

Step 3: Download Output

Download the video from the output URL.

Credit Cost

OperationCredits
Create AI Short5 per 30s

TIP

AI Shorts generates the entire video (visuals, text overlays, transitions, and voiceover) from a single text prompt. No separate asset uploads needed.

Best Practices for Short-Form Content

  1. Keep it concise -- Aim for 15-30 seconds for maximum engagement
  2. Hook first -- Start with the most compelling point
  3. 9:16 aspect ratio -- Required for TikTok, Reels, and Shorts
  4. Clear topic -- Specific prompts produce better results than vague ones

Verification Checklist

  • [ ] Task creation returns pending status
  • [ ] Final status is done with valid output URL
  • [ ] Video is in 9:16 vertical format
  • [ ] Content matches the input prompt
  • [ ] Video includes appropriate text overlays
  • [ ] Audio/voiceover is clear and synced

See Also