Package com.azure.ai.openai.models
Class ImageGenerationResponseFormat
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageGenerationResponseFormat>
com.azure.ai.openai.models.ImageGenerationResponseFormat
public final class ImageGenerationResponseFormat
extends com.azure.core.util.ExpandableStringEnum<ImageGenerationResponseFormat>
The format in which the generated images are returned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageGenerationResponseFormatImage generation response items should provide image data as a base64-encoded string.static final ImageGenerationResponseFormatImage generation response items should provide a URL from which the image may be retrieved. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String name) Creates or finds a ImageGenerationResponseFormat from its string representation.values()Gets known ImageGenerationResponseFormat values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
URL
Image generation response items should provide a URL from which the image may be retrieved. -
BASE64
Image generation response items should provide image data as a base64-encoded string.
-
-
Constructor Details
-
ImageGenerationResponseFormat
Deprecated.Use thefromString(String)factory method.Creates a new instance of ImageGenerationResponseFormat value.
-
-
Method Details
-
fromString
Creates or finds a ImageGenerationResponseFormat from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ImageGenerationResponseFormat.
-
values
Gets known ImageGenerationResponseFormat values.- Returns:
- known ImageGenerationResponseFormat values.
-
fromString(String)factory method.