Nodes/SP-Nodes/CivitaiPrompts
ComfyUI Node

CivitaiPrompts

Pull real prompts straight out of CivitAI's gallery

By bananasss00·Created 2 years ago·Updated 6 days ago· 20
CivitaiPrompts
    • text
    limit200
    nsfwSoft
    sortMost Reactions
    periodWeek
    delete_lorastrue
    pages1

    Staring at a blank prompt box is a real productivity killer, and the fastest cure most of the time is seeing what other people actually typed to get results you like. This node hits CivitAI's own gallery API and hands you back real prompt text from real posted images, filtered however you want.

    How it works

    CivitAI attaches full generation metadata to images people post - prompts, samplers, LoRA weights - and this node scrapes that text based on the filters you set, then hands you a chunk of prompt text to work from, remix, or feed straight into a sampler.

    • limit (0–200, default 200) - how many results per page. 200 happens to be CivitAI's own API page-size ceiling, so the default is already maxed out.
    • nsfw - one of blank, Soft, Mature, or X, matching CivitAI's own content-rating tiers, defaulting to Soft.
    • sort - Most Reactions, Most Comments, or Newest.
    • period - AllTime, Year, Month, Week, or Day, defaulting to Week, so out of the box you're pulling this week's most-liked posts.
    • delete_loras (default true) - strips <lora:name:weight> tags out of the scraped prompt text before handing it back. Sensible default: a LoRA someone else used almost certainly isn't sitting in your models/loras folder, and leaving the tag in would just confuse whatever parses the prompt downstream.
    • pages (1–1000) - how many pages of results to walk through.
    • Output: text (STRING) - the scraped prompt content.

    Something worth knowing before you rely on the nsfw filter

    CivitAI split its catalogue across two domains in April 2026: civitai.com is now SFW-only by its own Terms of Service, and the full catalogue - including everything under the Mature/X ratings - lives on civitai.red instead. If this node's nsfw filter isn't turning up the content you'd expect, that split is the first thing worth checking; a node hard-pointed at the old SFW-only endpoint would only ever return Soft-tier results regardless of what you set here.

    How to install it

    Through ComfyUI Manager: search "SP-Nodes," install, restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/bananasss00/ComfyUI-SP-Nodes
    

    Restart ComfyUI afterward. No models to download - this just makes API calls.

    Common issues

    CivitAI's public API can be flaky under load - the platform itself has had real infrastructure hiccups (a June 2026 datacenter GPU pull that degraded service for days is one recent example), so an occasional slow response or empty page isn't necessarily this node's fault. Setting pages very high will be slow and puts real load on CivitAI's API for not much extra benefit if you're just browsing for ideas - keep it modest unless you have a specific reason to walk hundreds of pages.

    CategorySP-Nodes

    Inputs (6)

    NameTypeDefaultDescription
    limitINT2000–200
    nsfwCOMBOSoft4 options: , Soft, Mature, X
    sortCOMBOMost Reactions3 options: Most Reactions, Most Comments, Newest
    periodCOMBOWeek5 options: AllTime, Year, Month, Week, Day
    delete_lorasBOOLEANtrue
    pagesINT11–1000

    Outputs (1)

    NameTypeDescription
    textSTRING