# comfyui-service **Repository Path**: javajavadog/comfyui-service ## Basic Information - **Project Name**: comfyui-service - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-27 - **Last Updated**: 2025-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # comfyui service 这是一个管理调用comfyui的微服务,部署在和comfyui同一台主机上面,为上层提供统一的生图服务。 ## 依赖项 本微服务依赖imagemagick做图像转码,需要先安装这个工具。 `sudo apt-get install imagemagick` ## 启动和测试 ```shell curl -X POST http://localhost:8189/api/v1/images/generate \ -H "Content-Type: application/json" \ -H "x-api-key: ondraw_7fTR6V3WX4X7Y8g9Kj7Z6x5Y" \ -d '{"prompt":"a beautiful landscape","width":1024,"height":1024,"seed":12345}' ``` ```shell # c1上的部署示例,gen.sh #!/bin/bash curl --location 'http://c1.ondraw.art:8189/api/v1/images/generate' --header 'Content-Type: application/json' --header 'x-api-key: ondraw_7fTR6V3WX4X7Y8g9Kj7Z6x5Y' --data '{ "prompt": "A digital illustration in a semi-realistic cartoon style of a young American woman with a warm white complexion. She has long blonde hair with pink highlights, styled with a side part. She'\''s wearing a red t-shirt and gold hoop earrings. Her expression is soft and loving as she holds up a finger heart gesture. Her lips are glossy, and she has subtle gold eyeshadow. The background is a rich red with sparkles and floating heart icons. At the bottom, glittery red script reads “ondraw”", "width": 832, "height": 1216, "seed": '$RANDOM', "speed": 1 }' ``` ```shell # 并发测试 seq 1 32 | xargs -n 1 -P 32 -I {} ./gen.sh ``` ## 对象存储账户 腾讯云子账户 ```shell ondraw 4yKJa!F9 ```