Enable Fooocus in Settings
Fooocus is a streamlined image generation tool inspired by Midjourney. It features automatic prompt enhancement, style presets, and quality optimization. Great for users who want excellent results without complex settings.
| Field | Type | Required | Description |
|---|---|---|---|
| baseUrl | url | Optional | URL of your Fooocus server |
| baseModel | text | Optional | Default base model to use |
Add provider:
npx webinfer provider add fooocusTest connection:
npx webinfer provider test fooocusBasic 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 Fooocus explicitly:
import { generateText } from "webinfer"
const result = await generateText({
prompt: "Write a haiku about programming",
provider: "fooocus"
})
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: "fooocus"
})
for await (const chunk of textStream) {
process.stdout.write(chunk)
}juggernaut_xljuggernaut_xlJuggernaut XLrealvisxlRealVisXLsdxlBase SDXL