FLUX 3 ComfyUI

August 28, 2026 ยท View on GitHub

ComfyUI custom nodes for the FLUX 3 API, delivered through Muapi.

The pack follows the focused Muapi workflow pattern used by MiniMax H3 ComfyUI: add one API Key node, connect it to a generation node, then save or preview the returned media.

The FLUX 3 video API is live on Muapi. Text-to-Video, Text-to-Video Draft, Image-to-Video, Start-End-to-Video, Video Extend, Video Extend Draft, and Video Upscaler all work today with a Muapi API key. Text-to-Image, Image-to-Image, and Dev remain coming soon/early access upstream โ€” those three nodes are wired to the exact API contract so the same workflows will start working as soon as Muapi enables them.

FLUX 3 API: Image & Video Generation from One Multimodal Model

๐Ÿ“บ FLUX 3 API: Image & Video Generation from One Multimodal Model โ†’

Included nodes

NodeWhat it doesStatus
FLUX 3 API KeyStores one Muapi API key for the workflow.โ€”
FLUX 3 Text-to-ImageGenerates a 1k, 2k, or 4k image from a prompt.Coming soon
FLUX 3 DevUses the faster, lower-cost FLUX 3 Dev image route.Coming soon
FLUX 3 Image-to-ImageEdits an image using up to four references and an instruction prompt.Coming soon
FLUX 3 Text-to-VideoGenerates a 5โ€“20 second video at 720p or 1080p, with optional native audio.Live
FLUX 3 Text-to-Video DraftFast, lower-cost draft mode of Text-to-Video for prompt iteration.Live
FLUX 3 Image-to-VideoAnimates one start frame into a video, with optional native audio.Live
FLUX 3 Start-End-to-VideoGenerates a transition between a start and end keyframe.Live
FLUX 3 Video ExtendContinues an existing clip with new prompt-guided motion.Live
FLUX 3 Video Extend DraftFast, lower-cost draft mode of Video Extend.Live
FLUX 3 Video UpscalerUpscales any video beyond its native resolution (Precise or Creative tier).Live
FLUX 3 Save ImageDownloads a generated image into ComfyUI/output and returns an IMAGE.โ€”
FLUX 3 Save VideoDownloads a generated video into ComfyUI/output and returns decoded frames.โ€”

Installation

Copy this directory into ComfyUI/custom_nodes/flux-3-comfyui, then install the dependencies in the same Python environment ComfyUI uses:

pip install -r ComfyUI/custom_nodes/flux-3-comfyui/requirements.txt

Restart ComfyUI. The example workflows can be loaded with File โ†’ Load.

Included examples:

  • FLUX3_T2I_Example.json
  • FLUX3_I2I_Example.json
  • FLUX3_T2V_Example.json
  • FLUX3_I2V_Example.json
  • FLUX3_StartEndToVideo_Example.json
  • FLUX3_VideoExtend_Example.json

API key

Use the ๐Ÿ”‘ FLUX 3 API Key node and connect its output to a generation node. Alternatively, leave the node field empty and configure one of these:

export MUAPI_API_KEY="your_muapi_key"

or:

muapi auth configure --api-key YOUR_KEY

The nodes also read ~/.muapi/config.json when it contains an api_key field. Keys are only used for requests and are not written into generated workflow files unless you explicitly save them in a node field.

Quick workflows

Text-to-image

  1. Add ๐Ÿ”‘ FLUX 3 API Key.
  2. Add ๐Ÿ–ผ๏ธ FLUX 3 Text-to-Image or โšก FLUX 3 Dev.
  3. Choose an aspect ratio and 1k, 2k, or 4k resolution.
  4. Connect image to ๐Ÿ–ผ๏ธ FLUX 3 Save Image or ComfyUI's Preview Image node.

Image-to-image

Connect up to four Load Image โ†’ IMAGE outputs to the image_1 โ€ฆ image_4 inputs on ๐Ÿ–Œ๏ธ FLUX 3 Image-to-Image. Each slot also has an image_url_N field for a hosted URL or a local file path. Connected IMAGE inputs take precedence over their URL fields.

Use an instruction-style prompt, for example:

Replace the background with a warm, softly lit studio while keeping the subject's identity, pose, and clothing unchanged.

Text-to-video

Connect ๐Ÿ”‘ FLUX 3 API Key โ†’ ๐ŸŽฌ FLUX 3 Text-to-Video, choose an aspect ratio, 720p or 1080p, a duration from 5โ€“20 seconds, and whether to generate synchronized native audio. Connect video_url to ๐ŸŽฌ FLUX 3 Save Video and first_frame to Preview Image. Use ๐ŸŽฌ FLUX 3 Text-to-Video Draft for cheap, fast iteration before a final render โ€” it skips the resolution control and bills a flat rate.

Image-to-video

Connect Load Image โ†’ IMAGE to ๐ŸŽฌ FLUX 3 Image-to-Video, or provide a hosted URL/local path in image_url. The node uploads the image when needed and sends it as the single image_url required by the API.

Start-end-to-video

Connect two Load Image โ†’ IMAGE outputs to start_image and end_image on ๐ŸŽฌ FLUX 3 Start-End-to-Video (or use the start_image_url / end_image_url fields), and describe the transition in the prompt.

Video extend

Provide a source clip URL or local path (under 50MB, under 15s) in video_url on โžก๏ธ FLUX 3 Video Extend, and describe the continuation in the prompt. Use โžก๏ธ FLUX 3 Video Extend Draft for fast, low-cost continuity testing โ€” it skips the resolution control and bills a flat rate.

Video upscaler

Provide a source video URL or local path in video_url on ๐Ÿ”Ž FLUX 3 Video Upscaler, set upscale_factor$ (1โ€“4 \times ), \text{and} \text{choose} $creativity: 0 stays closer to the source (Precise, $1.43/run), 1 reconstructs more detail (Creative, $2.00/run).

API contract

WorkflowEndpointRequired fieldsStatus
Text-to-imagePOST /api/v1/flux-3-text-to-imagepromptComing soon
Image-to-imagePOST /api/v1/flux-3-image-to-imageprompt, images_list (up to 4)Coming soon
FLUX 3 DevPOST /api/v1/flux-3-devpromptComing soon
Text-to-videoPOST /api/v1/flux-3-text-to-videopromptLive โ€” $0.25/s (720p), $0.42/s (1080p)
Text-to-video draftPOST /api/v1/flux-3-text-to-video-draftpromptLive โ€” $0.09/s flat
Image-to-videoPOST /api/v1/flux-3-image-to-videoprompt, image_urlLive โ€” $0.25/s (720p), $0.42/s (1080p)
Start-end-to-videoPOST /api/v1/flux-3-start-end-to-videoprompt, image_url, end_image_urlLive โ€” $0.25/s (720p), $0.42/s (1080p)
Video extendPOST /api/v1/flux-3-video-extendprompt, video_urlLive โ€” $0.25/s (720p), $0.42/s (1080p)
Video extend draftPOST /api/v1/flux-3-video-extend-draftprompt, video_urlLive โ€” $0.09/s flat
Video upscalerPOST /api/v1/flux-3-video-upscalervideo_urlLive โ€” $1.43/run (Precise), $2.00/run (Creative)
Poll taskGET /api/v1/predictions/{request_id}/resultโ€”โ€”
Upload local filePOST /api/v1/upload_filemultipart fileโ€”

Image routes send aspect_ratio and resolution. Non-draft video routes send aspect_ratio, resolution, duration, and generate_audio; draft video routes send the same minus resolution. Duration is billed rounded up to the next whole second, capped at 20 seconds; audio generation is included at no extra charge. All requests use the x-api-key header and generation is asynchronous.

For local testing against a compatible Muapi deployment, set FLUX_3_API_BASE_URL. Polling can be tuned with FLUX_3_POLL_INTERVAL and FLUX_3_MAX_WAIT.

Requirements

Python 3.8+, requests, Pillow, numpy, and opencv-python. ComfyUI supplies the installed PyTorch runtime used by IMAGE tensors. For video playback inside ComfyUI, install ComfyUI-VideoHelperSuite.

  • MiniMax H3 ComfyUI โ€” the focused reference pack for this repository's node layout.
  • Flux-3-Dev-API โ€” Python wrapper for the FLUX 3 family through Muapi.
  • flux-3-video-edit โ€” Python SDK for FLUX 3's instruction-driven video editing mode (coming soon)
  • flux-3-video-upscaler โ€” Python SDK for upscaling FLUX 3 (or any) video output beyond its native resolution (coming soon)
  • flux-3-omni โ€” Python SDK for FLUX 3's multi-reference Omni Reference mode (coming soon)
  • Muapi API docs โ€” FLUX 3 capabilities and availability.
  • Muapi ComfyUI integration โ€” the full multi-model node pack.

License

MIT