Magic Hour
io.github.magichourhq/magic-hour
Serveur MCP OK 58 outils
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
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.magichourhq/magic-hour)<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
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:13 | OK | 1 036 ms | 58 |
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ètre | Type | Requis | Description |
|---|---|---|---|
| workflow | enum: "video-face-swap" | "image-editor" | "image-to-video" | "video-generator" | "lip-sync" | "ugc-ads" | "talking-photo" | "media-apis" | oui | Choose 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ètre | Type | Requis | Description |
|---|---|---|---|
| image | object | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| file | object | oui | Native ChatGPT attachment object containing download_url and file_id. |
| media_type | enum: "video" | "image" | "audio" | oui | Actual 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ètre | Type | Requis | Description |
|---|---|---|---|
| credit_shortfall | number | null | non | Credits the refused request is missing. |
| pack_count | integer | null | non | Credit 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout. |
| poll_interval_seconds | number | non | Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds. |
| timeout_seconds | number | non | Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation. |
| include_inline_downloads | boolean | non | Reserved for compatibility. Video waits return download links, never inline video, regardless of this value. |
| max_inline_downloads | integer | non | Reserved 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout. |
| poll_interval_seconds | number | non | Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds. |
| timeout_seconds | number | non | Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation. |
| include_inline_downloads | boolean | non | Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails. |
| max_inline_downloads | integer | non | Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit. |
| max_bytes_per_download | integer | non | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout. |
| poll_interval_seconds | number | non | Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds. |
| timeout_seconds | number | non | Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation. |
| include_inline_downloads | boolean | non | Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails. |
| max_inline_downloads | integer | non | Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit. |
| max_bytes_per_download | integer | non | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| download_url | string | oui | Exact 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_bytes | integer | non | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| download_url | string | oui | Exact 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_bytes | integer | non | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| download_url | string | oui | Exact 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_bytes | integer | non | Positive 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ètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "credit_pack" | oui | What to buy. `credit_pack` is a one-time credit purchase. |
| pack_count | integer | non | Number of credit packs the checkout starts with. Takes priority over `credit_shortfall`. |
| credit_shortfall | number | non | Credits 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ètre | Type | Requis | Description |
|---|---|---|---|
| tool | enum: "ai-image-generator" | "ai-image-editor" | "ai-image-upscaler" | "body-swap" | "head-swap" | "face-swap-photo" | "ai-clothes-changer" | "ai-face-editor" … | oui | The create endpoint to price, named by its path. For example `ai-image-editor` for `POST /v1/ai-image-editor`. |
| model | string | non | The `model` of the create request. Used by `ai-image-generator`, `ai-image-editor`. |
| resolution | string | non | The `resolution` of the create request. Used by `ai-image-generator`, `ai-image-editor`, `body-swap`. One of `640px`, `1k`, `2k`, `4k`. |
| image_count | integer | non | The `image_count` of the create request. Used by `ai-image-generator`, `ai-image-editor`. Defaults to 1. |
| scale_factor | number | non | The `scale_factor` of the create request. Used by `ai-image-upscaler`. One of `2`, `4`. |
| mode | string | non | The `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ètre | Type | Requis | Description |
|---|---|---|---|
| tool | enum: "image-to-video" | "text-to-video" | "ai-ugc-ad" | "ai-video-editor" | "character-replace" | "audio-to-video" | "ai-video-translator" | "ai-video-upscaler" … | oui | The create endpoint to price, named by its path. For example `image-to-video` for `POST /v1/image-to-video`. |
| end_seconds | number | oui | The `end_seconds` of the create request. Used by every tool. |
| start_seconds | number | non | The `start_seconds` of the create request, for tools whose create request has it. Defaults to 0. |
| model | string | non | The `model` of the create request. Used by `image-to-video`, `text-to-video`, `ai-ugc-ad`, `ai-video-editor`, `character-replace`. |
| resolution | string | non | The `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`. |
| audio | boolean | non | The `audio` of the create request. Used by `image-to-video`, `text-to-video`. Defaults to `false`. |
| has_video_reference | boolean | non | Whether 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ètre | Type | Requis | Description |
|---|---|---|---|
| tool | enum: "ai-voice-generator" | "ai-voice-cloner" | "ai-music-generator" | oui | The create endpoint to price, named by its path. For example `ai-voice-generator` for `POST /v1/ai-voice-generator`. |
| character_count | integer | non | The number of characters in the `style.prompt` of the create request. Used by `ai-voice-generator`, `ai-voice-cloner`. |
| duration | integer | non | The `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ètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "character" | "reference" | "voice" | "moodboard" | "brand_kit" | non | Only return saved items of this type. |
| limit | integer | non | Maximum number of saved items to return. Defaults to 20. |
| cursor | string | non | Opaque 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ètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non | Maximum number of voices to return. Defaults to 20. |
| cursor | string | non | Opaque 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ètre | Type | Requis | Description |
|---|---|---|---|
| items | array<object> | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| confidence_score | number | non | Confidence 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. |
| assets | object | non | Provide the assets for face detection |
| image | object | non | Attach the image from ChatGPT for this input. |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | oui | The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s. |
| end_seconds | number | oui | The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s. |
| assets | object | non | Provide the assets for creating a talking photo |
| style | object | non | Attributes used to dictate the style of the output |
| resolution | enum: "480p" | "720p" | non | Output preset. Overrides `max_resolution`. Defaults to 480p in prompted mode; realistic mode uses the mapped plan maximum. |
| image | object | non | Attach the image from ChatGPT for this input. |
| audio | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| assets | object | non | Prepared image to animate into the spoken ad. The script is supplied separately. |
| script | string | oui | The 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_seconds | number | oui | Video 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… |
| model | enum: "kling-3.0" | "ltx-2.5" | "veo3.1" | non | Defaults to kling-3.0 on paid plans and ltx-2.5 on free plans. |
| resolution | enum: "480p" | "720p" | "1080p" | non | Defaults to 720p on paid plans and 480p on free plans. Unsupported model/resolution combinations and resolutions unavailable for your plan are rejected. |
| image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | non | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End 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`),… |
| model | enum: "gemini-omni-1.1" | "gemini-omni-1.2" | "wan-3.0" | "ltx-2.5" | "kling-4.0" | "gemini-omni" | "ltx-2.3" | non | The 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… |
| resolution | enum: "360p" | "480p" | "720p" | "1080p" | "4k" | non | Output 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. |
| style | object | oui | Instructions describing the changes to make to the source video. |
| references | array<object> | non | Name 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. |
| assets | object | non | Provide the assets for video editing. |
| video | object | non | Attach the video from ChatGPT for this input. |
| reference_images | array<object> | non | Attached 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | non | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long. |
| target_language | enum: "English" | "Chinese (Simplified)" | "Hindi" | "Spanish" | "Arabic" | "French" | "Afrikaans" | "Bengali" … | oui | Language to translate the video's speech into. |
| resolution | enum: "480p" | "720p" | "1080p" | non | Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan. |
| assets | object | non | Source video for the translation job. |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | non | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. |
| resolution | enum: "720p" | "1080p" | "2k" | "4k" | oui | Output 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. |
| assets | object | non | Source video for the upscale job. |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| fps | number | oui | The desire output video frame rate |
| end_seconds | number | oui | This value determines the duration of the output video. |
| height | integer | oui | The 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 |
| width | integer | oui | The 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 |
| style | object | oui | Defines the style of the output video |
| assets | object | oui | Provide the assets for animation. |
| image | object | non | Attach the image from ChatGPT for this input. |
| audio | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | non | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End 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… |
| resolution | enum: "480p" | "720p" | "1080p" | non | Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers. |
| assets | object | non | Provide the audio file and an optional reference image. |
| style | object | non | Attributes used to dictate the style of the output |
| image | object | non | Attach the image from ChatGPT for this input. |
| audio | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | oui | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. |
| assets | object | non | Provide the assets for auto subtitle generator |
| style | object | oui | Style 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… |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | non | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End 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… |
| model | enum: "wan-animate" | "kling-3.0" | "kling-4.0" | "minimax-h3" | non | Model 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`**:… |
| resolution | enum: "480p" | "720p" | "1080p" | non | Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model. |
| assets | object | non | Source video and reference character image for the job. |
| style | object | non | Optional style controls for replace vs animate mode and subject selection. |
| character_image | object | non | Attach the character image from ChatGPT for this input. |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | oui | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. |
| style | object | non | Style of the face swap video. |
| assets | object | oui | Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used |
| source_face | object | non | Attach the source face from ChatGPT for this input. |
| video | object | non | Attach the video from ChatGPT for this input. Set assets.video_source to file. |
| replacement_faces | array<object> | non | Attached 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| end_seconds | number | oui | The 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… |
| model | enum: "default" | "minimax-h3" | "kling-4.0" | "kling-3.0" | "ltx-2.5" | "wan-2.2" | "seedance-2.5" | "wan-3.0" … | non | The 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… |
| resolution | enum: "360p" | "480p" | "720p" | "1080p" | "4k" | non | Controls 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… |
| audio | boolean | non | Whether 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`**:… |
| style | object | non | Attributed used to dictate the style of the output |
| assets | object | non | Provide the assets for image-to-video. |
| image | object | non | The ChatGPT photo to use as the video's first frame. |
| last_frame | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | oui | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. |
| max_fps_limit | number | non | Defines 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. |
| assets | object | oui | Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used |
| style | object | non | Attributes used to dictate the style of the output |
| video | object | non | Attach the video from ChatGPT for this input. Set assets.video_source to file. |
| audio | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| end_seconds | number | oui | The 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_ratio | enum: "16:9" | "9:16" | "1:1" | non | Keep 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… |
| resolution | enum: "360p" | "480p" | "720p" | "1080p" | "4k" | non | Controls 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… |
| model | enum: "default" | "minimax-h3" | "kling-4.0" | "kling-3.0" | "ltx-2.5" | "wan-2.2" | "seedance-2.5" | "wan-3.0" … | non | The 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… |
| audio | boolean | non | Whether 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`**:… |
| style | object | oui | Instructions describing the video to generate. |
| references | array<object> | non | Name 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_images | array<object> | non | Attached image files. Set image_index in each matching entry to its position in this list, starting at 1. |
| reference_videos | array<object> | non | Attached video files. Set video_index in each matching entry to its position in this list, starting at 1. |
| reference_audio | array<object> | non | Attached 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| start_seconds | number | oui | Start time of your clip (seconds). Must be ≥ 0. |
| end_seconds | number | oui | End time of your clip (seconds). Must be greater than start_seconds. |
| height | integer | null | non | Source video height in integer pixels. Required and positive for v3; ignored for v1/v2. |
| fps | number | non | Source video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames. |
| width | integer | null | non | Source video width in integer pixels. Required and positive for v3; ignored for v1/v2. |
| fps_resolution | enum: "FULL" | "HALF" | non | Determines 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 |
| style | object | oui | Art preset, rendering version, model and prompt controls for restyling the video. |
| assets | object | oui | Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used |
| first_frame | object | non | Attach the first frame from ChatGPT for this input. |
| video | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for clothes changer |
| person_image | object | non | Attach the person image from ChatGPT for this input. |
| garment_image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for face editor |
| style | object | oui | Face editing parameters |
| image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| style | object | oui | Text instructions for the animation's subject, appearance and motion. |
| output_format | enum: "gif" | "mp4" | "webm" | non | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| image_count | enum: 1 | 4 | 9 | 16 | non | Number of images to generate. Maximum varies by model. Defaults to 1 if not specified. |
| model | enum: "default" | "qwen-image-2.1" | "gpt-image-2" | "flux-2-klein" | "flux-3-klein" | "nano-banana-pro" | "seedream-v5-pro" | "seedream-v5-flash" … | non | If 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_ratio | enum: "auto" | "16:9" | "9:16" | "4:3" | "3:2" | "1:1" | "4:5" | "2:3" | non | Keep 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… |
| resolution | enum: "auto" | "640px" | "1k" | "2k" | "4k" | non | Maximum 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… |
| style | object | oui | Text instructions describing the edits to make to the supplied images. |
| assets | object | non | Provide the assets for image edit |
| images | array<object> | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| style | object | non | Optional headshot appearance instructions. Omit the prompt for the API's default style. |
| assets | object | non | Provide the assets for headshot photo |
| image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| image_count | integer | oui | Number of images to generate. Maximum varies by model. |
| model | enum: "default" | "z-image-turbo" | "gpt-image-2" | "qwen-image-2.1" | "flux-2-klein" | "flux-3-klein" | "nano-banana-2.1" | "nano-banana-pro" … | non | When 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_ratio | enum: "1:1" | "16:9" | "9:16" | non | Keep 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… |
| resolution | enum: "auto" | "640px" | "1k" | "2k" | "4k" | non | Maximum 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… |
| style | object | oui | The 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| scale_factor | number | oui | How much to scale the image. Must be either 2 or 4. Note: 4x upscale is only available on Creator, Pro, or Business tier. |
| style | object | non | Style settings for the upscale. Use `mode` (`"preserve"`, `"balanced"`, or `"creative"`). Defaults to `"balanced"`. |
| assets | object | non | Provide the assets for upscaling |
| image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | The name of the meme. |
| style | object | oui | Meme 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| content | string | oui | The content of the QR code. |
| style | object | oui | Visual 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| resolution | enum: "640px" | "1k" | "2k" | "4k" | oui | Output resolution. Determines credits charged for the run. |
| assets | object | non | Person image and scene image for body swap |
| person_image | object | non | Attach the person image from ChatGPT for this input. |
| scene_image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for face swap photo |
| source_face | object | non | Attach the source face from ChatGPT for this input. |
| target_image | object | non | Attach the target image from ChatGPT for this input. |
| replacement_faces | array<object> | non | Attached 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| max_resolution | integer | non | Constrains 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. |
| assets | object | non | Provide the body and head images for head swap |
| head_image | object | non | Attach the head image from ChatGPT for this input. |
| body_image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for background removal |
| image | object | non | Attach the image from ChatGPT for this input. |
| background_image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for photo colorization |
| image | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Unique 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| duration | integer | oui | Requested track duration in seconds, from 15 to 300. Determines credits charged. |
| style | object | oui | Song 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| assets | object | non | Provide the assets for voice cloning. |
| style | object | oui | Text to speak in the supplied voice, with language and speech-speed options. |
| audio | object | non | Attach 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ètre | Type | Requis | Description |
|---|---|---|---|
| Idempotency-Key | string | non | A 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. |
| name | string | non | Optional project name for identifying this output. Omit to use the API's default project name. |
| style | object | oui | The 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.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://mcp.magichour.ai/. Formats repris de la documentation de chaque client.
claude mcp add --transport http magic-hour https://mcp.magichour.ai/Customize > Connectors > + Add > Add custom connector ; Name : magic-hour ; URL : https://mcp.magichour.ai/chatgpt.com/plugins > + > Add custom MCP server ; Name : magic-hour ; Server URL : https://mcp.magichour.ai/ ; Create as a plugin{
"mcpServers": {
"magic-hour": {
"url": "https://mcp.magichour.ai/"
}
}
}{
"mcpServers": {
"magic-hour": {
"type": "http",
"url": "https://mcp.magichour.ai/",
"tools": ["*"]
}
}
}{
"mcpServers": {
"magic-hour": {
"url": "https://mcp.magichour.ai/"
}
}
}{
"mcpServers": {
"magic-hour": {
"httpUrl": "https://mcp.magichour.ai/"
}
}
}[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
[Magic Hour — L’Atlas](https://latlas.dev/mcp/io.github.magichourhq/magic-hour)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.