GeneratedImage
Stay organized with collections
Save and categorize content based on your preferences.
Represents a generated image object.
JSON representation |
{
"name": string,
"generationTime": string,
// Union field image can be only one of the following:
"uri": string,
"imageBytes": string
// End of list of possible types for union field image .
} |
Fields |
name |
string
Identifier. The unique key for the image.
|
generationTime |
string (Timestamp format)
The timestamp when the image was generated.
|
Union field image . The generated image. image can be only one of the following: |
uri |
string
Generally web-requestable URI of the generated image. This is a temporary URI and will expire after 6 months. A URI may not be populated immediately after generation. Use get or list api using image_id to get the URI.
|
imageBytes |
string (bytes format)
Raw bytes for the image. A base64-encoded string.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[],[],null,["# GeneratedImage\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a generated image object.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"generationTime\": string, // Union field `image` can be only one of the following: \"uri\": string, \"imageBytes\": string // End of list of possible types for union field `image`. } ``` |\n\n| Fields ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The unique key for the image. |\n| `generationTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` The timestamp when the image was generated. |\n| Union field `image`. The generated image. `image` can be only one of the following: ||\n| `uri` | `string` Generally web-requestable URI of the generated image. This is a temporary URI and will expire after 6 months. A URI may not be populated immediately after generation. Use get or list api using image_id to get the URI. |\n| `imageBytes` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` Raw bytes for the image. A base64-encoded string. |"]]