xyz.felh.openai.image.CreateImageRequest Maven / Gradle / Ivy
package xyz.felh.openai.image;
import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor(force = true)
@ToString(callSuper = true)
@SuperBuilder(toBuilder = true)
public class CreateImageRequest extends BaseRequest {
/**
* A text description of the desired image(s). The maximum length is 1000 characters for dall-e-2 and 4000 characters for dall-e-3.
*
* string, Required
*/
@NonNull
@JSONField(name = "prompt")
@JsonProperty("prompt")
private String prompt;
/**
* The quality of the image that will be generated. hd creates images with finer details and greater consistency across the image. This param is only supported for dall-e-3.
*
* string, Optional
*
* Default to standard
*
* See {@link ImageQuality}
*/
@JSONField(name = "quality")
@JsonProperty("quality")
private ImageQuality quality;
/**
* The style of the generated images. Must be one of vivid or natural. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This param is only supported for dall-e-3.
*
* string or null, Optional
*
* Defaults to vivid
*
* See {@link ImageStyle}
*/
@JSONField(name = "style")
@JsonProperty("style")
private ImageStyle style;
}