UseAPI icon

UseAPI

Interact with RunwayML through UseAPI

Overview

This node integrates with the UseAPI service to interact with various AI and media-related APIs, including Midjourney. Specifically, for the Midjourney resource with the "Get Job" operation, it retrieves detailed information about a specific job by its ID. This is useful for tracking the status or results of image generation or other tasks submitted to Midjourney via UseAPI.

Common scenarios include:

  • Checking the progress or final output of an image generation job.
  • Retrieving metadata or result URLs related to a previously submitted job.
  • Automating workflows that depend on the completion of Midjourney jobs.

Example: After submitting an image generation prompt to Midjourney, you can use this node to poll the job status until the image is ready, then proceed with further processing or notifications.

Properties

Name Meaning
Job ID The unique identifier of the Midjourney job to retrieve.

Output

The node outputs a JSON object containing the full response from the UseAPI Midjourney endpoint for the specified job. This typically includes details such as:

  • Job status (e.g., pending, completed, failed)
  • Result URLs or image data references
  • Metadata about the job parameters and timestamps
  • Any error messages if the job failed

The output is structured as an array of JSON objects, each representing one item processed by the node. There is no binary output for this operation.

Dependencies

  • Requires an API key credential for UseAPI's Midjourney service.
  • The node makes HTTP GET requests to the UseAPI v2 endpoint at https://api.useapi.net/v2/jobs/?jobid={jobId}.
  • Proper configuration of the Midjourney API key in n8n credentials is necessary.

Troubleshooting

  • Missing or invalid Job ID: Ensure the "Job ID" property is provided and correctly matches an existing job.
  • Authentication errors: Verify that the API key credential for Midjourney is set up correctly and has sufficient permissions.
  • Network or API errors: Check network connectivity and UseAPI service status. Error responses from the API will be included in the node output if "Continue On Fail" is enabled.
  • Operation cancelled or no data returned: Confirm the job ID exists and the job has been submitted properly before attempting to retrieve it.

Links and References


Note: Internal credential names and sensitive tokens are abstracted as generic API key credentials per guidelines.

Discussion