imagegen

package
v0.6.49 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Generate(ctx context.Context, req Request) (Result, error)
}

func NewProvider

func NewProvider(cfg config.ImageGenerationConfig, env map[string]string) (Provider, error)

type Request

type Request struct {
	Prompt          string
	OutputPath      string
	ReferenceImages []string
	UserID          string
}

type Result

type Result struct {
	LocalPath     string
	LocalPaths    []string
	RevisedPrompt string
}

Jump to

Keyboard shortcuts

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