Actions22
- Runway Actions
- Minimax Actions
- Midjourney Actions
Overview
This node operation allows users to interact with the Midjourney service by pressing a specific button associated with a job. In Midjourney workflows, jobs represent image generation or modification tasks, and buttons correspond to actions such as upscaling, variation, zooming, or remastering images generated by Midjourney.
Typical use cases include:
- Automating the selection of variations or upscales on generated images.
- Triggering custom zooms or other transformations programmatically.
- Integrating Midjourney's interactive buttons into automated workflows for batch processing or callback handling.
For example, after generating an image job, you can use this node to press the "U1" button to upscale the first image variant or "Vary (Strong)" to create strong variations of the selected image.
Properties
Name | Meaning |
---|---|
Job ID | The unique identifier of the Midjourney job that contains the button you want to press. This is required to specify which job the button action applies to. |
Button | The label of the button to press from the buttons array of the referenced job. Common values include: U1 , U2 , U3 , U4 (upscale variants), V1 , V2 , V3 , V4 (variations), arrows like ⬅️ , ➡️ , ⬆️ , ⬇️ , 🔄 , and special actions like Vary (Region) , Vary (Strong) , Vary (Subtle) , Zoom Out 1.5x , Zoom Out 2x , Make Square , Make Variations , Remaster , Custom Zoom . To know the exact available buttons for a job, first use the "Get Job" operation. |
Additional Options | A collection of optional parameters: |
- Custom Zoom Prompt | Required if the Custom Zoom button is pressed; specifies the prompt text describing the zoom effect. |
- Reply URL | A URL to receive callbacks once the job triggered by the button press is completed. Useful for asynchronous workflow continuation or notifications. |
- Reference ID | A user-defined reference string that will be returned with the job response/result, allowing correlation of requests and responses in your system. |
Output
The node outputs JSON data representing the response from the Midjourney API after pressing the specified button. This typically includes details about the new or updated job triggered by the button press, such as job status, identifiers, and any metadata returned by the API.
If the operation fails, the output JSON will contain error information including message, details, and HTTP status codes.
The node does not output binary data.
Dependencies
- Requires an active Midjourney API key credential configured in n8n to authorize requests.
- Uses the Midjourney API endpoint at
https://api.useapi.net/v2/jobs/button
. - Optional callback URLs require external webhooks or endpoints capable of receiving HTTP requests.
Troubleshooting
- Missing or invalid Job ID: Ensure the Job ID corresponds to an existing Midjourney job. Use the "Get Job" operation to verify.
- Invalid Button value: The button name must exactly match one of the available buttons for the job. Use "Get Job" to retrieve valid button names.
- Custom Zoom prompt missing: If using the
Custom Zoom
button, theCustom Zoom Prompt
property is mandatory. - API authentication errors: Verify that the Midjourney API key credential is correctly set and has necessary permissions.
- Callback URL issues: If using
Reply URL
, ensure the URL is reachable and properly handles incoming callbacks. - Network or API errors: Check network connectivity and API status. Error messages include HTTP status codes and details to help diagnose issues.
Links and References
- Midjourney Official Documentation (for understanding jobs and buttons)
- UseAPI Midjourney API Reference (for API endpoints and parameters)
- n8n documentation on HTTP Request Node for webhook/callback setup guidance