Skip to content

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.

GEThttps://api.maviapi.com/v1/sites/magichour/templates5 credits per call

Parameters

NameRequiredExampleDescription
categorystring in queryOptionalallcategory 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 queryOptionalNonekeep only templates of this generation type, e.g. FACE_SWAP
tagstring in queryOptionalNonekeep only templates carrying this tag (case-insensitive), e.g. KPOP, MEMES, POPULAR, TIKTOK
sortstring in queryOptionaldefault'default' = the site's order, 'most_used' = most used first, 'newest' = newest firstOne of default, most_used, newest

Response fields

categorystringe.g."all"
category_namestringe.g."All"
countintegere.g.60
templatesobject[]15 fields
idstringe.g."cluqv73mm03t7ny6fp1oalqns"
namestringe.g."Psy Gentleman Dance"
descriptionstringe.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."
urlstringe.g."https://magichour.ai/templates/details/cluqv73mm03t7ny6fp1oalqns-psy-gentleman-dance"
project_typestringe.g."FACE_SWAP"
source_typestringe.g."VIDEO"
tagsstring[]
used_countintegere.g.47322
widthintegere.g.290
heightintegere.g.512
created_atstringe.g."2024-04-08T11:23:56.045Z"
authornull
preview_urlstringe.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/preview.webp"
output_urlsstring[]
settingsobject5 fields
fpsintegere.g.30
endSecondsintegere.g.15
startSecondsintegere.g.0
videoFile_urlstringe.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/original-video.mp4"
initialImage_urlstringe.g."https://videos.magichour.ai/templates/cluqv73mm03t7ny6fp1oalqns/original-image.png"
paginationobject3 fields
countintegere.g.60
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T17:44:00.010Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
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.