A lightweight API service that provides a streamlined interface for image generation using ComfyUI workflows, with intelligent prompt processing and result management.
- GET
/outputs/{filename}
- Retrieve generated images
- Filename format:
<uuid>.png
- Responses:
200
: Image successfully retrieved400
: Bad request404
: Image not found
-
POST
/prompts
- Create a new image generation prompt
- Request Body: JSON with prompt details
- Responses:
201
: Prompt created successfully400
: Bad request500
: Server error
-
GET
/prompts/results
- Retrieve prompt generation results
- Optional Query Parameters:
clientId
: Filter by client UUIDstatus
: Filter by status (PENDING
,COMPLETED
,FAILED
)limit
: Result count limit
- Responses:
200
: Results retrieved400
: Bad request500
: Server error
-
GET
/prompts/{id}
- Get specific prompt result
- Responses:
200
: Prompt found400
: Bad request404
: Prompt not found
# Clone the repository
git clone https://github.com/your-org/comfyui-wrapper-api.git
# Install dependencies
npm install
# Start the server (development)
npm run dev
# Start the server (production)
npm run build
npm run start