flux-2-klein and saves the first
download. The verified output format was PNG.
Import and configure
- Download the flow JSON.
- In the Node-RED editor, select Menu → Import, choose the JSON file, and import it.
- Open Magic Hour API — set bearer credential. Select Use authentication,
set Type to bearer authentication, and paste your
Magic Hour API key into Token.
Enter the raw key, without a
Bearerprefix. - Configure the output directory, then click Deploy.
Bearer prefix and stores the token as a password credential.
Keep it out of node properties, HTTP headers, Debug output, screenshots, and
exported JSON. The separate Download image — NO authentication node must not
receive an API key.
Choose the output directory
By default, Prepare NO-AUTH media GET setsmsg.filename to
/data/magic-hour-<project-id>.png. In Docker, this is inside the container: look
in the host directory mounted at /data to find the saved file.
For a local installation or another container mount, edit the filename rule in
Prepare NO-AUTH media GET to use an existing absolute directory writable by
Node-RED. Keep the project-ID filename expression. The file node does not create
missing directories.
Create once
- Open Create once (billable) to review its image prompt and generation options.
- Click Deploy if you changed them.
- Click that node’s inject button once. This sends a paid creation request.
- Copy and save the returned
idfrom ID / status / credits only in the Debug sidebar.
Recover and save the image
- Open Recover existing image (GET only).
- Replace
YOUR_EXISTING_IMAGE_PROJECT_IDin project_id with the saved image project ID. - Click Done, then Deploy.
- Click that node’s inject button to retrieve the existing project.
Read results and errors
ID / status / credits only shows the project ID, status, HTTP status, and any returnedcredits_charged and credits_refunded values, including zero. Provider
status and a saved file are separate results: complete alone does not prove a
successful download or write.
Keep Debug nodes limited to their configured summary or file path. Full-message
Debug can expose credentials, response metadata, and temporary signed download
URLs. A provider failure does not trigger a replacement generation.
Verified behavior
An actual Node-RED editor run imported and deployed this flow, then created one image for 5 Magic Hour credits. A separate recovery GET retrieved the same accepted project ID, downloaded the completed image without authentication, and saved the 640×640 PNG through the native file node. The saved PNG passed a full image decode. The tested runtime stored the API token as an encrypted native credential. Its editor export omitted credentials and signed download URLs; all 16 operational nodes matched the downloadable flow. No chat model or custom Node-RED package was used.
