{"server":"Magic Hour","checked":"2026-11-26","tools":[{"name":"add_subtitles_to_video","title":"Add subtitles to video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Auto Subtitle - dateTime","example":"My Auto Subtitle video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.","format":"float","example":5},"assets":{"type":"object","properties":{"video_file_path":{"minLength":1,"type":"string","description":"This is the video used to add subtitles. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"}},"description":"Provide the assets for auto subtitle generator"},"style":{"type":"object","properties":{"template":{"enum":["karaoke","cinematic","minimalist","highlight"],"type":"string","description":"Preset subtitle templates. Please visit https://magichour.ai/create/auto-subtitle-generator to see the style of the existing templates.","example":"karaoke"},"custom_config":{"type":"object","properties":{"font":{"type":"string","description":"Font name from Google Fonts. Not all fonts support all languages or character sets. \nWe recommend verifying language support and appearance directly on https://fonts.google.com before use.","example":"Noto Sans"},"font_size":{"type":"number","description":"Font size in pixels. If not provided, the font size is automatically calculated based on the video resolution.","example":24},"font_style":{"type":"string","description":"Font style (e.g., normal, italic, bold)","example":"normal"},"text_color":{"type":"string","description":"Primary text color in hex format","example":"#FFFFFF"},"highlighted_text_color":{"type":"string","description":"Color used to highlight the current spoken text","example":"#FFD700"},"stroke_color":{"type":"string","description":"Stroke (outline) color of the text","example":"#000000"},"stroke_width":{"type":"number","description":"Width of the text stroke in pixels. If `stroke_color` is provided, but `stroke_width` is not, the `stroke_width` will be calculated automatically based on the font size.","example":1},"vertical_position":{"type":"string","description":"Vertical alignment of the text (e.g., top, center, bottom)","example":"bottom"},"horizontal_position":{"type":"string","description":"Horizontal alignment of the text (e.g., left, center, right)","example":"center"}},"description":"Custom subtitle configuration."}},"description":"Style of the subtitle. At least one of `.style.template` or `.style.custom_config` must be provided. \n* If only `.style.template` is provided, default values for the template will be used.\n* If both are provided, the fields in `.style.custom_config` will be used to overwrite the fields in `.style.template`.\n* If only `.style.custom_config` is provided, then all fields in `.style.custom_config` will be used.\n\nTo use custom config only, the following `custom_config` params are required:\n* `.style.custom_config.font`\n* `.style.custom_config.text_color`\n* `.style.custom_config.vertical_position`\n* `.style.custom_config.horizontal_position`\n"},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."}},"required":["start_seconds","end_seconds","style"],"anyOf":[{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["video_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"ai_voice_cloner_create_audio","title":"AI Voice Cloner","description":"MCP guidance:\n- 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.\n- 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.\n\nClone a voice from an audio sample and generate speech. \n* Each character costs 0.1 credits. \n* 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Voice Cloner - dateTime","example":"My Voice Cloner audio"},"assets":{"type":"object","properties":{"audio_file_path":{"minLength":1,"type":"string","description":"The audio used to clone the voice. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp3"}},"description":"Provide the assets for voice cloning."},"style":{"required":["prompt"],"type":"object","properties":{"language":{"enum":["auto","chinese","english","japanese","korean","german","french","spanish","italian","russian","portuguese","hindi","polish","arabic","dutch","hebrew","tagalog","thai","urdu","turkish","vietnamese","tamil","persian","ukrainian","bengali","indonesian","marathi","romanian","swahili","nepali","telugu","punjabi","gujarati","javanese","burmese","kannada","cantonese","uzbek","afrikaans","albanian","amharic","armenian","assamese","azerbaijani","basque","belarusian","bulgarian","catalan","cebuano","croatian","czech","danish","estonian","finnish","galician","georgian","greek","haitian creole","hungarian","icelandic","kazakh","konkani","lao","latvian","lithuanian","luxembourgish","macedonian","maithili","malagasy","malay","malayalam","mongolian","norwegian","odia","pashto","serbian","sindhi","sinhala","slovak","slovenian","swedish","welsh"],"type":"string","description":"Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto.","default":"auto","example":"spanish"},"speed":{"maximum":1.3,"minimum":0.75,"type":"number","description":"Speech speed multiplier, from 0.75 to 1.30 inclusive. Defaults to 1 (normal speed).","default":1,"example":1.15},"prompt":{"maxLength":5000,"minLength":1,"type":"string","description":"Text used to generate speech from the cloned voice. The character limit is 5000 characters.","example":"Hello, this is my cloned voice."}},"description":"Text to speak in the supplied voice, with language and speech-speed options."},"audio":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the audio from ChatGPT for this input."}},"required":["style"],"anyOf":[{"required":["audio"]},{"required":["assets"],"properties":{"assets":{"required":["audio_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"ai_voice_generator_create_audio","title":"AI Voice Generator","description":"MCP guidance:\n- 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.\n\nGenerate 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.","inputSchema":{"type":"object","x-omitted":"schema too large to store"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"change_clothes_in_photo","title":"Change clothes in photo","description":"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.\n\nChanges 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Clothes Changer - dateTime","example":"My Clothes Changer image"},"assets":{"type":"object","properties":{"person_file_path":{"minLength":1,"type":"string","description":"The image with the person. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/model.png"},"garment_file_path":{"minLength":1,"type":"string","description":"The image of the outfit. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/outfit.png"},"garment_type":{"enum":["entire_outfit","upper_body","lower_body","dresses"],"type":"string","description":"Type of clothing item to swap. If not provided, swaps the entire outfit. \n* `upper_body` - for shirts/jackets \n* `lower_body` - for pants/skirts \n* `dresses` - for entire outfit (deprecated, use `entire_outfit` instead) \n* `entire_outfit` - for entire outfit","example":"entire_outfit"}},"description":"Provide the assets for clothes changer"},"person_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the person image from ChatGPT for this input."},"garment_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the garment image from ChatGPT for this input."}},"allOf":[{"anyOf":[{"required":["person_image"]},{"required":["assets"],"properties":{"assets":{"required":["person_file_path"]}}}]},{"anyOf":[{"required":["garment_image"]},{"required":["assets"],"properties":{"assets":{"required":["garment_file_path"]}}}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"checkout_create","title":"Create checkout","description":"Create a Stripe Checkout link for the account that owns the API key. Nothing is charged until the checkout is completed in a browser.","inputSchema":{"type":"object","properties":{"type":{"enum":["credit_pack"],"type":"string","description":"What to buy. `credit_pack` is a one-time credit purchase."},"pack_count":{"maximum":10000.0,"minimum":1.0,"type":"integer","description":"Number of credit packs the checkout starts with. Takes priority over `credit_shortfall`.","example":3},"credit_shortfall":{"minimum":1.0,"type":"number","description":"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.","example":150}},"required":["type"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"colorize_photo","title":"Colorize photo","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Photo Colorizer - dateTime","example":"My Photo Colorizer image"},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"The image used to generate the colorized image. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for photo colorization"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."}},"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_animation","title":"Create animation","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Animation - dateTime","example":"My Animation video"},"fps":{"minimum":1.0,"type":"number","description":"The desire output video frame rate","example":12},"end_seconds":{"minimum":0.1,"type":"number","description":"This value determines the duration of the output video.","format":"float","example":5},"height":{"minimum":64.0,"type":"integer","description":"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","example":512},"width":{"minimum":64.0,"type":"integer","description":"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","example":512},"style":{"required":["art_style","camera_effect","prompt_type","transition_speed"],"type":"object","properties":{"art_style":{"enum":["Custom","Painterly Illustration","Vibrant Matte Illustration","Traditional Watercolor","Cyberpunk","Ink and Watercolor Portrait","Intricate Abstract Lines Portrait","3D Render","Old School Comic","Bold Colored Illustration","Synthwave","Minimal Cold Futurism","Futuristic Anime","Cinematic Miyazaki","Studio Ghibli Film Still","Soft Delicate Matte Portrait","Cinematic Landscape","Landscape Painting","Photograph","Jackson Pollock","Cubist","Abstract Minimalist","Impressionism","Van Gogh","Woodcut","Oil Painting","Vintage Japanese Anime","Pixar","Cosmic","Pixel Art","Fantasy","Arcane","Sin City","Double Exposure","Painted Cityscape","90s Streets","Overgrown","Postapocalyptic","Spooky","Miniatures","Low Poly","Art Deco","Inkpunk","Dark Graphic Illustration","Dark Watercolor","Faded Illustration","Directed by AI"],"type":"string","description":"The art style used to create the output video","example":"Painterly Illustration"},"art_style_custom":{"type":"string","description":"Describe custom art style. This field is required if `art_style` is `Custom`","example":"Watercolor painting with soft pastel colors"},"camera_effect":{"enum":["Simple Zoom Out","Simple Zoom In","Bounce Out","Spin Bounce","Rolling Bounces","Rise and Climb","Dramatic Zoom In","Dramatic Zoom Out","Sway Out","Boost Zoom In","Boost Zoom Out","Heartbeat","Bounce in Place","Earthquake Bounce","Slice Bounce","Bounce In And Out","Jump","Road Trip","Traverse","Rubber Band","Rodeo","Accelerate","Speed of Light","Drift Spin","Vertigo","Cog in the Machine","Quadrant","Tron","Pusher","Roll In","Hesitate In","Zoom In - Audio Sync","Pulse - Audio Sync","Aggressive Zoom In - Audio Sync","Roll In - Audio Sync","Zoom Out - Audio Sync","Aggressive Zoom Out - Audio Sync","Sway Out - Audio Sync","Bounce and Spin - Audio Sync","Zoom In and Spin - Audio Sync","Vertigo - Audio Sync","Bounce Out - Audio Sync","Earthquake Bounce - Audio Sync","Pusher - Audio Sync","Evolve - Audio Sync","Devolve - Audio Sync","Slideshow","Pan Left","Pan Right","Tilt Up","Tilt Down","Directed by AI"],"type":"string","description":"The camera effect used to create the output video","example":"Simple Zoom In"},"prompt_type":{"enum":["custom","use_lyrics","ai_choose"],"type":"string","description":"\n* `custom` - Use your own prompt for the video.\n* `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.\n* `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.","example":"custom"},"prompt":{"type":"string","description":"The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored","example":"Cyberpunk city"},"transition_speed":{"maximum":10.0,"minimum":1.0,"type":"integer","description":"Change determines how quickly the video's content changes across frames. \n* Higher = more rapid transitions.\n* Lower = more stable visual experience.","example":5}},"description":"Defines the style of the output video"},"assets":{"required":["audio_source"],"type":"object","properties":{"audio_source":{"enum":["none","file","youtube"],"type":"string","description":"Optionally add an audio source if you'd like to incorporate audio into your video","example":"file"},"audio_file_path":{"minLength":1,"type":"string","description":"The path of the input audio. This field is required if `audio_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp3"},"youtube_url":{"minLength":1,"type":"string","description":"Using a youtube video as the input source. This field is required if `audio_source` is `youtube`","format":"uri"},"image_file_path":{"minLength":1,"type":"string","description":"An initial image to use a the first frame of the video. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for animation.","example":{"audio_source":"file","audio_file_path":"api-assets/id/1234.mp3","image_file_path":"api-assets/id/1234.png"}},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."},"audio":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the audio from ChatGPT for this input. Set assets.audio_source to file."}},"required":["fps","end_seconds","height","width","style","assets"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_credit_checkout","title":"Create Credit Checkout","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"credit_shortfall":{"anyOf":[{"minimum":1,"type":"number"},{"type":"null"}],"default":null,"description":"Credits the refused request is missing."},"pack_count":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Credit packs to start with, when the user names a number. Takes priority over credit_shortfall."}},"type":"object"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"create_gif_or_short_video","title":"Create GIF or short video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Ai Gif - dateTime","example":"My Ai Gif gif"},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"maxLength":4000,"minLength":1,"type":"string","description":"The prompt used for the GIF.","example":"Cute dancing cat, pixel art"}},"description":"Text instructions for the animation's subject, appearance and motion."},"output_format":{"enum":["gif","mp4","webm"],"type":"string","description":"The output file format for the generated animation.","default":"gif","example":"gif"}},"required":["style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"create_lip_sync_video","title":"Create lip sync video","description":"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.\n\nUse 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Lip Sync - dateTime","example":"My Lip Sync video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.","format":"float","example":5},"max_fps_limit":{"minimum":1.0,"type":"number","description":"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.","example":12},"assets":{"required":["video_source"],"type":"object","properties":{"audio_file_path":{"minLength":1,"type":"string","description":"The path of the audio file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp3"},"video_source":{"enum":["file","youtube"],"type":"string","description":"Choose your video source.","example":"file"},"video_file_path":{"type":"string","description":"Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"},"youtube_url":{"type":"string","description":"YouTube URL (required if `video_source` is `youtube`).","format":"uri"}},"description":"Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used","example":{"audio_file_path":"api-assets/id/1234.mp3","video_source":"file","video_file_path":"api-assets/id/1234.mp4"}},"style":{"type":"object","properties":{"generation_mode":{"enum":["lite","standard","pro"],"type":"string","description":"Select the lip-sync mode. `lite` costs 1 credit per video frame. `standard` costs 1 credit per video frame; `pro` costs 2. Both `standard` and `pro` require visible mouth movement in the opening seconds of the input video. `pro` requires a Creator, Pro or Business tier. For a still image, including a static image saved as video, use `create_talking_photo` with the original image and audio.","default":"lite","example":"lite"}},"description":"Attributes used to dictate the style of the output"},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input. Set assets.video_source to file."},"audio":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the audio from ChatGPT for this input."}},"required":["start_seconds","end_seconds","assets"],"anyOf":[{"required":["audio"]},{"required":["assets"],"properties":{"assets":{"required":["audio_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_meme","title":"Create meme","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the meme.","example":"My Funny Meme"},"style":{"required":["topic","template"],"type":"object","properties":{"topic":{"maxLength":200,"minLength":1,"type":"string","description":"The topic of the meme.","example":"When the code finally works"},"template":{"enum":["Random","Drake Hotline Bling","Galaxy Brain","Two Buttons","Gru's Plan","Tuxedo Winnie The Pooh","Is This a Pigeon","Panik Kalm Panik","Disappointed Guy","Waiting Skeleton","Bike Fall","Change My Mind","Side Eyeing Chloe","Woman Yelling at a Cat","Success Kid","One Does Not Simply","Bad Luck Brian","Futurama Fry","Ancient Aliens","Disaster Girl","Hide the Pain Harold","Distracted Boyfriend","Left Exit 12 Off Ramp","Running Away Balloon","Batman Slapping Robin","UNO Draw 25","Mocking SpongeBob","Boardroom Meeting Suggestion","X, X Everywhere","Buff Doge vs Cheems","Bernie Once Again Asking","Roll Safe Think About It","Blank Nut Button","Epic Handshake","Sad Pablo Escobar","Inhaling Seagull","Surprised Pikachu","Always Has Been","Scroll of Truth","Marked Safe From","Y'all Got Any More of That","Monkey Puppet","Oprah You Get A","They're the Same Picture","I Bet He's Thinking About Other Women","Evil Kermit","This Is Fine","This Is Where I'd Put My Trophy","Anakin Padme Four Panel","Who Killed Hannibal","Clown Applying Makeup","Trade Offer","Laughing Leo","Sleeping Shaq","Megamind Peeking","Grandma Finds the Internet","Doge","American Chopper Argument","First World Problems","Grumpy Cat","SpongeBob Ight Imma Head Out","But That's None of My Business","Creepy Condescending Wonka","Captain Picard Facepalm","Hard to Swallow Pills","Bell Curve","Absolute Cinema","You Guys Are Getting Paid","Types of Headaches","Mother Ignoring Kid Drowning in a Pool","Flex Tape","Spiderman Pointing at Spiderman","Charlie Conspiracy","Pawn Stars Best I Can Do","0 Days Without","Squidward Window","Where Monkey","Soldier Protecting Sleeping Child","They Don't Know","Spiderman Triple","Two Guys on a Bus","Imagination SpongeBob","All My Homies Hate","You Know I'm Something of a Scientist Myself","Anime Girl Hiding from Terminator","A Train Hitting a School Bus","AJ Styles and Undertaker","Three-Headed Dragon","Grant Gustin Over Grave","Whisper and Goosebumps","Scooby Doo Mask Reveal","Domino Effect","Two Paths","I'm the Captain Now","Say the Line Bart","Star Wars Yoda","Grim Reaper Knocking Door","Yo Dawg Heard You","Gus Fring We Are Not the Same","C'mon Do Something","Leonardo DiCaprio Cheers"],"type":"string","description":"To use our templates, pass in one of the enum values.","example":"Drake Hotline Bling"},"searchWeb":{"type":"boolean","description":"Whether to search the web for meme content.","default":false,"example":false}},"description":"Meme topic, template and whether to search the web for content."}},"required":["style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_qr_code","title":"Create QR code","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Qr Code - dateTime","example":"My Qr Code image"},"content":{"type":"string","description":"The content of the QR code.","example":"https://magichour.ai"},"style":{"required":["art_style"],"type":"object","properties":{"art_style":{"type":"string","description":"To use our templates, pass in one of Watercolor, Cyberpunk City, Ink Landscape, Interior Painting, Japanese Street, Mech, Minecraft, Picasso Painting, Game Map, Spaceship, Chinese Painting, Winter Village, or pass any custom art style.","example":"Watercolor"}},"description":"Visual art style for the QR code image."}},"required":["content","style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"create_spoken_ad_video","title":"Create spoken ad video","description":"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.","inputSchema":{"type":"object","properties":{"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"Prepared image to animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/image.jpg"}},"additionalProperties":false,"description":"Prepared image to animate into the spoken ad. The script is supplied separately."},"script":{"minLength":1,"type":"string","description":"The words the actor should speak. Character limits apply after trimming:\n* kling-3.0: 2304 characters.\n* ltx-2.5: 3804 characters.\n* veo3.1: 2500 characters.\nLTX and Kling dialogue wrappers count toward their model prompt limit.","example":"Meet your new everyday essential."},"end_seconds":{"minimum":1.0,"type":"number","description":"Video duration in seconds. Supported values by model:\n* kling-3.0: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 seconds.\n* ltx-2.5: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 seconds.\n* veo3.1: 4, 6, 8, 15, 22, 29, 36, 43, 50, 57, 64, 71, 78, 85, 92, 99, 106, 113, 120, 127, 134, 141 seconds.\nFree plans are limited to 5 seconds unless a credit pack has been purchased.","example":4},"model":{"enum":["kling-3.0","ltx-2.5","veo3.1"],"type":"string","description":"Defaults to kling-3.0 on paid plans and ltx-2.5 on free plans.","example":"ltx-2.5"},"resolution":{"enum":["480p","720p","1080p"],"type":"string","description":"Defaults to 720p on paid plans and 480p on free plans. Unsupported model/resolution combinations and resolutions unavailable for your plan are rejected.","example":"480p"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."}},"required":["script","end_seconds"],"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_talking_photo","title":"Create talking photo","description":"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.\n\nUse 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Talking Photo - dateTime","example":"My Talking Photo video"},"start_seconds":{"minimum":0.0,"type":"number","description":"The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.","format":"float","example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s.","format":"float","example":5},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"The source image to animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"audio_file_path":{"minLength":1,"type":"string","description":"The audio file to sync with the image. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp3"}},"description":"Provide the assets for creating a talking photo"},"style":{"type":"object","properties":{"generation_mode":{"enum":["realistic","prompted","pro","standard","stable","expressive"],"type":"string","description":"Controls motion style. `realistic` animates the supplied portrait; `prompted` also accepts a scene prompt. Deprecated aliases remain supported: `pro` and `stable` select `realistic`; `standard` and `expressive` select `prompted`.","default":"realistic","example":"realistic"},"prompt":{"type":"string","description":"A text prompt to guide the generation. Only applicable when generation_mode is `prompted`.\nThis field is ignored for other modes.","example":"A person smiling and speaking naturally to the camera"}},"description":"Attributes used to dictate the style of the output"},"resolution":{"enum":["480p","720p"],"type":"string","description":"Output preset. Overrides `max_resolution`. Defaults to 480p in prompted mode; realistic mode uses the mapped plan maximum.","example":"480p"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."},"audio":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the audio from ChatGPT for this input."}},"required":["start_seconds","end_seconds"],"allOf":[{"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},{"anyOf":[{"required":["audio"]},{"required":["assets"],"properties":{"assets":{"required":["audio_file_path"]}}}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_video_from_audio","title":"Create video from audio","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Audio To Video - dateTime","example":"My Audio To Video video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","default":0,"example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.\n\nFree 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 changing it.","format":"float","example":5},"resolution":{"enum":["480p","720p","1080p"],"type":"string","description":"Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.","example":"480p"},"assets":{"type":"object","properties":{"audio_file_path":{"minLength":1,"type":"string","description":"The path of the audio file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp3"},"image_file_path":{"minLength":1,"type":"string","description":"Reference image for the initial frame of the video. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the audio file and an optional reference image."},"style":{"type":"object","properties":{"prompt":{"type":"string","description":"Prompt to guide the visual style of the video.","example":"Car driving through a city"}},"description":"Attributes used to dictate the style of the output"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."},"audio":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the audio from ChatGPT for this input."}},"required":["end_seconds"],"anyOf":[{"required":["audio"]},{"required":["assets"],"properties":{"assets":{"required":["audio_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_video_from_image","title":"Create video from image","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Image To Video - dateTime","example":"My Image To Video video"},"end_seconds":{"maximum":60.0,"minimum":1.0,"type":"number","description":"The total duration of the output video in seconds. Supported durations depend on the chosen model:\n\n* **`gemini-omni-1.2`**: any integer from 3 to 15\n* **`kling-2.6`**: 5, 10\n* **`kling-3.0`**: any integer from 3 to 15\n* **`kling-4.0`**: any integer from 3 to 30\n* **`ltx-2.5`**: any integer from 1 to 60\n* **`minimax-h3`**: any integer from 1 to 30\n* **`seedance-1.5`**: any integer from 4 to 12\n* **`seedance-2.0`**: any integer from 4 to 15\n* **`seedance-2.0-fast`**: any integer from 4 to 15\n* **`seedance-2.0-mini`**: any integer from 4 to 15\n* **`seedance-2.5`**: any integer from 4 to 30\n* **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15\n* **`wan-3.0`**: any integer from 2 to 30\n\nFree plans are currently limited to 10 seconds, 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 changing it.","format":"float","example":5},"model":{"enum":["default","minimax-h3","kling-4.0","kling-3.0","ltx-2.5","wan-2.2","seedance-2.5","wan-3.0","seedance-2.0-mini","veo3.1","veo3.1-lite","seedance-2.0","kling-2.6","gemini-omni-1.2","gemini-omni-1.1","seedance-2.0-fast","seedance-1.5","sora-2","ltx-2.3","ltx-2","kling-2.5","kling-1.6","seedance","kling-2.5-audio","veo3.1-audio"],"type":"string","description":"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 settings and required input capabilities. Deprecated model values ending in `-audio` enable `audio`.","default":"default","example":"ltx-2.5"},"resolution":{"enum":["360p","480p","720p","1080p","4k"],"type":"string","description":"Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.\n* **`kling-2.6`**: Supports 720p, 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Supports 480p, 720p.\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p.\n* **`veo3.1-lite`**: Supports 720p, 1080p.\n* **`wan-2.2`**: Supports 480p, 720p, 1080p.\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n","example":"480p"},"audio":{"type":"boolean","description":"Whether to include audio in the video. Defaults to `false` if not specified.\n\nAudio support varies by model:\n* **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio\n* **`kling-2.6`**: Not supported\n* **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled\n* **`kling-4.0`**: Toggle-able: no additional credits for audio\n* **`ltx-2.5`**: Toggle-able: no additional credits for audio\n* **`minimax-h3`**: Toggle-able: no additional credits for audio\n* **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled\n* **`seedance-2.0`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio\n* **`seedance-2.5`**: Toggle-able: no additional credits for audio\n* **`veo3.1`**: Toggle-able: audio adds extra credits when enabled\n* **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Toggle-able: no additional credits for audio\n","example":true},"style":{"type":"object","properties":{"prompt":{"type":"string","description":"The prompt used for the video. Maximum length depends on the model that runs, in characters:\n\n* **`gemini-omni-1.2`**: 4000 characters.\n* **`kling-2.6`**: 2500 characters.\n* **`kling-3.0`**: 2500 characters.\n* **`kling-4.0`**: 10000 characters.\n* **`ltx-2.5`**: 4000 characters.\n* **`minimax-h3`**: 20000 characters.\n* **`seedance-1.5`**: 4000 characters.\n* **`seedance-2.0`**: 4000 characters.\n* **`seedance-2.0-fast`**: 4000 characters.\n* **`seedance-2.0-mini`**: 4000 characters.\n* **`seedance-2.5`**: 4000 characters.\n* **`veo3.1`**: 2500 characters.\n* **`veo3.1-lite`**: 2500 characters.\n* **`wan-2.2`**: 10000 characters.\n* **`wan-3.0`**: 10000 characters.\n\nFor `default`, the limit of the automatically selected model applies. Selection depends on subscription tier, resolution and duration. Specify an explicit model to use a known prompt limit. Prompts exceeding the effective model's limit are rejected, not truncated.","example":"a dog running"}},"description":"Attributed used to dictate the style of the output"},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"The path of the image file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"end_image_file_path":{"minLength":1,"type":"string","description":"The image to use as the last frame of the video.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k. Requires a duration of 10 seconds or less.\n* **`kling-2.6`**: Supports 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Not supported\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.\n* **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for image-to-video."},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"The ChatGPT photo to use as the video's first frame."},"last_frame":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the last frame from ChatGPT for this input."}},"required":["end_seconds"],"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"create_video_from_text","title":"Create video from text","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Text To Video - dateTime","example":"My Text To Video video"},"end_seconds":{"maximum":60.0,"minimum":1.0,"type":"number","description":"The total duration of the output video in seconds. Supported durations depend on the chosen model:\n\n* **`gemini-omni-1.2`**: any integer from 3 to 15\n* **`kling-2.6`**: 5, 10\n* **`kling-3.0`**: any integer from 3 to 15\n* **`kling-4.0`**: any integer from 3 to 30\n* **`ltx-2.5`**: any integer from 1 to 60\n* **`minimax-h3`**: any integer from 1 to 30\n* **`seedance-1.5`**: any integer from 4 to 12\n* **`seedance-2.0`**: any integer from 4 to 15\n* **`seedance-2.0-fast`**: any integer from 4 to 15\n* **`seedance-2.0-mini`**: any integer from 4 to 15\n* **`seedance-2.5`**: any integer from 4 to 30\n* **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15\n* **`wan-3.0`**: any integer from 2 to 30\n\nFree plans are currently limited to 10 seconds, 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 changing it.","format":"float","example":5},"aspect_ratio":{"enum":["16:9","9:16","1:1"],"type":"string","description":"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 video will be used, ask before generating. If omitted, the video is 16:9.\n\nDetermines the aspect ratio of the output video.\n\n* **`gemini-omni-1.2`**: Supports 16:9, 9:16.\n* **`kling-2.6`**: Supports 9:16, 16:9, 1:1.\n* **`kling-3.0`**: Supports 9:16, 16:9, 1:1.\n* **`kling-4.0`**: Supports 9:16, 16:9, 1:1.\n* **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.\n* **`minimax-h3`**: Supports 16:9, 9:16, 1:1.\n* **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0-fast`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.\n* **`veo3.1`**: Supports 9:16, 16:9.\n* **`veo3.1-lite`**: Supports 9:16, 16:9.\n* **`wan-2.2`**: Supports 9:16, 16:9, 1:1.\n* **`wan-3.0`**: Supports 16:9, 9:16, 1:1.\n","example":"16:9"},"resolution":{"enum":["360p","480p","720p","1080p","4k"],"type":"string","description":"Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.\n* **`kling-2.6`**: Supports 720p, 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Supports 480p, 720p.\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p.\n* **`veo3.1-lite`**: Supports 720p, 1080p.\n* **`wan-2.2`**: Supports 480p, 720p, 1080p.\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n","example":"480p"},"model":{"enum":["default","minimax-h3","kling-4.0","kling-3.0","ltx-2.5","wan-2.2","seedance-2.5","wan-3.0","seedance-2.0-mini","veo3.1","veo3.1-lite","seedance-2.0","kling-2.6","gemini-omni-1.2","gemini-omni-1.1","seedance-2.0-fast","seedance-1.5","sora-2","ltx-2.3","ltx-2","kling-2.5","kling-1.6","seedance","kling-2.5-audio","veo3.1-audio"],"type":"string","description":"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 settings and required input capabilities. Deprecated model values ending in `-audio` enable `audio`.","default":"default","example":"ltx-2.5"},"audio":{"type":"boolean","description":"Whether to include audio in the video. Defaults to `false` if not specified.\n\nAudio support varies by model:\n* **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio\n* **`kling-2.6`**: Not supported\n* **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled\n* **`kling-4.0`**: Toggle-able: no additional credits for audio\n* **`ltx-2.5`**: Toggle-able: no additional credits for audio\n* **`minimax-h3`**: Toggle-able: no additional credits for audio\n* **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled\n* **`seedance-2.0`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio\n* **`seedance-2.5`**: Toggle-able: no additional credits for audio\n* **`veo3.1`**: Toggle-able: audio adds extra credits when enabled\n* **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Toggle-able: no additional credits for audio\n","example":true},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"minLength":1,"type":"string","description":"The prompt used for the video. Maximum length depends on the model that runs, in characters:\n\n* **`gemini-omni-1.2`**: 4000 characters.\n* **`kling-2.6`**: 2500 characters.\n* **`kling-3.0`**: 2500 characters.\n* **`kling-4.0`**: 10000 characters.\n* **`ltx-2.5`**: 4000 characters.\n* **`minimax-h3`**: 20000 characters.\n* **`seedance-1.5`**: 4000 characters.\n* **`seedance-2.0`**: 4000 characters.\n* **`seedance-2.0-fast`**: 4000 characters.\n* **`seedance-2.0-mini`**: 4000 characters.\n* **`seedance-2.5`**: 4000 characters.\n* **`veo3.1`**: 2500 characters.\n* **`veo3.1-lite`**: 2500 characters.\n* **`wan-2.2`**: 10000 characters.\n* **`wan-3.0`**: 10000 characters.\n\nFor `default`, the limit of the automatically selected model applies. Selection depends on subscription tier, resolution and duration. Specify an explicit model to use a known prompt limit. Prompts exceeding the effective model's limit are rejected, not truncated.","example":"a dog running"}},"description":"Instructions describing the video to generate."},"references":{"maxItems":50,"minItems":1,"type":"array","items":{"required":["name"],"type":"object","properties":{"name":{"pattern":"^[A-Za-z][\\w-]*$","type":"string","description":"Reference label without @. Use @name in style.prompt to refer to this file; labels must be unique ignoring case.","example":"hero"},"file_path":{"minLength":1,"type":"string","description":"This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"image_index":{"type":"integer","minimum":1,"maximum":30,"description":"Position in reference_images, starting at 1. Use exactly one attachment index or file_path."},"video_index":{"type":"integer","minimum":1,"maximum":10,"description":"Position in reference_videos, starting at 1. Use exactly one attachment index or file_path."},"audio_index":{"type":"integer","minimum":1,"maximum":10,"description":"Position in reference_audio, starting at 1. Use exactly one attachment index or file_path."}},"oneOf":[{"required":["file_path"]},{"required":["image_index"]},{"required":["video_index"]},{"required":["audio_index"]}]},"description":"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.\n\nReference media for video generation.\n\nSupported models and reference media:\n* **`gemini-omni-1.2`**: Supports images, videos. Up to 10 references.\n* **`kling-3.0`**: Supports images, videos. Up to 10 references.\n* **`kling-4.0`**: Supports images, videos. Up to 10 references.\n* **`minimax-h3`**: Supports images, videos, audio. Up to 10 references. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full. Audio references must be 2–15 seconds each and are used in full.\n* **`seedance-2.0`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.0-fast`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.0-mini`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.5`**: Supports images, videos, audio. Up to 50 references. Maximum 30 images, 10 videos and 10 audio references. The worker trims video references to 30 seconds combined and audio references to 30 seconds combined. Audio references require an image or video reference.\n* **`veo3.1`**: Supports images. Up to 3 references. Requires `end_seconds` of 8.\n* **`wan-3.0`**: Supports images, videos, audio. Up to 10 references."},"reference_images":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":30,"description":"Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."},"reference_videos":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":10,"description":"Attached video files. Set video_index in each matching entry to its position in this list, starting at 1."},"reference_audio":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":10,"description":"Attached audio files. Set audio_index in each matching entry to its position in this list, starting at 1."}},"required":["end_seconds","style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"delete_audio_project","title":"Delete audio project","description":"Deletes the audio project and attempts to delete its completed output. Cannot be undone; confirm with the user first.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio."}},"required":["id"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"delete_image_project","title":"Delete image project","description":"Deletes the image project and attempts to delete its completed output. Cannot be undone; confirm with the user first.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the image project. This value is returned by all of the POST APIs that create an image."}},"required":["id"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"delete_video_project","title":"Delete video project","description":"Deletes the video project and attempts to delete its completed output. Cannot be undone; confirm with the user first.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the video project. This value is returned by all of the POST APIs that create a video."}},"required":["id"]},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"detect_faces","title":"Detect faces","description":"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.","inputSchema":{"type":"object","properties":{"confidence_score":{"multipleOf":0.05,"maximum":1.0,"minimum":0.0,"type":"number","description":"Confidence threshold for filtering detected faces. \n* Higher values (e.g., 0.9) include only faces detected with high certainty, reducing false positives. \n* Lower values (e.g., 0.3) include more faces, but may increase the chance of incorrect detections.","default":0.5,"example":0.5},"assets":{"type":"object","properties":{"target_file_path":{"type":"string","description":"This is the image or video where the face will be detected. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for face detection"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."}},"anyOf":[{"required":["image"]},{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["target_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"edit_face_in_photo","title":"Edit face in photo","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Face Editor - dateTime","example":"My Face Editor image"},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"This is the image whose face will be edited. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for face editor"},"style":{"type":"object","properties":{"enhance_face":{"type":"boolean","description":"Enhance face features","default":false,"example":false},"eyebrow_direction":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Eyebrow direction (-100 to 100), in increments of 5","default":0,"example":0},"eye_gaze_horizontal":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Horizontal eye gaze (-100 to 100), in increments of 5","default":0,"example":0},"eye_gaze_vertical":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Vertical eye gaze (-100 to 100), in increments of 5","default":0,"example":0},"eye_open_ratio":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Eye open ratio (-100 to 100), in increments of 5","default":0,"example":0},"lip_open_ratio":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Lip open ratio (-100 to 100), in increments of 5","default":0,"example":0},"head_roll":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Head roll (-100 to 100), in increments of 5","default":0,"example":0},"mouth_grim":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Mouth grim (-100 to 100), in increments of 5","default":0,"example":0},"mouth_pout":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Mouth pout (-100 to 100), in increments of 5","default":0,"example":0},"mouth_purse":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Mouth purse (-100 to 100), in increments of 5","default":0,"example":0},"mouth_smile":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Mouth smile (-100 to 100), in increments of 5","default":0,"example":0},"mouth_position_horizontal":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Horizontal mouth position (-100 to 100), in increments of 5","default":0,"example":0},"mouth_position_vertical":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Vertical mouth position (-100 to 100), in increments of 5","default":0,"example":0},"head_pitch":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Head pitch (-100 to 100), in increments of 5","default":0,"example":0},"head_yaw":{"multipleOf":5.0,"maximum":100.0,"minimum":-100.0,"type":"number","description":"Head yaw (-100 to 100), in increments of 5","default":0,"example":0}},"description":"Face editing parameters"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."}},"required":["style"],"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"edit_image","title":"Edit image","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Ai Image Editor - dateTime","example":"My Ai Image Editor image"},"image_count":{"enum":[1,4,9,16],"type":"number","description":"Number of images to generate. Maximum varies by model. Defaults to 1 if not specified.","default":1,"example":1},"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","seedream-v4.5","nano-banana-2.1","qwen-edit","nano-banana-2-lite","krea-2","gpt-image-2.5-flare","seedream-v4","nano-banana","nano-banana-2"],"type":"string","description":"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.\n\n**Models:**\n- `default` - Uses the server-selected default model, which may change over time.\n- `flux-2-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 5\n- `flux-3-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 1\n- `gpt-image-2` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `gpt-image-2.5-flare` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `krea-2` - from 10 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 1\n- `nano-banana` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-2` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-2-lite` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-2.1` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-pro` - from 150 credits/image\n  - Supported resolutions: 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `qwen-edit` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 2\n- `qwen-image-2.1` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 2\n- `seedream-v4` - from 40 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v4.5` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v5-flash` - from 30 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v5-pro` - from 75 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n","example":"flux-2-klein"},"aspect_ratio":{"enum":["auto","16:9","9:16","4:3","3:2","1:1","4:5","2:3"],"type":"string","description":"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 you can't tell its shape, ask. With no new use or shape requested, keep `auto` to match the source image.\n\nThe aspect ratio of the output image(s). If not specified, defaults to `auto`. Ignored for `krea-2` and `flux-2-klein` when an input image is provided; the output keeps the source image's aspect ratio.","example":"1:1"},"resolution":{"enum":["auto","640px","1k","2k","4k"],"type":"string","description":"Maximum resolution (longest edge) for the output image.\n\n**Options:**\n- `640px` — up to 640px\n- `1k` — up to 1024px\n- `2k` — up to 2048px\n- `4k` — up to 4096px\n- `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports\n\n**Per-model support:**\n- `flux-2-klein` - 640px, 1k, 2k\n- `flux-3-klein` - 640px, 1k, 2k\n- `gpt-image-2` - 640px, 1k, 2k, 4k\n- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k\n- `krea-2` - 640px, 1k\n- `nano-banana` - 640px, 1k\n- `nano-banana-2` - 640px, 1k, 2k, 4k\n- `nano-banana-2-lite` - 640px, 1k\n- `nano-banana-2.1` - 640px, 1k, 2k, 4k\n- `nano-banana-pro` - 1k, 2k, 4k\n- `qwen-edit` - 640px, 1k, 2k\n- `qwen-image-2.1` - 640px, 1k, 2k\n- `seedream-v4` - 640px, 1k, 2k, 4k\n- `seedream-v4.5` - 640px, 1k, 2k, 4k\n- `seedream-v5-flash` - 640px, 1k, 2k\n- `seedream-v5-pro` - 640px, 1k, 2k\n\nNote: Resolution availability depends on the model and your subscription tier.","example":"640px"},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"maxLength":15000,"minLength":1,"type":"string","description":"The prompt used to edit the image.","example":"Give me sunglasses"}},"description":"Text instructions describing the edits to make to the supplied images."},"assets":{"type":"object","properties":{"image_file_paths":{"maxItems":10,"type":"array","items":{"minLength":1,"type":"string"},"description":"The image(s) used in the edit, maximum of 10 images. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":["api-assets/id/1234.png","api-assets/id/1235.png"]}},"description":"Provide the assets for image edit"},"images":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":10,"description":"Attach the images from ChatGPT for this input. Keep the files in the order the user requested."}},"required":["style"],"anyOf":[{"required":["assets"]},{"required":["images"]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"edit_video","title":"Edit video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Video Editor - dateTime","example":"My Video Editor video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","default":0,"example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"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.\n\nFree 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, explain the Free limit and ask before changing it. Do not default to the source video's full length.","format":"float","example":5},"model":{"enum":["gemini-omni-1.1","gemini-omni-1.2","wan-3.0","ltx-2.5","kling-4.0","gemini-omni","ltx-2.3"],"type":"string","description":"The AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers.\n\n* `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.\n* `wan-3.0`: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.\n* `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.\n* `kling-4.0`: Create cinematic videos with image and video references and optional audio. Requires a paid tier.","example":"ltx-2.5"},"resolution":{"enum":["360p","480p","720p","1080p","4k"],"type":"string","description":"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.","example":"480p"},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"minLength":1,"type":"string","description":"The prompt used to edit the video.","example":"Change the car color to blue"}},"description":"Instructions describing the changes to make to the source video."},"references":{"maxItems":10,"minItems":0,"type":"array","items":{"required":["name"],"type":"object","properties":{"name":{"pattern":"^[A-Za-z][\\w-]*$","type":"string","description":"Reference label without @. Use @name in style.prompt to refer to this file; labels must be unique ignoring case.","example":"hero"},"file_path":{"minLength":1,"type":"string","description":"This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"image_index":{"type":"integer","minimum":1,"maximum":10,"description":"Position in reference_images, starting at 1. Use exactly one attachment index or file_path."}},"oneOf":[{"required":["file_path"]},{"required":["image_index"]}]},"description":"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.\n\nReference images for gemini-omni-1.2, wan-3.0, kling-4.0."},"assets":{"type":"object","properties":{"video_file_path":{"minLength":1,"type":"string","description":"The video to edit. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"}},"description":"Provide the assets for video editing."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."},"reference_images":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":10,"description":"Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."}},"required":["end_seconds","style"],"anyOf":[{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["video_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"fetch_audio_download","title":"Fetch Audio Download","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"download_url":{"description":"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.","type":"string"},"max_bytes":{"default":8388608,"description":"Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.","type":"integer"}},"required":["download_url"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"fetch_image_download","title":"Fetch Image Download","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"download_url":{"description":"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.","type":"string"},"max_bytes":{"default":8388608,"description":"Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.","type":"integer"}},"required":["download_url"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"fetch_video_download","title":"Fetch Video Download","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"download_url":{"description":"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.","type":"string"},"max_bytes":{"default":8388608,"description":"Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link.","type":"integer"}},"required":["download_url"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"generate_headshot","title":"Generate headshot","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Ai Headshot - dateTime","example":"My Ai Headshot image"},"style":{"type":"object","properties":{"prompt":{"type":"string","description":"Prompt used to guide the style of your headshot. We recommend omitting the prompt unless you want to customize your headshot. You can visit [AI headshot generator](https://magichour.ai/create/ai-headshot-generator) to view an example of a good prompt used for our 'Professional' style.","example":"Professional studio headshot with soft lighting and a neutral background"}},"description":"Optional headshot appearance instructions. Omit the prompt for the API's default style."},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"The image used to generate the headshot. This image must contain one detectable face. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for headshot photo"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."}},"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"generate_image","title":"Generate image","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Ai Image - dateTime","example":"My Ai Image image"},"image_count":{"maximum":16.0,"minimum":1.0,"type":"integer","description":"Number of images to generate. Maximum varies by model.","example":1},"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","krea-2","seedream-v5-pro","seedream-v5-flash","seedream-v4.5","nano-banana-2-lite","gpt-image-2.5-flare","seedream-v4","nano-banana","flux-schnell","nano-banana-2","seedream"],"type":"string","description":"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, choose a model that lists it. The AI model to use for image generation. Each model has different capabilities and costs.\n\n**Models:**\n- `default` - Uses the server-selected default model, which may change over time.\n- `flux-2-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1\n- `flux-3-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `flux-schnell` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `gpt-image-2` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `gpt-image-2.5-flare` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `krea-2` - from 10 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1\n- `nano-banana` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `nano-banana-2` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 4, 9, 16\n- `nano-banana-2-lite` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `nano-banana-2.1` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 4, 9, 16\n- `nano-banana-pro` - from 150 credits/image\n  - Supported resolutions: 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 4, 9, 16\n- `qwen-image-2.1` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v4` - from 40 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v4.5` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v5-flash` - from 30 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v5-pro` - from 75 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `z-image-turbo` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n\n**Deprecated Enum Values:**\n- `seedream` - Use `seedream-v4` instead.\n","example":"z-image-turbo"},"aspect_ratio":{"enum":["1:1","16:9","9:16"],"type":"string","description":"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 you can't tell its shape, ask. With no use mentioned, omit this for a 1:1 image.\n\nThe aspect ratio of the output image(s). If not specified, defaults to `1:1` (square).","example":"1:1"},"resolution":{"enum":["auto","640px","1k","2k","4k"],"type":"string","description":"Maximum resolution (longest edge) for the output image.\n\n**Options:**\n- `640px` — up to 640px\n- `1k` — up to 1024px\n- `2k` — up to 2048px\n- `4k` — up to 4096px\n- `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports\n\n**Per-model support:**\n- `flux-2-klein` - 640px, 1k, 2k\n- `flux-3-klein` - 640px, 1k, 2k\n- `flux-schnell` - 640px, 1k, 2k\n- `gpt-image-2` - 640px, 1k, 2k, 4k\n- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k\n- `krea-2` - 640px, 1k\n- `nano-banana` - 640px, 1k\n- `nano-banana-2` - 640px, 1k, 2k, 4k\n- `nano-banana-2-lite` - 640px, 1k\n- `nano-banana-2.1` - 640px, 1k, 2k, 4k\n- `nano-banana-pro` - 1k, 2k, 4k\n- `qwen-image-2.1` - 640px, 1k, 2k\n- `seedream-v4` - 640px, 1k, 2k, 4k\n- `seedream-v4.5` - 640px, 1k, 2k, 4k\n- `seedream-v5-flash` - 640px, 1k, 2k\n- `seedream-v5-pro` - 640px, 1k, 2k\n- `z-image-turbo` - 640px, 1k, 2k\n\nNote: Resolution availability depends on the model and your subscription tier.","default":"auto","example":"640px"},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"minLength":1,"type":"string","description":"The prompt used for the image(s).","example":"Cool image"},"tool":{"enum":["ai-anime-generator","ai-art-generator","ai-background-generator","ai-character-generator","ai-face-generator","ai-fashion-generator","ai-icon-generator","ai-illustration-generator","ai-interior-design-generator","ai-landscape-generator","ai-logo-generator","ai-manga-generator","ai-outfit-generator","ai-pattern-generator","ai-photo-generator","ai-sketch-generator","ai-tattoo-generator","album-cover-generator","animated-characters-generator","architecture-generator","book-cover-generator","comic-book-generator","dark-fantasy-ai","disney-ai-generator","dnd-ai-art-generator","emoji-generator","fantasy-map-generator","graffiti-generator","movie-poster-generator","optical-illusion-generator","pokemon-generator","south-park-character-generator","superhero-generator","thumbnail-maker","general"],"type":"string","description":"The art style to use for image generation. Defaults to 'general' if not provided.","default":"general","example":"ai-anime-generator"}},"description":"The art style to use for image generation."}},"required":["image_count","style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"generate_music","title":"Generate music","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"AI Music Generator","example":"My Music Generator audio"},"duration":{"maximum":300.0,"minimum":15.0,"type":"integer","description":"Requested track duration in seconds, from 15 to 300. Determines credits charged.","example":120},"style":{"required":["prompt"],"type":"object","properties":{"prompt":{"minLength":1,"type":"string","description":"Describe the song, including genre, mood, and instruments.","example":"Dreamy synthwave with warm bass and soft vocals"},"instrumental":{"type":"boolean","description":"Generate music without vocals. When true, lyrics is ignored.","default":false,"example":false},"lyrics":{"type":"string","description":"Custom lyrics. Omit or leave blank for AI-generated lyrics when instrumental is false.","example":"City lights are fading..."}},"additionalProperties":false,"description":"Song description, vocal or instrumental choice, and optional custom lyrics."}},"required":["duration","style"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"get_account_info","title":"Get account info","description":"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.","inputSchema":{"type":"object","properties":{},"required":[]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_audio_project","title":"Get audio project","description":"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.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio."}},"required":["id"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_face_detection_results","title":"Get face detection results","description":"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.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"uuid-example","description":"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)."}},"required":["id"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_image_project","title":"Get image project","description":"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.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the image project. This value is returned by all of the POST APIs that create an image."}},"required":["id"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_upload_urls","title":"Get upload URLs","description":"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.","inputSchema":{"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"required":["type","extension"],"type":"object","properties":{"type":{"enum":["video","audio","image"],"type":"string","description":"The type of asset to upload. Possible types are video, audio, image","example":"video"},"extension":{"pattern":"^[a-z0-9]+$","type":"string","description":"The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jpe,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm","example":"mp4"}}},"description":"The list of assets to upload. The response array will match the order of items in the request body.","example":[{"type":"video","extension":"mp4"},{"type":"audio","extension":"mp3"}]}},"required":["items"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"get_video_project","title":"Get video project","description":"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.","inputSchema":{"type":"object","properties":{"id":{"type":"string","example":"cuid-example","description":"Unique ID of the video project. This value is returned by all of the POST APIs that create a video."}},"required":["id"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_workflow_guide","title":"Choose a media workflow","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"workflow":{"description":"Choose the workflow matching the task and supplied inputs. Returns static planning guidance, not an account eligibility or cost quote.","enum":["video-face-swap","image-editor","image-to-video","video-generator","lip-sync","ugc-ads","talking-photo","media-apis"],"type":"string"}},"required":["workflow"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"list_saved_items","title":"List saved items","description":"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.","inputSchema":{"type":"object","properties":{"type":{"enum":["character","reference","voice","moodboard","brand_kit"],"type":"string","example":"character","description":"Only return saved items of this type."},"limit":{"maximum":100.0,"minimum":1.0,"type":"integer","default":20,"example":20,"description":"Maximum number of saved items to return. Defaults to 20."},"cursor":{"minLength":1,"type":"string","description":"Opaque pagination cursor from the previous response's next_cursor."}},"required":[]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"ping","title":"Ping","description":"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.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"place_person_in_scene","title":"Place person in scene","description":"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.\n\nPlaces 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Body Swap - dateTime","example":"My Body Swap image"},"resolution":{"enum":["640px","1k","2k","4k"],"type":"string","description":"Output resolution. Determines credits charged for the run.","example":"640px"},"assets":{"type":"object","properties":{"person_file_path":{"minLength":1,"type":"string","description":"Image of the person to place into the scene. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"scene_file_path":{"minLength":1,"type":"string","description":"Original scene image (background). This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/5678.png"}},"description":"Person image and scene image for body swap"},"person_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the person image from ChatGPT for this input."},"scene_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the scene image from ChatGPT for this input."}},"required":["resolution"],"allOf":[{"anyOf":[{"required":["person_image"]},{"required":["assets"],"properties":{"assets":{"required":["person_file_path"]}}}]},{"anyOf":[{"required":["scene_image"]},{"required":["assets"],"properties":{"assets":{"required":["scene_file_path"]}}}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"remove_image_background","title":"Remove image background","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Background Remover - dateTime","example":"My Background Remover image"},"assets":{"type":"object","properties":{"image_file_path":{"type":"string","description":"The image to remove the background. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"background_image_file_path":{"type":"string","description":"The image used as the new background for the image_file_path. This image will be resized to match the image in image_file_path. Please make sure the resolution between the images are similar.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for background removal"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."},"background_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the background image from ChatGPT for this input."}},"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"replace_character_in_video","title":"Replace character in video","description":"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.\n\nReplaces 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Character Replace - dateTime","example":"My Character Replace video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","default":0,"example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.\n\nFree 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, explain the Free limit and ask before changing it. Do not default to the source video's full length.","format":"float","example":5},"model":{"enum":["wan-animate","kling-3.0","kling-4.0","minimax-h3"],"type":"string","description":"Model to use. Defaults to `wan-animate`.\n\n* **`wan-animate`**: 480p, 720p. Supports `points` subject selection.\n* **`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.\n* **`kling-4.0`**: 720p, 1080p. Clips of 3–30 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.\n* **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–60 seconds in `animate` mode or 1–30 seconds in `replace` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.","default":"wan-animate","example":"wan-animate"},"resolution":{"enum":["480p","720p","1080p"],"type":"string","description":"Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.","example":"480p"},"assets":{"type":"object","properties":{"video_file_path":{"minLength":1,"type":"string","description":"Source video containing the subject to replace or animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"},"image_file_path":{"minLength":1,"type":"string","description":"Reference character image used as the replacement or animation target. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/5678.png"}},"description":"Source video and reference character image for the job."},"style":{"type":"object","properties":{"mode":{"enum":["replace","animate"],"type":"string","description":"Processing mode. `replace` swaps the detected subject with your reference character. `animate` transfers motion from the video onto your character image.","example":"replace"},"prompt":{"maxLength":2000,"type":"string","description":"Optional direction. Supported by kling-3.0, kling-4.0, minimax-h3. For MiniMax H3 in replace mode, ignored and not saved when `selection_mode` is `point`; applies only to automatic person selection."},"selection_mode":{"enum":["auto","point"],"type":"string","description":"How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject and is supported by `wan-animate`, `minimax-h3`. `minimax-h3` subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored. Defaults to `auto`.","example":"auto"},"points":{"type":"array","items":{"required":["position_x","position_y","time_seconds"],"type":"object","properties":{"position_x":{"minimum":0.0,"type":"integer","description":"Horizontal pixel coordinate in the source video frame at `time_seconds`, measured from the left edge.","example":320},"position_y":{"minimum":0.0,"type":"integer","description":"Vertical pixel coordinate in the source video frame at `time_seconds`, measured from the top edge.","example":180},"time_seconds":{"minimum":0.0,"type":"number","description":"Timestamp on the source video timeline in seconds. Uses the same clock as `start_seconds` and `end_seconds`. For MiniMax H3 manual replacement, `start_seconds <= time_seconds < end_seconds`.","format":"float","example":2.5}}},"description":"On-frame markers for manual subject selection. Required when `selection_mode` is `point`. Ignored when `selection_mode` is `auto` or omitted. Rejected for models without subject selection (supported by `wan-animate`, `minimax-h3`). `minimax-h3` subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored. MiniMax H3 manual replacement accepts 1 to 10 points; each must satisfy `start_seconds <= time_seconds < end_seconds`."}},"description":"Optional style controls for replace vs animate mode and subject selection.","example":{"mode":"replace","selection_mode":"auto"}},"character_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the character image from ChatGPT for this input."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."}},"required":["end_seconds"],"allOf":[{"anyOf":[{"required":["character_image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},{"anyOf":[{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["video_file_path"]}}}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"restyle_video","title":"Restyle video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Video To Video - dateTime","example":"My Video To Video video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.","format":"float","example":5},"height":{"type":["integer","null"],"description":"Source video height in integer pixels. Required and positive for v3; ignored for v1/v2.","example":704},"fps":{"minimum":1.0,"type":"number","description":"Source video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames.","default":30,"example":30},"width":{"type":["integer","null"],"description":"Source video width in integer pixels. Required and positive for v3; ignored for v1/v2.","example":1024},"fps_resolution":{"enum":["FULL","HALF"],"type":"string","description":"Determines whether the resulting video will have the same frame per second as the original video, or half.\n* `FULL` - the result video will have the same FPS as the input video\n* `HALF` - the result video will have half the FPS as the input video","default":"HALF","example":"HALF"},"style":{"required":["art_style"],"type":"object","properties":{"art_style":{"enum":["WWI Soldier","Minecraft","Watercolor","Chalkboard","Pixel","Rick & Morty","Sketch","Roblox","Hitman","Joker","Darth Maul","Jon Snow","Dexter's Lab","Darth Vader","Shadow","Bronze Statue","Toy Story","Puppets","Yarn","Obsidian Gods","Claymation","James Bond","Retro Sci-Fi","Chrome","Lego","Origami","Scorpion","Ash Ketchum","Terra Cotta Soldiers","Obi-Wan","Venom","Scream","Matrix","Crusader","Batman","Superman","Deadpool","Ghost","Iron Man","Warzone","Thanos","Tarzan","Polish Hussar","Gladiators","Grim Reaper","Hulk","Candle","Anime Ninja","Sand Sculpture","Spiderman","Ash Skeleton","Sub-Zero","Hades","Studio Ghibli","Comic","Gojo","Diorama","Mad Max","Dragon Rider Knight","Nightmare","Pennywise","One Punch Man","Anime Aviator","Slime","Sandpaper","Spray Paint","Flash","Impressionism","Master Chief","Solid Snake","Street Fighter","Hologram","Plague Doctor","South Park","GTA","Chess","Chalk Dust","Clay","Peely","Pepe the Frog","Tarot Card","Ninja Turtle","Tribal Warrior","Bubble Wrap","Glass Sculpture","Frankenstein","Napoleon Painting","Pokémon Trainer","Invader Zim","Terminator","Cuphead Devil","Cyclops","Luigi","Mythra","Phoenix Wright","Swamp Creatures","Vikings","Fossils","Cyber Samurai","Ice and Fire","Braveheart","Fire Golems","Golden Scarabs","Black Ink","Lich King","WWII Paratrooper","101 Dalmatians","8-Bit Angel","Ace (One Piece)","Aviator","Bagheera","Diablo","C-3PO","Qilin","Crusader Zombie","Daredevil","Statue of David","Doctor Doom","White Walker","Bioshock","Jason Voorhees","Kai’Sa","Killer Croc","Mechanical Scorpion","Metallic Angel","Spider-Venom","Mystique","Nathan Drake","Wendingo","Nautilus","Nosferatu","Gray NPC","Orc","Sans Undertale","Spiderman 2099","TF2 Spy","Sulley","The Creeper","X-Ray Soldier","Zeus (Disney)","Zombie","Eclipse","Nebula","Polygon","Raiden","Celestial","Wool Beast","Chibi","Albert Einstein","Alucard","Confederate Soldier","Fabric","Avian Aviator","FNAF","Mushroom","Beast","Blitzcrank","Captain America","Crystal Knight","Darkseid","Dio Brando","Doctor Fate","Green Goblin","Groot","Rooster","Devil","Kenshiro","Martian","Mech Dragon","Prince","Pyke","Robin","RoboCop","Samara Morgan","Shiva","Singed","Star Trek","Steampunk Captain","Tyrande Whisperwind","Predator","Yeti","Marble Sculpture","Washi","Woodcut","Dark Reaper","Mech Valkryie","Renaissance Painting","Renaissance Sketch","Comic Batman","Astronaut","Dragonball Z","Watercolor Painting","Cinematic","Optimus Prime","Mario","Poseidon","Moss Spirits","Green Lantern","Detective Conan","Prince of Persia","King Arthur","Wolverine","Statue of Liberty","Black Panther","Iron Valor","Legend of Zelda","Mandalorian","Aquaman","Cloud Strife","Samurai","John Wick","Freddy Krueger","Hercules","Spartan","Shrek","Solar Flare","Scottish Highlander","Desert Wraith","Kung Fu","Porcelain","Molten Rock","Apocalyptic Marble","Ash","Popeye","Simpsons","Liquid Metal","Cave Painting","Crayon","Scuba Diver","Vampire","Miner","Origami Samurai","Qing Dynasty","Wax","Bastet","Bellwether","Hobbits","Day of the Dead","Engineer","Finn","Huggy Wuggy","Krillin","Hugging Bear","Malfurion Stormrage","Mickey Mouse","Might Guy","Nala","Naruto Uzumaki","Oni","Piccolo","Raiden (Metal Gear)","Rocket Raccoon","Russell (Up)","Shark Gladiator","The Mask","The Mummy","The Nun","Indiana Jones","Aragorn","Foam","Jello","Dune","Anubis","Genghis Khan","Ink Blot","Ken","Kratos","Lara Croft","Legolas","Luffy","Oil Slick","Mech Angels","Pencil Sketch","Gargoyle","Ink Bottle","Marble Chesspieces","Coral","Solar Eclipse","Molten Beasts","Porcelain Nobles","Calligraphy","Paper Lantern","Sandstorm Gladiator","Insect","Wool Giant","Rusted Valor","Pharaoh","Paper Cut","Wax Museum","Blood Ink","Ink Samurai","Demon Hunter","Spirit Fox","Baroque","Clouds","Goblin Inventor","HK-47","Karl Marx","Da Vinci","Cracked Marble","Medieval Painting","Melted Wax","Socrates","Sumo Wrestler","Postapocalyptic","William Wallace","Leatherface","Regan MacNeil","Frieza","Cell","Sidewalk Chalk","Altair Ibn-La’Ahad","American Gothic","Aztec","Banzai","Beowulf","Boba Fett","Carl Fredricksen","Carnage","Cheetah","Portal","Chewbacca","Thor","Chucky","Cinderella","The Witcher","Cursed Samurai","Deathstroke","Dieselpunk","Din Djarin","Donald Duck","Edward Elric","Joy vs. Anger","Gandalf","Native American","Ghost Rider","Gimli","Girl with Pearl Earring","GLaDOS","Hades (Disney)","Han Solo","Hellboy","Japanese Raijin","Japanese Susanoo","Jarvan","Levi Ackerman","John Darling","Fury Road","Maestro Hulk","Man Bat","Mike Wazowski","Minotaur King","Wukong","Robin Hood","Samus","Sarah Kerrigan","Shadow Phoenix","Simón Bolívar","The Flash","Leprechaun","The Thinker","Thrall","Tree Ent King","Alien","Erron Black","3D Render","Airbender","Android","Anime Warrior","Armored Knight","Assassin's Creed","Avatar","Black Spiderman","Bold Anime","Celestial Skin","Chinese Swordsmen","Cyberpunk","Cypher","Dark Fantasy","Future Bot","Futuristic Fantasy","Ghibli Anime","Gundam","Illustration","Ink","Ink Poster","Jinx","Knight","Link","Marble","Mech","Naruto","Neon Dream","No Art Style","Oil Painting","On Fire","Painterly Anime","Pixar","Power Armor","Power Ranger","Radiant Anime","Realistic Anime","Realistic Pixar","Retro Anime","Samurai Bot","Sharp Anime","Soft Anime","Starfield","The Void","Tomb Raider","Underwater","Van Gogh","Viking","Western Anime","Wu Kong","Wuxia Anime","Zelda"],"type":"string","description":"Art-style preset to apply to the source video. The preset determines the default rendering version, model and prompt; check their compatibility before generation.","example":"3D Render"},"version":{"enum":["v1","v2","v3","default"],"type":"string","description":"* `v1` - more detail, closer prompt adherence, and frame-by-frame previews.\n* `v2` - faster, more consistent, and less noisy.\n* `v3` - consistent styling guided by a caller-supplied reference image. Requires assets.initial_image_path and positive width/height.\n* `default` - use the selected art style's default version, including v3.","default":"default","example":"default"},"prompt_type":{"enum":["default","custom","append_default"],"type":"string","description":"`default` uses the art style's preset prompt and ignores `prompt`. `custom` uses the supplied `prompt`; v1 still adds its LoRA prompt to apply the art style. `append_default` appends the preset prompt to the supplied `prompt`.","default":"default","example":"default"},"prompt":{"type":["string","null"],"description":"The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.","example":"A cinematic scene with warm lighting"},"model":{"enum":["Dreamshaper","Absolute Reality","Flat 2D Anime","Soft Anime","Kaywaii","Western Anime","3D Anime","Default","default"],"type":"string","description":"* `Dreamshaper` - a good all-around model that works for both animations as well as realism.\n* `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.\n* `Flat 2D Anime` - best for a flat illustration style that's common in most anime.\n* `Default` - the v3 model.\n* `default` - use the default recommended model for the selected art style.","default":"default","example":"default","x-sideko-enum-names":{"Default":"DefaultV3","default":"Default"}}},"description":"Art preset, rendering version, model and prompt controls for restyling the video."},"assets":{"required":["video_source"],"type":"object","properties":{"video_source":{"enum":["file","youtube"],"type":"string","description":"Choose your video source.","example":"file"},"video_file_path":{"type":"string","description":"Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"},"youtube_url":{"type":"string","description":"YouTube URL (required if `video_source` is `youtube`).","format":"uri"},"initial_image_path":{"minLength":1,"type":"string","description":"Required for v3: an uploaded reference image path, or a completed image output owned by you. The caller supplies this image; the API does not generate it.","example":"api-assets/id/reference.png"}},"description":"Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used","example":{"video_source":"file","video_file_path":"api-assets/id/1234.mp4"}},"first_frame":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the first frame from ChatGPT for this input."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input. Set assets.video_source to file."}},"required":["start_seconds","end_seconds","style","assets"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"swap_face_in_photo","title":"Swap face in photo","description":"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.\n\nSwaps 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Face Swap - dateTime","example":"My Face Swap image"},"assets":{"type":"object","properties":{"face_swap_mode":{"enum":["all-faces","individual-faces"],"type":"string","description":"Choose which faces to swap. `all-faces` uses one source image for all detected faces (`source_file_path` required). `individual-faces` uses exact `face_mappings`.","default":"all-faces","example":"all-faces"},"source_file_path":{"minLength":1,"type":"string","description":"This is the image from which the face is extracted. The value is required if `face_swap_mode` is `all-faces`.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"face_mappings":{"maxItems":5,"type":"array","items":{"required":["original_face"],"type":"object","properties":{"original_face":{"type":"string","description":"The face detected from the image in `target_file_path`. The file name is in the format of `<face_frame>-<face_index>.png`. This value is corresponds to the response in the [face detection API](https://docs.magichour.ai/api-reference/files/get-face-detection-details).\n\n* The face_frame is the frame number of the face in the target image. For images, the frame number is always 0.\n* The face_index is the index of the face in the target image, starting from 0 going left to right.","example":"api-assets/id/0-0.png"},"new_face":{"type":"string","description":"The face image that will be used to replace the face in the `original_face`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"image_index":{"type":"integer","minimum":1,"maximum":5,"description":"Position in replacement_faces, starting at 1. Use exactly one attachment index or new_face."}},"oneOf":[{"required":["new_face"]},{"required":["image_index"]}]},"description":"This is the array of face mappings used for multiple face swap. The value is required if `face_swap_mode` is `individual-faces`.","example":[{"original_face":"api-assets/id/0-0.png","new_face":"api-assets/id/1234.png"}]},"target_file_path":{"minLength":1,"type":"string","description":"This is the image where the face from the source image will be placed. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"}},"description":"Provide the assets for face swap photo","example":{"face_swap_mode":"all-faces","source_file_path":"api-assets/id/1234.png","target_file_path":"api-assets/id/1234.png"}},"source_face":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the source face from ChatGPT for this input."},"target_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the target image from ChatGPT for this input."},"replacement_faces":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":5,"description":"Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."}},"anyOf":[{"required":["target_image"]},{"required":["assets"],"properties":{"assets":{"required":["target_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"swap_face_in_video","title":"Swap face in video","description":"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.\n\nSwaps 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Face Swap - dateTime","example":"My Face Swap video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.","format":"float","example":5},"style":{"type":"object","properties":{"version":{"enum":["v1","v2","default"],"type":"string","description":"Select face-swap version `v1` or `v2`. `default` uses the server-selected version, which may change over time.","example":"default"}},"description":"Style of the face swap video.","example":{"version":"default"}},"assets":{"required":["video_source"],"type":"object","properties":{"face_swap_mode":{"enum":["all-faces","individual-faces"],"type":"string","description":"Choose which faces to swap. `all-faces` uses one source image for all detected faces (`image_file_path` required). `individual-faces` uses exact `face_mappings`.","default":"all-faces","example":"all-faces"},"image_file_path":{"type":"string","description":"The path of the input image with the face to be swapped.  The value is required if `face_swap_mode` is `all-faces`.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"face_mappings":{"maxItems":5,"type":"array","items":{"required":["original_face"],"type":"object","properties":{"original_face":{"type":"string","description":"The face detected from the image in `target_file_path`. The file name is in the format of `<face_frame>-<face_index>.png`. This value is corresponds to the response in the [face detection API](https://docs.magichour.ai/api-reference/files/get-face-detection-details).\n\n* The face_frame is the frame number of the face in the target image. For images, the frame number is always 0.\n* The face_index is the index of the face in the target image, starting from 0 going left to right.","example":"api-assets/id/0-0.png"},"new_face":{"type":"string","description":"The face image that will be used to replace the face in the `original_face`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"image_index":{"type":"integer","minimum":1,"maximum":5,"description":"Position in replacement_faces, starting at 1. Use exactly one attachment index or new_face."}},"oneOf":[{"required":["new_face"]},{"required":["image_index"]}]},"description":"This is the array of face mappings used for multiple face swap. The value is required if `face_swap_mode` is `individual-faces`.","example":[{"original_face":"api-assets/id/0-0.png","new_face":"api-assets/id/1234.png"}]},"video_source":{"enum":["file","youtube"],"type":"string","description":"Choose your video source.","example":"file"},"video_file_path":{"type":"string","description":"Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"},"youtube_url":{"type":"string","description":"YouTube URL (required if `video_source` is `youtube`).","format":"uri"}},"description":"Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used","example":{"face_swap_mode":"all-faces","image_file_path":"api-assets/id/1234.png","video_source":"file","video_file_path":"api-assets/id/1234.mp4"}},"source_face":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the source face from ChatGPT for this input."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input. Set assets.video_source to file."},"replacement_faces":{"type":"array","items":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false},"minItems":1,"maxItems":5,"description":"Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."}},"required":["start_seconds","end_seconds","assets"]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"swap_head_in_photo","title":"Swap head in photo","description":"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.\n\nSwaps 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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Head Swap - dateTime","example":"My Head Swap image"},"max_resolution":{"type":"integer","description":"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.","example":512},"assets":{"type":"object","properties":{"body_file_path":{"minLength":1,"type":"string","description":"Image that receives the swapped head. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.png"},"head_file_path":{"minLength":1,"type":"string","description":"Image of the head to place on the body. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/5678.png"}},"description":"Provide the body and head images for head swap"},"head_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the head image from ChatGPT for this input."},"body_image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the body image from ChatGPT for this input."}},"allOf":[{"anyOf":[{"required":["head_image"]},{"required":["assets"],"properties":{"assets":{"required":["head_file_path"]}}}]},{"anyOf":[{"required":["body_image"]},{"required":["assets"],"properties":{"assets":{"required":["body_file_path"]}}}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"translate_video","title":"Translate video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Video Translator - dateTime","example":"My Video Translator video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","default":0,"example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.","format":"float","example":5},"target_language":{"enum":["English","Chinese (Simplified)","Hindi","Spanish","Arabic","French","Afrikaans","Bengali","Bulgarian","Catalan","Croatian","Czech","Danish","Dutch","Estonian","Finnish","German","Greek","Gujarati","Hebrew","Hungarian","Indonesian","Italian","Japanese","Kannada","Kazakh","Korean","Latvian","Lithuanian","Malay","Malayalam","Marathi","Norwegian","Persian","Polish","Portuguese","Punjabi","Romanian","Russian","Serbian","Slovak","Slovenian","Swahili","Swedish","Tamil","Telugu","Thai","Chinese (Traditional)","Turkish","Ukrainian","Urdu","Vietnamese","Welsh"],"type":"string","description":"Language to translate the video's speech into.","example":"Spanish"},"resolution":{"enum":["480p","720p","1080p"],"type":"string","description":"Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.","example":"480p"},"assets":{"type":"object","properties":{"video_file_path":{"minLength":1,"type":"string","description":"Source video containing the speech to translate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"}},"description":"Source video for the translation job."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."}},"required":["end_seconds","target_language"],"anyOf":[{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["video_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"upload_chatgpt_image","title":"Upload attached image","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","type":"string"}},"required":["download_url","file_id"],"type":"object","description":"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."}},"required":["image"],"type":"object"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"upload_chatgpt_media","title":"Upload attached media","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"file":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","type":"string"}},"required":["download_url","file_id"],"type":"object","description":"Native ChatGPT attachment object containing download_url and file_id."},"media_type":{"description":"Actual input attachment kind: image, video or audio, not the desired output kind.","enum":["video","image","audio"],"type":"string"}},"required":["file","media_type"],"type":"object"},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"upscale_image","title":"Upscale image","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Image Upscaler - dateTime","example":"My Image Upscaler image"},"scale_factor":{"type":"number","description":"How much to scale the image. Must be either 2 or 4.\n            \nNote: 4x upscale is only available on Creator, Pro, or Business tier.","example":2},"style":{"type":"object","properties":{"mode":{"enum":["pro","preserve","balanced","creative"],"type":"string","description":"The upscaling mode. `\"preserve\"` uses the fast pro pipeline (1× credit multiplier). `\"balanced\"` and `\"creative\"` use the creative pipeline (2× credit multiplier). `\"pro\"` is deprecated and maps to `\"preserve\"`. Defaults to `\"balanced\"`.","example":"preserve"},"prompt":{"type":"string","description":"A prompt to guide the final image. Only used when mode is `creative`.","example":"Enhance fine details and keep the image natural"}},"description":"Style settings for the upscale. Use `mode` (`\"preserve\"`, `\"balanced\"`, or `\"creative\"`). Defaults to `\"balanced\"`.","default":{},"example":{"mode":"preserve"}},"assets":{"type":"object","properties":{"image_file_path":{"minLength":1,"type":"string","description":"The image to upscale. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n. The maximum input image size is 4096x4096px.","example":"api-assets/id/1234.png"}},"description":"Provide the assets for upscaling"},"image":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the image from ChatGPT for this input."}},"required":["scale_factor"],"anyOf":[{"required":["image"]},{"required":["assets"],"properties":{"assets":{"required":["image_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"upscale_video","title":"Upscale video","description":"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.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Optional project name for identifying this output. Omit to use the API's default project name.","default":"Video Upscaler - dateTime","example":"My Video Upscaler video"},"start_seconds":{"minimum":0.0,"type":"number","description":"Start time of your clip (seconds). Must be ≥ 0.","format":"float","default":0,"example":0},"end_seconds":{"minimum":0.1,"type":"number","description":"End time of your clip (seconds). Must be greater than start_seconds.","format":"float","example":5},"resolution":{"enum":["720p","1080p","2k","4k"],"type":"string","description":"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.","example":"1080p"},"assets":{"type":"object","properties":{"video_file_path":{"minLength":1,"type":"string","description":"Video to upscale. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n","example":"api-assets/id/1234.mp4"}},"description":"Source video for the upscale job."},"video":{"properties":{"download_url":{"description":"Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query.","title":"Download Url","type":"string"},"file_id":{"description":"Native ChatGPT file identifier paired with download_url; not a local filesystem path.","title":"File Id","type":"string"},"mime_type":{"default":"","description":"Attachment MIME type, when supplied by ChatGPT.","title":"Mime Type","type":"string"},"file_name":{"default":"","description":"Original attachment filename, when supplied by ChatGPT.","title":"File Name","type":"string"}},"required":["download_url","file_id"],"title":"ChatGPTFile","type":"object","additionalProperties":false,"description":"Attach the video from ChatGPT for this input."}},"required":["end_seconds","resolution"],"anyOf":[{"required":["video"]},{"required":["assets"],"properties":{"assets":{"required":["video_file_path"]}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"voices_list","title":"List voices","description":"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.","inputSchema":{"type":"object","properties":{"limit":{"maximum":100.0,"minimum":1.0,"type":"integer","default":20,"example":20,"description":"Maximum number of voices to return. Defaults to 20."},"cursor":{"minLength":1,"type":"string","description":"Opaque pagination cursor from the previous response's next_cursor."}},"required":[]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"wait_for_audio_project","title":"Wait for Audio Project","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"id":{"description":"Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout.","type":"string"},"poll_interval_seconds":{"default":2.0,"description":"Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.","type":"number"},"timeout_seconds":{"default":180.0,"description":"Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.","type":"number"},"include_inline_downloads":{"default":true,"description":"Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.","type":"boolean"},"max_inline_downloads":{"default":4,"description":"Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.","type":"integer"},"max_bytes_per_download":{"default":8388608,"description":"Positive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL.","type":"integer"}},"required":["id"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"wait_for_image_project","title":"Wait for Image Project","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"id":{"description":"Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout.","type":"string"},"poll_interval_seconds":{"default":2.0,"description":"Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.","type":"number"},"timeout_seconds":{"default":180.0,"description":"Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.","type":"number"},"include_inline_downloads":{"default":true,"description":"Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails.","type":"boolean"},"max_inline_downloads":{"default":4,"description":"Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit.","type":"integer"},"max_bytes_per_download":{"default":8388608,"description":"Positive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL.","type":"integer"}},"required":["id"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"wait_for_video_project","title":"Wait for Video Project","description":"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.","inputSchema":{"additionalProperties":false,"properties":{"id":{"description":"Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout.","type":"string"},"poll_interval_seconds":{"default":2.0,"description":"Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.","type":"number"},"timeout_seconds":{"default":300.0,"description":"Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.","type":"number"},"include_inline_downloads":{"default":false,"description":"Reserved for compatibility. Video waits return download links, never inline video, regardless of this value.","type":"boolean"},"max_inline_downloads":{"default":0,"description":"Reserved for compatibility. Video waits do not inline downloads; leave at zero.","type":"integer"}},"required":["id"],"type":"object"},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}],"resources":[{"name":"Magic Hour workflow index","uri":"magic-hour://workflows/index","description":"Discover task-specific workflow guides and their resource URIs.","mimeType":"application/json"},{"name":"Magic Hour project result","uri":"ui://magic-hour/project-result-v1.html","description":"Render completed or terminal Magic Hour project results in MCP Apps hosts.","mimeType":"text/html;profile=mcp-app"}],"prompts":[]}