All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.felh.openai.image.CreateImageRequest Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
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; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy