comfyui

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigSchema added in v0.9.0

func ConfigSchema() []engine.ConfigField

ConfigSchema returns the configuration fields required by the ComfyUI engine.

func DefaultProvider added in v0.15.0

func DefaultProvider() engine.Provider

DefaultProvider returns preset engine configurations for comfyui.

func ModelInfos added in v0.16.0

func ModelInfos() []engine.ModelInfo

ModelInfos returns i18n metadata for the ComfyUI server integration. ComfyUI models are user-defined workflow graphs; this registers a platform-level entry for discovery purposes.

func ModelsByCapability added in v0.14.0

func ModelsByCapability() map[string][]string

ModelsByCapability returns the models grouped by capability.

Types

type Config

type Config struct {
	BaseURL           string
	ClientID          string
	APIKey            string
	HTTPClient        *http.Client
	WaitForCompletion bool
	PollInterval      time.Duration
}

Config configures the ComfyUI passthrough engine.

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine submits a graph to a ComfyUI server.

func New

func New(cfg Config) *Engine

New creates a ComfyUI engine instance.

func (*Engine) Capabilities

func (e *Engine) Capabilities() engine.Capability

Capabilities implements engine.Describer.

func (*Engine) Execute

func (e *Engine) Execute(ctx context.Context, graph workflow.Graph) (engine.Result, error)

Execute enqueues the graph on a ComfyUI server and returns either the prompt id or the first output URL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL