WebInfer

🖼️

AUTOMATIC1111 / Forge

Stable Diffusion WebUI with extensive customization

Free
Local & Self-Hosted
Local

Configure AUTOMATIC1111 / Forge

Enable AUTOMATIC1111 / Forge in Settings

Go to Settings
About AUTOMATIC1111 / Forge

AUTOMATIC1111 Stable Diffusion WebUI is the most popular and feature-rich interface for Stable Diffusion. Also works with Forge and SD.Next which use the same API. Supports txt2img, img2img, inpainting, ControlNet, LoRA, and many extensions.

Key Features
  • Most popular SD interface
  • Extensive extension ecosystem
  • ControlNet and LoRA support
  • Inpainting and outpainting
  • Upscaling and face restoration
  • Compatible with Forge and SD.Next
  • 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 a1111

Test connection:

npx webinfer provider test a1111
Programmatic Usage
Use AUTOMATIC1111 / Forge 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 AUTOMATIC1111 / Forge explicitly:

import { generateText } from "webinfer"

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

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: "a1111"
})

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
sd21Stable Diffusion 2.1
512x512
768x768
Pricing
Free
Completely free. All computation happens locally on your device.