Class TextToImageUltraRequestGenerateParams
java.lang.Object
cloud.liblibai.openapi.client.model.TextToImageUltraRequestGenerateParams
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-05T15:10:08.947334966+08:00[Asia/Shanghai]",
comments="Generator version: 7.10.0")
public class TextToImageUltraRequestGenerateParams
extends Object
TextToImageUltraRequestGenerateParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum图片宽高比预设,与imageSize二选一配置即可static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontrolnet(UltraControlNet controlnet) booleanCreate an instance of TextToImageUltraRequestGenerateParams given an JSON string图片宽高比预设,与imageSize二选一配置即可Get controlnetGet imageSize单次生图张数 minimum: 1 maximum: 4正向提示词,文本getSteps()采样步数inthashCode()voidvoidsetControlnet(UltraControlNet controlnet) voidvoidsetImgCount(Integer imgCount) voidvoidtoJson()Convert an instance of TextToImageUltraRequestGenerateParams to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PROMPT
- See Also:
-
SERIALIZED_NAME_ASPECT_RATIO
- See Also:
-
SERIALIZED_NAME_IMAGE_SIZE
- See Also:
-
SERIALIZED_NAME_IMG_COUNT
- See Also:
-
SERIALIZED_NAME_STEPS
- See Also:
-
SERIALIZED_NAME_CONTROLNET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TextToImageUltraRequestGenerateParams
public TextToImageUltraRequestGenerateParams()
-
-
Method Details
-
prompt
-
getPrompt
-
setPrompt
-
aspectRatio
public TextToImageUltraRequestGenerateParams aspectRatio(@Nullable TextToImageUltraRequestGenerateParams.AspectRatioEnum aspectRatio) -
getAspectRatio
图片宽高比预设,与imageSize二选一配置即可- Returns:
- aspectRatio
-
setAspectRatio
public void setAspectRatio(@Nullable TextToImageUltraRequestGenerateParams.AspectRatioEnum aspectRatio) -
imageSize
public TextToImageUltraRequestGenerateParams imageSize(@Nullable TextToImageUltraRequestGenerateParamsImageSize imageSize) -
getImageSize
Get imageSize- Returns:
- imageSize
-
setImageSize
-
imgCount
-
getImgCount
-
setImgCount
-
steps
-
getSteps
-
setSteps
-
controlnet
-
getControlnet
-
setControlnet
-
equals
-
hashCode
-
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TextToImageUltraRequestGenerateParams
-
fromJson
Create an instance of TextToImageUltraRequestGenerateParams given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TextToImageUltraRequestGenerateParams
- Throws:
IOException- if the JSON string is invalid with respect to TextToImageUltraRequestGenerateParams
-
toJson
Convert an instance of TextToImageUltraRequestGenerateParams to an JSON string- Returns:
- JSON string
-