ComfyUI Node

Image From URL

Pull any image into ComfyUI from a URL (S3 or plain HTTP)

By aws-samples·Created 2 years ago·Updated about a year ago· 30
Image From URL
    • IMAGE
    url

    ComfyUI is a file-based tool: normally you drag an image in or load one from disk. But if your source image lives behind a URL - an S3 bucket, a CDN, a colleague's server - this node is the bridge. Give it a link, get an IMAGE tensor out.

    How it works

    It's a downloader with three URL personalities, all handled by the one url input:

    • s3://bucket/key - read straight from S3 via boto3 (get_object).
    • https://bucket.s3.<region>.amazonaws.com/key - the virtual-hosted S3 style; it parses the bucket and key out of the path.
    • Any other http(s):// - plain download with requests, sending a browser-like User-Agent so finicky servers don't refuse it.

    Whatever path it takes, the bytes get decoded into a PIL image and converted to a standard ComfyUI IMAGE tensor, ready to wire into a Load Image slot, a Nova Canvas variation node, a Stability image-to-image node, or a VAE encoder. Failures retry up to three times before giving up.

    It's a small node, but it's how you get hosted images into the graph without saving them to disk first - which is exactly what you want when a workflow pulls from an S3 pipeline, or when you're building a Bedrock workflow that starts from a photo someone dropped in a bucket.

    Inputs and output

    • url (required) - a single-line string. Paste the link, or wire it from another node (the pack's Image To S3 node outputs an s3:// path you can feed straight back in).
    • Output: IMAGE.

    Installing it

    Full pack install - you're not getting this node standalone:

    cd ComfyUI/custom_nodes
    git clone https://github.com/aws-samples/comfyui-llm-node-for-amazon-bedrock.git
    pip install -r comfyui-llm-node-for-amazon-bedrock/requirements.txt
    

    Restart ComfyUI, or grab it through ComfyUI Manager (search "Amazon Bedrock"). Dependencies are just boto3, requests, and retry - no model downloads.

    Gotchas

    • S3 URLs need credentials. The s3:// and S3-style https forms call AWS, so they require working credentials and permission to read the bucket (AmazonS3ReadOnlyAccess or similar). Plain HTTP links work with no AWS setup at all, though the pack installs boto3 either way.
    • Hotlink the actual image. Give it a direct .jpg/.png URL, not a page that renders an image. This node doesn't parse HTML.
    • Private buckets stay private. No auth flow beyond your configured AWS credentials - a presigned URL works, a private S3 key without a role doesn't.
    • The pack also ships "Image From S3" (bucket + key pickers) and "Image To S3" if you prefer explicit S3 handling over URL strings.

    Worth knowing: this is an aws-category node from an official AWS sample repo, and the pack is last touched around early 2025. It works as documented, but treat it as sample-grade code, not a heavily maintained community node - if it breaks, the fix is likely a fork rather than a fast upstream patch.

    Categoryaws

    Inputs (1)

    NameTypeDefaultDescription
    urlSTRING

    Outputs (1)

    NameTypeDescription
    IMAGEIMAGE