ComfyUI > Nodes > midjourney-comfyui > 🔑 Midjourney API Key

ComfyUI Node: 🔑 Midjourney API Key

Class Name

MidjourneyApiKey

Category
🎨 Midjourney
Author
Anil-matcha (Account age: 4751days)
Extension
midjourney-comfyui
Latest Updated
2026-05-05
Github Stars
0.03K

How to Install midjourney-comfyui

Install this extension via the ComfyUI Manager by searching for midjourney-comfyui
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter midjourney-comfyui in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔑 Midjourney API Key Description

Streamline API key management for Midjourney nodes in ComfyUI by storing and connecting keys effortlessly.

🔑 Midjourney API Key:

The MidjourneyApiKey node is designed to streamline the process of managing your API key for Midjourney nodes within the ComfyUI environment. By storing your MuAPI API key in this node, you can effortlessly connect it to any Midjourney node without the need to repeatedly input the key. This node automatically reads the API key from its configuration or from a pre-configured file located at ~/.muapi/config.json, which can be set up using the muapi auth configure command. This functionality simplifies the workflow for AI artists by ensuring that the API key is consistently and securely applied across all relevant nodes, enhancing both convenience and security.

🔑 Midjourney API Key Input Parameters:

api_key

The api_key parameter is a string input where you can enter your MuAPI API key. This key is essential for authenticating your requests to the Midjourney API. If you leave this field empty, the node will attempt to retrieve the API key from the configuration file located at ~/.muapi/config.json. This parameter does not have a minimum or maximum value, but it is crucial to ensure that the key is correctly formatted and valid to avoid authentication errors. The default value is an empty string, and it is recommended to obtain your API key from the muapi.ai dashboard under the API Keys section.

🔑 Midjourney API Key Output Parameters:

api_key

The api_key output parameter returns the API key that is either provided directly through the input parameter or retrieved from the configuration file. This output is crucial as it ensures that the correct API key is being used for subsequent operations with Midjourney nodes, facilitating seamless integration and authentication with the Midjourney API.

🔑 Midjourney API Key Usage Tips:

  • Ensure that your API key is correctly entered in the api_key field or properly configured in the ~/.muapi/config.json file to avoid authentication issues.
  • Regularly update your API key in the configuration file if it changes, to maintain uninterrupted access to the Midjourney API.
  • Use the muapi auth configure command to easily set up your API key in the configuration file, which the node can automatically read.

🔑 Midjourney API Key Common Errors and Solutions:

No API key found. Either paste your key into the api_key field, or run muapi auth configure --api-key YOUR_KEY in a terminal.

  • Explanation: This error occurs when the node cannot find a valid API key either in the input field or in the configuration file.
  • Solution: Ensure that you have entered a valid API key in the api_key input field. Alternatively, use the muapi auth configure --api-key YOUR_KEY command to set up your API key in the configuration file located at ~/.muapi/config.json.

🔑 Midjourney API Key Related Nodes

Go back to the extension to check out more related nodes.
midjourney-comfyui
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

🔑 Midjourney API Key