Create clip
/api/v1/clipsCuts short vertical clips out of a YouTube video. The AI picks the moments inside the start_time to end_time range, then renders clip_count clips with the framing and subtitle settings you pass.
Authorization
MagerApiKey Mager API key
In: header
Header Parameters
Mager API key
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/clips" \ -H "x-mager-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "start_time": "00:00:00", "end_time": "00:20:00", "clip_count": 3, "clip_length": "30-90s", "target_resolution": "1080p", "user_prompt": "Prefer moments with a strong opening line", "video_title": "How we grew to 10k users", "video_duration_seconds": 3120, "subtitle": { "with_subtitle": true, "font_style": "eridu", "font_size": 48, "max_words_on_screen": 3, "allowed_editing_styles": [ "STATIC_CROP", "DYNAMIC_CROP" ] }, "callback_url": "https://client.example.com/webhooks/mager" }'{ "status": 201, "message": "Success", "data": { "task_id": "cmclip01hxyz123", "status": "running", "model": null, "template_id": null, "callback_url": "https://client.example.com/webhooks/mager", "created_at": "2026-08-14T06:00:00.000Z", "updated_at": "2026-08-14T06:00:00.000Z", "completed_at": null, "error": null, "billing": { "base_moods": 1, "charged_moods": 2, "extra_moods_charged": 2 }, "output": null, "result": [], "webhooks": [] }}