Enumeration BlockedReason

Output only. The reason why the prompt was blocked.

Enumeration Members

BLOCKED_REASON_UNSPECIFIED: "BLOCKED_REASON_UNSPECIFIED"

The blocked reason is unspecified.

BLOCKLIST: "BLOCKLIST"

The prompt was blocked because it contains a term from the terminology blocklist.

IMAGE_SAFETY: "IMAGE_SAFETY"

The prompt was blocked because it contains content that is unsafe for image generation.

JAILBREAK: "JAILBREAK"

The prompt was blocked as a jailbreak attempt. This enum value is not supported in Gemini API.

MODEL_ARMOR: "MODEL_ARMOR"

The prompt was blocked by Model Armor. This enum value is not supported in Gemini API.

OTHER: "OTHER"

The prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.

PROHIBITED_CONTENT: "PROHIBITED_CONTENT"

The prompt was blocked because it contains prohibited content.

SAFETY: "SAFETY"

The prompt was blocked for safety reasons.