Generate video response.
| JSON representation |
|---|
{
"generatedSamples": [
{
object ( |
| Fields | |
|---|---|
generatedSamples[] |
The generates samples. |
raiMediaFilteredCount |
Returns if any videos were filtered due to RAI policies. |
raiMediaFilteredReasons[] |
Returns rai failure reasons if any. |
Media
Media.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
image |
Image. |
video |
Video |
Image
Image.
| JSON representation |
|---|
{ "encoding": string, "imageRaiScores": { object ( |
| Fields | |
|---|---|
encoding |
Image encoding, encoded as "image/png" or "image/jpg". |
imageRaiScores |
RAI scores for generated image. |
raiInfo |
RAI info for image. |
semanticFilterResponse |
Semantic filter info for image. |
text |
Text/Expanded text input for imagen. |
imageSize |
Image size. The size of the image. Can be self reported, or computed from the image bytes. |
Union field
|
|
image |
Raw bytes. A base64-encoded string. |
uri |
Path to another storage (typically Cloud Storage). |
ImageRAIScores
RAI scores for generated image returned.
| JSON representation |
|---|
{ "agileWatermarkDetectionScore": number } |
| Fields | |
|---|---|
agileWatermarkDetectionScore |
Agile watermark score for image. |
RaiInfo
Next id: 6
| JSON representation |
|---|
{ "raiCategories": [ string ], "scores": [ number ], "blockedEntities": [ string ], "modelName": string } |
| Fields | |
|---|---|
raiCategories[] |
List of rai categories' information to return |
scores[] |
List of rai scores mapping to the rai categories. Rounded to 1 decimal place. |
blockedEntities[] |
List of blocked entities from the blocklist if it is detected. |
modelName |
The model name used to indexing into the RaiFilterConfig map. Would either be one of imagegeneration@002-006, imagen-3.0-... api endpoint names, or internal names used for mapping to different filter configs (genselfie, ai_watermark) than its api endpoint. |
SemanticFilterResponse
| JSON representation |
|---|
{
"passedSemanticFilter": boolean,
"namedBoundingBoxes": [
{
object ( |
| Fields | |
|---|---|
passedSemanticFilter |
This response is added when semantic filter config is turned on in EditConfig. It reports if this image is passed semantic filter response. If passedSemanticFilter is false, the bounding box information will be populated for user to check what caused the semantic filter to fail. |
namedBoundingBoxes[] |
Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates. |
NamedBoundingBox
| JSON representation |
|---|
{ "x1": number, "x2": number, "y1": number, "y2": number, "classes": [ string ], "entities": [ string ], "scores": [ number ] } |
| Fields | |
|---|---|
x1 |
|
x2 |
|
y1 |
|
y2 |
|
classes[] |
|
entities[] |
|
scores[] |
|
ImageSize
Image size.
| JSON representation |
|---|
{ "width": integer, "height": integer, "channels": integer } |
| Fields | |
|---|---|
width |
|
height |
|
channels |
|
Video
Video
| JSON representation |
|---|
{ "encoding": string, "text": string, // Union field |
| Fields | |
|---|---|
encoding |
Video encoding, for example "video/mp4". |
text |
Text/Expanded text input for Help Me Write. |
Union field
|
|
video |
Raw bytes. A base64-encoded string. |
uri |
Path to another storage (typically Cloud Storage). |
encodedVideo |
Base 64 encoded video bytes. |