AI Shorts
FreshPurpose
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:
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The topic/script for the short |
aspect_ratio | string | No | 9:16 (default for shorts) |
duration | integer | No | Target 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
| Operation | Credits |
|---|---|
| Create AI Short | 5 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
- Keep it concise -- Aim for 15-30 seconds for maximum engagement
- Hook first -- Start with the most compelling point
- 9:16 aspect ratio -- Required for TikTok, Reels, and Shorts
- Clear topic -- Specific prompts produce better results than vague ones
Verification Checklist
- [ ] Task creation returns
pendingstatus - [ ] Final status is
donewith 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
- URL to Video SOP -- Generate from webpage content
- AI Scripts SOP -- Pre-generate scripts before creating shorts
- Text to Speech SOP -- Custom voiceover for shorts