Skip to content

iguanesolutions/gocomfyui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-ComfyUI

Go-ComfyUI is a Go library for interacting with ComfyUI. It provides a set of Go templates and functions to generate JSON workflows for ComfyUI.

Installation

You can install the Go-ComfyUI library using go get:

Lastest version:

go get github.com/iguanesolutions/go-comfyui@latest

Specific version:

go get github.com/iguanesolutions/go-comfyui@v0.1.0

Usage

Basic example:

package main

import (
	"fmt"
	"log"

	"github.com/iguanesolutions/gocomfyui"
)

func main() {
	params := gocomfyui.NewQwenImageGenParams(
		gocomfyui.QwenImageGenPositivePrompt(`
A cyborg with black parts facing a wall and using a high power laser beam coming out of its eyes,
carving the text "HOPE" into the wall.
The carving is still hot, with molten sone dripping from the hollow carved out text.`),
	)
	prompt, err := gocomfyui.QwenImageGen(params)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(string(prompt))
}

Requirements

In order to run the generated workflows you need to have the following ComfyUI custom nodes installed:

About

Go-ComfyUI is a Go library to render JSON workflows for ComfyUI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages