org.llm4s.imagegeneration

Members list

Type members

Classlikes

case class AuthenticationError(message: String) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class GeneratedImage(data: String, format: ImageFormat, size: ImageSize, createdAt: Instant, prompt: String, seed: Option[Long], filePath: Option[Path])

Represents a generated image

Represents a generated image

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait HealthStatus

Service health status

Service health status

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Degraded
object Healthy
object Unhealthy
object HealthStatus

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HuggingFaceConfig(apiKey: String, model: String, timeout: Int) extends ImageGenerationConfig

Configuration for the HuggingFace Inference API.

Configuration for the HuggingFace Inference API.

Value parameters

apiKey

Your HuggingFace API token. This is required for authentication.

model

The identifier of the model to use on the HuggingFace Hub, e.g., "runwayml/stable-diffusion-v1-5".

timeout

Request timeout in milliseconds. Defaults to a higher value suitable for cloud APIs.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait ImageFormat

Image format enumeration

Image format enumeration

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JPEG
object PNG
object ImageFormat

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait ImageGenerationConfig

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait ImageGenerationError

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class ImageGenerationOptions(size: ImageSize, format: ImageFormat, seed: Option[Long], guidanceScale: Double, inferenceSteps: Int, negativePrompt: Option[String], samplerName: Option[String])

Options for image generation

Options for image generation

Attributes

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

Providers for image generation

Providers for image generation

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DALLE
object HuggingFace
object Midjourney

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ImageSize

Image size enumeration

Image size enumeration

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ImageSize

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ImageSize.type
case class InsufficientResourcesError(message: String) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class InvalidPromptError(message: String) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OpenAIConfig(apiKey: String, model: String, timeout: Int) extends ImageGenerationConfig

Configuration for OpenAI DALL-E API.

Configuration for OpenAI DALL-E API.

Value parameters

apiKey

Your OpenAI API key. This is required for authentication.

model

The DALL-E model version to use (dall-e-2 or dall-e-3).

timeout

Request timeout in milliseconds.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RateLimitError(message: String) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ServiceError(message: String, code: Int) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ServiceStatus(status: HealthStatus, message: String, lastChecked: Instant, queueLength: Option[Int], averageGenerationTime: Option[Long])

Represents the status of the image generation service

Represents the status of the image generation service

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class StableDiffusionConfig(baseUrl: String, apiKey: Option[String], timeout: Int) extends ImageGenerationConfig

Configuration for Stable Diffusion

Configuration for Stable Diffusion

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class UnknownError(throwable: Throwable) extends ImageGenerationError

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ValidationError(message: String) extends ImageGenerationError

Attributes

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