comfyui-api

comfyui-api is a skill for Claude Code from MCKRUZ/ComfyUI-Expert. It costs 51 tokens per session (1,282 once invoked), scanned A, original, MIT.

A tool for connecting to a running ComfyUI server, sending workflows to it, tracking their progress, and retrieving the results. ComfyUI is a system for building image and video generation workflows.

In plain words
What is it for?
It is for checking server status, queuing ComfyUI workflows, monitoring execution, collecting generated files, and exporting workflows for offline use.
Why use it?
It removes the need to manually send requests and check output files while a workflow runs. If no server is available, it can instead prepare workflow JSON for loading manually in ComfyUI.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Good fit It is for checking server status, queuing ComfyUI workflows, monitoring execution, collecting generated files, and exporting workflows for offline use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mckruz/comfyui-expert/comfyui-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MCKRUZ/ComfyUI-Expert --skill comfyui-api
Clone the repo
git clone --depth 1 https://github.com/MCKRUZ/ComfyUI-Expert

Made for: Claude Code.

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 comfyui-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-api/github.svg)](https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-api)
Your own site
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-api"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-api/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 comfyui-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-api"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,282 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
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.00051 $0.01282
Opus 5.5 $0.00020 $0.00513
Sonnet 5.5 $0.00010 $0.00256
Haiku 4.5 $0.00005 $0.00128

Measured 1mo ago against content hash efce79b1633f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comfyui-api 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 1mo ago.

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.

metadata: {"openclaw":{"emoji":"🔌","os":["darwin","linux","win32"],"requires":{"anyBins":["curl","wget"]},"primaryEnv":"COMFYUI_URL"}}
skills/comfyui-api/SKILL.md · 174 lines

How it starts

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

ComfyUI API Skill

Connect to ComfyUI's REST API to execute workflows, monitor progress, and retrieve outputs.

Configuration

  • Default URL: http://127.0.0.1:8188
  • Custom URL: Set in project manifest or pass as parameter
  • Timeout: 30s for API calls, no timeout for generation polling

Two Modes

Online Mode (ComfyUI Running)

Full API access. Preferred mode for interactive work.

  1. Test connection: GET /system_stats
  2. Discover capabilities: Use comfyui-inventory skill
  3. Queue workflow: POST /prompt
  4. Poll for results: GET /history/{prompt_id} every 5 seconds
  5. Retrieve outputs: GET /view?filename=...

Offline Mode (No Server)

Export workflow JSON for manual loading in ComfyUI.

  1. Generate workflow JSON following ComfyUI's format
  2. Save to projects/{project}/workflows/{name}.json
  3. Instruct user to drag-drop into ComfyUI

API Operations

Check Server Status

curl http://127.0.0.1:8188/system_stats

Response fields:

  • system.os: Operating system
  • system.comfyui_version: Version string
  • devices[0].name: GPU name
  • devices[0].vram_total: Total VRAM bytes
  • devices[0].vram_free: Free VRAM bytes

Queue a Workflow

curl -X POST http://127.0.0.1:8188/prompt \
  -H "Content-Type: application/json" \
  -d '{"prompt": WORKFLOW_JSON, "client_id": "video-agent"}'

WORKFLOW_JSON format:

{
  "1": {
    "class_type": "LoadCheckpoint",
    "inputs": {
      "ckpt_name": "flux1-dev.safetensors"
    }
  },
  "2": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "text": "photorealistic portrait...",
      "clip": ["1", 1]
    }
  }
}

Each node is keyed by a string ID. Inputs reference other nodes as ["{node_id}", {output_index}].

Response:

{"prompt_id": "abc-123-def", "number": 1}

Poll for Completion

curl http://127.0.0.1:8188/history/abc-123-def

Incomplete: Returns {} (empty object) Complete: Returns execution data with outputs:

{
  "abc-123-def": {
    "outputs": {
      "9": {
        "images": [{"filename": "ComfyUI_00001.png", "subfolder": "", "type": "output"}]
      }
    },
    "status": {"completed": true}
  }
}

Read the full file on GitHub · 174 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. 1mo ago First seen · 174 lines · 51 tokens per session scan A efce79b1633f

Subscribe to this mod's changes

comfyui-api is a skill published in the GitHub repository MCKRUZ/ComfyUI-Expert (92 stars, last pushed 7mo ago), licensed MIT. It adds 51 tokens to every session and 1,282 once invoked, about $0.0002 per session on Opus 5.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

Prompt craft for ComfyUI generation

Use when writing prompts for ComfyUI image or video models: choosing tags vs literary format, fixing composition and anatomy artifacts, picking samplers per LoRA, and writing short movement prompts for video. Neutral examples only.

howdeploy/deploychan_mcp · 52 tokens

ai-media-generator

A workflow for turning ideas into prompts for AI-generated images, videos, and music across several media platforms. When needed, it can also send those prompts to the chosen platform through browser automation.

Hao0321/ai-media-generator · 380 tokens

minimax-h3

Write, debug and structure prompts for MiniMax H3 video generation (T2VA, I2VA, FL2VA, L2VA, Ref2VA) and configure its ComfyUI workflow. Use when the user mentions MiniMax H3, minimaxh3, fl2va, ref2va, MiniMaxH3ReferenceToVideo, reference-to-video, asks to animate a photo, write a video prompt, pick a model quant, or…

teskor-hub/minimax-h3-skill · 135 tokens

minimax-h3-reel-maker

Prepare MiniMax H3 Ref2VA reels in two workflows: reproduce a supplied source clip with scene photos, pose/depth ControlNet and TS smoother, or create a new video from photos and text alone. Use for H3 reference-based video preparation and its ComfyUI graphs.

teskor-hub/minimax-h3-skill · 65 tokens

handoff

Work with Master Canvas AI video handoff packages. Use when a user provides a Master Canvas ZIP or projectmanifest.json and wants Hermes to inspect assets, preserve scene and shot order, prepare ComfyUI/LTX 2.3 jobs, or hand off prompts to Kling, Veo, or another video generation operator. Also use when a user wants…

wassermanproductions/master-canvas-hermes-plugin · 105 tokens

local-ai-film

A directing workflow for producing AI short films with local or cloud-based models, including atmospheric films, trailers, vlogs, and dialogue-driven stories. It covers creative decisions, avoiding repetitive results, production steps, and final editing.

L-Trunks/ai-film-skills · 223 tokens