ImageGenerations Class
- java.
lang. Object - com.
azure. ai. openai. models. ImageGenerations
- com.
Implements
public final class ImageGenerations
implements JsonSerializable<ImageGenerations>
The result of a successful image generation operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Offset |
getCreatedAt()
Get the created |
List<Image |
getData()
Get the data property: The images generated by the operation. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ImageGenerations fromJson(JsonReader jsonReader)
Reads an instance of ImageGenerations from the JsonReader.
Parameters:
Returns:
Throws:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: A timestamp representing when this operation was started. Expressed in seconds since the Unix epoch of 1970-01-01T00:00:00+0000.
Returns:
getData
public List
Get the data property: The images generated by the operation.
Returns:
toJson
Applies to
Azure SDK for Java