Package com.azure.ai.openai.models
Class ImageGenerationData
java.lang.Object
com.azure.ai.openai.models.ImageGenerationData
A representation of a single generated image, provided as either base64-encoded data or as a URL from which the
image
may be retrieved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the base64Data property: The complete data for an image, represented as a base64-encoded string.Get the revisedPrompt property: The final prompt used by the model to generate the image.getUrl()Get the url property: The URL that provides temporary access to download the generated image.setBase64Data(String base64Data) Set the base64Data property: The complete data for an image, represented as a base64-encoded string.setRevisedPrompt(String revisedPrompt) Set the revisedPrompt property: The final prompt used by the model to generate the image.Set the url property: The URL that provides temporary access to download the generated image.
-
Constructor Details
-
ImageGenerationData
public ImageGenerationData()Creates an instance of ImageGenerationData class.
-
-
Method Details
-
getUrl
Get the url property: The URL that provides temporary access to download the generated image.- Returns:
- the url value.
-
setUrl
Set the url property: The URL that provides temporary access to download the generated image.- Parameters:
url- the url value to set.- Returns:
- the ImageGenerationData object itself.
-
getBase64Data
Get the base64Data property: The complete data for an image, represented as a base64-encoded string.- Returns:
- the base64Data value.
-
setBase64Data
Set the base64Data property: The complete data for an image, represented as a base64-encoded string.- Parameters:
base64Data- the base64Data value to set.- Returns:
- the ImageGenerationData object itself.
-
getRevisedPrompt
Get the revisedPrompt property: The final prompt used by the model to generate the image. Only provided with dall-3-models and only when revisions were made to the prompt.- Returns:
- the revisedPrompt value.
-
setRevisedPrompt
Set the revisedPrompt property: The final prompt used by the model to generate the image. Only provided with dall-3-models and only when revisions were made to the prompt.- Parameters:
revisedPrompt- the revisedPrompt value to set.- Returns:
- the ImageGenerationData object itself.
-