HuggingClientPayload

org.llm4s.imagegeneration.provider.HuggingClientPayload
See theHuggingClientPayload companion class

Companion object providing a convenience constructor and uPickle serialization for HuggingClientPayload.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(prompt: String, options: ImageGenerationOptions): HuggingClientPayload

Constructs a HuggingClientPayload from a prompt string and generation options.

Constructs a HuggingClientPayload from a prompt string and generation options.

Value parameters

options

Image generation options (guidance scale, inference steps, negative prompt, seed).

prompt

The text prompt describing the desired image.

Attributes

Returns

A fully populated HuggingClientPayload ready for the Hugging Face API.

Implicits

Implicits

implicit val e: ReadWriter[HuggingClientPayload]