comfyui-apiConnects to a ComfyUI server to generate images from prompts, auto-detects URLs, translates Chinese prompts, and supports REST and WebSocket APIs.
Install via ClawdBot CLI:
clawdbot install qqliaoxin/comfyui-api自动检测 URL 设置,直接输入提示词即可生成图片。
用户输入包含 URL 时自动设置连接:
设置连接 https://localhost:8188
set url: https://localhost:8188
设置连接后,直接发送提示词:
生成一只可爱的猫
a beautiful sunset over mountains
| 方法 | 端点 | 说明 |
|------|------|------|
| POST | {server}/api/prompt | 提交工作流 |
| GET | {server}/history/{id} | 获取结果 |
| GET | {server}/view?filename=xxx | 获取图像 |
wss://{server}/ws{"prompt": {...}, "client_id": "xxx"}executing, executed, status| 命令 | 说明 |
|------|------|
| set_url | 手动设置服务器地址 |
| status | 检查服务器状态 |
| generate <提示词> | 生成图像 |
自动将中文提示词转换为英文:
# 设置连接 (多种方式)
设置连接 https://localhost:8188
set_url https://localhost:8188
# 直接生成
生成一只可爱的猫
a beautiful sunset over mountains
# 查看状态
status
Generated Mar 1, 2026
Social media managers use this skill to generate custom images for posts and ads by inputting simple prompts, automating visual content production without graphic design expertise.
Product and UI/UX designers quickly create mockups and concept art by describing scenes or objects, streamlining early-stage design iterations and client presentations.
Educators and e-learning platforms generate illustrative images for courses and textbooks based on descriptive prompts, enhancing visual learning aids efficiently.
Online retailers produce custom product images or backgrounds for listings by specifying themes, reducing photography costs and enabling rapid catalog updates.
Offer tiered subscription plans for businesses to access the ComfyUI API, providing higher generation limits, priority support, and advanced features for recurring revenue.
Provide customized integration of the skill into existing platforms like CMS or design tools, charging setup and maintenance fees for seamless embedding.
Sell credits for image generation on a per-prompt basis, appealing to casual users or small businesses with low-volume needs without subscription commitments.
💬 Integration Tip
Ensure the server URL is correctly configured via automatic detection or manual commands to establish a stable connection before generating images.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.