WebInfer

🎨

ComfyUI

Local image generation with ComfyUI workflows

Free
Local & Self-Hosted
Local

Configure ComfyUI

Enable ComfyUI in Settings

Go to Settings
About ComfyUI

Use ComfyUI for powerful local image generation with custom node-based workflows. Supports Stable Diffusion, SDXL, Flux, and many other image models. Perfect for advanced users who want full control over their image generation pipeline.

Key Features
  • Custom node-based workflows
  • Supports SDXL, Flux, and more
  • ControlNet and LoRA support
  • Inpainting and outpainting
  • Multiple samplers and schedulers
  • Completely free and local
Capabilities
image-generation
local
Configuration Schema
Required and optional fields for configuring this provider
FieldTypeRequired
baseUrl
url
Optional
checkpointName
text
Optional
CLI Usage
For users running the daemon server locally or a self-hosted gateway

Add provider:

npx webinfer provider add comfyui

Test connection:

npx webinfer provider test comfyui
Programmatic Usage
Use ComfyUI in your code with WebInfer

Basic usage:

import { generateText } from "webinfer"

// WebInfer automatically routes to the best available provider
const result = await generateText({
  prompt: "Write a haiku about programming"
})

console.log(result.text)

Specify ComfyUI explicitly:

import { generateText } from "webinfer"

const result = await generateText({
  prompt: "Write a haiku about programming",
  provider: "comfyui"
})

console.log(result.text)
console.log("Provider:", result.provider)
console.log("Model:", result.model)

Streaming:

import { streamText } from "webinfer"

const { textStream } = await streamText({
  prompt: "Write a story about AI",
  provider: "comfyui"
})

for await (const chunk of textStream) {
  process.stdout.write(chunk)
}
Image Models
Default: sdxl
sdxlStable Diffusion XL
512x512
768x768
1024x1024
sd15Stable Diffusion 1.5
512x512
768x512
512x768
fluxFlux models
512x512
768x768
1024x1024
Pricing
Free
Completely free. All computation happens locally on your device.