@acedatacloud/node-red-flux 1.0.0

Generate images and videos with Flux and retrieve their original tasks in Node-RED.

npm install @acedatacloud/node-red-flux

Flux for Node-RED

Generate images and videos with Flux and retrieve their original tasks in Node-RED.

Install

In Manage palette → Install, search for @acedatacloud/node-red-flux. For manual installation, run npm install @acedatacloud/node-red-flux in your Node-RED user directory and restart it. Use Node.js 22 or later with Node-RED 4 or 5.

Submit and retrieve a task

  1. Open Import → Examples → @acedatacloud/node-red-flux and import Generate and check a Flux image. Both Inject nodes start manually.
  2. Add an application token with access to Flux Images or Flux Videos, and Flux Tasks. Enter the token in the account node's password field without the Bearer prefix.
  3. Set msg.payload to a request object. Deploy and click the sample prompt or text Inject once. Flux generate sends one asynchronous submission and may spend Credits. It emits the original task ID as a string.
  4. Pass that ID to Flux task. Its first output carries a completed result. The second carries a pending task with msg.payload.id for another lookup. A Catch node receives failed tasks or request errors. Use the same ID from application history if a submission result is uncertain.

The generate node defaults to Image. Use Video for FLUX 3 requests with mode t2v, i2v, v2v, or draft_enhance. For draft enhancement, pass the previous draft task ID in draft_task_id.

A successful lookup has the image or video URLs under msg.payload.result.images and msg.payload.result.videos. Connect the corresponding output to your next node.

Source

The nodes can be installed alongside the other Ace Data Cloud packages. The repository contains credential-free examples and local Node-RED tests.

Node Info

Version: 1.0.0
Updated 5 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-flux-account
  • acedatacloud-flux-generate
  • acedatacloud-flux-task

Keywords

  • node-red
  • flux
  • media
  • acedatacloud

Maintainers