# Class GenerateImageRequest

java.lang.Object
com.codename1.ai.GenerateImageRequest

public final class GenerateImageRequest extends Object
Request payload for `ImageGenerator.generate(GenerateImageRequest)`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GenerateImageRequest(String prompt)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getCount()`
  `String`
  `getModel()`
  `String`
  `getPrompt()`
  `String`
  `getQuality()`
  `Long`
  `getSeed()`
  `String`
  `getSize()`
  `String`
  `getStyle()`
  `GenerateImageRequest`
  `setCount(int count)`
  Number of images to generate (DALL-E 3 supports 1; older models up to 10).
  `GenerateImageRequest`
  `setModel(String model)`
  `GenerateImageRequest`
  `setQuality(String quality)`
  `GenerateImageRequest`
  `setSeed(Long seed)`
  `GenerateImageRequest`
  `setSize(String size)`
  `"1024x1024"`, `"1024x1792"`, `"1792x1024"` for DALL-E 3.
  `GenerateImageRequest`
  `setStyle(String style)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GenerateImageRequest

    public GenerateImageRequest(String prompt)

- ## Method Details

  - ### getPrompt

    public String getPrompt()

  - ### getModel

    public String getModel()

  - ### setModel

    public GenerateImageRequest setModel(String model)

  - ### getSize

    public String getSize()

  - ### setSize

    public GenerateImageRequest setSize(String size)
    `"1024x1024"`, `"1024x1792"`, `"1792x1024"` for DALL-E 3. Default is `"1024x1024"`.

  - ### getStyle

    public String getStyle()

  - ### setStyle

    public GenerateImageRequest setStyle(String style)

  - ### getQuality

    public String getQuality()

  - ### setQuality

    public GenerateImageRequest setQuality(String quality)

  - ### getCount

    public int getCount()

  - ### setCount

    public GenerateImageRequest setCount(int count)
    Number of images to generate (DALL-E 3 supports 1; older models up to 10).

  - ### getSeed

    public Long getSeed()

  - ### setSeed

    public GenerateImageRequest setSeed(Long seed)