본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #4210

comfyui-gateway

하는 일

이 서비스는 텍스트로 이미지를 만드는 프로그램인 ComfyUI의 관문 역할을 합니다. 이미지 생성 작업을 정리하고, ComfyUI에 과부하가 걸리지 않도록 관리하며, 다른 프로그램이 안전하게 통신하도록 합니다.

사용하는 경우

  • ✓프로그램이 이미지를 자동으로 많이 만들어야 할 때.
  • ✓이미지 생성 작업을 정리하고 우선순위를 정해야 할 때.
  • ✓이미지 생성이 끝나면 다른 프로그램에 알림을 보내고 싶은 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/comfyui-gateway/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/comfyui-gateway/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘cute_cat’ 모델로 고양이 이미지를 10장 만들고 끝나면 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 서비스는 이미지 생성 요청을 받아 대기열에 넣어 ComfyUI가 과부하되지 않도록 합니다. 그다음 요청을 ComfyUI로 보내 처리하게 합니다. 만들어진 이미지를 저장하고 다른 프로그램에 알릴 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

ComfyUI Gateway

Overview

REST API gateway for ComfyUI servers. Workflow management, job queuing, webhooks, caching, auth, rate limiting, and image delivery (URL + base64).

When to Use This Skill

  • When the user mentions "comfyui" or related topics
  • When the user mentions "comfy ui" or related topics
  • When the user mentions "stable diffusion api gateway" or related topics
  • When the user mentions "gateway comfyui" or related topics
  • When the user mentions "api gateway imagens" or related topics
  • When the user mentions "queue imagens" or related topics

Do Not Use This Skill When

  • The task is unrelated to comfyui gateway
  • A simpler, more specific tool can handle the request
  • The user needs general-purpose assistance without domain expertise

How It Works

A production-grade REST API gateway that transforms any ComfyUI server into a universal, secure, and scalable service. Supports workflow templates with placeholders, job queuing with priorities, webhook callbacks, result caching, and multiple storage backends.

Architecture Overview

┌─────────────┐     ┌──────────────────────────────────┐     ┌──────────┐
│   Clients    │────▶│        ComfyUI Gateway           │────▶│ ComfyUI  │
│ (curl, n8n,  │     │                                  │     │ Server   │
│  Claude,     │     │  ┌─────────┐  ┌──────────────┐  │     │ (local/  │
│  Lovable,    │     │  │ Fastify │  │ BullMQ Queue │  │     │  remote) │
│  Supabase)   │     │  │ API     │──│ (or in-mem)  │  │     └──────────┘
│              │◀────│  └─────────┘  └──────────────┘  │
│              │     │  ┌─────────┐  ┌──────────────┐  │     ┌──────────┐
│              │     │  │ Auth +  │  │ Storage      │  │────▶│ S3/MinIO │
│              │     │  │ RateL.  │  │ (local/S3)   │  │     │(optional)│
│              │     │  └─────────┘  └──────────────┘  │     └──────────┘
└─────────────┘     └──────────────────────────────────┘

Components

Component Purpose File(s)
API Gateway REST endpoints, validation, CORS src/api/
Worker Processes jobs, talks to ComfyUI src/worker/
ComfyUI Client HTTP + WebSocket to ComfyUI src/comfyui/
Workflow Manager Template storage, placeholder rendering src/workflows/
Storage Provider Local disk + S3-compatible src/storage/
Cache Hash-based deduplication src/cache/
Notifier Webhook with HMAC signing src/notifications/
Auth API key + JWT + rate limiting src/auth/
DB SQLite (better-sqlite3) or Postgres src/db/
CLI Init, add-workflow, run, worker src/cli/

Quick Start


## 1. Install

cd comfyui-gateway
npm install

## 2. Configure

cp .env.example .env

## 3. Initialize

npx tsx src/cli/index.ts init

## 4. Add A Workflow

npx tsx src/cli/index.ts add-workflow ./workflows/sdxl_realism_v1.json \
  --id sdxl_realism_v1 --schema ./workflows/sdxl_realism_v1.schema.json

## 5. Start (Api + Worker In One Process)

npm run dev

## Or Separately:

npm run start:api   # API only
npm run start:worker # Worker only

Environment Variables

All configuration is via .env — nothing is hardcoded:

Variable Default Description
PORT 3000 API server port
HOST 0.0.0.0 API bind address
COMFYUI_URL http://127.0.0.1:8188 ComfyUI server URL
COMFYUI_TIMEOUT_MS 300000 Max wait for ComfyUI (5min)
API_KEYS "" Comma-separated API keys (key:role)
JWT_SECRET "" JWT signing secret (empty = JWT disabled)
REDIS_URL "" Redis URL (empty = in-memory queue)
DATABASE_URL ./data/gateway.db SQLite path or Postgres URL
STORAGE_PROVIDER local local or s3
STORAGE_LOCAL_PATH ./data/outputs Local output directory
S3_ENDPOINT "" S3/MinIO endpoint
S3_BUCKET "" S3 bucket name
S3_ACCESS_KEY "" S3 access key
S3_SECRET_KEY "" S3 secret key
S3_REGION us-east-1 S3 region
WEBHOOK_SECRET "" HMAC signing secret for webhooks
WEBHOOK_ALLOWED_DOMAINS * Comma-separated allowed callback domains
MAX_CONCURRENCY 1 Parallel jobs per GPU
MAX_IMAGE_SIZE 2048 Maximum dimension (width or height)
MAX_BATCH_SIZE 4 Maximum batch size
CACHE_ENABLED true Enable result caching

…

자주 묻는 질문

ComfyUI란 무엇인가요?

인공지능을 사용해 텍스트 설명으로 이미지를 만드는 프로그램입니다.

이 ‘관문(gateway)’은 무엇을 위한 것인가요?

이미지 생성 요청을 관리하고 정리해서, 다른 프로그램을 통해 ComfyUI를 쓰는 사람들에게 더 효율적이고 안전한 과정을 제공합니다.

이 기능으로 모든 종류의 이미지를 만들 수 있나요?

네, ComfyUI에 원하는 이미지 종류에 필요한 모델과 도구가 설정되어 있다면 가능합니다.

상세 정보

작성자의 원본 설명

REST API gateway for ComfyUI servers. Workflow management, job queuing, webhooks, caching, auth, rate limiting, and image delivery (URL + base64).

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4210
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬