civitai-gen

civitai-gen is a skill for Claude Code, Codex from civitai/civitai-gen-skill. It costs 78 tokens per session (1,976 once invoked), scanned A, original, MIT.

A command-line tool for creating images, videos, speech, music, and transcripts through Civitai's online generation service. Civitai is a platform for sharing and running generative-media models.

In plain words
What is it for?
Use it for text-to-image and video generation, text-to-speech, music creation, speech-to-text transcription, bulk batches, and generation experiments.
Why use it?
It gives different media-generation tasks a common process for submitting work, checking progress, and downloading results. It can also estimate the cost of a generation without spending credits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node mcp-cli.mjs post-image ./out/step_0-0.png --title "My apple".

Good fit Use it for text-to-image and video generation, text-to-speech, music creation, speech-to-text transcription, bulk batches, and generation experiments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/civitai/civitai-gen-skill
agentmods
npx agentmods add skills/civitai/civitai-gen-skill/civitai-gen

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for civitai-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/civitai/civitai-gen-skill/civitai-gen/github.svg)](https://agentmods.dev/skills/civitai/civitai-gen-skill/civitai-gen)
Your own site
<a href="https://agentmods.dev/skills/civitai/civitai-gen-skill/civitai-gen"><img src="https://agentmods.dev/badge/skills/civitai/civitai-gen-skill/civitai-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for civitai-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/civitai/civitai-gen-skill/civitai-gen"><img src="https://agentmods.dev/badge/skills/civitai/civitai-gen-skill/civitai-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,976 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01976
Opus 5 $0.00039 $0.00988
Sonnet 5 $0.00016 $0.00395
Haiku 4.5 $0.00008 $0.00198

Measured 12d ago against content hash ea4324ba651b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

civitai-gen scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (experiment.mjs, generate.mjs, lib/api.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`post-image` reads the local file, uploads it, and publishes the post — it prints the public URL. Pull `mcp-cli.mjs` first if you don't have it (`curl -fsSL https://mcp.civitai.com/cli -o mcp-cli.mjs`); `CIVITAI_API_KEY`
civitai-gen/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

civitai-gen

Unified CLI for Civitai's orchestration Workflow API. All generation types share the same workflow lifecycle: submit, poll, download.

Setup

Requires Node.js 18+. Set CIVITAI_API_KEY either as an environment variable or in a .env file in this skill's directory (next to generate.mjs). Copy .env.example to .env to start. Get a key at: https://civitai.com/user/account

Paths below are relative to this skill's directory. Run the scripts from there (cd into it), or prefix with the install path your runtime uses.

Capabilities

Command What it does Details
wait Submit + poll + download (default) All-in-one blocking generation
submit Fire-and-forget, returns workflow ID For async workflows
status Check workflow progress --poll for live updates
download Fetch completed media From a workflow ID
cost Dry-run buzz estimation whatif=true, 0 buzz spent
engines List video engines + live status 11+ engines
tts Text-to-speech See docs/tts.md
music Music/song generation (ACE Step 1.5) See docs/music.md
transcribe Speech-to-text transcription See docs/transcription.md

Quick Examples

# Image (defaults to Flux.1, 4 images)
node generate.mjs wait --prompt "A knight at sunset" -o ./out

# Multiple concurrent prompts
node generate.mjs wait --prompt "A warrior" --prompt "A mage" -o ./out

# Video (VEO 3)
node generate.mjs wait --engine veo3 --prompt "A robot walking" -o ./out

# Text-to-speech
node generate.mjs tts --text "Hello world" --speaker serena -o ./out

# Music
node generate.mjs music --prompt "upbeat electronic dance track" -o ./out

# Transcription
node generate.mjs transcribe --media-url "https://example.com/audio.mp3" -o ./out

# Cost check (any type, 0 buzz)
node generate.mjs cost --prompt "A cat" -n 100
node generate.mjs cost --engine veo3 --prompt "A robot" --duration 8

# Experiment mode (wildcard expansion)
node experiment.mjs --spec experiment.json -o ./out

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 137 lines · 78 tokens per session scan A ea4324ba651b

Subscribe to this mod's changes

civitai-gen is a skill published in the GitHub repository civitai/civitai-gen-skill (17 stars, last pushed 3mo ago), licensed MIT. It adds 78 tokens to every session and 1,976 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browser-relay

Operate the user's existing, logged-in Chrome locally or on an explicitly connected remote machine. Read complete page content with actionable refs and links, perform grouped actions, and use screenshots in persistent browser sessions. Skip static public pages and pure REST APIs.

reliefeai/browser-relay · 52 tokens

mediagen

Generate images and video from text prompts via the mediagen CLI, across Gemini, OpenAI and Kie AI. Use when asked to create, generate, render, or edit an image or a video — a logo, an illustration, a mockup, a photo, a banner, a clip — or to mark existing media as AI-generated. Also covers choosing a provider or…

Cripacx/mediagen · 84 tokens

chat-history

Search, inspect, and export Claude Code, Cursor, and Codex conversation history. Use when the user asks about past conversations, wants to find a previous session, needs to search chat history, wants a summary of what they worked on, or asks to resume a session. Also use when the user says "what did I work on", "find…

ay-bh/chat-history · 93 tokens

chatgpt-imagegen

Generate new raster images and looping GIF/WebP animations with the user's ChatGPT subscription through the local one-file chatgpt-imagegen CLI, without an API key or daemon. Use for photos, illustrations, icons, hero banners, mockups, sprites, concept art, animation loops, and figures for documents, proposals, blog…

leeguooooo/chatgpt-imagegen · 180 tokens

serial-debug

CLI-first serial port debugging and macro automation with serial-mcp-server for Codex and Claude Code. Use when working with UART or USB-serial devices, listing serial ports, probing STM32/Arduino/ESP32 boards, writing or reading serial data, running JSON serial macros, controlling RTS/DTR, or using serial-mcp-server…

Adancurusul/serial-mcp-server · 74 tokens

hyalo-skills

Validate and maintain Agent Skills collections using Hyalo's skills profile, including Codex and Claude skill directories.

ractive/hyalo · 26 tokens