GeneratedImage

org.llm4s.imagegeneration.GeneratedImage
case class GeneratedImage(data: String, format: ImageFormat, size: ImageSize, createdAt: Instant, prompt: String, seed: Option[Long], filePath: Option[Path])

Represents a generated image

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def asBytes: Array[Byte]

Get the image data as bytes

Get the image data as bytes

Attributes

def saveToFile(path: Path): Either[ImageGenerationError, GeneratedImage]

Save image to file and return updated GeneratedImage with file path

Save image to file and return updated GeneratedImage with file path

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product