ImageGenerationClient
org.llm4s.imagegeneration.ImageGenerationClient
trait ImageGenerationClient
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
def generateImage(prompt: String, options: ImageGenerationOptions): Either[ImageGenerationError, GeneratedImage]
Generate an image from a text prompt
Generate an image from a text prompt
Attributes
def generateImages(prompt: String, count: Int, options: ImageGenerationOptions): Either[ImageGenerationError, Seq[GeneratedImage]]
Generate multiple images from a text prompt
Generate multiple images from a text prompt
Attributes
Concrete methods
def editImage(imagePath: Path, prompt: String, maskPath: Option[Path], options: ImageEditOptions): Either[ImageGenerationError, Seq[GeneratedImage]]
Edit an existing image based on a prompt and optional mask
Edit an existing image based on a prompt and optional mask
Attributes
def editImageAsync(imagePath: Path, prompt: String, maskPath: Option[Path], options: ImageEditOptions)(implicit ec: ExecutionContext): Future[Either[ImageGenerationError, Seq[GeneratedImage]]]
Edit an existing image asynchronously
Edit an existing image asynchronously
Attributes
def generateImageAsync(prompt: String, options: ImageGenerationOptions)(implicit ec: ExecutionContext): Future[Either[ImageGenerationError, GeneratedImage]]
Generate an image asynchronously
Generate an image asynchronously
Attributes
def generateImagesAsync(prompt: String, count: Int, options: ImageGenerationOptions)(implicit ec: ExecutionContext): Future[Either[ImageGenerationError, Seq[GeneratedImage]]]
Generate multiple images asynchronously
Generate multiple images asynchronously
Attributes
Check the health/status of the image generation service
Check the health/status of the image generation service
Attributes
In this article