Enum Class WorkersAiImageModelName

java.lang.Object
java.lang.Enum<WorkersAiImageModelName>
dev.langchain4j.model.workersai.WorkersAiImageModelName
All Implemented Interfaces:
Serializable, Comparable<WorkersAiImageModelName>, Constable

public enum WorkersAiImageModelName extends Enum<WorkersAiImageModelName>
Enum for Workers AI Omage Model Name.
  • Enum Constant Details

    • STABLE_DIFFUSION_XL

      public static final WorkersAiImageModelName STABLE_DIFFUSION_XL
      Diffusion-based text-to-image generative model by Stability AI. Generates and modify images based on text prompts.
    • DREAM_SHAPER_8_LCM

      public static final WorkersAiImageModelName DREAM_SHAPER_8_LCM
      Stable Diffusion model that has been fine-tuned to be better at photorealism without sacrificing range.
    • STABLE_DIFFUSION_V1_5_IMG2IMG

      public static final WorkersAiImageModelName STABLE_DIFFUSION_V1_5_IMG2IMG
      Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images. Img2img generate a new image from an input image with Stable Diffusion.
    • STABLE_DIFFUSION_V1_5_IN_PAINTING

      public static final WorkersAiImageModelName STABLE_DIFFUSION_V1_5_IN_PAINTING
      Stable Diffusion Inpainting is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask.
    • STABLE_DIFFUSION_XL_LIGHTNING

      public static final WorkersAiImageModelName STABLE_DIFFUSION_XL_LIGHTNING
      SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.
  • Method Details

    • values

      public static WorkersAiImageModelName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WorkersAiImageModelName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WorkersAiImageModelName>