Magic Hour Templates API
Templates of one magichour.ai category as the site lists them: 'all' is the templates hub (about 60 trending templates), any other category is its page's top ~20. Each template carries id, name, description, url, project_type, source_type, tags, used_count, size, created_at (UTC), preview/output media urls and its prefilled generation settings.
https://api.maviapi.com/v1/sites/magichour/templates5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
categorystring in query | Optional | all | category slug (see /categories); 'all' = the templates hubOne of all, popular, new, animation, video-to-video, image-to-video, text-to-video, face-swap, character-replace, lip-sync, talking-photo, music-video, memes, movies, sports, tiktok, bollywood, transition, kpop, ai-image-editor, clothes-changer, ai-video-effects, ai-dance-video, camera-motion, ai-transformation-video, anime-video, video-game, ai-video-styles |
project_typestring in query | Optional | None | keep only templates of this generation type, e.g. FACE_SWAP |
tagstring in query | Optional | None | keep only templates carrying this tag (case-insensitive), e.g. KPOP, MEMES, POPULAR, TIKTOK |
sortstring in query | Optional | default | 'default' = the site's order, 'most_used' = most used first, 'newest' = newest firstOne of default, most_used, newest |
Response fields
categorye.g."all"category_namee.g."All"counte.g.60templates
ide.g."cluqv73mm03t7ny6fp1oalqns"namee.g."Psy Gentleman Dance"descriptione.g."Dance like Psy in the viral hit 'Gentleman' with our exclusive video template. This face swap feature lets you bring the energy and fun of the famous dance to your social media feeds."urle.g."https://magichour.ai/templates/details/cluqv73mm03t7ny6fp1oalqns-psy-gentleman-dance"project_typee.g."FACE_SWAP"source_typee.g."VIDEO"tagsused_counte.g.47322widthe.g.290heighte.g.512created_ate.g."2024-04-08T11:23:56.045Z"authorpreview_urle.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/preview.webp"output_urlssettings
fpse.g.30endSecondse.g.15startSecondse.g.0videoFile_urle.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/original-video.mp4"initialImage_urle.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/original-image.png"pagination
counte.g.60has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T17:44:00.010Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/magichour/templates' \
-H "Authorization: Bearer $MAVI_KEY"Magic Hour Templates API questions
What you get, what it costs and how to call it.
What does the Magic Hour Templates API return?
Templates of one magichour.ai category as the site lists them: 'all' is the templates hub (about 60 trending templates), any other category is its page's top ~20. Each template carries id, name, description, url, project_type, source_type, tags, used_count, size, created_at (UTC), preview/output media urls and its prefilled generation settings. The response has category, category_name, count, templates, pagination, fetched_at and age.
Which parameters does the Magic Hour Templates API take?
Every parameter of GET /templates is optional. You can pass category, project_type, tag and sort.
How much does one Magic Hour Templates API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the Magic Hour Templates API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/magichour/templates with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the Magic Hour Templates API official?
No. It is an independent, hosted API from maviapi for the public data on magichour.ai, and it is not made, endorsed or supported by Magic Hour. Its parameters and response fields are documented on this page.