CivitaiPrompts
Pull real prompts straight out of CivitAI's gallery
- text
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, orX, matching CivitAI's own content-rating tiers, defaulting toSoft.sort-Most Reactions,Most Comments, orNewest.period-AllTime,Year,Month,Week, orDay, defaulting toWeek, so out of the box you're pulling this week's most-liked posts.delete_loras(defaulttrue) - 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 yourmodels/lorasfolder, 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.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| limit | INT | 2000–200 | — |
| nsfw | COMBO | Soft | 4 options: , Soft, Mature, X |
| sort | COMBO | Most Reactions | 3 options: Most Reactions, Most Comments, Newest |
| period | COMBO | Week | 5 options: AllTime, Year, Month, Week, Day |
| delete_loras | BOOLEAN | true | — |
| pages | INT | 11–1000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |