Volver al catálogo

Magic Hour

magic_hour

Magic Hour is an AI media creation platform for generating and editing images, videos, and audio through a unified API.

Acciones
38
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (38)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create AI Clothes ChangeMAGIC_HOUR_CREATE_AI_CLOTHES_CHANGEAcción

Start a credit-consuming asynchronous clothes-change image job from person and garment images. Each image costs 25 credits. The operation is documented for Free accounts but requires sufficient credits. It returns an image project ID immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the clothes-change image project.

  • assetsobjectObligatorio

    Person and garment images, plus the optional clothing region to replace.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI Face EditMAGIC_HOUR_CREATE_AI_FACE_EDITAcción

Start a credit-consuming asynchronous edit of facial features in an image. This Free-tier operation returns an image project ID and credit charge immediately, not a completed image. Pass the ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the face-edit image project.

  • styleobjectObligatorio

    Face enhancement, gaze, expression, mouth-position, and pose controls.

  • assetsobjectObligatorio

    Source image containing the face to edit.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI GIFMAGIC_HOUR_CREATE_AI_GIFAcción

Start a credit-consuming asynchronous prompt-based animation in GIF, MP4, or WebM format. This operation costs 50 credits and returns an image project ID immediately, not completed media. Pass the ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name used to identify the AI GIF project.

  • styleobjectObligatorio

    Prompt controls for the generated animation.

  • output_formatstringenum

    Output file format for the generated animation.

    gifmp4webm

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI HeadshotMAGIC_HOUR_CREATE_AI_HEADSHOTAcción

Start a credit-consuming asynchronous headshot generation from an image containing one detectable face. Each headshot costs 50 credits. This returns an image project ID immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name used to identify the AI headshot image project.

  • styleobject

    Optional prompt controls for the generated headshot style.

  • assetsobjectObligatorio

    Source image asset used to generate the headshot.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI ImageMAGIC_HOUR_CREATE_AI_IMAGEAcción

Start a credit-consuming asynchronous text-to-image job. The request returns a project ID and immediate credit charge, not completed images. Model, image-count, resolution, cost, and tier availability vary by option; only flux-2-klein, flux-schnell, and z-image-turbo are documented for Free. Pass the returned ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the image generation project.

  • modelstringenum

    Generation model. Omit or use default for Magic Hour's current recommendation. Free-tier models are flux-2-klein, flux-schnell, and z-image-turbo, starting at 5 credits per image. gpt-image-2, nano-banana, nano-banana-2, nano-banana-2-lite, nano-banana-pro, seedream-v4, and seedream-v5-pro require Creator or higher and start at 40-150 credits per image. seedream is deprecated; use seedream-v4.

    defaultnano-banana-2gpt-image-2z-image-turboflux-2-kleinnano-banana-2-liteseedream-v4seedream-v5-pronano-banananano-banana-proflux-schnellseedream
  • styleobjectObligatorio

    Prompt and art-style controls for image generation.

  • resolutionstringenum

    Maximum output resolution on the longest edge. auto is deprecated and maps to a tier-dependent supported resolution. flux-2-klein, flux-schnell, and z-image-turbo support 640px, 1k, and 2k; gpt-image-2, nano-banana-2, and seedream-v4 also support 4k; nano-banana and nano-banana-2-lite support 640px and 1k; nano-banana-pro supports 1k, 2k, and 4k; seedream-v5-pro supports 640px, 1k, and 2k. Availability also depends on account tier.

    auto640px1k2k4k
  • image_countintegerObligatorio

    Number of images to generate, from 1 to 16. flux-2-klein supports only 1; flux-schnell, gpt-image-2, nano-banana, nano-banana-2-lite, seedream-v4, seedream-v5-pro, and z-image-turbo support 1-4; nano-banana-2 and nano-banana-pro support 1, 4, 9, or 16.

  • aspect_ratiostringenum

    Output aspect ratio. When omitted, Magic Hour defaults to 1:1.

    1:116:99:16

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI Image EditMAGIC_HOUR_CREATE_AI_IMAGE_EDITAcción

Start a credit-consuming asynchronous prompt-based edit of one or more images. Model, resolution, input-image limits, cost, and tier availability vary by option. Credits are charged when the request is made. Pass the returned project ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name for identifying the image edit project.

  • modelstringenum

    Image-editing model. default uses Magic Hour's current recommendation. Free-tier models are flux-2-klein and qwen-edit; other listed models require a paid tier. Costs range from 5 credits per image for flux-2-klein to 150 credits per image for nano-banana-pro, and each model has its own resolution and input-image limits.

    defaultnano-banana-2gpt-image-2flux-2-kleinnano-banana-2-liteqwen-editseedream-v4seedream-v4.5seedream-v5-pronano-banananano-banana-pro
  • styleobjectObligatorio

    Prompt controls for the image edit.

  • assetsobjectObligatorio

    Input images for the edit.

  • resolutionstringenum

    Maximum output resolution. flux-2-klein, qwen-edit, and seedream-v5-pro support 640px/1k/2k; nano-banana and nano-banana-2-lite support 640px/1k; nano-banana-pro supports 1k/2k/4k; gpt-image-2, nano-banana-2, seedream-v4, and seedream-v4.5 support 640px/1k/2k/4k. auto is deprecated but retained for a tier-dependent provider default.

    auto640px1k2k4k
  • image_countintegerenum

    Number of edited images to generate. Allowed values are 1, 4, 9, and 16; the maximum supported value and credit cost depend on the model.

    14916
  • aspect_ratiostringenum

    Output image aspect ratio. Magic Hour defaults to auto when omitted; supported values are auto, 16:9, 9:16, 4:3, 3:2, 1:1, 4:5, and 2:3.

    auto16:99:164:33:21:14:52:3

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI MemeMAGIC_HOUR_CREATE_AI_MEMEAcción

Start a credit-consuming asynchronous meme generation from a topic and a documented Magic Hour template. Each meme costs 10 credits. This returns an image project ID immediately, not a completed image; pass the ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Optional name used to identify the meme image project.

  • styleobjectObligatorio

    Meme topic, documented template, and optional web-search setting.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI QR CodeMAGIC_HOUR_CREATE_AI_QR_CODEAcción

Start an asynchronous artistic QR-code generation for supplied content. Magic Hour documents each AI QR code as costing 0 credits. The operation returns an image project ID and credits charged immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the AI QR-code image project.

  • styleobjectObligatorio

    Template or custom art style applied to the QR code.

  • contentstringObligatorio

    Content encoded by the QR code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI Video EditMAGIC_HOUR_CREATE_AI_VIDEO_EDITAcción

Start a credit-consuming asynchronous prompt-based edit of an input video. Free accounts default to the ltx-2.3 model and 480p; other model and resolution options depend on the connected account's plan. The returned credit charge is initially an estimate. Pass the returned project ID to MAGIC_HOUR_GET_VIDEO_PROJECT and poll until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name for identifying the video edit project.

  • modelstringenum

    Editing model. Magic Hour documents ltx-2.3 as the Free-tier default and gemini-omni-1.1 as the paid-tier default. gemini-omni is deprecated; use gemini-omni-1.1 instead. Model availability depends on the connected account's plan.

    gemini-omni-1.1gemini-omniltx-2.3
  • styleobjectObligatorio

    Prompt controls for the video edit.

  • assetsobjectObligatorio

    Input video asset for the edit.

  • resolutionstringenum

    Output resolution. Magic Hour documents 480p as the Free-tier default and 720p as the paid-tier default. Gemini Omni 1.1 and deprecated Gemini Omni support 720p and 1080p; LTX-2.3 supports 480p, 720p, and 1080p. Availability depends on the connected account's plan.

    480p720p1080p
  • end_secondsnumberObligatorio

    End time of the input clip in seconds; must be greater than start_seconds. Gemini Omni 1.1 supports 3-10 seconds, while LTX-2.3 supports 0.5-45 seconds.

  • start_secondsnumber

    Start time of the input clip in seconds; must be at least 0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI VoiceMAGIC_HOUR_CREATE_AI_VOICEAcción

Start credit-consuming asynchronous speech generation from text using a documented preset voice. Each character costs 0.1 credits, rounded up to a whole credit. This returns an audio project ID and immediate credit charge, not completed audio; pass the ID to MAGIC_HOUR_GET_AUDIO_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the generated audio project.

  • styleobjectObligatorio

    Text content and documented preset voice used to generate speech.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create AI Voice CloneMAGIC_HOUR_CREATE_AI_VOICE_CLONEAcción

Start credit-consuming asynchronous speech generation by cloning an input voice recording. Each prompt character costs 0.1 credits, rounded up to a whole credit, and sufficient credits are required. This returns an audio project ID and immediate credit charge, not completed audio; pass the ID to MAGIC_HOUR_GET_AUDIO_PROJECT and poll until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the generated audio project.

  • styleobjectObligatorio

    Text content to generate using the cloned voice.

  • assetsobjectObligatorio

    Audio recording used as the source voice for cloning.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Animation VideoMAGIC_HOUR_CREATE_ANIMATION_VIDEOAcción

Start one credit-consuming asynchronous animation render with explicit dimensions, frame rate, duration, style, and assets. The request returns immediately with a video project ID and estimated credits charged; pass the ID to MAGIC_HOUR_GET_VIDEO_PROJECT and poll until complete, error, or canceled.

Parámetros de entrada

  • fpsnumberObligatorio

    Desired output frame rate. Together with end_seconds, this determines the estimated frame-based credit cost.

  • namestring

    Optional custom video name for identification. Magic Hour generates an Animation timestamp name when omitted.

  • styleobjectObligatorio

    Style and motion controls for the animation.

  • widthintegerObligatorio

    Output width in pixels, at least 64. The maximum depends on the connected account's subscription.

  • assetsobjectObligatorio

    Audio and optional first-frame assets.

  • heightintegerObligatorio

    Output height in pixels, at least 64. The maximum depends on the connected account's subscription.

  • end_secondsnumberObligatorio

    Output video duration in seconds. Together with fps, this determines the estimated frame-based credit cost.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Audio-to-VideoMAGIC_HOUR_CREATE_AUDIO_TO_VIDEOAcción

Start a credit-consuming asynchronous video generation job from audio and optional visual style controls. Free accounts can use the documented 480p default; higher resolutions depend on the connected account's plan. Returns a video project ID immediately; poll MAGIC_HOUR_GET_VIDEO_PROJECT until the project is complete, error, or canceled. Requires sufficient credits, and the initial credits_charged value is an estimate until rendering finishes.

Parámetros de entrada

  • namestring

    Custom name used to identify the video project.

  • styleobject

    Optional controls for the visual style of the output video.

  • assetsobjectObligatorio

    Audio input and optional initial-frame reference image.

  • resolutionstringenum

    Output video resolution. The provider defaults to 720p on paid tiers and 480p on free tiers.

    480p720p1080p
  • end_secondsnumberObligatorio

    End time of the audio clip in seconds. Must be greater than start_seconds.

  • start_secondsnumber

    Start time of the audio clip in seconds. Must be at least 0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Background RemovalMAGIC_HOUR_CREATE_BACKGROUND_REMOVALAcción

Start a credit-consuming asynchronous image job that removes a background or replaces it with an optional supplied image. Each image costs 5 credits. The operation is documented for Free accounts but requires sufficient credits. It returns an image project ID immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the background-removal image project.

  • assetsobjectObligatorio

    Source image and optional replacement background image.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Body SwapMAGIC_HOUR_CREATE_BODY_SWAPAcción

Start a credit-consuming asynchronous body-swap image job that places a person into a scene at the selected resolution. Resolution determines the model and credit cost. This returns an image project ID immediately, not a completed image; pass the ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error. Credits are charged when this request is made and refunded if generation fails.

Parámetros de entrada

  • namestring

    Custom name used to identify the body-swap image project.

  • assetsobjectObligatorio

    Person image and scene image used for the body swap.

  • resolutionstringObligatorioenum

    Output resolution. The selected resolution determines the model and credits charged; 640px starts at 50 credits.

    640px1k2k4k

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Character Animation VideoMAGIC_HOUR_CREATE_CHARACTER_ANIMATION_VIDEOAcción

Animate a reference character with motion transferred from a source video in a credit-consuming asynchronous job. The documented 480p default is available on Free; 720p depends on the connected account's plan. This returns a project ID and estimated credit charge, not a completed video. Poll MAGIC_HOUR_GET_VIDEO_PROJECT with the returned ID until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom video name for easy identification.

  • styleobject

    Optional controls for selecting the source-video subject.

  • assetsobjectObligatorio

    Source video and reference character image for the generation job.

  • resolutionstringenum

    Output video resolution. The provider defaults to 480p, the lowest resolution available on the connected account's plan; 720p may require a higher plan.

    480p720p
  • end_secondsnumberObligatorio

    End time of the source clip in seconds. It must be greater than start_seconds.

  • start_secondsnumber

    Start time of the source clip in seconds; it must be at least 0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Character Replacement VideoMAGIC_HOUR_CREATE_CHARACTER_REPLACEMENT_VIDEOAcción

Replace a source-video subject with a reference character in a credit-consuming asynchronous video job. The documented 480p default is available on Free; 720p depends on the connected account's plan. This returns a project ID and estimated credit charge, not a completed video. Poll MAGIC_HOUR_GET_VIDEO_PROJECT with the returned ID until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom video name for easy identification.

  • styleobject

    Optional controls for selecting the source-video subject.

  • assetsobjectObligatorio

    Source video and reference character image for the generation job.

  • resolutionstringenum

    Output video resolution. The provider defaults to 480p, the lowest resolution available on the connected account's plan; 720p may require a higher plan.

    480p720p
  • end_secondsnumberObligatorio

    End time of the source clip in seconds. It must be greater than start_seconds.

  • start_secondsnumber

    Start time of the source clip in seconds; it must be at least 0.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Face Swap PhotoMAGIC_HOUR_CREATE_FACE_SWAP_PHOTOAcción

Start a credit-consuming asynchronous photo face swap using one source face for all detected faces or up to five individual face mappings. Each photo costs 10 credits. The operation returns an image project ID and credit charge immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the face-swap image project.

  • assetsobjectObligatorio

    Source face or mappings and the target image for the photo face swap.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Face Swap VideoMAGIC_HOUR_CREATE_FACE_SWAP_VIDEOAcción

Start a credit-consuming asynchronous video face-swap job using one image for all detected faces or up to five individual face mappings. The operation is documented for Free accounts but requires sufficient credits. It returns a project ID and estimated charge immediately, not a completed video; poll MAGIC_HOUR_GET_VIDEO_PROJECT until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom video project name for identification.

  • styleobject

    Optional face-swap model version settings.

  • assetsobjectObligatorio

    Nested source video and replacement face configuration. Select both a video source and an all-face or individual-face mapping mode.

  • end_secondsnumberObligatorio

    End time of the source video clip in seconds; must exceed start_seconds.

  • start_secondsnumberObligatorio

    Start time of the source video clip in seconds.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Head SwapMAGIC_HOUR_CREATE_HEAD_SWAPAcción

Start a credit-consuming asynchronous head-swap image job from body and head images. Each image costs 10 credits. This returns an image project ID immediately, not a completed image; pass the ID to MAGIC_HOUR_GET_IMAGE_PROJECT and poll until status is complete or error. Credits are charged when this request is made and refunded if generation fails.

Parámetros de entrada

  • namestring

    Custom name used to identify the head-swap image project.

  • assetsobjectObligatorio

    Body and head images used for the head swap.

  • max_resolutioninteger

    Maximum larger output dimension in pixels. Omit to use the plan maximum, capped at 2048 pixels; higher values are clamped to the connected account's plan maximum.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Image-to-VideoMAGIC_HOUR_CREATE_IMAGE_TO_VIDEOAcción

Start a credit-consuming asynchronous video generation job from a still image and optional final frame, prompt, audio, model, and resolution controls. Free accounts default to ltx-2.5 at 480p; other model and resolution options depend on the connected account's plan. Returns a project ID and estimated credit charge immediately; poll MAGIC_HOUR_GET_VIDEO_PROJECT until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom video name for easy identification.

  • audioboolean

    Whether to include generated audio. Magic Hour defaults to false when omitted. Model support and additional credit cost vary; gemini-omni-1.1, kling-2.6, and wan-2.2 do not support audio.

  • modelstringenum

    AI generation model. default selects Magic Hour's recommended model for the account tier (ltx-2.5 on Free and kling-3.0 on paid tiers). Values ltx-2, kling-2.5, kling-1.6, seedance, kling-2.5-audio, and veo3.1-audio are retained documented values; audio-suffixed models behave like enabling audio.

    defaultltx-2ltx-2.3ltx-2.5minimax-h3wan-2.2seedance-1.5seedance-2.0seedance-2.0-miniseedance-2.5kling-2.5kling-2.6+9
  • styleobject

    Optional prompt controls for the generated video.

  • assetsobjectObligatorio

    Starting image and optional final-frame image for image-to-video generation.

  • resolutionstringenum

    Output resolution. Magic Hour defaults to 720p on paid tiers and 480p on Free. gemini-omni-1.1 supports 360p/720p/1080p/4k; kling-2.6 supports 720p/1080p; kling-3.0 supports 720p/1080p/4k; ltx-2.3, ltx-2.5, minimax-h3, seedance-1.5, and wan-2.2 support 480p/720p/1080p; seedance-2.0 variants and seedance-2.5 support 480p/720p; sora-2 supports 720p; veo3.1 variants support 720p/1080p.

    360p480p720p1080p4k
  • end_secondsnumberObligatorio

    Output duration in seconds. gemini-omni-1.1: integers 3-10; kling-2.6: 5 or 10; kling-3.0: integers 3-15; ltx-2.3 and minimax-h3: integers 1-10 plus 15, 20, 25, or 30; ltx-2.5: integers 1-10 then multiples of 5 through 60; seedance-1.5: integers 4-12; seedance-2.0 and seedance-2.0-mini: integers 4-15; seedance-2.5: integers 4-30; sora-2: 4, 8, 12, 24, 36, 48, or 60; veo3.1 variants: 4, 6, 8, 16, 24, 32, 40, 48, or 56; wan-2.2: integers 3-10 or 15.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Image UpscaleMAGIC_HOUR_CREATE_IMAGE_UPSCALEAcción

Start a credit-consuming asynchronous 2x or 4x image upscale. A 4x upscale requires a Creator, Pro, or Business tier, while mode affects the credit charge. This returns an image project ID immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name for identifying the image upscale project.

  • styleobject

    Optional mode and prompt settings controlling the upscale.

  • assetsobjectObligatorio

    Source image asset to upscale.

  • scale_factorintegerObligatorioenum

    Image scale multiplier: 2 or 4. A 4x upscale requires a Creator, Pro, or Business tier.

    24

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Lip Sync VideoMAGIC_HOUR_CREATE_LIP_SYNC_VIDEOAcción

Start a credit-consuming asynchronous lip-sync video job from audio and a file or YouTube video. This returns a project ID immediately, not the completed video; poll MAGIC_HOUR_GET_VIDEO_PROJECT until complete, error, or canceled. The returned credit charge is an estimate, may be adjusted after rendering based on actual output FPS, and is refunded if generation fails.

Parámetros de entrada

  • namestring

    Custom name used to identify the lip-sync video project.

  • styleobject

    Optional generation mode controlling quality, tier availability, and cost.

  • assetsobjectObligatorio

    Audio input and file or YouTube video input for lip synchronization.

  • end_secondsnumberObligatorio

    End time of the input video clip in seconds; must exceed start_seconds.

  • max_fps_limitnumber

    Maximum output frames per second. If the input FPS is lower, Magic Hour retains it; reducing this limit can avoid unnecessary frame usage.

  • start_secondsnumberObligatorio

    Start time of the input video clip in seconds.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Photo ColorizationMAGIC_HOUR_CREATE_PHOTO_COLORIZATIONAcción

Start a credit-consuming asynchronous colorization of a photo. Each image costs 10 credits. This returns an image project ID immediately, not a completed image; poll MAGIC_HOUR_GET_IMAGE_PROJECT until status is complete or error.

Parámetros de entrada

  • namestring

    Custom name used to identify the photo colorization image project.

  • assetsobjectObligatorio

    Source image asset to colorize.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Subtitled VideoMAGIC_HOUR_CREATE_SUBTITLED_VIDEOAcción

Start a credit-consuming asynchronous job that transcribes speech and burns styled subtitles into an MP4 video. This returns a project ID immediately, not the completed video; poll MAGIC_HOUR_GET_VIDEO_PROJECT until complete, error, or canceled. The initial credit charge is an estimate, can be adjusted after rendering, and is refunded if generation fails.

Parámetros de entrada

  • namestring

    Optional project name for identification. When omitted, Magic Hour generates an Auto Subtitle name with the creation date and time.

  • styleobjectObligatorio

    Subtitle styling. Provide a preset template, custom_config, or both; custom fields override the selected template.

  • assetsobjectObligatorio

    Source video asset whose speech will be transcribed into subtitles.

  • end_secondsnumberObligatorio

    End time of the source video clip in seconds; must exceed start_seconds.

  • start_secondsnumberObligatorio

    Inclusive start time of the source video clip in seconds.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Talking PhotoMAGIC_HOUR_CREATE_TALKING_PHOTOAcción

Start a credit-consuming asynchronous talking-photo video from an image and audio. This operation is documented for Free accounts, but requires enough credits and available models and resolutions depend on the connected account's tier. It returns immediately with a video project ID; pass that ID to MAGIC_HOUR_GET_VIDEO_PROJECT and poll until complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name used to identify the talking-photo project.

  • styleobject

    Optional attributes controlling the motion style of the output video.

  • assetsobjectObligatorio

    Image and audio assets used to create the talking photo.

  • end_secondsnumberObligatorio

    End time of the input audio in seconds. Maximum clip length is 300 seconds for realistic mode and 45 seconds for prompted mode.

  • start_secondsnumberObligatorio

    Start time of the input audio in seconds. Maximum clip length is 300 seconds for realistic mode and 45 seconds for prompted mode.

  • max_resolutioninteger

    Maximum larger dimension, in pixels, for the output video. Magic Hour caps this value at the connected account plan's maximum resolution.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Text-to-VideoMAGIC_HOUR_CREATE_TEXT_TO_VIDEOAcción

Start a credit-consuming asynchronous video generation job from a text prompt and model/output options. Free accounts default to ltx-2.5 at 480p; model, duration, aspect ratio, resolution, and audio availability vary by plan. This returns a project ID and estimated credit charge, not a completed video; poll MAGIC_HOUR_GET_VIDEO_PROJECT until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name used to identify the text-to-video project.

  • audioboolean

    Whether to generate audio; omitted means false. gemini-omni-1.1, kling-2.6, and wan-2.2 do not support audio. Audio-suffixed legacy models imply true; support and additional cost vary for other models.

  • modelstringenum

    Generation model. default selects Magic Hour's recommended model for the account tier (ltx-2.5 on Free and kling-3.0 on paid tiers). Values ltx-2, kling-2.5, kling-1.6, seedance, kling-2.5-audio, and veo3.1-audio remain accepted for compatibility; audio-suffixed models imply audio=true.

    defaultltx-2ltx-2.3ltx-2.5minimax-h3wan-2.2seedance-1.5seedance-2.0seedance-2.0-miniseedance-2.5kling-2.5kling-2.6+9
  • styleobjectObligatorio

    Prompt controls for the generated video.

  • resolutionstringenum

    Output resolution. gemini-omni-1.1 supports 360p/720p/1080p/4k; kling-2.6 supports 720p/1080p; kling-3.0 supports 720p/1080p/4k; ltx-2.3, ltx-2.5, minimax-h3, seedance-1.5, and wan-2.2 support 480p/720p/1080p; seedance-2.0 variants and seedance-2.5 support 480p/720p; sora-2 supports 720p; veo3.1 variants support 720p/1080p.

    360p480p720p1080p4k
  • end_secondsnumberObligatorio

    Output duration in seconds. gemini-omni-1.1: integers 3-10; kling-2.6: 5 or 10; kling-3.0: integers 3-15; ltx-2.3 and minimax-h3: integers 1-10 plus 15, 20, 25, or 30; ltx-2.5: integers 1-10 then multiples of 5 through 60; seedance-1.5: integers 4-12; seedance-2.0 variants: integers 4-15; seedance-2.5: integers 4-30; sora-2: 4, 8, 12, 24, 36, 48, or 60; veo3.1 variants: 4, 6, 8, 16, 24, 32, 40, 48, or 56; wan-2.2: integers 3-10 or 15.

  • aspect_ratiostringenum

    Output aspect ratio. gemini-omni-1.1, sora-2, veo3.1, and veo3.1-lite support 16:9 or 9:16; other current models also support 1:1.

    16:99:161:1

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Video-to-VideoMAGIC_HOUR_CREATE_VIDEO_TO_VIDEOAcción

Start a credit-consuming asynchronous stylized transformation of an input video. Free accounts can use the documented lower-resolution configuration; higher output quality depends on the connected account's plan. Returns a project ID and estimated credit charge immediately, not a completed video. Poll MAGIC_HOUR_GET_VIDEO_PROJECT with the returned ID until status is complete, error, or canceled.

Parámetros de entrada

  • namestring

    Custom name used to identify the video-to-video project.

  • styleobjectObligatorio

    Art style, style-engine version, prompt behavior, and model controls.

  • assetsobjectObligatorio

    Input video source and location.

  • end_secondsnumberObligatorio

    End time of the input clip in seconds; must exceed start_seconds.

  • start_secondsnumberObligatorio

    Start time of the input clip in seconds; must be at least 0.

  • fps_resolutionstringenum

    Output frame-rate mode. FULL preserves the input FPS; HALF generates at half the input FPS and generally consumes fewer credits.

    FULLHALF

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Audio ProjectMAGIC_HOUR_DELETE_AUDIO_PROJECTAcción

Permanently delete one rendered Magic Hour audio project by ID. This destructive operation is irreversible and is not a way to cancel a queued or rendering audio project. Success requires exactly HTTP 204 with an empty body.

Parámetros de entrada

  • idstringObligatorio

    Audio project ID to permanently delete. This irreversible operation does not cancel a queued or rendering audio project.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Image ProjectMAGIC_HOUR_DELETE_IMAGE_PROJECTAcción

Permanently delete one Magic Hour image project and its rendered images by ID. This destructive operation is irreversible and is not a way to cancel a render. Success requires exactly HTTP 204 with an empty body.

Parámetros de entrada

  • idstringObligatorio

    Image project ID to permanently delete. This operation irreversibly deletes the rendered images and cannot be used to cancel a render.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Video ProjectMAGIC_HOUR_DELETE_VIDEO_PROJECTAcción

Permanently delete one rendered Magic Hour video project by ID. This destructive operation is irreversible and is not a way to cancel a queued or rendering video. Success requires exactly HTTP 204 with an empty body.

Parámetros de entrada

  • idstringObligatorio

    Video project ID to permanently delete. This irreversible operation does not cancel a queued or rendering video.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Detect FacesMAGIC_HOUR_DETECT_FACESAcción

Start asynchronous face detection for an image or video and return a task ID. Pass the returned ID to MAGIC_HOUR_GET_FACE_DETECTION and poll until status is complete or error. Face detection is currently documented as free, though pricing may change.

Parámetros de entrada

  • assetsobjectObligatorio

    Target image or video asset to inspect for faces.

  • confidence_scorenumber

    Confidence threshold for filtering detected faces, from 0 to 1 in increments of 0.05. Higher values reduce false positives; lower values include more possible faces.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate Asset Upload URLsMAGIC_HOUR_GENERATE_ASSET_UPLOAD_URLSAcción

Generate ordered, expiring signed upload URLs and Magic Hour file paths for image, video, or audio assets. This allocates upload URLs but does not upload file bytes. Treat each signed URL query string as sensitive: do not log or persist it.

Parámetros de entrada

  • itemsobject[]Obligatorio

    Assets to prepare in request order. Each item requires a documented asset type and compatible extension; response items use the same order.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get AccountMAGIC_HOUR_GET_ACCOUNTAcción

Return the connected Magic Hour account's tier, available credits, identity, and subscription details; use this before generation to check entitlement and balance.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Audio ProjectMAGIC_HOUR_GET_AUDIO_PROJECTAcción

Get an audio project's asynchronous status, error, credit charge, and temporary downloads. Poll until complete, error, or canceled. Download URLs expire at their expires_at timestamps; call this tool again afterward to obtain refreshed URLs.

Parámetros de entrada

  • idstringObligatorio

    Audio project ID returned by a Magic Hour audio creation tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Face DetectionMAGIC_HOUR_GET_FACE_DETECTIONAcción

Get face-detection status and detected face paths by task ID. Poll only IDs returned by MAGIC_HOUR_DETECT_FACES and stop on complete or error: live probing showed that arbitrary and malformed IDs can return 200 queued indefinitely, so a successful response does not prove the task exists.

Parámetros de entrada

  • idstringObligatorio

    Face-detection task ID returned by MAGIC_HOUR_DETECT_FACES. Do not use an arbitrary ID: unknown and malformed IDs can return 200 queued indefinitely.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Image ProjectMAGIC_HOUR_GET_IMAGE_PROJECTAcción

Get an image project's asynchronous status, error, credit charge, and temporary downloads. Poll until complete, error, or canceled. Download URLs expire at their expires_at timestamps; call this tool again afterward to obtain refreshed URLs.

Parámetros de entrada

  • idstringObligatorio

    Image project ID returned by a Magic Hour image creation tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Video ProjectMAGIC_HOUR_GET_VIDEO_PROJECTAcción

Get a video project's asynchronous status, error, credit charge, and temporary downloads. Poll until complete, error, or canceled. Download URLs expire after 24 hours; call this tool again to refresh expired URLs.

Parámetros de entrada

  • idstringObligatorio

    Video project ID returned by a Magic Hour video creation tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not