L'Atlas / MCP servers / Magic Hour
MCP server

Magic Hour

io.github.magichourhq/magic-hour

MCP server OK 58 tools

Get a review See pricing

Create and edit images and video, generate music, and retrieve existing audio projects.

Technical sheet

Author
magichourhq (registry namespace)
Repository
github.com/magichourhq/magic-hour-mcp
Site
—
Version
0.1.2
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://mcp.magichour.ai/ Streamable HTTP
Tools
58
Categories
Images, audio and video
Last updated
28 Nov 2026
Published
28 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 2 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.magichourhq/magic-hour.svg?lang=en)](https://latlas.dev/en/mcp/io.github.magichourhq/magic-hour)
HTML
<a href="https://latlas.dev/en/mcp/io.github.magichourhq/magic-hour"><img src="https://latlas.dev/badge/statut/mcp/io.github.magichourhq/magic-hour.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.magichourhq/magic-hour.svg?lang=en)](https://latlas.dev/en/mcp/io.github.magichourhq/magic-hour)
HTML
<a href="https://latlas.dev/en/mcp/io.github.magichourhq/magic-hour"><img src="https://latlas.dev/badge/fiche/io.github.magichourhq/magic-hour.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://mcp.magichour.ai/
Last result
OK 28 Nov 2026, 11:13
Response time
1,036 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
magic-hour 0.1.0
Tools
58

History

DateResultResponseTools
28 Nov 2026, 11:13OK1,036 ms58

Exposed tools (58, from tools/list, 28 Nov 2026)

get_workflow_guide

Choose a media workflow

Returns required inputs, ordered steps, example requests and review criteria for eight supported Magic Hour workflows. Use when planning a generation, not to run one. Requires authentication but does not check account eligibility or spend credits.

ParameterTypeRequiredDescription
workflowenum: "video-face-swap" | "image-editor" | "image-to-video" | "video-generator" | "lip-sync" | "ugc-ads" | "talking-photo" | "media-apis"yesChoose the workflow matching the task and supplied inputs. Returns static planning guidance, not an account eligibility or cost quote.

upload_chatgpt_image

Upload attached image

Uploads a PNG, JPEG or WebP image attached in ChatGPT to the connected Magic Hour account. Use this for native ChatGPT photo attachments instead of asking the chat's file runtime to PUT bytes to get_upload_urls. Pass the returned file_path to the existing image or video generation tool. Accepts one image up to 20 MiB. Does not generate media or spend generation credits.

ParameterTypeRequiredDescription
imageobjectyesThe native attached image. ChatGPT supplies download_url and file_id; direct MCP callers must supply that file object, not a bare file ID, filename or local path.

upload_chatgpt_media

Upload attached media

Uploads one native ChatGPT attachment to the connected Magic Hour account: PNG/JPEG/WebP images, MP4/MOV/WebM video, or MP3/WAV/M4A/FLAC/Ogg/WebM audio, up to 20 MiB. Set media_type to the attachment's actual kind, not the requested output: image, video or audio. For multiple references, call separately and keep each returned file_path paired with the intended input. Pass the real attachment through the file parameter; a bare file ID, filename or chat-local path is not the raw MCP file object. Does not generate media or spend generation credits.

ParameterTypeRequiredDescription
fileobjectyesNative ChatGPT attachment object containing download_url and file_id.
media_typeenum: "video" | "image" | "audio"yesActual input attachment kind: image, video or audio, not the desired output kind.

ping

Ping

Checks that the Magic Hour server is reachable. Use for connectivity troubleshooting; it does not validate API credentials or account access. Makes no media or project changes.

No parameters.

create_credit_checkout

Create Credit Checkout

Returns a checkout link for a one-time credit pack purchase on the connected Magic Hour account. Pass credit_shortfall from an insufficient_credits refusal to start with enough packs. Charges nothing; the user pays on the checkout page. Show checkout_url unchanged.

ParameterTypeRequiredDescription
credit_shortfallnumber | nullnoCredits the refused request is missing.
pack_countinteger | nullnoCredit packs to start with, when the user names a number. Takes priority over credit_shortfall.

wait_for_video_project

Wait for Video Project

Polls an existing video project until it completes, fails, is canceled, or times out. Read-only. After a timeout, use the same project ID to resume checking. Use signed download URLs unchanged. In ChatGPT, show Magic Hour's result card for playback and download when the video completes.

ParameterTypeRequiredDescription
idstringyesExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernoSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernoMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannoReserved for compatibility. Video waits return download links, never inline video, regardless of this value.
max_inline_downloadsintegernoReserved for compatibility. Video waits do not inline downloads; leave at zero.

wait_for_image_project

Wait for Image Project

Polls an image project until it completes, errors, is canceled or times out. Use with the id returned by an image create tool. Read-only; returns the project and download URLs, with optional inline image previews sharing an 8 MiB total limit. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned.

ParameterTypeRequiredDescription
idstringyesExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernoSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernoMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannoWhether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.
max_inline_downloadsintegernoMaximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.
max_bytes_per_downloadintegernoPositive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL.

wait_for_audio_project

Wait for Audio Project

Polls an audio project until it completes, errors, is canceled or times out. Use with the id returned by an audio create tool. Read-only; returns the project and download URLs, with optional inline audio previews sharing an 8 MiB total limit. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned.

ParameterTypeRequiredDescription
idstringyesExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernoSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernoMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannoWhether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.
max_inline_downloadsintegernoMaximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.
max_bytes_per_downloadintegernoPositive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL.

fetch_image_download

Fetch Image Download

Fetch a completed project's image as inline MCP image content for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit. For playback or downloads in ChatGPT, open Magic Hour’s result card with get_image_project or wait_for_image_project using the existing project ID. When this tool shows a result card in ChatGPT, use its Download control. Do not put the signed URL in a chat link.

ParameterTypeRequiredDescription
download_urlstringyesExact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host.
max_bytesintegernoPositive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.

fetch_audio_download

Fetch Audio Download

Fetch a completed project's audio as inline MCP audio content for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit. For playback or downloads in ChatGPT, open Magic Hour’s result card with get_audio_project or wait_for_audio_project using the existing project ID. When this tool shows a result card in ChatGPT, use its Download control. Do not put the signed URL in a chat link.

ParameterTypeRequiredDescription
download_urlstringyesExact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host.
max_bytesintegernoPositive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.

fetch_video_download

Fetch Video Download

Fetch a completed project's video as an embedded MCP binary resource for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit. For playback or downloads in ChatGPT, open Magic Hour’s result card with get_video_project or wait_for_video_project using the existing project ID. When this tool shows a result card in ChatGPT, use its Download control. Do not put the signed URL in a chat link.

ParameterTypeRequiredDescription
download_urlstringyesExact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host.
max_bytesintegernoPositive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.

get_account_info

Get account info

Returns credit balance and subscription details for the connected account. Use to inspect account information before choosing generation settings. Use tier, not the subscription name or credit balance, for plan access. Read-only; this is not a request-specific cost quote or model-eligibility check.

No parameters.

checkout_create

Create checkout

Create a Stripe Checkout link for the account that owns the API key. Nothing is charged until the checkout is completed in a browser.

ParameterTypeRequiredDescription
typeenum: "credit_pack"yesWhat to buy. `credit_pack` is a one-time credit purchase.
pack_countintegernoNumber of credit packs the checkout starts with. Takes priority over `credit_shortfall`.
credit_shortfallnumbernoCredits a blocked request is missing, e.g. `credit_shortfall` from a 402 response. The checkout starts with enough packs to cover it. Defaults to one pack.

estimate_image

Estimate image credits

Get the credits an image create request charges. Pass `tool`, then the fields below that the tool's create request uses, with the same values. Does not create a project or spend credits. It prices the fields passed here. It does not check your plan, your balance or the rest of the create request.

ParameterTypeRequiredDescription
toolenum: "ai-image-generator" | "ai-image-editor" | "ai-image-upscaler" | "body-swap" | "head-swap" | "face-swap-photo" | "ai-clothes-changer" | "ai-face-editor" …yesThe create endpoint to price, named by its path. For example `ai-image-editor` for `POST /v1/ai-image-editor`.
modelstringnoThe `model` of the create request. Used by `ai-image-generator`, `ai-image-editor`.
resolutionstringnoThe `resolution` of the create request. Used by `ai-image-generator`, `ai-image-editor`, `body-swap`. One of `640px`, `1k`, `2k`, `4k`.
image_countintegernoThe `image_count` of the create request. Used by `ai-image-generator`, `ai-image-editor`. Defaults to 1.
scale_factornumbernoThe `scale_factor` of the create request. Used by `ai-image-upscaler`. One of `2`, `4`.
modestringnoThe `style.mode` of the create request. Used by `ai-image-upscaler`. One of `preserve`, `balanced`, `creative`. Defaults to `balanced`.

estimate_video

Estimate video credits

Get the credits a video create request charges when it is submitted. Pass `tool`, then the fields below that the tool's create request uses, with the same values. Tools billed per frame charge an estimate at submission, assuming 30 fps for an uploaded video, and settle to the frames that render. Does not create a project or spend credits. It prices the fields passed here. It does not check your plan, your balance or the rest of the create request.

ParameterTypeRequiredDescription
toolenum: "image-to-video" | "text-to-video" | "ai-ugc-ad" | "ai-video-editor" | "character-replace" | "audio-to-video" | "ai-video-translator" | "ai-video-upscaler" …yesThe create endpoint to price, named by its path. For example `image-to-video` for `POST /v1/image-to-video`.
end_secondsnumberyesThe `end_seconds` of the create request. Used by every tool.
start_secondsnumbernoThe `start_seconds` of the create request, for tools whose create request has it. Defaults to 0.
modelstringnoThe `model` of the create request. Used by `image-to-video`, `text-to-video`, `ai-ugc-ad`, `ai-video-editor`, `character-replace`.
resolutionstringnoThe `resolution` of the create request. Used by `image-to-video`, `text-to-video`, `ai-ugc-ad`, `ai-video-editor`, `character-replace`, `audio-to-video`, `ai-video-translator`, `ai-video-upscaler`. `ai-video-translator` defaults to `480p`.
audiobooleannoThe `audio` of the create request. Used by `image-to-video`, `text-to-video`. Defaults to `false`.
has_video_referencebooleannoWhether any of the create request's `references` is a video. Used by `text-to-video`. Defaults to `false`.

estimate_audio

Estimate audio credits

Get the credits an audio create request charges. Pass `tool`, then the field below that the tool's create request uses. Does not create a project or spend credits. It prices the fields passed here. It does not check your plan, your balance or the rest of the create request.

ParameterTypeRequiredDescription
toolenum: "ai-voice-generator" | "ai-voice-cloner" | "ai-music-generator"yesThe create endpoint to price, named by its path. For example `ai-voice-generator` for `POST /v1/ai-voice-generator`.
character_countintegernoThe number of characters in the `style.prompt` of the create request. Used by `ai-voice-generator`, `ai-voice-cloner`.
durationintegernoThe `duration` of the create request. Used by `ai-music-generator`.

list_saved_items

List saved items

Lists the account's active saved characters, references, voice recordings, moodboards and brand kits, newest first. Reusable paths are in each item's assets[].file_path; temporary signed URLs support preview/download. Read-only; pass next_cursor as cursor for the next page.

ParameterTypeRequiredDescription
typeenum: "character" | "reference" | "voice" | "moodboard" | "brand_kit"noOnly return saved items of this type.
limitintegernoMaximum number of saved items to return. Defaults to 20.
cursorstringnoOpaque pagination cursor from the previous response's next_cursor.

voices_list

List voices

List the voices available for text-to-speech. Use a voice's `id` as `style.voice_name` in the AI Voice Generator API. To fetch the next page, pass the response's next_cursor as cursor.

ParameterTypeRequiredDescription
limitintegernoMaximum number of voices to return. Defaults to 20.
cursorstringnoOpaque pagination cursor from the previous response's next_cursor.

get_upload_urls

Get upload URLs

Creates presigned upload URL and file-path pairs for local media. Use when a generation needs a file the user has locally: upload raw bytes to the returned upload_url, then pass its file_path to the create tool. Does not upload file bytes or start a generation.

ParameterTypeRequiredDescription
itemsarray<object>yesThe list of assets to upload. The response array will match the order of items in the request body.

get_face_detection_results

Get face detection results

Returns a face-detection job's status and detected faces. Use with the id from detect_faces to inspect progress and choose face mappings before a selected-face swap. Read-only; faces may populate while processing.

ParameterTypeRequiredDescription
idstringyesThe id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id).

detect_faces

Detect faces

Starts an asynchronous face-detection task for a supplied image or video and returns its id and charge information. Use before a selected-face swap, then retrieve its status and detected faces with get_face_detection_results. Current API documentation describes detection as free; pricing may change. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
confidence_scorenumbernoConfidence threshold for filtering detected faces. * Higher values (e.g., 0.9) include only faces detected with high certainty, reducing false positives. * Lower values (e.g., 0.3) include more faces, but may increase the chance of incorrect detections.
assetsobjectnoProvide the assets for face detection
imageobjectnoAttach the image from ChatGPT for this input.
videoobjectnoAttach the video from ChatGPT for this input.

get_video_project

Get video project

Open a saved video in Magic Hour’s result card with Play and Download in ChatGPT. Use when someone asks to see, play, download or reopen an existing video. Pass the existing project ID. Read-only.

ParameterTypeRequiredDescription
idstringyesUnique ID of the video project. This value is returned by all of the POST APIs that create a video.

delete_video_project

Delete video project

Deletes the video project and attempts to delete its completed output. Cannot be undone; confirm with the user first.

ParameterTypeRequiredDescription
idstringyesUnique ID of the video project. This value is returned by all of the POST APIs that create a video.

create_talking_photo

Create talking photo

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Use a still portrait and an existing speech recording to make the portrait speak. A written script needs audio first. For a prepared ad image and written script, use create_spoken_ad_video. For existing video and replacement audio, use create_lip_sync_video. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberyesThe start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.
end_secondsnumberyesThe end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.
assetsobjectnoProvide the assets for creating a talking photo
styleobjectnoAttributes used to dictate the style of the output
resolutionenum: "480p" | "720p"noOutput preset. Overrides `max_resolution`. Defaults to 480p in prompted mode; realistic mode uses the mapped plan maximum.
imageobjectnoAttach the image from ChatGPT for this input.
audioobjectnoAttach the audio from ChatGPT for this input.

create_spoken_ad_video

Create spoken ad video

Use a prepared image and a written script to generate a spoken ad with synthesized dialogue. For a still portrait and an existing speech recording, use create_talking_photo. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
assetsobjectnoPrepared image to animate into the spoken ad. The script is supplied separately.
scriptstringyesThe words the actor should speak. Character limits apply after trimming: * kling-3.0: 2304 characters. * ltx-2.5: 3804 characters. * veo3.1: 2500 characters. LTX and Kling dialogue wrappers count toward their model prompt limit.
end_secondsnumberyesVideo duration in seconds. Supported values by model: * kling-3.0: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 seconds. * ltx-2.5: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 seconds. * veo3.1: 4, 6, 8, 15, 22, 29, 36, 43, 50, 57, 64, 71, 78, 85, 92, 99, 106, 113, 120, 127…
modelenum: "kling-3.0" | "ltx-2.5" | "veo3.1"noDefaults to kling-3.0 on paid plans and ltx-2.5 on free plans.
resolutionenum: "480p" | "720p" | "1080p"noDefaults to 720p on paid plans and 480p on free plans. Unsupported model/resolution combinations and resolutions unavailable for your plan are rejected.
imageobjectnoAttach the image from ChatGPT for this input.

edit_video

Edit video

Edits the appearance or content of a supplied video segment using a text prompt. Use with a source video, the requested changes and the clip end time. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernoStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.2`: 3-15s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p), `kling-4.0`: 3-30s. Free plans are currently limited to 10 seconds of clip (`end_seconds` minus `start_seconds`),…
modelenum: "gemini-omni-1.1" | "gemini-omni-1.2" | "wan-3.0" | "ltx-2.5" | "kling-4.0" | "gemini-omni" | "ltx-2.3"noThe AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers. * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier. * `wan-3.0`: High-quality video with native audio, long clips, and end…
resolutionenum: "360p" | "480p" | "720p" | "1080p" | "4k"noOutput resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.2`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p; `kling-4.0`: 720p, 1080p.
styleobjectyesInstructions describing the changes to make to the source video.
referencesarray<object>noName references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references. Reference images for gemini-omni-1.2, wan-3.0, kling-4.0.
assetsobjectnoProvide the assets for video editing.
videoobjectnoAttach the video from ChatGPT for this input.
reference_imagesarray<object>noAttached image files. Set image_index in each matching entry to its position in this list, starting at 1.

translate_video

Translate video

Translates speech in a supplied video segment into a supported target language. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernoStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
target_languageenum: "English" | "Chinese (Simplified)" | "Hindi" | "Spanish" | "Arabic" | "French" | "Afrikaans" | "Bengali" …yesLanguage to translate the video's speech into.
resolutionenum: "480p" | "720p" | "1080p"noOutput video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
assetsobjectnoSource video for the translation job.
videoobjectnoAttach the video from ChatGPT for this input.

upscale_video

Upscale video

Upscales a supplied video segment to a selected output resolution while preserving its aspect ratio. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernoStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds.
resolutionenum: "720p" | "1080p" | "2k" | "4k"yesOutput resolution. `720p` and `1080p` set the output's short side, `2k` and `4k` its long side; the aspect ratio is kept. Requires a paid plan.
assetsobjectnoSource video for the upscale job.
videoobjectnoAttach the video from ChatGPT for this input.

create_animation

Create animation

Creates a stylized animated video with art and camera settings, using a custom prompt or an audio-derived prompt mode. Can use an initial image and audio. Credits depend on frame rate and duration; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
fpsnumberyesThe desire output video frame rate
end_secondsnumberyesThis value determines the duration of the output video.
heightintegeryesThe height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
widthintegeryesThe width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
styleobjectyesDefines the style of the output video
assetsobjectyesProvide the assets for animation.
imageobjectnoAttach the image from ChatGPT for this input.
audioobjectnoAttach the audio from ChatGPT for this input. Set assets.audio_source to file.

create_video_from_audio

Create video from audio

Generates an audio-guided video from a supplied audio track, with an optional starting image and visual prompt. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernoStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds. Free plans are currently limited to 15 seconds of output, enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before cha…
resolutionenum: "480p" | "720p" | "1080p"noOutput video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
assetsobjectnoProvide the audio file and an optional reference image.
styleobjectnoAttributes used to dictate the style of the output
imageobjectnoAttach the image from ChatGPT for this input.
audioobjectnoAttach the audio from ChatGPT for this input.

add_subtitles_to_video

Add subtitles to video

Adds automatically generated subtitles to a supplied video segment using a subtitle preset or custom text styling. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberyesStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds.
assetsobjectnoProvide the assets for auto subtitle generator
styleobjectyesStyle of the subtitle. At least one of `.style.template` or `.style.custom_config` must be provided. * If only `.style.template` is provided, default values for the template will be used. * If both are provided, the fields in `.style.custom_config` will be used to overwrite the fields in `.style.te…
videoobjectnoAttach the video from ChatGPT for this input.

replace_character_in_video

Replace character in video

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Replaces a subject in a video with a character from a reference image, or transfers the video's motion onto that character. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernoStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds. Free plans are currently limited to 10 seconds of clip (`end_seconds` minus `start_seconds`), enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, expla…
modelenum: "wan-animate" | "kling-3.0" | "kling-4.0" | "minimax-h3"noModel to use. Defaults to `wan-animate`. * **`wan-animate`**: 480p, 720p. Supports `points` subject selection. * **`kling-3.0`**: 720p, 1080p. Clips of 3–30 seconds in `animate` mode or 3–10 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected. * **`kling-4.0`**:…
resolutionenum: "480p" | "720p" | "1080p"noOutput video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.
assetsobjectnoSource video and reference character image for the job.
styleobjectnoOptional style controls for replace vs animate mode and subject selection.
character_imageobjectnoAttach the character image from ChatGPT for this input.
videoobjectnoAttach the video from ChatGPT for this input.

swap_face_in_video

Swap face in video

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Swaps faces in an existing video: all faces with a reference image, or selected faces using detect_faces results. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberyesStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds.
styleobjectnoStyle of the face swap video.
assetsobjectyesProvide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
source_faceobjectnoAttach the source face from ChatGPT for this input.
videoobjectnoAttach the video from ChatGPT for this input. Set assets.video_source to file.
replacement_facesarray<object>noAttached image files. Set image_index in each matching entry to its position in this list, starting at 1.

create_video_from_image

Create video from image

Use a still image as the first frame and describe what should move. There is no aspect_ratio setting; the video's shape comes from the image. If the user wants a shape for where the video will be used (9:16 for TikTok, Reels, Shorts or Stories) and the image is a different shape, say so and offer to reframe it first with edit_image. For a portrait speaking to an existing recording, use create_talking_photo. For a prepared ad image and written script, use create_spoken_ad_video. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
end_secondsnumberyesThe total duration of the output video in seconds. Supported durations depend on the chosen model: * **`gemini-omni-1.2`**: any integer from 3 to 15 * **`kling-2.6`**: 5, 10 * **`kling-3.0`**: any integer from 3 to 15 * **`kling-4.0`**: any integer from 3 to 30 * **`ltx-2.5`**: any integer from 1 t…
modelenum: "default" | "minimax-h3" | "kling-4.0" | "kling-3.0" | "ltx-2.5" | "wan-2.2" | "seedance-2.5" | "wan-3.0" …noThe video generation model. With `default`, the API chooses a model using the account plan, resolution and duration. Use this option when no model was requested and it supports the intended inputs and settings. Omit an unrequested resolution so the API resolves it for the account. Preserve explicit…
resolutionenum: "360p" | "480p" | "720p" | "1080p" | "4k"noControls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k. * **`kling-2.6`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`kling-4.0`**: Supports 720p, 1080p. * **`ltx-2.5`**: S…
audiobooleannoWhether to include audio in the video. Defaults to `false` if not specified. Audio support varies by model: * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio * **`kling-2.6`**: Not supported * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled * **`kling-4.0`**:…
styleobjectnoAttributed used to dictate the style of the output
assetsobjectnoProvide the assets for image-to-video.
imageobjectnoThe ChatGPT photo to use as the video's first frame.
last_frameobjectnoAttach the last frame from ChatGPT for this input.

create_lip_sync_video

Create lip sync video

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Use existing video and replacement audio to match the speaker's lip movements to the recording. For a still portrait and existing speech recording, use create_talking_photo. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberyesStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds.
max_fps_limitnumbernoDefines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
assetsobjectyesProvide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
styleobjectnoAttributes used to dictate the style of the output
videoobjectnoAttach the video from ChatGPT for this input. Set assets.video_source to file.
audioobjectnoAttach the audio from ChatGPT for this input.

create_video_from_text

Create video from text

Generates a video from a text prompt, with optional supported reference inputs and model settings. If the user has not specified an aspect ratio, choose it for where the video will be used, such as 9:16 for TikTok or Reels. To animate an existing starting image, use create_video_from_image. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
end_secondsnumberyesThe total duration of the output video in seconds. Supported durations depend on the chosen model: * **`gemini-omni-1.2`**: any integer from 3 to 15 * **`kling-2.6`**: 5, 10 * **`kling-3.0`**: any integer from 3 to 15 * **`kling-4.0`**: any integer from 3 to 30 * **`ltx-2.5`**: any integer from 1 t…
aspect_ratioenum: "16:9" | "9:16" | "1:1"noKeep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If you can't tell where the v…
resolutionenum: "360p" | "480p" | "720p" | "1080p" | "4k"noControls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. * **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k. * **`kling-2.6`**: Supports 720p, 1080p. * **`kling-3.0`**: Supports 720p, 1080p, 4k. * **`kling-4.0`**: Supports 720p, 1080p. * **`ltx-2.5`**: S…
modelenum: "default" | "minimax-h3" | "kling-4.0" | "kling-3.0" | "ltx-2.5" | "wan-2.2" | "seedance-2.5" | "wan-3.0" …noThe video generation model. With `default`, the API chooses a model using the account plan, resolution and duration. Use this option when no model was requested and it supports the intended inputs and settings. Omit an unrequested resolution so the API resolves it for the account. Preserve explicit…
audiobooleannoWhether to include audio in the video. Defaults to `false` if not specified. Audio support varies by model: * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio * **`kling-2.6`**: Not supported * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled * **`kling-4.0`**:…
styleobjectyesInstructions describing the video to generate.
referencesarray<object>noName references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 50 references total. Omit for no references. Reference media for video generation. Supported models and reference media: * **`gemini-omni-1.2`**: Supports images, videos. Up to 10 refe…
reference_imagesarray<object>noAttached image files. Set image_index in each matching entry to its position in this list, starting at 1.
reference_videosarray<object>noAttached video files. Set video_index in each matching entry to its position in this list, starting at 1.
reference_audioarray<object>noAttached audio files. Set audio_index in each matching entry to its position in this list, starting at 1.

restyle_video

Restyle video

Restyles an existing video clip with an art-style preset or a custom prompt. Supports v1/v2/v3 presets; v3 requires a supplied reference image and positive source-video width and height. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberyesStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberyesEnd time of your clip (seconds). Must be greater than start_seconds.
heightinteger | nullnoSource video height in integer pixels. Required and positive for v3; ignored for v1/v2.
fpsnumbernoSource video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames.
widthinteger | nullnoSource video width in integer pixels. Required and positive for v3; ignored for v1/v2.
fps_resolutionenum: "FULL" | "HALF"noDetermines whether the resulting video will have the same frame per second as the original video, or half. * `FULL` - the result video will have the same FPS as the input video * `HALF` - the result video will have half the FPS as the input video
styleobjectyesArt preset, rendering version, model and prompt controls for restyling the video.
assetsobjectyesProvide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
first_frameobjectnoAttach the first frame from ChatGPT for this input.
videoobjectnoAttach the video from ChatGPT for this input. Set assets.video_source to file.

get_image_project

Get image project

Open a saved image in Magic Hour’s result card with the image and Download in ChatGPT. Use when someone asks to see, download or reopen an existing image. Pass the existing project ID. Read-only.

ParameterTypeRequiredDescription
idstringyesUnique ID of the image project. This value is returned by all of the POST APIs that create an image.

delete_image_project

Delete image project

Deletes the image project and attempts to delete its completed output. Cannot be undone; confirm with the user first.

ParameterTypeRequiredDescription
idstringyesUnique ID of the image project. This value is returned by all of the POST APIs that create an image.

change_clothes_in_photo

Change clothes in photo

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Changes clothing in a person photo using a supplied garment reference image. Costs 25 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for clothes changer
person_imageobjectnoAttach the person image from ChatGPT for this input.
garment_imageobjectnoAttach the garment image from ChatGPT for this input.

edit_face_in_photo

Edit face in photo

Adjusts facial expression, pose and gaze in a supplied photo using numeric controls. Costs 1 credit per edit; output size depends on the subscription tier. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for face editor
styleobjectyesFace editing parameters
imageobjectnoAttach the image from ChatGPT for this input.

create_gif_or_short_video

Create GIF or short video

Generates a short animation from a text prompt, with GIF, MP4 or WebM output. Costs 50 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectyesText instructions for the animation's subject, appearance and motion.
output_formatenum: "gif" | "mp4" | "webm"noThe output file format for the generated animation.

edit_image

Edit image

Edits one or more supplied images using a text prompt. For prompt-only creation use generate_image. Costs credits; returns a project id for wait_for_image_project. Model eligibility depends on the account plan. When the user has not chosen a model, resolution or count, omit them; the API picks eligible defaults for the plan. Preserve an explicit model, resolution or count; if the plan can't use it, explain the limit and offer a supported option before changing it. Check the chosen model's input limits; never drop references. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
image_countenum: 1 | 4 | 9 | 16noNumber of images to generate. Maximum varies by model. Defaults to 1 if not specified.
modelenum: "default" | "qwen-image-2.1" | "gpt-image-2" | "flux-2-klein" | "flux-3-klein" | "nano-banana-pro" | "seedream-v5-pro" | "seedream-v5-flash" …noIf the user asks for a resolution, pick a model whose supported resolutions include it. `default` is nano-banana on paid plans. The API chooses and validates the default model for the account's plan. The AI model to use for image editing. Each model has different capabilities and costs. **Models:**…
aspect_ratioenum: "auto" | "16:9" | "9:16" | "4:3" | "3:2" | "1:1" | "4:5" | "2:3"noKeep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If the user names a use but y…
resolutionenum: "auto" | "640px" | "1k" | "2k" | "4k"noMaximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model sup…
styleobjectyesText instructions describing the edits to make to the supplied images.
assetsobjectnoProvide the assets for image edit
imagesarray<object>noAttach the images from ChatGPT for this input. Keep the files in the order the user requested.

generate_headshot

Generate headshot

Creates a headshot from a supplied photo containing one detectable face, with optional appearance instructions. Costs 50 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectnoOptional headshot appearance instructions. Omit the prompt for the API's default style.
assetsobjectnoProvide the assets for headshot photo
imageobjectnoAttach the image from ChatGPT for this input.

generate_image

Generate image

Generates one or more images from a text prompt, with model, output size and image count options. Costs credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
image_countintegeryesNumber of images to generate. Maximum varies by model.
modelenum: "default" | "z-image-turbo" | "gpt-image-2" | "qwen-image-2.1" | "flux-2-klein" | "flux-3-klein" | "nano-banana-2.1" | "nano-banana-pro" …noWhen the user has not requested a model, use `default` rather than selecting a premium model. Preserve an explicit model. If the user asks for a resolution, pick a model whose supported resolutions include it. `default` is z-image-turbo, which supports only 640px, 1k, 2k; for anything higher, choos…
aspect_ratioenum: "1:1" | "16:9" | "9:16"noKeep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If the user names a use but y…
resolutionenum: "auto" | "640px" | "1k" | "2k" | "4k"noMaximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model sup…
styleobjectyesThe art style to use for image generation.

upscale_image

Upscale image

Upscales a supplied image 2x or 4x. Cost depends on scale and mode (25-200 credits); returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
scale_factornumberyesHow much to scale the image. Must be either 2 or 4. Note: 4x upscale is only available on Creator, Pro, or Business tier.
styleobjectnoStyle settings for the upscale. Use `mode` (`"preserve"`, `"balanced"`, or `"creative"`). Defaults to `"balanced"`.
assetsobjectnoProvide the assets for upscaling
imageobjectnoAttach the image from ChatGPT for this input.

create_meme

Create meme

Creates a meme from a topic and template selection. Costs 10 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoThe name of the meme.
styleobjectyesMeme topic, template and whether to search the web for content.

create_qr_code

Create QR code

Creates a stylized QR code from supplied text or a URL and an art-style description. Currently costs 0 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
contentstringyesThe content of the QR code.
styleobjectyesVisual art style for the QR code image.

place_person_in_scene

Place person in scene

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Places a person from one supplied photo into a supplied scene image. Cost depends on resolution (from 50 credits at 640px); returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
resolutionenum: "640px" | "1k" | "2k" | "4k"yesOutput resolution. Determines credits charged for the run.
assetsobjectnoPerson image and scene image for body swap
person_imageobjectnoAttach the person image from ChatGPT for this input.
scene_imageobjectnoAttach the scene image from ChatGPT for this input.

swap_face_in_photo

Swap face in photo

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Swaps faces in a supplied photo using a source face image or selected face mappings. Costs 10 credits; output size depends on subscription. Returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for face swap photo
source_faceobjectnoAttach the source face from ChatGPT for this input.
target_imageobjectnoAttach the target image from ChatGPT for this input.
replacement_facesarray<object>noAttached image files. Set image_index in each matching entry to its position in this list, starting at 1.

swap_head_in_photo

Swap head in photo

Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors. Swaps a head from a supplied image onto a supplied body image. Costs 10 credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
max_resolutionintegernoConstrains the larger dimension (height or width) of the output. Omit to use the maximum allowed for your plan (capped at 2048px). Values above your plan maximum are clamped down to your plan's maximum.
assetsobjectnoProvide the body and head images for head swap
head_imageobjectnoAttach the head image from ChatGPT for this input.
body_imageobjectnoAttach the body image from ChatGPT for this input.

remove_image_background

Remove image background

Removes an image's background, optionally replacing it with another supplied image. Costs 5 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for background removal
imageobjectnoAttach the image from ChatGPT for this input.
background_imageobjectnoAttach the background image from ChatGPT for this input.

colorize_photo

Colorize photo

Colorizes a black-and-white or faded photo. Costs 10 credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for photo colorization
imageobjectnoAttach the image from ChatGPT for this input.

get_audio_project

Get audio project

Open a saved audio project in Magic Hour’s result card with playback and Download in ChatGPT. Use when someone asks to hear, download or reopen an existing audio project. Pass the existing project ID. Read-only.

ParameterTypeRequiredDescription
idstringyesUnique ID of the audio project. This value is returned by all of the POST APIs that create an audio.

delete_audio_project

Delete audio project

Deletes the audio project and attempts to delete its completed output. Cannot be undone; confirm with the user first.

ParameterTypeRequiredDescription
idstringyesUnique ID of the audio project. This value is returned by all of the POST APIs that create an audio.

generate_music

Generate music

Generates music from a description, with optional custom lyrics or instrumental-only output. Costs 1 credit per requested second; returns a project id for wait_for_audio_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
durationintegeryesRequested track duration in seconds, from 15 to 300. Determines credits charged.
styleobjectyesSong description, vocal or instrumental choice, and optional custom lyrics.

ai_voice_cloner_create_audio

AI Voice Cloner

MCP guidance: - Starts an async audio job; returns `id` and `credits_charged`. For finished results, call `wait_for_audio_project` with that id or poll `GET /v1/audio-projects/{id}` until `complete`, `error`, or `canceled`. Results include `downloads`; wait helpers add `exact_download_urls`. Preserve signed URLs and query parameters; never append expiration metadata. - For `*_file_path`, use an existing Magic Hour path or the upload-URL endpoint's `file_path` after uploading raw bytes to its presigned URL. Direct public media URLs may work if stable and fetchable as raw bytes; hotlinked URLs can fail. Prefer the upload-URL endpoint when unsure. Clone a voice from an audio sample and generate speech. * Each character costs 0.1 credits. * The cost is rounded up to the nearest whole number Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use only a recording of your own voice or a voice you have permission to clone. Do not impersonate or deceive others. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnoProvide the assets for voice cloning.
styleobjectyesText to speak in the supplied voice, with language and speech-speed options.
audioobjectnoAttach the audio from ChatGPT for this input.

ai_voice_generator_create_audio

AI Voice Generator

MCP guidance: - Starts an async audio job; returns `id` and `credits_charged`. For finished results, call `wait_for_audio_project` with that id or poll `GET /v1/audio-projects/{id}` until `complete`, `error`, or `canceled`. Results include `downloads`; wait helpers add `exact_download_urls`. Preserve signed URLs and query parameters; never append expiration metadata. Generate speech from text. Each character costs 0.1 credits. The cost is rounded up to the nearest whole number. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.

ParameterTypeRequiredDescription
Idempotency-KeystringnoA unique string for this request, such as a UUID. Sending the same key again within 24 hours returns the original project instead of creating and charging for a new one. A key applies across all video, image, and audio endpoints on your account, so use a new key for every project.
namestringnoOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectyesThe content used to generate speech.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://mcp.magichour.ai/. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http magic-hour https://mcp.magichour.ai/
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : magic-hour ; URL : https://mcp.magichour.ai/
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : magic-hour ; Server URL : https://mcp.magichour.ai/ ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "magic-hour": {
      "url": "https://mcp.magichour.ai/"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "magic-hour": {
      "type": "http",
      "url": "https://mcp.magichour.ai/",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "magic-hour": {
      "url": "https://mcp.magichour.ai/"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "magic-hour": {
      "httpUrl": "https://mcp.magichour.ai/"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.magic-hour]
url = "https://mcp.magichour.ai/"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Magic Hour · L’Atlas · Tested on

Markdown
[Magic Hour — L’Atlas](https://latlas.dev/en/mcp/io.github.magichourhq/magic-hour)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.