Skip to content

Add magichourhq/magic_hour 0.1.0 - #3871

Open
davidhu2000 wants to merge 1 commit into
langgenius:mainfrom
magichourhq:magichourhq/magic_hour-0.1.0
Open

davidhu2000 wants to merge 1 commit into
langgenius:mainfrom
magichourhq:magichourhq/magic_hour-0.1.0

Conversation

@davidhu2000

Copy link
Copy Markdown

Plugin information

Submission type

  • New plugin
  • Version update

What changed

First Marketplace release of the official Magic Hour plugin, published by Magic Hour. It adds five tools for the Magic Hour API:

  • Create image starts an AI image generation job.
  • Create video starts a text-to-video job.
  • Animate image uploads a Dify image and starts an image-to-video job.
  • Get image project returns a job's status, and the images once it completes.
  • Get video project returns a job's status, and the video links once it completes.

Generation is asynchronous and uses the user's Magic Hour credits. The create tools return a project ID, and the get tools retrieve that same project, so a slow job never needs a second paid request.

Risk level

  • Low risk
  • Medium risk
  • High risk

Medium because Animate image processes a user-provided image and sends prompts and images to Magic Hour, and the create tools start paid jobs on the user's account.

Required checks

  • I have read and followed the Marketplace submission requirements.
  • I have read and comply with the Plugin Development Guidelines.
  • I tested this plugin on Dify Community Edition and Dify Cloud, or documented any limitation below.
  • The package contains only files needed at runtime.
  • The package does not contain secrets, local credentials, .env files, .git directories, virtual environments, caches, logs, or IDE files.
  • The package does not contain executables or bundled binaries, or I explained why they are required below.
  • The plugin README includes setup steps, usage instructions, required APIs or credentials, connection requirements, and the source repository link.
  • The plugin includes PRIVACY.md or a hosted privacy policy, and manifest.yaml references it.
  • All user-facing text is primarily in English, with any localized README files following the i18n guidance.

Security and privacy notes

  • The plugin calls only the Magic Hour API at https://api.magichour.ai, with the API key from the provider credential. The key is stored by Dify as a secret and is not logged or returned.
  • Animate image uploads the user's image with an HTTP PUT to the signed upload URL that the Magic Hour API returns (POST /v1/files/upload-urls). These URLs are on videos.magichour.ai. The plugin does not fetch or send to any user-supplied URL.
  • Completed images and videos are signed URLs on videos.magichour.ai. The get tools return them to Dify; the plugin itself does not download them.
  • Both domains are declared in manifest.yaml under network.domains.
  • Requests have timeouts (60 seconds for the API, 120 seconds for uploads). Error messages include the API's status and message, not the key.
  • What is sent to Magic Hour is described in PRIVACY.md.

Local validation

On the package in this PR, built by the repository's release workflow:

python3 validator/validate-difypkg.py magic_hour-0.1.0.difypkg   # dify-marketplace-toolkit 83ee707: no blocking failures
python3 validator/test-plugin-install.py -d unpacked              # Plugin test result: success
python3 uploader -d unpacked ... --test                           # Packaging check passed

The same checks run on every PR in the source repository.

Tested on Dify Community Edition 1.20.0 (Docker Compose) against the live Magic Hour API. Each tool ran in a workflow:

Tool Result
Credentials An invalid key is rejected with "Magic Hour API returned 401"; a valid key is saved
Create image Project created
Get image project complete; the image is returned as a Dify file
Create video Project created
Animate image Project created from an uploaded image
Get video project complete; the video is returned as a link

Reviewer notes

  • Not tested on Dify Cloud: we don't have a Cloud workspace that can install unlisted plugins. Everything was tested on Community Edition 1.20.0.
  • On self-hosted Dify, Animate image needs FILES_URL set so the plugin can read the uploaded file. The README says so.
  • An earlier unofficial package, rhythmp28/magic_hour (feat: add magic_hour 0.0.1 (Magic Hour AI video/image generation tool) #2933), was closed. This one is published by Magic Hour from the official repository above.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the risk: medium Medium-risk Marketplace submission label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium Medium-risk Marketplace submission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant