search_civitai_models
Search CivitAI for models by keyword, type, and base model. Get model and version IDs to download and use with trigger words.
Instructions
Search CivitAI by keyword for checkpoints, LoRAs, embeddings, VAEs, and ControlNets — THE tool for 'find me a LoRA on Civitai'. Read-only and network-only (public CivitAI REST API; no token or running ComfyUI required; CIVITAI_API_TOKEN unlocks gated results). Filter by types (LORA, Checkpoint, TextualInversion, VAE, Controlnet, …) and base_models (CivitAI labels: 'Flux.1 D', 'SDXL 1.0', 'SD 1.5', 'Pony', 'Illustrious', 'Wan Video') — ALWAYS pass base_models when the user's checkpoint family is known, so results actually fit their setup. Each hit returns the model_id and version_id that download_civitai_model takes directly, plus trigger words to use in the prompt after installing. Flow: search_civitai_models → pick a hit → download_civitai_model {model_version_id, target_subfolder} → wire/prompt with the trained words. Pass creator (exact username, e.g. from search_civitai_creators) to list ONE creator's models — with or without a query. SFW-only by default. For HuggingFace search use search_models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nsfw | No | Include NSFW results (default false). | |
| sort | No | Ranking (default 'Highest Rated'). | |
| limit | No | Max results (default 10). | |
| query | No | Keyword search (e.g. 'detail enhancer', 'anime style', a character name). Optional when creator is given (then it narrows that creator's models). | |
| types | No | Only these model types (e.g. ['LORA']). | |
| creator | No | Only models by this CivitAI creator (EXACT username — find it with search_civitai_creators). At least one of query/creator is required. | |
| base_models | No | Only these base-model families, CivitAI labels: 'Flux.1 D', 'SDXL 1.0', 'SD 1.5', 'Pony', 'Illustrious', 'Wan Video', … |