Skip to content

Create AI Short

FreshPOST
POST https://api.creatify.ai/api/ai_shorts/

Create a new AI short-form video. AI Shorts automatically generates short, engaging video content optimized for platforms like TikTok, Instagram Reels, and YouTube Shorts.

Request Body

NameTypeRequiredDescription
video_urlstringNoSource video URL to create a short from
textstringNoScript or topic for the short
aspect_ratiostringNoOutput aspect ratio. Defaults to 9:16 for shorts
stylestringNoVisual style preset
durationstringNoTarget duration (e.g., 15, 30, 60)

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/ai_shorts/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "text": "5 reasons why our product saves you time",
    "aspect_ratio": "9:16",
    "duration": "30"
  }'

Response

json
{
  "id": "short-001",
  "status": "pending",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Task created successfully
400Bad request -- invalid parameters
401Unauthorized -- invalid API credentials
402Insufficient credits
429Rate limit exceeded
500Internal server error

Workflow

  1. Create the AI short task
  2. Poll GET /api/ai_shorts/{id}/ until status is done
  3. Preview with POST /api/ai_shorts/{id}/preview/
  4. Render final with POST /api/ai_shorts/{id}/render/

TIP

AI Shorts defaults to 9:16 vertical format, optimized for mobile-first social platforms.