Nodes/ComfyUI API Toolkit/Kling Raw File Loader
ComfyUI Node

Kling Raw File Loader

Pick any file in your input folder

By IxMxAMAR·Created 5 months ago·Updated 2 months ago· 1
Kling Raw File Loader
    • file_path
    filename

    ComfyUI's standard Load Image node only loads images. Sometimes you need the path to any file - a video you're about to upload, an audio file, a JSON config, whatever - so you can hand that path to another node. This node is a dropdown of every file in your ComfyUI input directory, and its one job is to return the absolute path to whatever you picked as a STRING. That's the whole thing, and that's exactly what makes it useful.

    The mechanism is dead simple: it lists your input folder at graph-edit time, you pick a filename from the dropdown, and it outputs the full path. No auth, no API call, no credits, no network at all - it's one of the few purely-local nodes in this pack, which means it costs nothing per queue and can't fail on Kling's end. Think of it as the plumbing that gets a local file into a workflow that wants a path instead of decoded pixels. The path output (file_path) wires straight into any node with a file-path string input - the Cloud Uploader's file_path input is the obvious pairing when you want to push a local file up to a URL for Kling.

    The dropdown only lists files sitting directly in the input directory (not subfolders). If the file you want isn't showing up, drop it in the top level of ComfyUI/input and refresh.

    Installing it

    Ships in ComfyUI-API-Toolkit. Manager: search "API Toolkit". Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/IxMxAMAR/ComfyUI-API-Toolkit
    pip install -r requirements.txt
    

    Restart ComfyUI. It needs no dependencies beyond what the pack already pulls in - literally requests at most.

    Gotchas

    There's not a lot to get wrong with a file picker, but two habits help. First, remember it returns a path string, not a loaded asset - if you were expecting pixels or audio frames out, you've got the wrong node. Second, it shares a name-space with the pack's other Kling config utilities, so when you're hunting for it in the node menu it's under API Toolkit → Kling AI → Config, not under image loaders. And because the dropdown is built from whatever's in the input folder at that moment, a file you add later requires refreshing the workflow. For saving, the bookend to this node is the pack's Raw File Saver - loader gives you a path, saver writes a file to a path.

    CategoryAPI Toolkit/Kling AI/Config

    Inputs (1)

    NameTypeDefaultDescription
    filenameCOMBOSelect any file from the ComfyUI input directory.

    Outputs (1)

    NameTypeDescription
    file_pathSTRING