ComfyUI > Nodes > MW-ComfyUI_OneButtonPrompt > Load Image And Prompt From URL

ComfyUI Node: Load Image And Prompt From URL

Class Name

LoadImageAndPromptFromURL

Category
🎤MW/MW-OneButtonPrompt
Author
mw (Account age: 2284days)
Extension
MW-ComfyUI_OneButtonPrompt
Latest Updated
2025-05-06
Github Stars
0.02K

How to Install MW-ComfyUI_OneButtonPrompt

Install this extension via the ComfyUI Manager by searching for MW-ComfyUI_OneButtonPrompt
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MW-ComfyUI_OneButtonPrompt 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

Load Image And Prompt From URL Description

Streamline fetching images and prompts from URLs for AI artists, ensuring valid data processing and creative inspiration.

Load Image And Prompt From URL:

The LoadImageAndPromptFromURL node is designed to streamline the process of fetching images and their associated prompts from specified URLs. This node is particularly beneficial for AI artists who wish to integrate external image resources into their creative workflows seamlessly. By leveraging this node, you can efficiently load images from the web and retrieve corresponding prompts, which can be used to inspire or guide AI-generated art. The node ensures that only valid image URLs are processed, providing a robust mechanism to handle image data and associated textual prompts. This functionality is crucial for artists looking to expand their creative inputs with diverse and dynamic content sourced from the internet.

Load Image And Prompt From URL Input Parameters:

json_1

This parameter specifies the first JSON file containing image URLs and their corresponding prompts. It is essential for defining the primary source of image data and prompts that the node will process. The JSON file should be structured to map image URLs to their respective prompts, allowing the node to fetch and utilize this information effectively. There are no explicit minimum or maximum values, but the file should be correctly formatted to ensure successful execution.

json_2

Similar to json_1, this parameter defines a secondary JSON file that can be used to provide additional image URLs and prompts. This allows for greater flexibility and a broader range of content to be processed. If not needed, you can set this parameter to "None". The file should be formatted similarly to json_1 to ensure compatibility and successful data retrieval.

in_order

This boolean parameter determines whether the images and prompts should be loaded in the order they appear in the JSON files. If set to True, the node will process the entries sequentially; if False, it will select entries randomly. The default value is False, allowing for a more varied and dynamic selection process.

load_time

This parameter specifies the time delay in seconds for loading each image. It is useful for managing the rate at which images are fetched, especially when dealing with large datasets or slower network connections. The default value is 2 seconds, providing a balance between speed and reliability.

proxy

This parameter allows you to specify a proxy server for fetching images, which can be useful for bypassing network restrictions or enhancing privacy. The default value is "http://127.0.0.1:None", which indicates no proxy is used. If a proxy is required, you should provide the appropriate URL.

This boolean parameter enables the search functionality within the prompts. When set to True, the node will filter prompts based on the specified search term, allowing you to focus on specific themes or keywords. The default value is False.

search_for

This parameter defines the keyword or phrase to search for within the prompts when on_search is enabled. It allows you to narrow down the selection of prompts to those that contain the specified term, enhancing the relevance of the content retrieved.

seed

This parameter sets the seed for random operations, ensuring reproducibility of results. By providing a specific seed value, you can achieve consistent random selections across different runs. The default value is 0, which means no specific seed is applied.

Load Image And Prompt From URL Output Parameters:

img

This output parameter provides the image data retrieved from the specified URL. The image is processed and converted into a format suitable for further use in AI art generation, ensuring compatibility with various creative tools and workflows.

prompt

This output parameter delivers the textual prompt associated with the loaded image. The prompt can serve as inspiration or guidance for AI-generated art, providing context or thematic direction based on the content of the image.

imgurl

This output parameter returns the URL of the image that was successfully loaded. It serves as a reference to the source of the image, allowing you to track or verify the origin of the content used in your creative projects.

Load Image And Prompt From URL Usage Tips:

  • Ensure that your JSON files are correctly formatted and contain valid image URLs to avoid errors during execution.
  • Use the in_order parameter to control the sequence of image loading, which can be useful for structured projects or when specific order is required.
  • Adjust the load_time parameter based on your network speed and the size of the images to optimize loading performance without overwhelming your system.

Load Image And Prompt From URL Common Errors and Solutions:

Failed to load image from URL. Please check the URL or proxy settings.

  • Explanation: This error occurs when the node is unable to retrieve image data from the specified URL, possibly due to an incorrect URL or proxy configuration.
  • Solution: Verify that the URL is correct and accessible. If using a proxy, ensure that the proxy settings are accurate and that the proxy server is operational.

No image URL found.

  • Explanation: This error indicates that the JSON files provided do not contain any valid image URLs for processing.
  • Solution: Check the JSON files to ensure they are correctly formatted and contain valid image URLs. If necessary, update the files with the correct data.

No prompt found with the search word.

  • Explanation: This error occurs when the search functionality is enabled, but no prompts match the specified search term.
  • Solution: Review the search_for parameter to ensure it is set to a relevant keyword or phrase. Consider broadening the search term to increase the likelihood of finding matching prompts.

Load Image And Prompt From URL Related Nodes

Go back to the extension to check out more related nodes.
MW-ComfyUI_OneButtonPrompt
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 Playground, enabling artists to harness the latest AI tools to create incredible art.