Package com.azure.ai.openai.models
Class ImageGenerationOptions
java.lang.Object
com.azure.ai.openai.models.ImageGenerationOptions
Represents the request data used to generate images.
-
Constructor Summary
ConstructorsConstructorDescriptionImageGenerationOptions(String prompt) Creates an instance of ImageGenerationOptions class. -
Method Summary
Modifier and TypeMethodDescriptiongetN()Get the n property: The number of images to generate (defaults to 1).Get the prompt property: A description of the desired images.getSize()Get the size property: The desired size of the generated images.getUser()Get the user property: A unique identifier representing your end-user, which can help to monitor and detect abuse.Set the n property: The number of images to generate (defaults to 1).Set the size property: The desired size of the generated images.Set the user property: A unique identifier representing your end-user, which can help to monitor and detect abuse.
-
Constructor Details
-
ImageGenerationOptions
Creates an instance of ImageGenerationOptions class.- Parameters:
prompt- the prompt value to set.
-
-
Method Details
-
getPrompt
Get the prompt property: A description of the desired images.- Returns:
- the prompt value.
-
getN
Get the n property: The number of images to generate (defaults to 1).- Returns:
- the n value.
-
setN
Set the n property: The number of images to generate (defaults to 1).- Parameters:
n- the n value to set.- Returns:
- the ImageGenerationOptions object itself.
-
getSize
Get the size property: The desired size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 (defaults to 1024x1024).- Returns:
- the size value.
-
setSize
Set the size property: The desired size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 (defaults to 1024x1024).- Parameters:
size- the size value to set.- Returns:
- the ImageGenerationOptions object itself.
-
getUser
Get the user property: A unique identifier representing your end-user, which can help to monitor and detect abuse.- Returns:
- the user value.
-
setUser
Set the user property: A unique identifier representing your end-user, which can help to monitor and detect abuse.- Parameters:
user- the user value to set.- Returns:
- the ImageGenerationOptions object itself.
-