Create Magic Clips
Generate multiple engaging short-form video clips from YouTube videos automatically using AI. This endpoint processes YouTube videos and creates clips with automatic captions, animations, and effects optimized for social media platforms.This endpoint requires authentication, Magic Clips subscription, and has a
rate limit of 500 requests per hour.
Magic Clips created via API use your regular Magic Clips credits, not API
credits.
Authentication
Your Submagic API key in Bearer token format:
Bearer sk-your-api-key-here
Request Body
A descriptive title for your Magic Clips project (1-100 characters)
Language code for captions (2-10 characters, e.g., “en”, “es”, “fr”). Use the
languages endpoint to get available options.
Valid YouTube video URL to process for clip generation
URL to receive webhook notifications when processing is complete. Must be a
valid HTTPS URL.
ID of a custom user theme to apply for styling. Must be a valid UUID of a
theme that belongs to you or your team.
Minimum clip duration in seconds (15-300 seconds). Defaults to 15 seconds.
Maximum clip duration in seconds (15-300 seconds). Defaults to 60 seconds.
Response
Unique identifier for the created Magic Clips project (UUID format)
The title you provided for the project
Language code used for captions
Current processing status:
processing
Webhook URL if provided in the request
ISO 8601 timestamp when the project was created
Webhook Integration
When processing is complete, a webhook notification will be sent to the providedwebhookUrl
(if specified). The webhook payload includes information about the main project and all generated clips.
Webhook Payload Structure
Webhook Response Fields
Main project identifier
Processing status:
completed
or failed
Project title
Total duration of the original video in seconds
ISO 8601 timestamp when processing completed
Array of generated clips, each containing: -
id
: Unique clip identifier -
title
: AI-generated clip title - duration
: Clip duration in seconds -
status
: Clip processing status - previewUrl
: URL to preview the clip -
downloadUrl
: Direct download URL for the clip