Index
FilteredText
(message)FilteredText.Confidence
(enum)GenerateVideoResponse
(message)Image
(message)ImageRAIScores
(message)Media
(message)NamedBoundingBox
(message)RaiCategory
(enum)RaiInfo
(message)SemanticFilterResponse
(message)Video
(message)
FilteredText
Details for filtered input text.
Fields | |
---|---|
prompt |
Input prompt |
confidence |
Filtered category |
score |
Score for category |
category |
Confidence level |
Confidence
Enums | |
---|---|
CONFIDENCE_UNSPECIFIED |
|
CONFIDENCE_LOW |
|
CONFIDENCE_MEDIUM |
|
CONFIDENCE_HIGH |
GenerateVideoResponse
Generate video response.
Fields | |
---|---|
generated_samples[] |
The generates samples. |
rai_media_filtered_count |
Returns if any videos were filtered due to RAI policies. |
rai_media_filtered_reasons[] |
Returns rai failure reasons if any. |
rai_text_filtered_reason |
Returns filtered text rai info. |
rai_error_message |
Returns rai error message for filtered videos. |
Image
Image.
Fields | |
---|---|
encoding |
Image encoding, encoded as "image/png" or "image/jpg". |
image_rai_scores |
RAI scores for generated image. |
rai_info |
RAI info for image. |
semantic_filter_response |
Semantic filter info for image. |
text |
Text/Expanded text input for imagen. |
Union field
|
|
image |
Raw bytes. |
uri |
Path to another storage (typically Google Cloud Storage). |
ImageRAIScores
RAI scores for generated image returned.
Fields | |
---|---|
agile_watermark_detection_score |
Agile watermark score for image. |
Media
Media.
Fields | |
---|---|
Union field
|
|
image |
Image. |
video |
Video |
NamedBoundingBox
Fields | |
---|---|
x1 |
|
x2 |
|
y1 |
|
y2 |
|
classes[] |
|
entities[] |
|
scores[] |
|
RaiCategory
Enums | |
---|---|
RAI_CATEGORY_UNSPECIFIED |
|
OBSCENE |
|
SEXUALLY_EXPLICIT |
Porn |
IDENTITY_ATTACK |
Hate |
VIOLENCE_ABUSE |
|
CSAI |
|
SPII |
|
CELEBRITY |
|
FACE_IMG |
|
WATERMARK_IMG |
|
MEMORIZATION_IMG |
|
CSAI_IMG |
|
PORN_IMG |
|
VIOLENCE_IMG |
|
CHILD_IMG |
|
TOXIC |
|
SENSITIVE_WORD |
|
PERSON_IMG |
|
ICA_IMG |
|
SEXUAL_IMG |
|
IU_IMG |
|
RACY_IMG |
|
PEDO_IMG |
|
DEATH_HARM_TRAGEDY |
SafetyAttributes returned but not filtered on |
HEALTH |
|
FIREARMS_WEAPONS |
|
RELIGIOUS_BELIEF |
|
ILLICIT_DRUGS |
|
WAR_CONFLICT |
|
POLITICS |
|
HATE_SYMBOL_IMG |
End of list |
CHILD_TEXT |
|
DANGEROUS_CONTENT |
Text category from SafetyCat v3 |
RECITATION_TEXT |
|
CELEBRITY_IMG |
|
WATERMARK_IMG_REMOVAL |
Error message when user attempts to remove watermark from editing image |
RaiInfo
Fields | |
---|---|
rai_categories[] |
List of rai categories' information to return |
scores[] |
List of rai scores mapping to the rai categories. Rounded to 1 decimal place. |
SemanticFilterResponse
Fields | |
---|---|
passed_semantic_filter |
This response is added when semantic filter config is turned on in EditConfig. It reports if this image is passed semantic filter response. If passed_semantic_filter is false, the bounding box information will be populated for user to check what caused the semantic filter to fail. |
named_bounding_boxes[] |
Class labels of the bounding boxes that failed the semantic filtering. Bounding box coordinates. |
Video
Video
Fields | |
---|---|
Union field
|
|
video |
Raw bytes. |
uri |
Path to another storage (typically Google Cloud Storage). |