Midjourney ComfyUI Nodes

June 2, 2026 · View on GitHub

ComfyUI custom nodes for Midjourney V7, V8, and Niji — generate high-quality Midjourney images directly inside ComfyUI via the muapi.ai API.

License: MIT ComfyUI Midjourney


  • muapi-comfyui — ComfyUI nodes for 100+ MuAPI models including Midjourney, Seedance, Veo, and more
  • Open-Generative-AI — Free self-hosted studio with 200+ models — no ComfyUI needed

What's Inside

This node pack exposes the three latest Midjourney endpoints on muapi.ai as ComfyUI nodes. Each run returns 4 images as an IMAGE batch that plugs directly into previews, savers, upscalers, or any downstream node.

  • Midjourney V7 — photorealistic, artistic, cinematic compositions
  • Midjourney V8 — latest generation, improved coherence and detail
  • Midjourney Niji — anime, manga, and stylized illustration

All three share the same control surface: prompt, aspect ratio, stylize, chaos, weird, negative prompt, seed, and optional reference image.


Nodes

NodeDescription
🔑 Midjourney API KeySet your muapi key once — wire to all nodes
🎨 Midjourney V74-image run with V7
🎨 Midjourney V84-image run with V8
🎨 Midjourney Niji4-image run with Niji (anime / illustration)

Installation

  1. Open ComfyUI ManagerInstall via Git URL
  2. Paste: https://github.com/Anil-matcha/Open-Higgsfield-Popcorn
  3. Restart ComfyUI

Manual

cd ComfyUI/custom_nodes
git clone https://github.com/Anil-matcha/Open-Higgsfield-Popcorn midjourney-comfyui
pip install -r midjourney-comfyui/requirements.txt

Quick Start

  1. Sign up at muapi.ai and go to Dashboard → API Keys → Create Key.
  2. Right-click the ComfyUI canvas → Add Node🎨 Midjourney.
  3. Add a 🔑 Midjourney API Key node, paste your key, and wire its output to any generation node (or leave all api_key fields empty and run muapi auth configure --api-key YOUR_KEY once in a terminal).
  4. Type a prompt and hit Queue Prompt — 4 images come back as a batch.

Tip: The MuAPI CLI lets you configure your key once globally. All nodes in this pack auto-read ~/.muapi/config.json when the api_key field is empty.


Node Reference

All three generation nodes share the same inputs:

FieldValuesDefault
promptText description
aspect_ratio1:1 / 16:9 / 9:16 / 3:4 / 4:3 / 21:91:1
stylize0–1000 (lower = literal, higher = stylized)100
chaos0–100 (variation across the 4 images)0
weird0–3000 (unconventional aesthetics)0
negative_promptOptional — things to exclude
seed0–4294967295 (0 = random)0
image_urlOptional reference image URL
ref_imageOptional IMAGE input — uploaded to muapi
api_keyOptional — leave blank if using the API Key node or CLI config

Outputs: images (IMAGE batch of 4) · first_url (STRING) · all_urls (STRING, newline-separated) · request_id (STRING)

Reference images

  • If both image_url and ref_image are provided, image_url wins.
  • ref_image is uploaded to muapi's /upload_file endpoint before the generation call.

Example Workflow

[🔑 API Key] ──────────────────┐

[🎨 Midjourney V8] → images → [Preview Image]
                   → first_url → [Show Text]

The images output is a batch of 4, so dropping a standard Preview Image or Save Image node shows/saves all four frames.


API

This node pack uses the muapi.ai API under the hood:

  • Submit: POST https://api.muapi.ai/api/v1/midjourney-v7 (or -v8, or -niji)
  • Poll: GET https://api.muapi.ai/api/v1/predictions/{id}/result
  • Upload: POST https://api.muapi.ai/api/v1/upload_file

Authentication is a single x-api-key header — no session tokens required.


Requirements

  • Python ≥ 3.8
  • requests ≥ 2.28 · Pillow ≥ 9.0 · numpy ≥ 1.23 · torch ≥ 2.0

Want More Models?

This repo is focused on Midjourney only. If you need access to 100+ models — Seedance, Kling, Veo3, Flux, HiDream, GPT-image, Imagen4, Wan, lipsync, audio, image enhancement and more — check out the full MuAPI ComfyUI node pack:

SamurAIGPT/muapi-comfyui — ComfyUI nodes for every muapi.ai model in one place.


License

MIT © 2026