โ๐จ API Image Generator (CivitAI) ๐จโ
Generate on Civitai's servers from a token
- images
- generation_info
Most of this pack runs locally. This node doesn't - it genuinely calls the Civitai cloud API and generates the image on their GPUs, then pulls the result back into your graph. So you can generate with a Civitai-hosted checkpoint (and their LoRAs) without downloading a single model or owning a GPU that can run them. The trade: you need a Civitai API token, and every generation spends Buzz - specifically Yellow Buzz, since Civitai's API calls draw from the crypto-bought currency, not the free Blue kind.
It's a real option when the model you want lives on Civitai and you don't want the multi-gig download, or your local card can't handle it. Just go in clear-eyed about cost and reliability.
How it works
You paste a token, a prompt, and a model reference (Civitai's "AIR" identifier - the urn:air:... string that points at a specific model version), set your usual generation params, and the node fires a request to Civitai. It waits for the job to finish (up to your timeout), then hands back the image plus a text blob describing the generation. Because the work happens server-side, your local VRAM is irrelevant - but so is your local speed; you're at the mercy of Civitai's queue.
The inputs and outputs that matter
api_token(STRING, required) - your Civitai API token, from your Civitai account settings. Nothing works without it.prompt/negative_prompt(STRING) - the usual.model_urn(STRING, optional) - the AIR identifier of the checkpoint to use, e.g. the defaulturn:air:sdxl:checkpoint:civitai:101055@128078. Swap this to change models; grab the URN from the model's page on Civitai.width/height/steps/cfg_scale/seed/number_of_images- standard generation controls (width/height cap at 1024, up to 10 images).timeout(INT, default 300s) - how long to wait before giving up. Bump it; the API can be slow.add_LORA(STRING, optional) - connect the pack's "Add Lora (API - CivitAI)" node here to stack LoRAs onto the request.DO_NOT_WAIT(boolean) - fire-and-don't-block behaviour.links_fileandLIST_from_style_selectorfeed batch/style workflows.
Outputs: images (IMAGE, into a save/preview) and generation_info (STRING - pipe it into Show (JSON) to read what actually ran).
How to install it
ComfyUI Manager โ Bjornulf_custom_nodes โ install โ restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
pip install -r Bjornulf_custom_nodes/requirements.txt
then restart. This node needs the civitai-py dependency from the requirements - if the install skipped it, the node will error on use. On Windows portable Python, install into python_embeded (the README has the exact command).
Common issues & troubleshooting
It hangs or times out with no image. Per the author's own warning, the Civitai API is not the most reliable - sometimes it's slow, sometimes it just doesn't answer, and some URNs respond worse than others. Raise timeout, retry, and don't run anything expensive through it. For pricey models (Flux Ultra), the advice is to use the website with Blue Buzz instead of burning Yellow Buzz on flaky API calls.
"Unauthorized" / no output. Bad or missing api_token. Regenerate it in your Civitai account and paste it fresh.
The model won't load. A malformed or unsupported model_urn. Copy the AIR string straight from the model version's page; a wrong version number after the @ fails.
It cost Buzz and I didn't expect that. API generation spends Yellow Buzz per image - this isn't free local compute. Budget accordingly, and keep number_of_images low while you're dialing in a prompt.
civitai-py import error on startup. The dependency didn't install. Run the pack's requirements again in the correct Python environment.
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| api_token | STRING | โ | |
| prompt | STRING | RAW photo, face portrait photo of 26 y.o woman | โ |
| negative_prompt | STRING | low quality, blurry, pixelated, distorted, artifacts | โ |
| width | INT | 1024128โ1024 | โ |
| height | INT | 768128โ1024 | โ |
| steps | INT | 201โ50 | โ |
| cfg_scale | FLOAT | 7.01โ30 | โ |
| seed | INT | -1-1โ9223372036854776000 | โ |
| number_of_images | INT | 11โ10 | โ |
| timeout | INT | 30060โ1800 | โ |
| model_urnopt | STRING | urn:air:sdxl:checkpoint:civitai:101055@128078 | โ |
| add_LORAopt | STRING | โ | |
| DO_NOT_WAITopt | BOOLEAN | false | โ |
| links_fileopt | STRING | โ | |
| LIST_from_style_selectoropt | STRING | โ |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | โ |
| generation_info | STRING | โ |