Nodes/PoYo AI/PoYo Save Result File
ComfyUI Node

PoYo Save Result File

Turn a public result URL into a real file in ComfyUI/output/poyo

By PoyoAPI·Created about a month ago·Updated about a month ago· 0
PoYo Save Result File
    • local_path
    file_url
    filename

    PoYo's API hands back result files as URLs - public media links, not files on your disk. PoYo_SaveResultFile is the node that closes that gap: give it a URL, it downloads the bytes and writes them under ComfyUI/output/poyo, then returns the local path. That's it. It's the smallest, most honest node in the pack, and it's marked as an output node so ComfyUI treats it like a proper end-of-graph sink that always runs.

    You'll wire it in at the end of any branch that produces a file URL you actually want to keep - after PoYo_RunModel with its files_json, after PoYo_SubmitJob/PoYo_GetJobStatus once a job is finished, or any time you've got a public URL in a string socket. The generate nodes that return file_url (like PoYo_GenerateVideo) already save their own files, but for everything else, this is how the result lands on your machine.

    Mechanism. One required input: file_url (STRING). It downloads the bytes with a plain GET, then writes them to ComfyUI/output/poyo/. The optional filename input (STRING) is your chance to name it - leave it blank and the name is derived from the URL path. Either way the filename is sanitized (anything not alphanumeric, dot, dash, or underscore becomes an underscore) and capped, and if a file with that name already exists it gets a -2, -3, … suffix rather than overwriting. So you never clobber a previous result, even on reruns.

    Output. One STRING: local_path - the absolute path to the file it just wrote. That's the only thing it gives you, and it's exactly the thing you wanted.

    Install. Part of poyo-comfyui, which needs ComfyUI 0.32.0+ (native node system). ComfyUI Manager (search "PoYo"), comfy node install poyo-nodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/PoyoAPI/poyo-comfyui.git
    

    then restart. No models, no dependencies beyond ComfyUI's own.

    Where people get burned. The obvious one is downloading URLs you shouldn't - this node will happily fetch any HTTP(S) URL you point it at, so keep it pointed at result URLs from PoYo. And note it's a downloader, not a re-uploader: if you need a local file to go up to PoYo, that's the job of PoYo_UploadMedia. One last thing: like every node in this pack it needs the API key configured (POYO_API_KEY in the environment, or python -m poyo_nodes.configure writing to ~/.poyo/comfyui.json) - even a pure downloader checks credentials through the same client.

    CategoryPoYo AI/Files

    Inputs (2)

    NameTypeDefaultDescription
    file_urlSTRING
    filenameoptSTRING

    Outputs (1)

    NameTypeDescription
    local_pathSTRING