Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Stay organized with collections
Save and categorize content based on your preferences.
When interacting with Gemini on Vertex AI, your requests
(prompts) or the generated responses might be blocked by content filters. This
document provides guidance on how to identify and process these blocked
responses.
When is content blocked?
There are two scenarios for content filters blocking content:
The input prompt is blocked.
The model's response is blocked.
The sections that follow describe how to process each scenario.
The input prompt is blocked
If your input prompt is blocked by content filters before it is sent to the
model, the API response exhibits the following characteristics:
The
promptFeedback
field is populated. This field contains information about why the
prompt is blocked.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-06 UTC."],[],[]]