L'Atlas / Serveurs MCP / Magic Hour
Serveur MCP

Magic Hour

io.github.magichourhq/magic-hour

Serveur MCP OK 58 outils

Faire examiner Voir les tarifs

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

Fiche technique

Auteur
magichourhq (espace de noms du registre)
Dépôt
github.com/magichourhq/magic-hour-mcp
Site
—
Version
0.1.2
Transport
Streamable HTTP
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://mcp.magichour.ai/ Streamable HTTP
Outils
58
Catégories
Images, audio et vidéo
Dernière mise à jour
28 nov. 2026
Publication
28 nov. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.magichourhq/magic-hour.svg)](https://latlas.dev/mcp/io.github.magichourhq/magic-hour)
HTML
<a href="https://latlas.dev/mcp/io.github.magichourhq/magic-hour"><img src="https://latlas.dev/badge/fiche/io.github.magichourhq/magic-hour.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://mcp.magichour.ai/
Dernier résultat
OK 28 nov. 2026, 11:13
Temps de réponse
1 036 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
magic-hour 0.1.0
Outils
58

Historique

DateRésultatRéponseOutils
28 nov. 2026, 11:13OK1 036 ms58

Outils exposés (58, réponse à 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.

ParamètreTypeRequisDescription
workflowenum: "video-face-swap" | "image-editor" | "image-to-video" | "video-generator" | "lip-sync" | "ugc-ads" | "talking-photo" | "media-apis"ouiChoose 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.

ParamètreTypeRequisDescription
imageobjectouiThe 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.

ParamètreTypeRequisDescription
fileobjectouiNative ChatGPT attachment object containing download_url and file_id.
media_typeenum: "video" | "image" | "audio"ouiActual 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.

Aucun paramètre.

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.

ParamètreTypeRequisDescription
credit_shortfallnumber | nullnonCredits the refused request is missing.
pack_countinteger | nullnonCredit 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.

ParamètreTypeRequisDescription
idstringouiExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernonSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernonMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannonReserved for compatibility. Video waits return download links, never inline video, regardless of this value.
max_inline_downloadsintegernonReserved 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.

ParamètreTypeRequisDescription
idstringouiExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernonSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernonMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannonWhether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.
max_inline_downloadsintegernonMaximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.
max_bytes_per_downloadintegernonPositive 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.

ParamètreTypeRequisDescription
idstringouiExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
poll_interval_secondsnumbernonSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
timeout_secondsnumbernonMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
include_inline_downloadsbooleannonWhether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.
max_inline_downloadsintegernonMaximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.
max_bytes_per_downloadintegernonPositive 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.

ParamètreTypeRequisDescription
download_urlstringouiExact 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_bytesintegernonPositive 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.

ParamètreTypeRequisDescription
download_urlstringouiExact 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_bytesintegernonPositive 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.

ParamètreTypeRequisDescription
download_urlstringouiExact 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_bytesintegernonPositive 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.

Aucun paramètre.

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.

ParamètreTypeRequisDescription
typeenum: "credit_pack"ouiWhat to buy. `credit_pack` is a one-time credit purchase.
pack_countintegernonNumber of credit packs the checkout starts with. Takes priority over `credit_shortfall`.
credit_shortfallnumbernonCredits 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.

ParamètreTypeRequisDescription
toolenum: "ai-image-generator" | "ai-image-editor" | "ai-image-upscaler" | "body-swap" | "head-swap" | "face-swap-photo" | "ai-clothes-changer" | "ai-face-editor" …ouiThe create endpoint to price, named by its path. For example `ai-image-editor` for `POST /v1/ai-image-editor`.
modelstringnonThe `model` of the create request. Used by `ai-image-generator`, `ai-image-editor`.
resolutionstringnonThe `resolution` of the create request. Used by `ai-image-generator`, `ai-image-editor`, `body-swap`. One of `640px`, `1k`, `2k`, `4k`.
image_countintegernonThe `image_count` of the create request. Used by `ai-image-generator`, `ai-image-editor`. Defaults to 1.
scale_factornumbernonThe `scale_factor` of the create request. Used by `ai-image-upscaler`. One of `2`, `4`.
modestringnonThe `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.

ParamètreTypeRequisDescription
toolenum: "image-to-video" | "text-to-video" | "ai-ugc-ad" | "ai-video-editor" | "character-replace" | "audio-to-video" | "ai-video-translator" | "ai-video-upscaler" …ouiThe create endpoint to price, named by its path. For example `image-to-video` for `POST /v1/image-to-video`.
end_secondsnumberouiThe `end_seconds` of the create request. Used by every tool.
start_secondsnumbernonThe `start_seconds` of the create request, for tools whose create request has it. Defaults to 0.
modelstringnonThe `model` of the create request. Used by `image-to-video`, `text-to-video`, `ai-ugc-ad`, `ai-video-editor`, `character-replace`.
resolutionstringnonThe `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`.
audiobooleannonThe `audio` of the create request. Used by `image-to-video`, `text-to-video`. Defaults to `false`.
has_video_referencebooleannonWhether 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.

ParamètreTypeRequisDescription
toolenum: "ai-voice-generator" | "ai-voice-cloner" | "ai-music-generator"ouiThe create endpoint to price, named by its path. For example `ai-voice-generator` for `POST /v1/ai-voice-generator`.
character_countintegernonThe number of characters in the `style.prompt` of the create request. Used by `ai-voice-generator`, `ai-voice-cloner`.
durationintegernonThe `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.

ParamètreTypeRequisDescription
typeenum: "character" | "reference" | "voice" | "moodboard" | "brand_kit"nonOnly return saved items of this type.
limitintegernonMaximum number of saved items to return. Defaults to 20.
cursorstringnonOpaque 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.

ParamètreTypeRequisDescription
limitintegernonMaximum number of voices to return. Defaults to 20.
cursorstringnonOpaque 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.

ParamètreTypeRequisDescription
itemsarray<object>ouiThe 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.

ParamètreTypeRequisDescription
idstringouiThe 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.

ParamètreTypeRequisDescription
confidence_scorenumbernonConfidence 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.
assetsobjectnonProvide the assets for face detection
imageobjectnonAttach the image from ChatGPT for this input.
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberouiThe start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.
end_secondsnumberouiThe end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.
assetsobjectnonProvide the assets for creating a talking photo
styleobjectnonAttributes used to dictate the style of the output
resolutionenum: "480p" | "720p"nonOutput preset. Overrides `max_resolution`. Defaults to 480p in prompted mode; realistic mode uses the mapped plan maximum.
imageobjectnonAttach the image from ChatGPT for this input.
audioobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
assetsobjectnonPrepared image to animate into the spoken ad. The script is supplied separately.
scriptstringouiThe 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_secondsnumberouiVideo 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"nonDefaults to kling-3.0 on paid plans and ltx-2.5 on free plans.
resolutionenum: "480p" | "720p" | "1080p"nonDefaults to 720p on paid plans and 480p on free plans. Unsupported model/resolution combinations and resolutions unavailable for your plan are rejected.
imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernonStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd 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"nonThe 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"nonOutput 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.
styleobjectouiInstructions describing the changes to make to the source video.
referencesarray<object>nonName 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.
assetsobjectnonProvide the assets for video editing.
videoobjectnonAttach the video from ChatGPT for this input.
reference_imagesarray<object>nonAttached 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernonStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd 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" …ouiLanguage to translate the video's speech into.
resolutionenum: "480p" | "720p" | "1080p"nonOutput video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
assetsobjectnonSource video for the translation job.
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernonStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd time of your clip (seconds). Must be greater than start_seconds.
resolutionenum: "720p" | "1080p" | "2k" | "4k"ouiOutput 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.
assetsobjectnonSource video for the upscale job.
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
fpsnumberouiThe desire output video frame rate
end_secondsnumberouiThis value determines the duration of the output video.
heightintegerouiThe 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
widthintegerouiThe 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
styleobjectouiDefines the style of the output video
assetsobjectouiProvide the assets for animation.
imageobjectnonAttach the image from ChatGPT for this input.
audioobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernonStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd 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"nonOutput video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
assetsobjectnonProvide the audio file and an optional reference image.
styleobjectnonAttributes used to dictate the style of the output
imageobjectnonAttach the image from ChatGPT for this input.
audioobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberouiStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd time of your clip (seconds). Must be greater than start_seconds.
assetsobjectnonProvide the assets for auto subtitle generator
styleobjectouiStyle 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…
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumbernonStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd 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"nonModel 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"nonOutput video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.
assetsobjectnonSource video and reference character image for the job.
styleobjectnonOptional style controls for replace vs animate mode and subject selection.
character_imageobjectnonAttach the character image from ChatGPT for this input.
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberouiStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd time of your clip (seconds). Must be greater than start_seconds.
styleobjectnonStyle of the face swap video.
assetsobjectouiProvide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
source_faceobjectnonAttach the source face from ChatGPT for this input.
videoobjectnonAttach the video from ChatGPT for this input. Set assets.video_source to file.
replacement_facesarray<object>nonAttached 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
end_secondsnumberouiThe 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" …nonThe 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"nonControls 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…
audiobooleannonWhether 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`**:…
styleobjectnonAttributed used to dictate the style of the output
assetsobjectnonProvide the assets for image-to-video.
imageobjectnonThe ChatGPT photo to use as the video's first frame.
last_frameobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberouiStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd time of your clip (seconds). Must be greater than start_seconds.
max_fps_limitnumbernonDefines 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.
assetsobjectouiProvide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
styleobjectnonAttributes used to dictate the style of the output
videoobjectnonAttach the video from ChatGPT for this input. Set assets.video_source to file.
audioobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
end_secondsnumberouiThe 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"nonKeep 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"nonControls 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" …nonThe 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…
audiobooleannonWhether 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`**:…
styleobjectouiInstructions describing the video to generate.
referencesarray<object>nonName 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>nonAttached image files. Set image_index in each matching entry to its position in this list, starting at 1.
reference_videosarray<object>nonAttached video files. Set video_index in each matching entry to its position in this list, starting at 1.
reference_audioarray<object>nonAttached 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
start_secondsnumberouiStart time of your clip (seconds). Must be ≥ 0.
end_secondsnumberouiEnd time of your clip (seconds). Must be greater than start_seconds.
heightinteger | nullnonSource video height in integer pixels. Required and positive for v3; ignored for v1/v2.
fpsnumbernonSource video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames.
widthinteger | nullnonSource video width in integer pixels. Required and positive for v3; ignored for v1/v2.
fps_resolutionenum: "FULL" | "HALF"nonDetermines 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
styleobjectouiArt preset, rendering version, model and prompt controls for restyling the video.
assetsobjectouiProvide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
first_frameobjectnonAttach the first frame from ChatGPT for this input.
videoobjectnonAttach 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for clothes changer
person_imageobjectnonAttach the person image from ChatGPT for this input.
garment_imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for face editor
styleobjectouiFace editing parameters
imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectouiText instructions for the animation's subject, appearance and motion.
output_formatenum: "gif" | "mp4" | "webm"nonThe 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
image_countenum: 1 | 4 | 9 | 16nonNumber 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" …nonIf 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"nonKeep 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"nonMaximum 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…
styleobjectouiText instructions describing the edits to make to the supplied images.
assetsobjectnonProvide the assets for image edit
imagesarray<object>nonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectnonOptional headshot appearance instructions. Omit the prompt for the API's default style.
assetsobjectnonProvide the assets for headshot photo
imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
image_countintegerouiNumber 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" …nonWhen 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"nonKeep 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"nonMaximum 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…
styleobjectouiThe 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
scale_factornumberouiHow much to scale the image. Must be either 2 or 4. Note: 4x upscale is only available on Creator, Pro, or Business tier.
styleobjectnonStyle settings for the upscale. Use `mode` (`"preserve"`, `"balanced"`, or `"creative"`). Defaults to `"balanced"`.
assetsobjectnonProvide the assets for upscaling
imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonThe name of the meme.
styleobjectouiMeme 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
contentstringouiThe content of the QR code.
styleobjectouiVisual 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
resolutionenum: "640px" | "1k" | "2k" | "4k"ouiOutput resolution. Determines credits charged for the run.
assetsobjectnonPerson image and scene image for body swap
person_imageobjectnonAttach the person image from ChatGPT for this input.
scene_imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for face swap photo
source_faceobjectnonAttach the source face from ChatGPT for this input.
target_imageobjectnonAttach the target image from ChatGPT for this input.
replacement_facesarray<object>nonAttached 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
max_resolutionintegernonConstrains 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.
assetsobjectnonProvide the body and head images for head swap
head_imageobjectnonAttach the head image from ChatGPT for this input.
body_imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for background removal
imageobjectnonAttach the image from ChatGPT for this input.
background_imageobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for photo colorization
imageobjectnonAttach 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
idstringouiUnique 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
durationintegerouiRequested track duration in seconds, from 15 to 300. Determines credits charged.
styleobjectouiSong 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
assetsobjectnonProvide the assets for voice cloning.
styleobjectouiText to speak in the supplied voice, with language and speech-speed options.
audioobjectnonAttach 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.

ParamètreTypeRequisDescription
Idempotency-KeystringnonA 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.
namestringnonOptional project name for identifying this output. Omit to use the API's default project name.
styleobjectouiThe content used to generate speech.

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

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

Configs prêtes à copier

Adresse distante utilisée : https://mcp.magichour.ai/. Formats repris de la documentation de chaque client.

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/"

Citer cette source

Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.

Magic Hour · L’Atlas · Test du

Markdown
[Magic Hour — L’Atlas](https://latlas.dev/mcp/io.github.magichourhq/magic-hour)
Méthode et limites des tests

Source : Registre officiel MCP · relevé le 1 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.