← All skills
Tencent SkillHub · Developer Tools

Civitai Generation API

Generate AI images from prompts using CivitAI's JavaScript SDK with customizable models, samplers, seeds, steps, LoRA, and output options.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Generate AI images from prompts using CivitAI's JavaScript SDK with customizable models, samplers, seeds, steps, LoRA, and output options.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, scripts/get_illust.js

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 9 sections Open source page

CivitAI AI Art Generation

Generate AI artwork using CivitAI's official JavaScript SDK.

Prerequisites

Node.js 18+ environment CivitAI API access token (stored in environment variable CIVITAI_API_TOKEN) civitai npm package installed

Installation

npm install civitai

Usage

node scripts/get_illust.js [options]

Options

OptionDescriptionDefault--promptMain generation prompt (required)---negativeNegative prompt"bad quality,worst quality,worst detail,sketch,censor"--widthImage width832--heightImage height1216--seedRandom seedrandom--stepsSampling steps20--cfg-scaleCFG scale5--modelModel URN identifier"urn:air:sdxl:checkpoint:civitai:827184@2514310"--samplerSampler algorithm"Euler a"--clip-skipCLIP skip layers2--outputOutput file path"./output.png"--loraLoRA network URN with optional strength (format: urn,strength)-

Example Usage

# 基础生成 node scripts/get_illust.js --prompt "1girl, red hair, blue eyes, maid outfit, smile" --output maid.png # 高级设置 node scripts/get_illust.js \ --prompt "1girl, long silver hair, purple eyes, magical girl, cityscape at night" \ --negative "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet" \ --width 1024 \ --height 1536 \ --steps 28 \ --cfg-scale 6 \ --seed 42 \ --output magical_girl.png # 使用不同模型 node scripts/get_illust.js \ --prompt "fantasy landscape, floating islands, waterfalls" \ --model "urn:air:sdxl:checkpoint:civitai:101055@128641" \ --output landscape.png # 使用 LoRA node scripts/get_illust.js \ --prompt "1girl, red hair, blue eyes, maid outfit, smile" \ --lora "urn:air:sdxl:lora:civitai:162141@182559,0.8" \ --output maid_with_lora.png # 使用多个 LoRA node scripts/get_illust.js \ --prompt "1girl, cat ears, cute smile, IncrsAhri, multiple tails" \ --lora "urn:air:sd1:lora:civitai:162141@182559,1.0" \ --lora "urn:air:sd1:lora:civitai:176425@198856,0.6" \ --output multi_lora.png

Markdown 链接示例

生成图片后,使用 markdown 格式包裹链接: [生成的图片](https://blobs-temp.s3.us-west-004.backblazeb2.com/...)

Scheduler Options

Available sampler values: Sampler NameEnum ValueEuler aEULER_AEulerEULERLMSLMSHeunHEUNDPM2DPM2DPM2 aDPM2_ADPM++ 2S aDPM2_SADPM++ 2MDPM2_MDPM++ SDEDPM_SDEDPM fastDPM_FASTDPM adaptiveDPM_ADAPTIVELMS KarrasLMS_KARRASDPM2 KarrasDPM2_KARRASDPM2 a KarrasDPM2_A_KARRASDPM++ 2S a KarrasDPM2_SA_KARRASDPM++ 2M KarrasDPM2_M_KARRASDPM++ SDE KarrasDPM_SDE_KARRASDDIMDDIMPLMSPLMSUniPCUNIPCLCMLCMDDPMDDPMDEISDEIS

Notes

Requires Node.js 18+ for native fetch support Store API tokens securely using environment variables Generated images are subject to CivitAI's terms of service Some models may require specific permissions or subscriptions The script always waits for job completion by default

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs1 Scripts
  • SKILL.md Primary doc
  • scripts/get_illust.js Scripts