# Comfyui Request

> Send a workflow request to ComfyUI and return image results.

- Skill: `modbender/comfyui-request` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add modbender/comfyui-request`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/comfyui-request/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/comfyui-request

---


# comfyui-request

## Purpose
Send a workflow request to a running ComfyUI instance and return the generated image URL or base64 data.

## Configuration
- `COMFYUI_HOST`: Host/IP of the ComfyUI server (default `192.168.179.111`).
- `COMFYUI_PORT`: Port of the ComfyUI server (default `28188`).
- `COMFYUI_USER`: Optional username for basic auth.
- `COMFYUI_PASS`: Optional password for basic auth.

These can be set via environment variables or a `.env` file in the skill directory.

## Usage
```json
{
  "action": "run",
  "workflow": { ... }   // JSON workflow object
}
```

The skill will POST to `http://{host}:{port}/run` and return the response JSON.

## Example
```json
{
  "action": "run",
  "workflow": {
    "nodes": [ ... ],
    "edges": [ ... ]
  }
}
```

## Notes
The skill expects the ComfyUI server to expose the `/run` endpoint and return a JSON object containing an `image` field with a URL or base64 string.

