Generate and retrieve Magic Hour AI images and videos.
Generate AI images and videos from Dify agents and workflows with the Magic Hour API. The plugin uploads Dify image inputs, starts asynchronous generation jobs, and retrieves completed project results without creating duplicate paid jobs.
Generation is asynchronous. Keep the project ID returned by a create tool and pass that same ID to the matching get tool. A queued or rendering status is not a failed job; wait and retrieve it again. Do not repeat a create call to recover a polling delay because a second call creates another paid job.
Image and video generation consumes Magic Hour credits. The plugin validates credentials with ; it does not expose account details to workflows during setup.
The plugin needs outbound HTTPS access to and . Animate image uploads the Dify image to a signed URL on , and completed images and videos are served from there too. No proxy or other host is needed.
On self-hosted Dify, Animate image reads the uploaded image through Dify's file URL, so set in Dify's to an address the plugin daemon can reach, such as in the Docker Compose setup. Without it the tool fails with "Invalid file URL".
Requires Python 3.12 and the Dify plugin CLI.
Change in (and ) in a PR. When it merges, the Release workflow builds and attaches it to a GitHub release. To publish it on the Dify Marketplace, open a PR to that adds the package as .
See PRIVACY.md.
Some outbound calls build their address at runtime, so the list may be incomplete.
Last checked 11/22/2026 09:06 AM · version 0.1.0